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

1234567

/freebsd-9.3-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.c174 int nsegs; local
181 nsegs = 1;
187 nsegs++;
191 return (nsegs);
195 * Allocate a scatter/gather list along with 'nsegs' segments. The
200 sglist_alloc(int nsegs, int mflags) argument
204 sg = malloc(sizeof(struct sglist) + nsegs * sizeof(struct sglist_seg),
208 sglist_init(sg, nsegs, (struct sglist_seg *)(sg + 1));
468 int nsegs; local
473 nsegs
[all...]
/freebsd-9.3-release/sys/dev/cxgb/sys/
H A Duipc_mvec.c59 struct mbuf **m, bus_dma_segment_t *segs, int *nsegs)
73 *nsegs = 1;
114 *nsegs = seg_count;
121 struct mbuf *m, bus_dma_segment_t *segs, int *nsegs)
124 for (*nsegs = 0; m != NULL ; segs++, *nsegs += 1, m = m->m_nextpkt)
58 busdma_map_sg_collapse(bus_dma_tag_t tag, bus_dmamap_t map, struct mbuf **m, bus_dma_segment_t *segs, int *nsegs) argument
120 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-9.3-release/sys/powerpc/powermac/
H A Data_dbdma.c61 int nsegs; member in struct:ata_dbdma_dmaload_args
65 ata_dbdma_setprd(void *xarg, bus_dma_segment_t *segs, int nsegs, int error) argument
79 for (i = 0; i < nsegs; i++) {
87 command = (i + 1 < nsegs) ? DBDMA_OUTPUT_MORE :
90 command = (i + 1 < nsegs) ? DBDMA_INPUT_MORE :
122 arg->nsegs = nsegs;
243 *entries = args.nsegs;
/freebsd-9.3-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-9.3-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-9.3-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;
323 *entries = dspa.nsegs;
[all...]
/freebsd-9.3-release/lib/libc/db/hash/
H A Dhash.c104 int bpages, hdrsize, new_table, nsegs, save_errno; local
164 nsegs = (hashp->MAX_BUCKET + 1 + hashp->SGSIZE - 1) /
166 if (alloc_segs(hashp, nsegs))
222 "NSEGS ", hashp->nsegs,
341 int nbuckets, nsegs, l2; local
367 nsegs = (nbuckets - 1) / hashp->SGSIZE + 1;
368 nsegs = 1 << __log2(nsegs);
370 if (nsegs > hashp->DSIZE)
371 hashp->DSIZE = nsegs;
873 alloc_segs(HTAB *hashp, int nsegs) argument
[all...]
/freebsd-9.3-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-9.3-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-9.3-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-9.3-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-9.3-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...]
/freebsd-9.3-release/sys/mips/nlm/hal/
H A Dfmn.c262 * nsegs - No of segments where a "1" indicates 4KB. Spill size must be
266 int nsegs)
271 if(nsegs > CMS_MAX_SPILL_SEGMENTS_PER_QUEUE) {
281 (spill_start + nsegs - 1) << 21 |
292 * nsegs - No of segments where a "1" indicates 32 credits. On chip
295 int nlm_cms_alloc_onchip_q(uint64_t base, int qid, int nsegs) argument
302 if( ((curr_end + nsegs) > CMS_MAX_ONCHIP_SEGMENTS) ||
303 (nsegs > CMS_ON_CHIP_PER_QUEUE_SPACE) ) {
307 if(((curr_end % 32) + nsegs - 1) <= 31) {
310 curr_end += nsegs;
265 nlm_cms_alloc_spill_q(uint64_t base, int qid, uint64_t spill_base, int nsegs) argument
[all...]
/freebsd-9.3-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-9.3-release/sys/dev/bm/
H A Dif_bm.c768 int nsegs = BM_NTXSEGS; local
776 nsegs = BM_MAX_DMA_COMMANDS - 2 - sc->next_txdma_slot +
779 nsegs = sc->first_used_txdma_slot - sc->next_txdma_slot;
782 nsegs--;
784 if (nsegs > BM_NTXSEGS)
785 nsegs = BM_NTXSEGS;
794 *m_head, segs, &nsegs, BUS_DMA_NOWAIT);
797 m = m_collapse(*m_head, M_NOWAIT, nsegs);
806 txs->txs_dmamap, *m_head, segs, &nsegs, BUS_DMA_NOWAIT);
815 if (nsegs
1240 int error, nsegs; local
[all...]
/freebsd-9.3-release/sys/sys/
H A Dbus_dma.h210 int *nsegs, int flags);
323 int nsegs, int error);
H A Dsglist.h85 struct sglist *sglist_alloc(int nsegs, int mflags);
/freebsd-9.3-release/sys/arm/at91/
H A Dif_macb.c163 macb_getaddr(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
167 KASSERT(nsegs == 1, ("wrong number of segments, should be 1"));
436 int error, nsegs; local
445 seg, &nsegs, 0);
446 KASSERT(nsegs == 1, ("Too many segments returned!"));
710 int nsegs; local
721 nsegs = 0;
756 nsegs++;
776 if (nsegs > 1) {
778 ((nsegs
869 int error, i, nsegs, prod, si; local
[all...]
/freebsd-9.3-release/sys/dev/qlxgbe/
H A Dql_glbl.h56 extern int ql_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs,
/freebsd-9.3-release/sys/dev/qlxge/
H A Dqls_glbl.h70 extern int qls_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs,
/freebsd-9.3-release/sys/dev/hifn/
H A Dhifn7751var.h267 int nsegs; member in struct:hifn_operand
290 #define src_nsegs src.nsegs
297 #define dst_nsegs dst.nsegs
/freebsd-9.3-release/sys/dev/ubsec/
H A Dubsecvar.h145 int nsegs; member in struct:ubsec_operand
166 #define q_src_nsegs q_src.nsegs
173 #define q_dst_nsegs q_dst.nsegs

Completed in 212 milliseconds

1234567