Home
last modified time | relevance | path

Searched refs:ncookies (Results 1 – 25 of 91) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_dma.c76 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 Dvnet_rxdring.c118 uint32_t ncookies; in vgen_create_rx_dring() local
197 ncookies = 0; 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()
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
365 ncookies = msg->ncookies; in vgen_map_tx_dring()
374 ncookies > 1) { in vgen_map_tx_dring()
[all …]
H A Dvnet_txdring.c138 uint32_t ncookies; in vgen_create_tx_dring() local
219 ci = ncookies = 0; in vgen_create_tx_dring()
233 if ((ncookies == 0) || in vgen_create_tx_dring()
234 (ncookies > MAX_COOKIES)) { in vgen_create_tx_dring()
246 tbufp->ncookies = 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()
356 uint32_t ncookies; in vgen_map_rx_dring() local
362 ncookies = msg->ncookies; in vgen_map_rx_dring()
685 txdp->ncookies = tbufp->ncookies; in vgen_dringsend()
[all …]
H A Dvsw_txdring.c134 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()
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()
1220 __func__, ldcp->ldc_id, desc.ncookies, in vsw_process_dringdata()
[all …]
H A Dvsw_rxdring.c136 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 Dldc_shm.c650 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 &copy_size, memseg->cookies, memseg->ncookies, in i_ldc_mem_acquire_release()
H A Dvsw_ldc.c3523 uint64_t ncookies = 0; in vsw_process_data_ibnd_pkt() local
3548 ncookies = ibnd_desc->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()
4606 ASSERT(msg->ncookies == 1); in vsw_map_data()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvnet_common.h108 uint32_t ncookies; /* number of data cookies */ member
121 uint32_t ncookies; member
H A Dvio_mailbox.h193 uint32_t ncookies; /* # cookies exporting ring */ member
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/
H A Dxhci_dma.c209 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 Dlmrc_ddi.c1119 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 Dxge_osdep.h361 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 Dxgell.c316 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 Dnge_tx.c434 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 Dhxge_send.c122 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 De1000g_tx.c1348 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 Doce_tx.c512 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 Dqede_fp.c1090 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 Dqede_fp.h143 u32 ncookies; member
/illumos-gate/usr/src/uts/intel/io/dnet/
H A Ddnet.c1350 uint_t ncookies; in dnet_send() local
1363 &dma_cookie, &ncookies); in dnet_send()
1392 while (ncookies) { in dnet_send()
1416 if (--ncookies) in dnet_send()
2147 uint_t ncookies; in dnet_alloc_bufs() local
2564 uint_t ncookies; in dnet_rbuf_init() local
2590 if (ncookies > 2) in dnet_rbuf_init()
2592 if (ncookies == 1) { in dnet_rbuf_init()
2658 uint_t ncookies; in dnet_rbuf_alloc() local
2688 if (ncookies > 2) in dnet_rbuf_alloc()
[all …]
/illumos-gate/usr/src/uts/common/io/afe/
H A Dafe.c1556 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 Di40e_transceiver.c611 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()
2048 uint_t i = 0, ncookies = 0, dmaflags; in i40e_tx_bind_fragment() local
2066 DDI_DMA_DONTWAIT, NULL, &dma_cookie, &ncookies) != DDI_DMA_MAPPED) { in i40e_tx_bind_fragment()
2071 tcb->tcb_bind_ncookies = ncookies; in i40e_tx_bind_fragment()
2075 kmem_zalloc(ncookies * sizeof (struct i40e_dma_bind_info), in i40e_tx_bind_fragment()
2080 while (i < ncookies) { in i40e_tx_bind_fragment()
/illumos-gate/usr/src/uts/common/io/rwd/
H A Drt2661_var.h40 uint32_t ncookies; /* must be 1 */ member
/illumos-gate/usr/src/uts/common/io/pcn/
H A Dpcn.c1582 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 Ddmfe_main.c2253 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()

1234