/freebsd-current/sys/dev/aacraid/ |
H A D | aacraid.c | 83 int pages, int nseg, int nseg_new); 93 int nseg, int error); 100 static void aac_common_map(void *arg, bus_dma_segment_t *segs, int nseg, 1158 aac_map_command_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1286 aacraid_map_command_sg(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1296 fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "nseg %d", nseg); 1312 raw->sgeCnt = nseg; 1314 for (i = 0; i < nseg; i++) { 1325 } else if ((i+1) < nseg 1451 aac_convert_sgraw2(struct aac_softc *sc, struct aac_raw_io2 *raw, int pages, int nseg, int nseg_new) argument 1521 aac_common_map(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument [all...] |
/freebsd-current/stand/usb/ |
H A D | usb_busdma_loader.c | 176 uint32_t nseg; local 179 nseg = 1; 181 nseg = ((length + USB_PAGE_SIZE - 1) / USB_PAGE_SIZE);
|
/freebsd-current/sys/dev/isci/ |
H A D | isci.c | 68 int nseg, int error); 393 int nseg, int error) 399 if (nseg != 1 || error != 0) 392 isci_allocate_dma_buffer_callback(void *arg, bus_dma_segment_t *seg, int nseg, int error) argument
|
/freebsd-current/stand/kboot/kboot/arch/amd64/ |
H A D | elf64_freebsd.c | 157 int nseg; local 444 kboot_kseg_get(&nseg, &kseg); 445 error = host_kexec_load(trampolinebase, nseg, kseg, HOST_KEXEC_ARCH_X86_64);
|
/freebsd-current/sys/dev/nvme/ |
H A D | nvme_private.h | 477 nvme_single_map(void *arg, bus_dma_segment_t *seg, int nseg, int error) argument 481 KASSERT(nseg == 1, ("number of segments (%d) is not 1", nseg));
|
/freebsd-current/sys/dev/ixl/ |
H A D | i40e_osdep.c | 43 i40e_dmamap_cb(void *arg, bus_dma_segment_t * segs, int nseg, int error) argument
|
/freebsd-current/sys/dev/sfxge/ |
H A D | sfxge_dma.c | 50 sfxge_dma_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
|
/freebsd-current/sys/dev/proto/ |
H A D | proto_busdma.c | 162 proto_busdma_mem_alloc_callback(void *arg, bus_dma_segment_t *segs, int nseg, argument 167 pcb->ioc->u.md.bus_nsegs = nseg; 266 proto_busdma_md_load_callback(void *arg, bus_dma_segment_t *segs, int nseg, argument 271 pcb->ioc->u.md.bus_nsegs = nseg;
|
/freebsd-current/sys/dev/xl/ |
H A D | if_xl.c | 336 xl_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1756 int error, nseg; local 1770 segs, &nseg, BUS_DMA_NOWAIT); 1777 KASSERT(nseg == 1, 1778 ("%s: too many DMA segments (%d)", __func__, nseg)); 2336 int error, i, nseg, total_len; local 2342 sc->xl_cdata.xl_tx_segs, &nseg, BUS_DMA_NOWAIT); 2367 *m_head, sc->xl_cdata.xl_tx_segs, &nseg, BUS_DMA_NOWAIT); 2376 KASSERT(nseg <= XL_MAXFRAGS, 2377 ("%s: too many DMA segments (%d)", __func__, nseg)); [all...] |
/freebsd-current/sys/dev/xen/blkback/ |
H A D | blkback.c | 1465 u_int nseg; local 1562 nseg = ring_req->nr_segments; 1563 nreq->nr_pages = nseg; 1568 if (__predict_false(nseg == 0) 1569 || __predict_false(nseg > xbb->max_request_segments)) { 1571 nseg); 1576 block_segs = nseg; 1977 u_int nseg; local 2017 nseg = reqlist->nr_segments; 2019 for (seg_idx = 0; seg_idx < nseg; seg_id 2137 u_int nseg; local [all...] |
/freebsd-current/sys/dev/vmware/pvscsi/ |
H A D | pvscsi.c | 94 static void pvscsi_execute_ccb(void *arg, bus_dma_segment_t *segs, int nseg, 105 static void pvscsi_dma_cb(void *arg, bus_dma_segment_t *segs, int nseg, 426 pvscsi_dma_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 430 KASSERT(nseg == 1, ("more than one segment")); 1161 pvscsi_execute_ccb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1212 if (nseg != 0) { 1213 if (nseg > 1) { 1217 KASSERT(nseg <= PVSCSI_MAX_SG_ENTRIES_PER_SEGMENT, 1223 for (i = 0; i < nseg; ++i) {
|
/freebsd-current/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_iq.c | 499 int nseg, int error) 503 if (unlikely(error || nseg != 1)) 504 panic("mlx5e_iq_load_memory_cb: error=%d nseg=%d", error, nseg); 498 mlx5e_iq_load_memory_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
|
/freebsd-current/sys/dev/dpaa2/ |
H A D | dpaa2_channel.c | 274 ch->store.nseg = 0; 504 buf->nseg = 1; 516 buf->nseg = 0;
|
/freebsd-current/sys/dev/ismt/ |
H A D | ismt.c | 572 ismt_single_map(void *arg, bus_dma_segment_t *seg, int nseg, int error) argument 577 KASSERT(nseg == 1, ("%s: nseg=%d\n", __func__, nseg));
|
/freebsd-current/sys/dev/mpt/ |
H A D | mpt_cam.c | 1269 mpt_execute_req_a64(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument 1359 if (nseg == 0) { 1407 if (nseg < MPT_NSGL_FIRST(mpt)) { 1408 first_lim = nseg; 1435 if (seg == nseg - 1) { 1443 if (seg == nseg) { 1460 while (seg < nseg) { 1510 if ((nseg - seg) > MPT_NSGL(mpt)) { 1524 this_seg_lim = nseg; 1558 if (seg == nseg 1662 mpt_execute_req(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument [all...] |
/freebsd-current/sys/dev/cesa/ |
H A D | cesa.c | 141 cesa_alloc_dma_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 148 KASSERT(nseg == 1, ("Got wrong number of DMA segments, should be 1.")); 545 cesa_create_chain_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 592 cesa_create_chain_cb(cci, segs, nseg, 0); 595 cesa_create_chain_cb(cci, segs, nseg, 0); 600 cesa_create_chain_cb(cci, segs, nseg, 0); 603 cesa_create_chain_cb(cci, segs, nseg, 0); 668 while (nseg-- && len > 0) {
|
/freebsd-current/stand/kboot/kboot/ |
H A D | main.c | 588 kboot_kseg_get(int *nseg, void **ptr) argument 607 *nseg = nkexec_segments;
|
/freebsd-current/sys/dev/qat_c2xxx/ |
H A D | qat.c | 573 qat_alloc_dmamem_cb(void *arg, bus_dma_segment_t *segs, int nseg, argument 581 KASSERT(nseg == 1, ("%s: nsegs is %d", __func__, nseg)); 588 int nseg, bus_size_t size, bus_size_t alignment) 601 nseg, /* nsegments */ 1350 qat_crypto_load_aadbuf_cb(void *_arg, bus_dma_segment_t *segs, int nseg, argument 1364 nseg, 0, 0); 1368 qat_crypto_load_buf_cb(void *_arg, bus_dma_segment_t *segs, int nseg, argument 1400 nseg, noseg, skip); 1404 qat_crypto_load_obuf_cb(void *_arg, bus_dma_segment_t *segs, int nseg, argument 587 qat_alloc_dmamem(struct qat_softc *sc, struct qat_dmamem *qdm, int nseg, bus_size_t size, bus_size_t alignment) argument [all...] |
/freebsd-current/sys/dev/safexcel/ |
H A D | safexcel.c | 815 safexcel_dma_alloc_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, argument 823 KASSERT(nseg == 1, ("%s: nsegs is %d", __func__, nseg)); 2082 safexcel_append_segs(bus_dma_segment_t *segs, int nseg, struct sglist *sg, argument 2089 for (i = 0; i < nseg && len > 0; i++) { 2107 safexcel_create_chain_cb(void *arg, bus_dma_segment_t *segs, int nseg, argument 2148 safexcel_append_segs(segs, nseg, ring->cmd_data, 2151 safexcel_append_segs(segs, nseg, ring->cmd_data, 2154 safexcel_append_segs(segs, nseg, ring->res_data, 2159 safexcel_append_segs(segs, nseg, rin [all...] |
/freebsd-current/sys/dev/dc/ |
H A D | if_dc.c | 1807 dc_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1811 KASSERT(nseg == 1, 1812 ("%s: wrong number of segments (%d)", __func__, nseg)); 2648 int error, nseg; local 2665 m, segs, &nseg, 0); 2670 KASSERT(nseg == 1, ("%s: wrong number of segments (%d)", __func__, 2671 nseg)); 3381 int cur, defragged, error, first, frag, i, idx, nseg; local 3417 sc->dc_cdata.dc_tx_map[idx], *m_head, segs, &nseg, 0); 3427 sc->dc_cdata.dc_tx_map[idx], *m_head, segs, &nseg, [all...] |
/freebsd-current/sys/dev/iavf/ |
H A D | iavf_osdep.h | 211 int nseg; member in struct:iavf_dma_mem
|
/freebsd-current/sys/cam/ctl/ |
H A D | ctl_tpc.c | 120 int nseg; member in struct:tpc_list 1437 //printf("ZZZ %d cscd, %d segs\n", list->ncscd, list->nseg); 1438 while (list->curseg < list->nseg) { 1672 int len, off, lencscd, lenseg, leninl, nseg; local 1756 for (nseg = 0, off = 0; off < lenseg; nseg++) { 1757 if (nseg >= TPC_MAX_SEGS) { 1774 list->seg[nseg] = seg; 1780 list->nseg = nseg; 1826 int len, off, lencscd, lenseg, leninl, nseg; local [all...] |
/freebsd-current/contrib/ofed/libirdma/ |
H A D | osdep.h | 173 int nseg; member in struct:irdma_dma_mem
|
/freebsd-current/sys/dev/aac/ |
H A D | aac.c | 86 int nseg, int error); 88 int nseg, int error); 95 static void aac_common_map(void *arg, bus_dma_segment_t *segs, int nseg, 1443 aac_map_command_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1552 aac_map_command_sg(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 1569 sg->SgCount = nseg; 1570 for (i = 0; i < nseg; i++) { 1578 fib->Header.Size += nseg*sizeof(struct aac_sg_entryraw); 1582 sg->SgCount = nseg; 1583 for (i = 0; i < nseg; 1676 aac_common_map(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument [all...] |
/freebsd-current/sys/dev/ciss/ |
H A D | ciss.c | 130 int nseg, int error); 174 int nseg, int error); 1177 ciss_command_map_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 2754 ciss_request_map_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument 2767 for (i = 0; i < nseg; i++) { 2773 cc->header.sg_in_list = nseg; 2774 cc->header.sg_total = nseg; 2781 if (nseg == 0) 2783 else if (nseg == 1) 2785 else if (nseg [all...] |