/titanic_50/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_buf.c | 336 &tx_ring->tbd_area.dma_handle); in ixgbe_alloc_tbd_ring() 341 tx_ring->tbd_area.dma_handle = NULL; in ixgbe_alloc_tbd_ring() 350 ret = ddi_dma_mem_alloc(tx_ring->tbd_area.dma_handle, in ixgbe_alloc_tbd_ring() 361 if (tx_ring->tbd_area.dma_handle != NULL) { in ixgbe_alloc_tbd_ring() 362 ddi_dma_free_handle(&tx_ring->tbd_area.dma_handle); in ixgbe_alloc_tbd_ring() 363 tx_ring->tbd_area.dma_handle = NULL; in ixgbe_alloc_tbd_ring() 378 ret = ddi_dma_addr_bind_handle(tx_ring->tbd_area.dma_handle, in ixgbe_alloc_tbd_ring() 392 if (tx_ring->tbd_area.dma_handle != NULL) { in ixgbe_alloc_tbd_ring() 393 ddi_dma_free_handle(&tx_ring->tbd_area.dma_handle); in ixgbe_alloc_tbd_ring() 394 tx_ring->tbd_area.dma_handle = NULL; in ixgbe_alloc_tbd_ring() [all …]
|
/titanic_50/usr/src/uts/common/io/igb/ |
H A D | igb_buf.c | 231 &tx_ring->tbd_area.dma_handle); in igb_alloc_tbd_ring() 236 tx_ring->tbd_area.dma_handle = NULL; in igb_alloc_tbd_ring() 245 ret = ddi_dma_mem_alloc(tx_ring->tbd_area.dma_handle, in igb_alloc_tbd_ring() 256 if (tx_ring->tbd_area.dma_handle != NULL) { in igb_alloc_tbd_ring() 257 ddi_dma_free_handle(&tx_ring->tbd_area.dma_handle); in igb_alloc_tbd_ring() 258 tx_ring->tbd_area.dma_handle = NULL; in igb_alloc_tbd_ring() 273 ret = ddi_dma_addr_bind_handle(tx_ring->tbd_area.dma_handle, in igb_alloc_tbd_ring() 287 if (tx_ring->tbd_area.dma_handle != NULL) { in igb_alloc_tbd_ring() 288 ddi_dma_free_handle(&tx_ring->tbd_area.dma_handle); in igb_alloc_tbd_ring() 289 tx_ring->tbd_area.dma_handle = NULL; in igb_alloc_tbd_ring() [all …]
|
H A D | igb_rx.c | 149 current_rcb->rx_buf.dma_handle) != DDI_FM_OK) { in igb_rx_copy() 224 current_rcb->rx_buf.dma_handle) != DDI_FM_OK) { in igb_rx_bind() 346 rx_data->rbd_area.dma_handle) != DDI_FM_OK) { in igb_rx()
|
/titanic_50/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_alloc.c | 793 &buf->dma_handle); in e1000g_alloc_dvma_buffer() 796 buf->dma_handle = NULL; in e1000g_alloc_dvma_buffer() 805 if (buf->dma_handle != NULL) { in e1000g_alloc_dvma_buffer() 806 dvma_release(buf->dma_handle); in e1000g_alloc_dvma_buffer() 807 buf->dma_handle = NULL; in e1000g_alloc_dvma_buffer() 814 dvma_kaddr_load(buf->dma_handle, in e1000g_alloc_dvma_buffer() 827 if (buf->dma_handle != NULL) { in e1000g_free_dvma_buffer() 828 dvma_unload(buf->dma_handle, 0, -1); in e1000g_free_dvma_buffer() 840 if (buf->dma_handle != NULL) { in e1000g_free_dvma_buffer() 841 dvma_release(buf->dma_handle); in e1000g_free_dvma_buffer() [all …]
|
/titanic_50/usr/src/uts/intel/sys/ |
H A D | iommulib.h | 66 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, 74 dev_info_t *dip, 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, 90 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); [all …]
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_buf.c | 85 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 D | oce_tx.c | 98 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 D | oce_mbx.c | 1242 ddi_dma_handle_t dma_handle; in oce_issue_mbox() local 1302 &dma_handle); in oce_issue_mbox() 1311 ret = ddi_dma_mem_alloc(dma_handle, alloc_len, in oce_issue_mbox() 1330 dma_handle, in oce_issue_mbox() 1356 (void) ddi_dma_nextcookie(dma_handle, &cookie); in oce_issue_mbox() 1388 (void) ddi_dma_sync(dma_handle, 0, 0, in oce_issue_mbox() 1391 if (oce_fm_check_dma_handle(dev, dma_handle) != in oce_issue_mbox() 1421 (void) ddi_dma_sync(dma_handle, 0, 0, in oce_issue_mbox() 1423 if (oce_fm_check_dma_handle(dev, dma_handle) != DDI_FM_OK) { in oce_issue_mbox() 1434 (void) ddi_dma_unbind_handle(dma_handle); in oce_issue_mbox() [all …]
|
H A D | oce_fm.c | 120 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()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_diag.c | 350 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 D | emlxs_mem.c | 462 mp->dma_handle = buf_info->dma_handle; in emlxs_mem_pool_alloc() 619 buf_info->dma_handle = mp->dma_handle; in emlxs_mem_pool_free() 1064 mp->dma_handle = buf_info->dma_handle; in emlxs_mem_buf_alloc() 1090 buf_info->dma_handle = mp->dma_handle; in emlxs_mem_buf_free() 1259 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr() 1294 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr() 1329 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr() 1364 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, mp->size, in emlxs_mem_get_vaddr() 1547 hbq->HBQ_host_buf.dma_handle = buf_info->dma_handle; in emlxs_hbq_alloc()
|
H A D | emlxs_sli3.c | 973 EMLXS_MPDATA_SYNC(mp->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_sli3_online() 977 EMLXS_MPDATA_SYNC(mp1->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_sli3_online() 994 EMLXS_MPDATA_SYNC(mp1->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_sli3_online() 998 if (mp->dma_handle) { in emlxs_sli3_online() 999 if (emlxs_fm_check_dma_handle(hba, mp->dma_handle) in emlxs_sli3_online() 1004 mp->dma_handle); in emlxs_sli3_online() 1010 if (mp1->dma_handle) { in emlxs_sli3_online() 1011 if (emlxs_fm_check_dma_handle(hba, mp1->dma_handle) in emlxs_sli3_online() 1016 mp1->dma_handle); in emlxs_sli3_online() 1811 hba->sli.sli3.slim2.dma_handle = buf_info->dma_handle; in emlxs_sli3_map_hdw() [all …]
|
H A D | emlxs_sli4.c | 592 EMLXS_MPDATA_SYNC(hba->sli.sli4.dump_region.dma_handle, in emlxs_sli4_online() 596 if (hba->sli.sli4.dump_region.dma_handle) { in emlxs_sli4_online() 598 hba->sli.sli4.dump_region.dma_handle) in emlxs_sli4_online() 604 dma_handle); in emlxs_sli4_online() 1638 hba->sli.sli4.bootstrapmb.dma_handle = buf_info->dma_handle; in emlxs_sli4_map_hdw() 1686 buf_info->dma_handle = in emlxs_sli4_unmap_hdw() 1687 hba->sli.sli4.bootstrapmb.dma_handle; in emlxs_sli4_unmap_hdw() 2152 EMLXS_MPDATA_SYNC(hba->sli.sli4.bootstrapmb.dma_handle, 0, in emlxs_init_bootstrap_mb() 2161 if (emlxs_fm_check_dma_handle(hba, hba->sli.sli4.bootstrapmb.dma_handle) in emlxs_init_bootstrap_mb() 2166 hba->sli.sli4.bootstrapmb.dma_handle); in emlxs_init_bootstrap_mb() [all …]
|
/titanic_50/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_impl.c | 48 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle); 50 dev_info_t *rdip, ddi_dma_handle_t dma_handle, 54 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle); 56 dev_info_t *rdip, ddi_dma_handle_t dma_handle, off_t off, 59 dev_info_t *rdip, ddi_dma_handle_t dma_handle, uint_t win, 63 dev_info_t *rdip, ddi_dma_handle_t dma_handle, 66 dev_info_t *rdip, ddi_dma_handle_t dma_handle, ddi_dma_obj_t *dmao); 1487 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle) in amd_iommu_freehdl() argument 1489 return (iommulib_iommu_dma_freehdl(dip, rdip, dma_handle)); in amd_iommu_freehdl() 1616 dev_info_t *rdip, ddi_dma_handle_t dma_handle, in amd_iommu_bindhdl() argument [all …]
|
/titanic_50/usr/src/uts/common/io/1394/targets/dcam1394/ |
H A D | dcam_ring_buff.c | 98 &(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()
|
/titanic_50/usr/src/uts/intel/io/ |
H A D | iommulib.c | 657 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 683 return (unitp->ilu_ops->ilops_dma_bindhdl(handle, dip, rdip, dma_handle, in iommulib_nexdma_bindhdl() 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 712 return (unitp->ilu_ops->ilops_dma_sync(handle, dip, rdip, dma_handle, in iommulib_nexdma_sync() 718 ddi_dma_handle_t dma_handle, uint_t win, off_t *offp, size_t *lenp, in iommulib_nexdma_win() argument 727 return (unitp->ilu_ops->ilops_dma_win(handle, dip, rdip, dma_handle, in iommulib_nexdma_win() [all …]
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge.c | 174 (void) ddi_dma_sync(qlge->host_copy_shadow_dma_attr.dma_handle, in ql_read_sh_reg() 1416 if (sbq_desc->bd_dma.dma_handle != NULL) { in ql_free_sbq_buffers() 1417 ql_free_phys(&sbq_desc->bd_dma.dma_handle, in ql_free_sbq_buffers() 1419 sbq_desc->bd_dma.dma_handle = NULL; in ql_free_sbq_buffers() 1476 if (ql_alloc_phys_rbuf(qlge->dip, &sbq_desc->bd_dma.dma_handle, in ql_alloc_sbufs() 1558 if (lbq_desc->bd_dma.dma_handle != NULL) { in ql_free_lbq_buffers() 1559 ql_free_phys(&lbq_desc->bd_dma.dma_handle, in ql_free_lbq_buffers() 1561 lbq_desc->bd_dma.dma_handle = NULL; in ql_free_lbq_buffers() 1626 if (ql_alloc_phys_rbuf(qlge->dip, &lbq_desc->bd_dma.dma_handle, in ql_alloc_lbufs() 1966 (void) ddi_dma_sync(sbq_desc->bd_dma.dma_handle, in ql_build_rx_mp() [all …]
|
/titanic_50/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 117 hxge_os_dma_handle_t dma_handle; in hxge_start() local 329 dma_handle = tx_msg_p->buf_dma_handle; in hxge_start() 332 (void) ddi_dma_sync(dma_handle, in hxge_start() 424 dma_handle = tx_msg_p->buf_dma_handle; in hxge_start() 427 (void) ddi_dma_sync(dma_handle, in hxge_start() 450 dma_handle = tx_msg_p->dma_handle; in hxge_start() 451 dma_status = ddi_dma_addr_bind_handle(dma_handle, NULL, in hxge_start() 491 ddi_dma_nextcookie(dma_handle, in hxge_start() 826 tx_msg_p->dma_handle)) { in hxge_start()
|
H A D | hxge_impl.h | 80 #define DMA_COMMON_HANDLE(area) ((area.dma_handle)) 83 #define DMA_COMMON_SYNC(area, flag) ((void) ddi_dma_sync((area).dma_handle,\ 87 ((void) ddi_dma_sync((area).dma_handle,\ 196 ddi_dma_handle_t dma_handle; member
|
/titanic_50/usr/src/uts/common/sys/fibre-channel/fca/oce/ |
H A D | oce_buf.h | 66 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
|
/titanic_50/usr/src/uts/common/io/xge/drv/ |
H A D | xgell.c | 313 ddi_dma_handle_t dma_handle; in xgell_rx_buffer_alloc() local 325 0, &dma_handle) != DDI_SUCCESS) { in xgell_rx_buffer_alloc() 332 if (ddi_dma_mem_alloc(dma_handle, HEADROOM + bf_pool->size + in xgell_rx_buffer_alloc() 348 if (ddi_dma_addr_bind_handle(dma_handle, NULL, (char *)vaddr + HEADROOM, in xgell_rx_buffer_alloc() 369 rx_buffer->dma_handle = dma_handle; in xgell_rx_buffer_alloc() 378 (void) ddi_dma_unbind_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() 447 if (ddi_dma_unbind_handle(dma_handle) != DDI_SUCCESS) { in xgell_rx_destroy_buffer_pool() [all …]
|
/titanic_50/usr/src/uts/i86pc/io/ |
H A D | immu_dvma.c | 94 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle); 96 dev_info_t *rdip, ddi_dma_handle_t dma_handle, struct ddi_dma_req *dma_req, 99 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle); 101 dev_info_t *rdip, ddi_dma_handle_t dma_handle, off_t off, size_t len, 104 dev_info_t *rdip, ddi_dma_handle_t dma_handle, uint_t win, 107 dev_info_t *rdip, ddi_dma_handle_t dma_handle, 110 dev_info_t *rdip, ddi_dma_handle_t dma_handle, ddi_dma_obj_t *dmao); 3090 dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t dma_handle) in immu_freehdl() argument 3094 ihp = iommulib_iommu_dmahdl_getprivate(dip, rdip, dma_handle); in immu_freehdl() 3101 return (iommulib_iommu_dma_freehdl(dip, rdip, dma_handle)); in immu_freehdl() [all …]
|
/titanic_50/usr/src/uts/common/io/usb/hcd/uhci/ |
H A D | uhciutil.c | 2484 tw->tw_isoc_bufs[i].dma_handle); in uhci_free_tw() 2487 ddi_dma_free_handle(&tw->tw_isoc_bufs[i].dma_handle); in uhci_free_tw() 3150 &td_pool_ptr1->dma_handle) != DDI_SUCCESS) { in uhci_alloc_memory_for_tds() 3155 td_pool_ptr2->dma_handle); in uhci_alloc_memory_for_tds() 3158 ddi_dma_free_handle(&td_pool_ptr2->dma_handle); in uhci_alloc_memory_for_tds() 3169 if (ddi_dma_mem_alloc(td_pool_ptr1->dma_handle, in uhci_alloc_memory_for_tds() 3175 ddi_dma_free_handle(&td_pool_ptr1->dma_handle); in uhci_alloc_memory_for_tds() 3180 td_pool_ptr2->dma_handle); in uhci_alloc_memory_for_tds() 3183 ddi_dma_free_handle(&td_pool_ptr2->dma_handle); in uhci_alloc_memory_for_tds() 3194 result = ddi_dma_addr_bind_handle(td_pool_ptr1->dma_handle, in uhci_alloc_memory_for_tds() [all …]
|
/titanic_50/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt_dma.c | 427 rv = ddi_dma_sync(th->dma_handle, in qlt_dmem_dma_sync() 491 qlt_handle->dma_handle = ddi_handle; in qlt_dma_alloc_handle() 564 rv = ddi_dma_unbind_handle(tmp_handle->dma_handle); in qlt_dma_free_handles() 632 ddi_dma_nextcookie(fetch->dma_handle, cookiep); in qlt_ddi_dma_nextcookie() 695 th->dma_handle, in qlt_dma_setup_dbuf() 756 ddi_dma_nextcookie(th->dma_handle, cookie_p++); in qlt_dma_setup_dbuf()
|
/titanic_50/usr/src/uts/common/sys/usb/hcd/openhci/ |
H A D | ohcid.h | 806 #define Sync_IO_Buffer(dma_handle, length) \ argument 807 (void) ddi_dma_sync(dma_handle, \ 809 #define Sync_IO_Buffer_for_device(dma_handle, length) \ argument 810 (void) ddi_dma_sync(dma_handle, \
|