/titanic_50/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()
|
/titanic_50/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
|
/titanic_50/usr/src/uts/common/io/virtio/ |
H A D | virtio.c | 309 unsigned int ncookies; in virtio_alloc_indirect() local 344 &entry->qe_indirect_dma_cookie, &ncookies); in virtio_alloc_indirect() 354 ASSERT(ncookies == 1); in virtio_alloc_indirect() 424 unsigned int ncookies; in virtio_alloc_vq() local 474 DDI_DMA_SLEEP, NULL, &vq->vq_dma_cookie, &ncookies); in virtio_alloc_vq() 482 ASSERT(ncookies == 1); in virtio_alloc_vq() 666 ddi_dma_cookie_t dma_cookie, unsigned int ncookies, boolean_t write) in virtio_ve_add_cookie() argument 670 for (i = 0; i < ncookies; i++) { in virtio_ve_add_cookie()
|
H A D | virtiovar.h | 194 ddi_dma_cookie_t dma_cookie, unsigned int ncookies, boolean_t write);
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/xen/io/ |
H A D | xnf.c | 1580 uint_t ncookies; in xnf_send() local 1586 &ncookies); in xnf_send() 1601 ASSERT(ncookies == 1); in xnf_send() 2160 uint_t ncookies; in xnf_alloc_dma_resources() local 2185 DDI_DMA_SLEEP, 0, &dma_cookie, &ncookies)) != DDI_DMA_MAPPED) { in xnf_alloc_dma_resources() 2196 ASSERT(ncookies == 1); in xnf_alloc_dma_resources() 2222 DDI_DMA_SLEEP, 0, &dma_cookie, &ncookies)) != DDI_DMA_MAPPED) { in xnf_alloc_dma_resources() 2233 ASSERT(ncookies == 1); in xnf_alloc_dma_resources() 2322 uint_t ncookies; in xnf_buf_constructor() local 2342 ddiflags, 0, &dma_cookie, &ncookies) != DDI_DMA_MAPPED) in xnf_buf_constructor() [all …]
|
/titanic_50/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 122 uint32_t ncookies; in hxge_start() local 454 &dma_cookie, &ncookies); in hxge_start() 468 while (ncookies > 1) { in hxge_start() 487 ncookies, ngathers, in hxge_start() 515 ncookies--; in hxge_start()
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/intel/io/dnet/ |
H A D | dnet.c | 1349 uint_t ncookies; in dnet_send() local 1362 &dma_cookie, &ncookies); in dnet_send() 1384 if (((ncookies + 1) >> 1) > dnetp->free_desc) { in dnet_send() 1391 while (ncookies) { in dnet_send() 1415 if (--ncookies) in dnet_send() 2146 uint_t ncookies; in dnet_alloc_bufs() local 2201 NULL, &cookie, &ncookies) != DDI_DMA_MAPPED) in dnet_alloc_bufs() 2221 NULL, &cookie, &ncookies) != DDI_DMA_MAPPED) in dnet_alloc_bufs() 2247 NULL, &cookie, &ncookies) != DDI_DMA_MAPPED) in dnet_alloc_bufs() 2563 uint_t ncookies; in dnet_rbuf_init() local [all …]
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/io/rwd/ |
H A D | rt2661_var.h | 40 uint32_t ncookies; /* must be 1 */ member
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/io/i40e/ |
H A D | i40e_transceiver.c | 610 uint_t ncookies; in i40e_alloc_dma_buffer() local 655 NULL, &cookie, &ncookies); in i40e_alloc_dma_buffer() 663 VERIFY(ncookies == 1); in i40e_alloc_dma_buffer() 2236 uint_t i = 0, ncookies = 0, dmaflags; in i40e_tx_bind_fragment() local 2254 DDI_DMA_DONTWAIT, NULL, &dma_cookie, &ncookies) != DDI_DMA_MAPPED) { in i40e_tx_bind_fragment() 2259 tcb->tcb_bind_ncookies = ncookies; in i40e_tx_bind_fragment() 2263 kmem_zalloc(ncookies * sizeof (struct i40e_dma_bind_info), in i40e_tx_bind_fragment() 2268 while (i < ncookies) { in i40e_tx_bind_fragment()
|
/titanic_50/usr/src/uts/common/io/iwk/ |
H A D | iwk2_var.h | 54 uint32_t ncookies; member
|
/titanic_50/usr/src/uts/common/io/wpi/ |
H A D | wpivar.h | 82 uint32_t ncookies; member
|
/titanic_50/usr/src/uts/common/io/rwn/ |
H A D | rt2860_var.h | 67 uint32_t ncookies; /* must be 1 */ member
|