/freebsd-9.3-release/sys/kern/ |
H A D | subr_bus_dma.c | 61 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 D | subr_sglist.c | 174 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 D | uipc_mvec.c | 59 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 D | mvec.h | 49 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 D | ata_dbdma.c | 61 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 D | aac_disk.c | 176 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 D | drm_pci.c | 41 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 D | ati_pcigart.c | 48 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 D | ata-dma.c | 46 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 D | hash.c | 104 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 D | map_object.c | 62 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 D | safevar.h | 86 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 D | sfxge_dma.c | 59 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 D | drm_pci.c | 41 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 D | if_glc.c | 111 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 D | fmn.c | 262 * 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 D | ips_disk.c | 42 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 D | if_bm.c | 768 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 D | bus_dma.h | 210 int *nsegs, int flags); 323 int nsegs, int error);
|
H A D | sglist.h | 85 struct sglist *sglist_alloc(int nsegs, int mflags);
|
/freebsd-9.3-release/sys/arm/at91/ |
H A D | if_macb.c | 163 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 D | ql_glbl.h | 56 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 D | qls_glbl.h | 70 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 D | hifn7751var.h | 267 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 D | ubsecvar.h | 145 int nsegs; member in struct:ubsec_operand 166 #define q_src_nsegs q_src.nsegs 173 #define q_dst_nsegs q_dst.nsegs
|