Searched refs:nsegs (Results 1 - 25 of 183) sorted by relevance

12345678

/freebsd-10.0-release/sys/kern/
H A Dsubr_bus_dma.c61 bus_dma_segment_t *list, int sglist_cnt, struct pmap *pmap, int *nsegs,
70 flags, NULL, nsegs);
82 bus_dma_segment_t *list, int sglist_cnt, int *nsegs, int flags)
90 nsegs);
102 struct mbuf *m0, bus_dma_segment_t *segs, int *nsegs, int flags)
112 segs, nsegs);
115 CTR5(KTR_BUSDMA, "%s: tag %p tag flags 0x%x error %d nsegs %d",
116 __func__, dmat, flags, error, *nsegs);
125 int *nsegs, int flags)
133 bio->bio_bcount, kernel_pmap, flags, NULL, nsegs);
60 _bus_dmamap_load_vlist(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dma_segment_t *list, int sglist_cnt, struct pmap *pmap, int *nsegs, int flags) argument
81 _bus_dmamap_load_plist(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dma_segment_t *list, int sglist_cnt, int *nsegs, int flags) argument
101 _bus_dmamap_load_mbuf_sg(bus_dma_tag_t dmat, bus_dmamap_t map, struct mbuf *m0, bus_dma_segment_t *segs, int *nsegs, int flags) argument
124 _bus_dmamap_load_bio(bus_dma_tag_t dmat, bus_dmamap_t map, struct bio *bio, int *nsegs, int flags) argument
156 _bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, int *nsegs, int flags) argument
234 _bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, struct uio *uio, int *nsegs, int flags) argument
283 int nsegs; local
322 int nsegs, error; local
343 bus_dmamap_load_mbuf_sg(bus_dma_tag_t dmat, bus_dmamap_t map, struct mbuf *m0, bus_dma_segment_t *segs, int *nsegs, int flags) argument
361 int nsegs, error; local
388 int nsegs; local
432 int nsegs; local
470 int nsegs; local
[all...]
H A Dsubr_sglist.c172 int nsegs; local
179 nsegs = 1;
185 nsegs++;
189 return (nsegs);
193 * Allocate a scatter/gather list along with 'nsegs' segments. The
198 sglist_alloc(int nsegs, int mflags) argument
202 sg = malloc(sizeof(struct sglist) + nsegs * sizeof(struct sglist_seg),
206 sglist_init(sg, nsegs, (struct sglist_seg *)(sg + 1));
428 int nsegs; local
433 nsegs
[all...]
/freebsd-10.0-release/sys/powerpc/pseries/
H A Dplpar_iommu.h36 int phyp_iommu_map(device_t dev, bus_dma_segment_t *segs, int *nsegs,
39 int phyp_iommu_unmap(device_t dev, bus_dma_segment_t *segs, int nsegs,
H A Dphyp_llan.c118 static void llan_rx_load_cb(void *xsc, bus_dma_segment_t *segs, int nsegs,
232 llan_rx_load_cb(void *xsc, bus_dma_segment_t *segs, int nsegs, int err) argument
282 int error, nsegs; local
301 segs, &nsegs, BUS_DMA_NOWAIT);
309 /* If nsegs is wrong then the stack is corrupt. */
310 KASSERT(nsegs == 1,
311 ("%s: too many DMA segments (%d)", __func__, nsegs));
375 llan_send_packet(void *xsc, bus_dma_segment_t *segs, int nsegs, argument
384 for (i = 0; i < nsegs; i++) {
405 int nsegs; local
[all...]
H A Dplpar_iommu.c154 phyp_iommu_map(device_t dev, bus_dma_segment_t *segs, int *nsegs, argument
172 for (i = 0; i < *nsegs; i++) {
212 phyp_iommu_unmap(device_t dev, bus_dma_segment_t *segs, int nsegs, void *cookie) argument
220 for (i = 0; i < nsegs; i++) {
/freebsd-10.0-release/sys/dev/cxgb/sys/
H A Duipc_mvec.c54 struct mbuf **m, bus_dma_segment_t *segs, int *nsegs)
68 *nsegs = 1;
109 *nsegs = seg_count;
116 struct mbuf *m, bus_dma_segment_t *segs, int *nsegs)
119 for (*nsegs = 0; m != NULL ; segs++, *nsegs += 1, m = m->m_nextpkt)
53 busdma_map_sg_collapse(bus_dma_tag_t tag, bus_dmamap_t map, struct mbuf **m, bus_dma_segment_t *segs, int *nsegs) argument
115 busdma_map_sg_vec(bus_dma_tag_t tag, bus_dmamap_t map, struct mbuf *m, bus_dma_segment_t *segs, int *nsegs) argument
H A Dmvec.h49 struct mbuf **m, bus_dma_segment_t *segs, int *nsegs);
51 struct mbuf *m, bus_dma_segment_t *segs, int *nsegs);
/freebsd-10.0-release/sys/powerpc/powermac/
H A Data_dbdma.c60 int nsegs; member in struct:ata_dbdma_dmaload_args
64 ata_dbdma_setprd(void *xarg, bus_dma_segment_t *segs, int nsegs, int error) argument
78 for (i = 0; i < nsegs; i++) {
86 command = (i + 1 < nsegs) ? DBDMA_OUTPUT_MORE :
89 command = (i + 1 < nsegs) ? DBDMA_INPUT_MORE :
121 arg->nsegs = nsegs;
242 *entries = args.nsegs;
/freebsd-10.0-release/sys/fs/nandfs/
H A Dnandfs_cleaner.c126 print_suinfo(struct nandfs_suinfo *suinfo, int nsegs) argument
130 for (i = 0; i < nsegs; i++) {
292 uint64_t nsegs, uint64_t *rseg)
298 suinfo = malloc(sizeof(*suinfo) * nsegs, M_NANDFSTEMP,
305 error = nandfs_get_segment_info_filter(fsdev, suinfo, nsegs, *rseg,
342 int nsegs; local
345 nsegs = nandfs_cleaner_segments;
348 fsdev->nd_fsdata.f_blocks_per_segment * nsegs, M_NANDFSTEMP,
351 fsdev->nd_fsdata.f_blocks_per_segment * nsegs, M_NANDFSTEMP,
353 segp = segnums = malloc(sizeof(*segnums) * nsegs, M_NANDFSTEM
291 nandfs_cleaner_choose_segment(struct nandfs_device *fsdev, uint64_t **segpp, uint64_t nsegs, uint64_t *rseg) argument
484 nandfs_cleaner_clean_segments(struct nandfs_device *nffsdev, struct nandfs_vinfo *vinfo, uint32_t nvinfo, struct nandfs_period *pd, uint32_t npd, struct nandfs_bdesc *bdesc, uint32_t nbdesc, uint64_t *segments, uint32_t nsegs) argument
[all...]
/freebsd-10.0-release/sys/mips/nlm/dev/sec/
H A Dnlmseclib.h89 #define NLM_CRYPTO_PKT_DESC_SIZE(nsegs) (32 + (nsegs * 16))
115 uint32_t nsegs; member in struct:xlp_sec_command
H A Dnlmsec.c263 printf("nsegs :%d\n",cmd->nsegs);
606 xlp_get_nsegs(struct cryptop *crp, unsigned int *nsegs) argument
614 *nsegs += NLM_CRYPTO_NUM_SEGS_REQD(m->m_len);
626 *nsegs += NLM_CRYPTO_NUM_SEGS_REQD(iov->iov_len);
631 *nsegs = NLM_CRYPTO_NUM_SEGS_REQD(crp->crp_ilen);
637 xlp_alloc_cmd_params(struct xlp_sec_command *cmd, unsigned int nsegs) argument
654 /* (nsegs - 1) because one seg is part of the structure already */
656 (16 * (nsegs - 1)), M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) {
702 unsigned int nsegs local
[all...]
/freebsd-10.0-release/sys/dev/aac/
H A Daac_disk.c176 aac_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
188 sg->SgCount = nsegs;
189 for (i = 0; i < nsegs; i++) {
195 fib->Header.Size = nsegs * sizeof(struct aac_sg_entry);
203 aac_dump_map_sg64(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
215 sg->SgCount = nsegs;
216 for (i = 0; i < nsegs; i++) {
220 fib->Header.Size = nsegs * sizeof(struct aac_sg_entry64);
/freebsd-10.0-release/sys/dev/drm/
H A Ddrm_pci.c41 drm_pci_busdma_callback(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
48 KASSERT(nsegs == 1, ("drm_pci_busdma_callback: bad dma segment count"));
85 size, 1, size, /* maxsize, nsegs, maxsegsize */
H A Dati_pcigart.c48 int nsegs, int error)
55 KASSERT(nsegs == 1,
77 gart_info->table_size, 1, /* maxsize, nsegs */
47 drm_ati_alloc_pcigart_table_cb(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
/freebsd-10.0-release/sys/dev/ata/
H A Data-dma.c46 static void ata_dmasetupc_cb(void *xsc, bus_dma_segment_t *segs, int nsegs, int error);
49 static void ata_dmasetprd(void *xsc, bus_dma_segment_t *segs, int nsegs, int error);
50 static int ata_dmaload(struct ata_request *request, void *addr, int *nsegs);
149 ata_dmasetupc_cb(void *xsc, bus_dma_segment_t *segs, int nsegs, int error) argument
249 ata_dmasetprd(void *xsc, bus_dma_segment_t *segs, int nsegs, int error) argument
258 for (i = 0; i < nsegs; i++) {
263 KASSERT(nsegs <= ATA_DMA_ENTRIES, ("too many DMA segment entries\n"));
264 args->nsegs = nsegs;
321 *entries = dspa.nsegs;
[all...]
/freebsd-10.0-release/lib/libc/db/hash/
H A Dhash.c104 int bpages, hdrsize, new_table, nsegs, save_errno; local
163 nsegs = (hashp->MAX_BUCKET + 1 + hashp->SGSIZE - 1) /
165 if (alloc_segs(hashp, nsegs))
221 "NSEGS ", hashp->nsegs,
340 int nbuckets, nsegs, l2; local
366 nsegs = (nbuckets - 1) / hashp->SGSIZE + 1;
367 nsegs = 1 << __log2(nsegs);
369 if (nsegs > hashp->DSIZE)
370 hashp->DSIZE = nsegs;
872 alloc_segs(HTAB *hashp, int nsegs) argument
[all...]
/freebsd-10.0-release/libexec/rtld-elf/
H A Dmap_object.c62 int nsegs; local
103 nsegs = -1;
120 segs[++nsegs] = phdr;
121 if ((segs[nsegs]->p_align & (PAGE_SIZE - 1)) != 0) {
123 path, nsegs);
166 if (nsegs < 0) {
176 base_vlimit = round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_memsz);
193 for (i = 0; i <= nsegs; i++) {
/freebsd-10.0-release/sys/dev/safe/
H A Dsafevar.h86 int nsegs; member in struct:safe_operand
124 #define re_src_nsegs re_src.nsegs
131 #define re_dst_nsegs re_dst.nsegs
/freebsd-10.0-release/sys/dev/sfxge/
H A Dsfxge_dma.c59 struct mbuf **mp, bus_dma_segment_t *segs, int *nsegs, int maxsegs)
77 *nsegs = 1;
112 *nsegs = seg_count;
58 sfxge_dma_map_sg_collapse(bus_dma_tag_t tag, bus_dmamap_t map, struct mbuf **mp, bus_dma_segment_t *segs, int *nsegs, int maxsegs) argument
/freebsd-10.0-release/sys/dev/drm2/
H A Ddrm_pci.c41 drm_pci_busdma_callback(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
48 KASSERT(nsegs == 1, ("drm_pci_busdma_callback: bad dma segment count"));
82 size, 1, size, /* maxsize, nsegs, maxsegsize */
/freebsd-10.0-release/sys/powerpc/ps3/
H A Dif_glc.c111 glc_getphys(void *xaddr, bus_dma_segment_t *segs, int nsegs, int error) argument
556 int error, nsegs; local
570 segs, &nsegs, BUS_DMA_NOWAIT);
577 /* If nsegs is wrong then the stack is corrupt. */
578 KASSERT(nsegs == 1,
579 ("%s: too many DMA segments (%d)", __func__, nsegs));
613 int i, idx, nsegs, nsegs_max; local
628 nsegs = 0;
630 nsegs++;
632 if (nsegs > nsegs_ma
[all...]
H A Dps3cdrom.c141 static void ps3cdrom_transfer(void *arg, bus_dma_segment_t *segs, int nsegs,
549 ps3cdrom_transfer(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
560 KASSERT(nsegs == 1 || nsegs == 0,
561 ("ps3cdrom_transfer: invalid number of DMA segments %d", nsegs));
586 KASSERT(nsegs == 1, ("ps3cdrom_transfer: no data to read"));
598 KASSERT(nsegs == 1, ("ps3cdrom_transfer: no data to write"));
630 (nsegs == 0) ? 0 : segs[0].ds_len;
632 atapi_cmd.buf = (nsegs == 0) ? 0 : segs[0].ds_addr;
/freebsd-10.0-release/sys/dev/ips/
H A Dips_disk.c42 static void ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs,
241 ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
261 if (nsegs != 1) {
262 command_struct->segnum = nsegs;
265 for (i = 0; i < nsegs; i++) {
/freebsd-10.0-release/sys/dev/bm/
H A Dif_bm.c767 int nsegs = BM_NTXSEGS; local
775 nsegs = BM_MAX_DMA_COMMANDS - 2 - sc->next_txdma_slot +
778 nsegs = sc->first_used_txdma_slot - sc->next_txdma_slot;
781 nsegs--;
783 if (nsegs > BM_NTXSEGS)
784 nsegs = BM_NTXSEGS;
793 *m_head, segs, &nsegs, BUS_DMA_NOWAIT);
796 m = m_collapse(*m_head, M_NOWAIT, nsegs);
805 txs->txs_dmamap, *m_head, segs, &nsegs, BUS_DMA_NOWAIT);
814 if (nsegs
1239 int error, nsegs; local
[all...]
/freebsd-10.0-release/sys/sys/
H A Dbus_dma.h217 int *nsegs, int flags);
330 int nsegs, int error);

Completed in 132 milliseconds

12345678