/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_dma.c | 76 unsigned int ncookies; in sfxge_dma_buffer_create() local 122 sdbap->sdba_callback, NULL, &dmac, &ncookies); in sfxge_dma_buffer_create() 147 ASSERT3U(ncookies, >=, 1); in sfxge_dma_buffer_create() 148 ASSERT3U(ncookies, <=, sdbap->sdba_maxcookies); in sfxge_dma_buffer_create()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vnet_rxdring.c | 118 uint32_t ncookies; in vgen_create_rx_dring() local 197 ncookies = 0; in vgen_create_rx_dring() 200 ldcp->rx_data_cookie, &ncookies); in vgen_create_rx_dring() 204 if ((ncookies == 0) || (ncookies > VNET_DATA_AREA_COOKIES)) { in vgen_create_rx_dring() 207 ldcp->rx_data_ncookies = ncookies; in vgen_create_rx_dring() 209 for (j = 1; j < ncookies; j++) { in vgen_create_rx_dring() 250 &ldcp->rx_dring_cookie, &ncookies); in vgen_create_rx_dring() 256 ASSERT(ncookies == 1); in vgen_create_rx_dring() 257 ldcp->rx_dring_ncookies = ncookies; in vgen_create_rx_dring() 358 uint32_t ncookies; in vgen_map_tx_dring() local [all …]
|
H A D | vnet_txdring.c | 138 uint32_t ncookies; in vgen_create_tx_dring() local 219 ci = ncookies = 0; in vgen_create_tx_dring() 222 LDC_MEM_R, &(tbufp->memcookie[ci]), &ncookies); in vgen_create_tx_dring() 233 if ((ncookies == 0) || in vgen_create_tx_dring() 234 (ncookies > MAX_COOKIES)) { in vgen_create_tx_dring() 238 for (ci = 1; ci < ncookies; ci++) { in vgen_create_tx_dring() 246 tbufp->ncookies = ncookies; in vgen_create_tx_dring() 264 &ldcp->tx_dring_cookie, &ncookies); in vgen_create_tx_dring() 270 ASSERT(ncookies == 1); in vgen_create_tx_dring() 271 ldcp->tx_dring_ncookies = ncookies; in vgen_create_tx_dring() [all …]
|
H A D | vsw_txdring.c | 134 mp->ncookies = dp->dring_ncookies; in vsw_create_tx_dring_info() 231 uint32_t ncookies = 0; in vsw_setup_tx_dring() local 303 &(priv_addr->memcookie[0]), &ncookies); in vsw_setup_tx_dring() 315 if (ncookies >= (uint32_t)(VSW_MAX_COOKIES + 1)) { in vsw_setup_tx_dring() 318 name, ldcp->ldc_id, ncookies, VSW_RING_EL_DATA_SZ); in vsw_setup_tx_dring() 322 for (j = 1; j < ncookies; j++) { in vsw_setup_tx_dring() 337 priv_addr->ncookies = ncookies; in vsw_setup_tx_dring() 345 pub_addr->ncookies = priv_addr->ncookies; in vsw_setup_tx_dring() 347 for (nc = 0; nc < pub_addr->ncookies; nc++) { in vsw_setup_tx_dring() 1216 desc.memcookie, desc.ncookies, LDC_COPY_IN); in vsw_process_dringdata() [all …]
|
H A D | vsw_rxdring.c | 136 mp->ncookies = dp->dring_ncookies; in vsw_create_rx_dring_info() 145 ASSERT(mp->ncookies == 1); in vsw_create_rx_dring_info() 146 buf += (mp->ncookies * sizeof (ldc_mem_cookie_t)); in vsw_create_rx_dring_info() 258 uint32_t ncookies = 0; in vsw_setup_rx_dring() local 306 dp->data_cookie, &ncookies); in vsw_setup_rx_dring() 312 if ((ncookies == 0) || (ncookies > VNET_DATA_AREA_COOKIES)) { in vsw_setup_rx_dring() 315 dp->data_ncookies = ncookies; in vsw_setup_rx_dring() 317 for (j = 1; j < ncookies; j++) { in vsw_setup_rx_dring()
|
H A D | ldc_shm.c | 650 memseg->ncookies = cookie_idx + 1; in i_ldc_mem_bind_handle() 651 memseg->next_cookie = (memseg->ncookies > 1) ? 1 : 0; in i_ldc_mem_bind_handle() 654 *ccount = memseg->ncookies; in i_ldc_mem_bind_handle() 661 ldcp->id, mhdl, vaddr, npages, memseg->ncookies); in i_ldc_mem_bind_handle() 701 if (memseg->next_cookie == memseg->ncookies) in ldc_mem_nextcookie() 1489 memseg->ncookies = ccount; in i_ldc_mem_map() 1500 memseg->npages, memseg->ncookies); in i_ldc_mem_map() 1564 (sizeof (ldc_mem_cookie_t) * memseg->ncookies)); in ldc_mem_unmap() 1644 ©_size, memseg->cookies, memseg->ncookies, in i_ldc_mem_acquire_release()
|
H A D | vsw_ldc.c | 3523 uint64_t ncookies = 0; in vsw_process_data_ibnd_pkt() local 3548 ncookies = ibnd_desc->ncookies; in vsw_process_data_ibnd_pkt() 3574 0, &nbytes, ibnd_desc->memcookie, (uint64_t)ncookies, in vsw_process_data_ibnd_pkt() 3579 "%d cookie(s)", __func__, ldcp->ldc_id, ncookies); in vsw_process_data_ibnd_pkt() 3586 __func__, ldcp->ldc_id, nbytes, ncookies); in vsw_process_data_ibnd_pkt() 3664 priv_addr->bound, priv_addr->ncookies, in vsw_process_data_ibnd_pkt() 4193 for (i = 0; i < priv_desc->ncookies; i++) { in vsw_descrsend() 4199 ibnd_msg.ncookies = priv_desc->ncookies; in vsw_descrsend() 4514 (dring_pkt->ncookies != 1)) { in vsw_map_dring_cmn() 4525 dp->dring_ncookies = dring_pkt->ncookies; in vsw_map_dring_cmn() [all …]
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vnet_common.h | 108 uint32_t ncookies; /* number of data cookies */ member 121 uint32_t ncookies; member
|
H A D | vio_mailbox.h | 193 uint32_t ncookies; /* # cookies exporting ring */ member
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/ |
H A D | xhci_dma.c | 209 uint_t ncookies; in xhci_dma_alloc() local 241 &ncookies); in xhci_dma_alloc() 253 xdb->xdb_ncookies = ncookies; in xhci_dma_alloc() 255 for (i = 1; i < ncookies; i++) { in xhci_dma_alloc()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/lmrc/ |
H A D | lmrc_ddi.c | 1119 const ddi_dma_cookie_t *cookie, uint_t ncookies) in lmrc_dma_build_sgl() argument 1126 ASSERT(ncookies > 0); in lmrc_dma_build_sgl() 1132 nsge = min(ncookies, max_sge); in lmrc_dma_build_sgl() 1141 ncookies -= nsge; in lmrc_dma_build_sgl() 1143 if (ncookies == 0) in lmrc_dma_build_sgl() 1151 ncookies++; in lmrc_dma_build_sgl() 1161 sgl_ptr[i - 1].Length = sizeof (Mpi25SGEIOUnion_t) * ncookies; in lmrc_dma_build_sgl() 1166 nsge = ncookies; in lmrc_dma_build_sgl()
|
/illumos-gate/usr/src/uts/common/io/xge/drv/ |
H A D | xge_osdep.h | 361 uint_t ncookies; in xge_os_dma_map() local 382 DDI_DMA_SLEEP, 0, &dma_cookie, &ncookies); in xge_os_dma_map() 387 if (ncookies != 1 || dma_cookie.dmac_size < size) { in xge_os_dma_map()
|
H A D | xgell.c | 316 uint_t ncookies; in xgell_rx_buffer_alloc() local 350 DDI_DMA_SLEEP, 0, &dma_cookie, &ncookies) != DDI_SUCCESS) { in xgell_rx_buffer_alloc() 356 if (ncookies != 1 || dma_cookie.dmac_size < bf_pool->size) { in xgell_rx_buffer_alloc() 1035 uint_t ncookies; in xgell_ring_tx() local 1083 &dma_cookie, &ncookies); in xgell_ring_tx() 1109 if (ncookies + frag_cnt > hldev->config.fifo.max_frags) { in xgell_ring_tx() 1112 lldev->instance, ncookies, frag_cnt); in xgell_ring_tx() 1119 while (ncookies) { in xgell_ring_tx() 1123 if (--ncookies) { in xgell_ring_tx()
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_tx.c | 434 uint32_t ncookies; in nge_send_mapped() local 489 DDI_DMA_DONTWAIT, NULL, cookie + slot, &ncookies); in nge_send_mapped() 499 if (err != DDI_DMA_MAPPED || ncookies > NGE_MAX_COOKIES) { in nge_send_mapped() 502 err, cookie[slot].dmac_laddress, ncookies)); in nge_send_mapped() 509 for (end_index = slot + ncookies; in nge_send_mapped()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 122 uint32_t ncookies; in hxge_start() local 446 &dma_cookie, &ncookies); in hxge_start() 456 while (ncookies > 1) { in hxge_start() 475 ncookies, ngathers, in hxge_start() 499 ncookies--; in hxge_start()
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_tx.c | 1348 uint_t ncookies; in e1000g_tx_bind() local 1378 ncookies = 1; in e1000g_tx_bind() 1388 &ncookies)) != DDI_DMA_MAPPED) { in e1000g_tx_bind() 1403 ASSERT(ncookies); in e1000g_tx_bind() 1405 (ncookies > 1)); in e1000g_tx_bind() 1425 for (j = ncookies; j != 0; j--) { in e1000g_tx_bind()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_tx.c | 512 uint32_t ncookies; in oce_map_wqe() local 526 DDI_DMA_DONTWAIT, NULL, &cookie, &ncookies); in oce_map_wqe() 543 if (--ncookies > 0) in oce_map_wqe() 547 } while (ncookies > 0); in oce_map_wqe()
|
/illumos-gate/usr/src/uts/common/io/qede/ |
H A D | qede_fp.c | 1090 u32 ncookies, total_cookies = 0, max_cookies = 0, index = 0; in qede_tx_mapped() local 1138 &ncookies, &dma_handle); in qede_tx_mapped() 1162 DDI_DMA_DONTWAIT, NULL, &cookie[index], &ncookies) in qede_tx_mapped() 1198 total_cookies += ncookies; in qede_tx_mapped() 1212 index += ncookies; in qede_tx_mapped() 1218 ncookies--; in qede_tx_mapped() 1220 for (i = 0; i < ncookies; i++, index++) in qede_tx_mapped()
|
H A D | qede_fp.h | 143 u32 ncookies; member
|
/illumos-gate/usr/src/uts/intel/io/dnet/ |
H A D | dnet.c | 1350 uint_t ncookies; in dnet_send() local 1363 &dma_cookie, &ncookies); in dnet_send() 1385 if (((ncookies + 1) >> 1) > dnetp->free_desc) { in dnet_send() 1392 while (ncookies) { in dnet_send() 1416 if (--ncookies) in dnet_send() 2147 uint_t ncookies; in dnet_alloc_bufs() local 2202 NULL, &cookie, &ncookies) != DDI_DMA_MAPPED) in dnet_alloc_bufs() 2222 NULL, &cookie, &ncookies) != DDI_DMA_MAPPED) in dnet_alloc_bufs() 2248 NULL, &cookie, &ncookies) != DDI_DMA_MAPPED) in dnet_alloc_bufs() 2564 uint_t ncookies; in dnet_rbuf_init() local [all …]
|
/illumos-gate/usr/src/uts/common/io/afe/ |
H A D | afe.c | 1556 unsigned ncookies; in afe_alloctxbuf() local 1574 &dmac, &ncookies) != DDI_DMA_MAPPED) { in afe_alloctxbuf() 1653 unsigned ncookies; in afe_allocrxring() local 1677 &dmac, &ncookies); in afe_allocrxring() 1685 ASSERT(ncookies == 1); in afe_allocrxring() 1717 unsigned ncookies; in afe_alloctxring() local 1741 &dmac, &ncookies); in afe_alloctxring() 1749 ASSERT(ncookies == 1); in afe_alloctxring()
|
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_transceiver.c | 611 uint_t ncookies; in i40e_alloc_dma_buffer() local 656 NULL, &cookie, &ncookies); in i40e_alloc_dma_buffer() 664 VERIFY(ncookies == 1); in i40e_alloc_dma_buffer() 2051 uint_t i = 0, ncookies = 0, dmaflags; in i40e_tx_bind_fragment() local 2069 DDI_DMA_DONTWAIT, NULL, &dma_cookie, &ncookies) != DDI_DMA_MAPPED) { in i40e_tx_bind_fragment() 2074 tcb->tcb_bind_ncookies = ncookies; in i40e_tx_bind_fragment() 2078 kmem_zalloc(ncookies * sizeof (struct i40e_dma_bind_info), in i40e_tx_bind_fragment() 2083 while (i < ncookies) { in i40e_tx_bind_fragment()
|
/illumos-gate/usr/src/uts/common/io/pcn/ |
H A D | pcn.c | 1582 unsigned ncookies; in pcn_alloctxring() local 1606 &ncookies); in pcn_alloctxring() 1613 ASSERT(ncookies == 1); in pcn_alloctxring() 1639 unsigned ncookies; in pcn_allocrxring() local 1663 &ncookies); in pcn_allocrxring() 1670 ASSERT(ncookies == 1); in pcn_allocrxring()
|
/illumos-gate/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_main.c | 2253 uint_t ncookies; in dmfe_alloc_dma_mem() local 2283 DDI_DMA_SLEEP, NULL, &dma_cookie, &ncookies); in dmfe_alloc_dma_mem() 2288 if ((dma_p->ncookies = ncookies) != 1) { in dmfe_alloc_dma_mem() 2289 dmfe_error(dmfep, "Too many DMA cookeis: %d", ncookies); in dmfe_alloc_dma_mem() 2374 if (dma_p->ncookies) { in dmfe_free_dma_mem() 2376 dma_p->ncookies = 0; in dmfe_free_dma_mem()
|
/illumos-gate/usr/src/uts/common/io/rwd/ |
H A D | rt2661_var.h | 40 uint32_t ncookies; /* must be 1 */ member
|