Home
last modified time | relevance | path

Searched refs:dma_handle (Results 1 – 25 of 112) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_buf.c336 &tx_ring->tbd_area.dma_handle); in ixgbe_alloc_tbd_ring()
457 &rx_data->rbd_area.dma_handle); in ixgbe_alloc_rbd_ring()
567 NULL, &buf->dma_handle); in ixgbe_alloc_dma_buffer()
570 buf->dma_handle = NULL; in ixgbe_alloc_dma_buffer()
584 if (buf->dma_handle != NULL) { in ixgbe_alloc_dma_buffer()
586 buf->dma_handle = NULL; in ixgbe_alloc_dma_buffer()
605 if (buf->dma_handle != NULL) { in ixgbe_alloc_dma_buffer()
607 buf->dma_handle = NULL; in ixgbe_alloc_dma_buffer()
629 if (buf->dma_handle != NULL) { in ixgbe_free_dma_buffer()
642 if (buf->dma_handle != NULL) { in ixgbe_free_dma_buffer()
[all …]
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_buf.c231 &tx_ring->tbd_area.dma_handle); in igb_alloc_tbd_ring()
461 &rx_data->rbd_area.dma_handle); in igb_alloc_rbd_ring()
573 NULL, &buf->dma_handle); in igb_alloc_dma_buffer()
576 buf->dma_handle = NULL; in igb_alloc_dma_buffer()
590 if (buf->dma_handle != NULL) { in igb_alloc_dma_buffer()
592 buf->dma_handle = NULL; in igb_alloc_dma_buffer()
611 if (buf->dma_handle != NULL) { in igb_alloc_dma_buffer()
613 buf->dma_handle = NULL; in igb_alloc_dma_buffer()
635 if (buf->dma_handle != NULL) { in igb_free_dma_buffer()
648 if (buf->dma_handle != NULL) { in igb_free_dma_buffer()
[all …]
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_alloc.c793 &buf->dma_handle); in e1000g_alloc_dvma_buffer()
796 buf->dma_handle = NULL; in e1000g_alloc_dvma_buffer()
807 buf->dma_handle = NULL; in e1000g_alloc_dvma_buffer()
842 buf->dma_handle = NULL; in e1000g_free_dvma_buffer()
868 &buf->dma_handle); in e1000g_alloc_dma_buffer()
871 buf->dma_handle = NULL; in e1000g_alloc_dma_buffer()
888 buf->dma_handle = NULL; in e1000g_alloc_dma_buffer()
909 buf->dma_handle = NULL; in e1000g_alloc_dma_buffer()
966 &buf->dma_handle); in e1000g_alloc_dma_buffer_82546()
969 buf->dma_handle = NULL; in e1000g_alloc_dma_buffer_82546()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Diommulib.h66 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle);
69 dev_info_t *rdip, ddi_dma_handle_t dma_handle,
77 dev_info_t *rdip, ddi_dma_handle_t dma_handle, off_t off,
81 dev_info_t *rdip, ddi_dma_handle_t dma_handle, uint_t win,
86 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle,
224 ddi_dma_handle_t dma_handle);
227 ddi_dma_handle_t dma_handle, struct ddi_dma_req *dmareq,
231 ddi_dma_handle_t dma_handle);
234 ddi_dma_handle_t dma_handle, off_t off, size_t len,
242 ddi_dma_handle_t dma_handle, struct ddi_dma_req *dmareq,
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_buf.c85 DDI_DMA_DONTWAIT, NULL, &dbuf->dma_handle); in oce_alloc_dma_buffer()
92 ret = ddi_dma_mem_alloc(dbuf->dma_handle, size, &oce_dma_buf_accattr, in oce_alloc_dma_buffer()
102 ret = ddi_dma_addr_bind_handle(dbuf->dma_handle, in oce_alloc_dma_buffer()
122 ddi_dma_free_handle(&dbuf->dma_handle); in oce_alloc_dma_buffer()
144 if (dbuf->dma_handle != NULL) { in oce_free_dma_buffer()
145 (void) ddi_dma_unbind_handle(dbuf->dma_handle); in oce_free_dma_buffer()
150 if (dbuf->dma_handle != NULL) { in oce_free_dma_buffer()
151 ddi_dma_free_handle(&dbuf->dma_handle); in oce_free_dma_buffer()
H A Doce_tx.c98 if (wqmd->dma_handle != NULL) in oce_wqm_dtor()
99 (void) ddi_dma_free_handle(&(wqmd->dma_handle)); in oce_wqm_dtor()
100 wqmd->dma_handle = NULL; in oce_wqm_dtor()
120 DDI_DMA_DONTWAIT, NULL, &wqmd->dma_handle); in oce_wqm_ctor()
354 (void) ddi_dma_unbind_handle(wqmd->dma_handle); in oce_wqmd_free()
523 ret = ddi_dma_addr_bind_handle(wqmd->dma_handle, in oce_map_wqe()
544 ddi_dma_nextcookie(wqmd->dma_handle, in oce_map_wqe()
567 (void) ddi_dma_sync(cq->ring->dbuf->dma_handle, 0, 0, in oce_process_tx_compl()
864 (void) ddi_dma_sync(wq->ring->dbuf->dma_handle, 0, 0, in oce_send_packet()
H A Doce_mbx.c1245 ddi_dma_handle_t dma_handle; in oce_issue_mbox() local
1305 &dma_handle); in oce_issue_mbox()
1314 ret = ddi_dma_mem_alloc(dma_handle, alloc_len, in oce_issue_mbox()
1333 dma_handle, in oce_issue_mbox()
1391 (void) ddi_dma_sync(dma_handle, 0, 0, in oce_issue_mbox()
1394 if (oce_fm_check_dma_handle(dev, dma_handle) != in oce_issue_mbox()
1424 (void) ddi_dma_sync(dma_handle, 0, 0, in oce_issue_mbox()
1437 (void) ddi_dma_unbind_handle(dma_handle); in oce_issue_mbox()
1439 ddi_dma_free_handle(&dma_handle); in oce_issue_mbox()
1447 (void) ddi_dma_unbind_handle(dma_handle); in oce_issue_mbox()
[all …]
H A Doce_fm.c120 oce_fm_check_dma_handle(struct oce_dev *dev, ddi_dma_handle_t dma_handle) in oce_fm_check_dma_handle() argument
128 (void) ddi_fm_dma_err_get(dma_handle, &fme, DDI_FME_VERSION); in oce_fm_check_dma_handle()
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_osal.c47 ddi_dma_handle_t *dma_handle) in qede_osal_find_dma_handle_for_block() argument
59 *dma_handle = entry->dma_handle; in qede_osal_find_dma_handle_for_block()
75 ddi_dma_handle_t *dma_handle = NULL; in qede_osal_dma_sync() local
85 dma_handle = &entry->dma_handle; in qede_osal_dma_sync()
89 if (dma_handle == NULL) { in qede_osal_dma_sync()
95 (void) ddi_dma_sync(*dma_handle, in qede_osal_dma_sync()
198 ddi_dma_handle_t *dma_handle; in qede_osal_dma_alloc_coherent() local
214 dma_handle = &new_entry->dma_handle; in qede_osal_dma_alloc_coherent()
220 NULL, dma_handle)) != DDI_SUCCESS) { in qede_osal_dma_alloc_coherent()
268 ddi_dma_free_handle(dma_handle); in qede_osal_dma_alloc_coherent()
[all …]
H A Dqede_fp.c448 ddi_dma_sync(dma_info->dma_handle, in qede_lro_end()
548 ddi_dma_sync(dma_info->dma_handle, in qede_reg_jumbo_cqe()
598 ddi_dma_handle_t dma_handle; in qede_reg_cqe() local
632 dma_handle = dma_info->dma_handle; in qede_reg_cqe()
633 ddi_dma_sync(dma_handle, in qede_reg_cqe()
656 ddi_dma_sync(dma_handle, in qede_reg_cqe()
961 (void) ddi_dma_sync(*dma_handle, in qede_desc_dma_mem_sync()
966 (void) ddi_dma_sync(*dma_handle, 0, in qede_desc_dma_mem_sync()
1091 ddi_dma_handle_t dma_handle; in qede_tx_mapped() local
1138 &ncookies, &dma_handle); in qede_tx_mapped()
[all …]
H A Dqede_main.c1235 *dma_handle = NULL; in qede_dma_mem_alloc()
1247 *dma_handle = NULL; in qede_dma_mem_alloc()
1261 *dma_handle = NULL; in qede_dma_mem_alloc()
1272 *dma_handle = NULL; in qede_dma_mem_alloc()
1290 *dma_handle = NULL; in qede_dma_mem_alloc()
1317 *dma_handle = NULL; in qede_pci_free_consistent()
2328 &dma_info->dma_handle, in qede_alloc_rx_buffers()
2339 dma_handle = dma_info->dma_handle; in qede_alloc_rx_buffers()
2346 dma_info->dma_handle = dma_handle; in qede_alloc_rx_buffers()
2580 &dma_info.dma_handle, in qede_alloc_tx_bcopy_buffers()
[all …]
/illumos-gate/usr/src/uts/common/io/bnx/
H A Dbnxhwi.c64 dmahdl = &(umdevice->os_param.dma_handle[i]); in bnx_find_dma_hdl()
76 ddi_dma_handle_t *dma_handle; in bnx_free_lmmem() local
82 dma_handle = &(umdevice->os_param.dma_handle[i]); in bnx_free_lmmem()
87 (void) ddi_dma_unbind_handle(*dma_handle); in bnx_free_lmmem()
91 ddi_dma_free_handle(dma_handle); in bnx_free_lmmem()
93 dma_handle--; in bnx_free_lmmem()
H A Dbnx_mm.c337 ddi_dma_handle_t *dma_handle; in mm_alloc_phys_mem() local
364 dma_handle = &udevp->os_param.dma_handle[rc]; in mm_alloc_phys_mem()
368 DDI_DMA_DONTWAIT, (void *)0, dma_handle); in mm_alloc_phys_mem()
375 rc = ddi_dma_mem_alloc(*dma_handle, (size_t)mem_size + in mm_alloc_phys_mem()
384 rc = ddi_dma_addr_bind_handle(*dma_handle, (struct as *)0, pbuf, in mm_alloc_phys_mem()
407 (void) ddi_dma_sync(*dma_handle, 0, real_len, DDI_DMA_SYNC_FORDEV); in mm_alloc_phys_mem()
415 ddi_dma_free_handle(dma_handle); in mm_alloc_phys_mem()
H A Dbnxrcv.c69 (void *)0, &(umpacket->dma_handle)); in bnx_rxbuffer_alloc()
82 rc = ddi_dma_mem_alloc(umpacket->dma_handle, pktsize, in bnx_rxbuffer_alloc()
91 rc = ddi_dma_addr_bind_handle(umpacket->dma_handle, NULL, in bnx_rxbuffer_alloc()
107 ddi_dma_free_handle(&(umpacket->dma_handle)); in bnx_rxbuffer_alloc()
122 (void) ddi_dma_unbind_handle(umpacket->dma_handle); in bnx_rxbuffer_free()
127 ddi_dma_free_handle(&(umpacket->dma_handle)); in bnx_rxbuffer_free()
277 (void) ddi_dma_sync(umpacket->dma_handle, 0, in bnx_recv_ring_recv()
H A Dbnx.h177 ddi_dma_handle_t dma_handle[BNX_MAX_PHYS_MEMREQS]; member
353 ddi_dma_handle_t dma_handle[BNX_MAX_SGL_ENTRIES]; member
366 ddi_dma_handle_t dma_handle; member
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_diag.c350 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_diag_biu_run()
354 EMLXS_MPDATA_SYNC(mp1->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_diag_biu_run()
370 EMLXS_MPDATA_SYNC(mp1->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_diag_biu_run()
397 if (emlxs_fm_check_dma_handle(hba, mp->dma_handle) in emlxs_diag_biu_run()
402 mp->dma_handle); in emlxs_diag_biu_run()
410 if (emlxs_fm_check_dma_handle(hba, mp1->dma_handle) in emlxs_diag_biu_run()
415 mp1->dma_handle); in emlxs_diag_biu_run()
H A Demlxs_mem.c500 mp->dma_handle = buf_info->dma_handle; in emlxs_mem_pool_alloc()
657 buf_info->dma_handle = mp->dma_handle; in emlxs_mem_pool_free()
1102 mp->dma_handle = buf_info->dma_handle; in emlxs_mem_buf_alloc()
1128 buf_info->dma_handle = mp->dma_handle; in emlxs_mem_buf_free()
1297 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr()
1332 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr()
1367 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr()
1402 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr()
1585 hbq->HBQ_host_buf.dma_handle = buf_info->dma_handle; in emlxs_hbq_alloc()
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu_impl.c51 dev_info_t *rdip, ddi_dma_handle_t dma_handle,
57 dev_info_t *rdip, ddi_dma_handle_t dma_handle, off_t off,
60 dev_info_t *rdip, ddi_dma_handle_t dma_handle, uint_t win,
64 dev_info_t *rdip, ddi_dma_handle_t dma_handle,
1488 return (iommulib_iommu_dma_freehdl(dip, rdip, dma_handle)); in amd_iommu_freehdl()
1615 dev_info_t *rdip, ddi_dma_handle_t dma_handle, in amd_iommu_bindhdl() argument
1665 hp = (ddi_dma_impl_t *)dma_handle; in amd_iommu_bindhdl()
1731 if (iommulib_iommu_dma_unbindhdl(dip, rdip, dma_handle) in amd_iommu_unbindhdl()
1839 if (iommulib_iommu_dma_win(dip, rdip, dma_handle, win, in amd_iommu_win()
1865 hp = (ddi_dma_impl_t *)dma_handle; in amd_iommu_win()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_ring_buff.c98 &(buff_info_p->dma_handle))) != DDI_SUCCESS) { in ring_buff_create()
104 buff_info_p->dma_handle, in ring_buff_create()
132 buff_info_p->dma_handle, in ring_buff_create()
171 (void) ddi_dma_unbind_handle(buff_info_p->dma_handle); in ring_buff_free()
173 ddi_dma_free_handle(&buff_info_p->dma_handle); in ring_buff_free()
/illumos-gate/usr/src/uts/intel/io/
H A Diommulib.c657 ddi_dma_handle_t dma_handle) in iommulib_nexdma_freehdl() argument
667 rdip, dma_handle); in iommulib_nexdma_freehdl()
674 ddi_dma_handle_t dma_handle, struct ddi_dma_req *dmareq, in iommulib_nexdma_bindhdl() argument
689 ddi_dma_handle_t dma_handle) in iommulib_nexdma_unbindhdl() argument
698 dma_handle)); in iommulib_nexdma_unbindhdl()
703 ddi_dma_handle_t dma_handle, off_t off, size_t len, in iommulib_nexdma_sync() argument
727 return (unitp->ilu_ops->ilops_dma_win(handle, dip, rdip, dma_handle, in iommulib_nexdma_win()
733 ddi_dma_handle_t dma_handle, struct ddi_dma_req *dmareq, in iommulib_nexdma_mapobject() argument
740 dma_handle, dmareq, dmao)); in iommulib_nexdma_mapobject()
745 ddi_dma_handle_t dma_handle, ddi_dma_obj_t *dmao) in iommulib_nexdma_unmapobject() argument
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c3196 if (*dma_handle != NULL) { in ql_free_phys()
3200 ddi_dma_free_handle(dma_handle); in ql_free_phys()
3202 *dma_handle = NULL; in ql_free_phys()
3524 if (rx_ring->cq_dma.dma_handle) { in ql_free_rx_resources()
3654 if (qlge->ricb_dma.dma_handle) { in ql_free_mem_resources()
3778 *dma_handle = NULL; in ql_alloc_phys_rbuf()
3791 *dma_handle = NULL; in ql_alloc_phys_rbuf()
3804 *dma_handle = NULL; in ql_alloc_phys_rbuf()
3859 *dma_handle = NULL; in ql_alloc_phys()
3872 *dma_handle = NULL; in ql_alloc_phys()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_send.c117 hxge_os_dma_handle_t dma_handle; in hxge_start() local
321 dma_handle = tx_msg_p->buf_dma_handle; in hxge_start()
324 (void) ddi_dma_sync(dma_handle, in hxge_start()
416 dma_handle = tx_msg_p->buf_dma_handle; in hxge_start()
419 (void) ddi_dma_sync(dma_handle, in hxge_start()
442 dma_handle = tx_msg_p->dma_handle; in hxge_start()
443 dma_status = ddi_dma_addr_bind_handle(dma_handle, NULL, in hxge_start()
479 ddi_dma_nextcookie(dma_handle, in hxge_start()
798 tx_msg_p->dma_handle)) { in hxge_start()
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_buf.h66 ddi_dma_handle_t dma_handle; member
76 #define DBUF_DHDL(obj) (((oce_dma_buf_t *)(obj))->dma_handle)
107 ddi_dma_handle_t dma_handle; member
/illumos-gate/usr/src/uts/common/io/xge/drv/
H A Dxgell.c313 ddi_dma_handle_t dma_handle; in xgell_rx_buffer_alloc() local
325 0, &dma_handle) != DDI_SUCCESS) { in xgell_rx_buffer_alloc()
369 rx_buffer->dma_handle = dma_handle; in xgell_rx_buffer_alloc()
383 ddi_dma_free_handle(&dma_handle); in xgell_rx_buffer_alloc()
401 ddi_dma_handle_t dma_handle; in xgell_rx_destroy_buffer_pool() local
444 dma_handle = rx_buffer->dma_handle; in xgell_rx_destroy_buffer_pool()
453 ddi_dma_free_handle(&dma_handle); in xgell_rx_destroy_buffer_pool()
1037 ddi_dma_handle_t dma_handle; in xgell_ring_tx() local
1094 ddi_dma_free_handle(&dma_handle); in xgell_ring_tx()
1105 ddi_dma_free_handle(&dma_handle); in xgell_ring_tx()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dimmu_dvma.c96 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle);
101 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle);
106 dev_info_t *rdip, ddi_dma_handle_t dma_handle, uint_t win,
109 dev_info_t *rdip, ddi_dma_handle_t dma_handle,
3107 return (iommulib_iommu_dma_freehdl(dip, rdip, dma_handle)); in immu_freehdl()
3114 dev_info_t *rdip, ddi_dma_handle_t dma_handle, in immu_bindhdl() argument
3121 ret = iommulib_iommu_dma_bindhdl(dip, rdip, dma_handle, in immu_bindhdl()
3137 return (iommulib_iommu_dma_unbindhdl(dip, rdip, dma_handle)); in immu_unbindhdl()
3143 dev_info_t *rdip, ddi_dma_handle_t dma_handle, off_t off, in immu_sync() argument
3153 dev_info_t *rdip, ddi_dma_handle_t dma_handle, uint_t win, in immu_win() argument
[all …]

12345