/freebsd-10.1-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) 131 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 165 _bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, int *nsegs, int flags) argument 243 _bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, struct uio *uio, int *nsegs, int flags) argument 292 int nsegs; local 331 int nsegs, error; local 352 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 370 int nsegs, error; local 397 int nsegs; local 441 int nsegs; local 479 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-10.1-release/sys/powerpc/pseries/ |
H A D | plpar_iommu.h | 36 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 D | phyp_llan.c | 118 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 D | plpar_iommu.c | 159 phyp_iommu_map(device_t dev, bus_dma_segment_t *segs, int *nsegs, argument 177 for (i = 0; i < *nsegs; i++) { 217 phyp_iommu_unmap(device_t dev, bus_dma_segment_t *segs, int nsegs, void *cookie) argument 225 for (i = 0; i < nsegs; i++) {
|
/freebsd-10.1-release/sys/dev/cxgb/sys/ |
H A D | uipc_mvec.c | 54 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 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-10.1-release/sys/powerpc/powermac/ |
H A D | ata_dbdma.c | 60 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.1-release/sys/fs/nandfs/ |
H A D | nandfs_cleaner.c | 126 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.1-release/sys/mips/nlm/dev/sec/ |
H A D | nlmseclib.h | 89 #define NLM_CRYPTO_PKT_DESC_SIZE(nsegs) (32 + (nsegs * 16)) 115 uint32_t nsegs; member in struct:xlp_sec_command
|
H A D | nlmsec.c | 263 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.1-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-10.1-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-10.1-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; 321 *entries = dspa.nsegs; [all...] |
/freebsd-10.1-release/lib/libc/db/hash/ |
H A D | hash.c | 104 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.1-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-10.1-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-10.1-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-10.1-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-10.1-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...] |
H A D | ps3cdrom.c | 141 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.1-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-10.1-release/sys/dev/bm/ |
H A D | if_bm.c | 767 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.1-release/sys/dev/cxgbe/tom/ |
H A D | t4_cpl_io.c | 508 write_tx_sgl(void *dst, struct mbuf *start, struct mbuf *stop, int nsegs, int n) argument 516 KASSERT(nsegs > 0, ("%s: nsegs 0", __func__)); 520 V_ULPTX_NSGE(nsegs)); 539 nsegs--; 546 KASSERT(nsegs == 0, ("%s: nsegs %d, start %p, stop %p", 547 __func__, nsegs, start, stop)); 577 u_int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf; local 618 nsegs 785 unsigned int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf; local [all...] |