/titanic_50/usr/src/uts/common/io/drm/ |
H A D | drm_pci.c | 234 DDI_DMA_SLEEP, NULL, &dmah->dma_hdl)) { in drm_pci_alloc() 239 if (ret = ddi_dma_mem_alloc(dmah->dma_hdl, size, &hw_acc_attr, in drm_pci_alloc() 247 ret = ddi_dma_addr_bind_handle(dmah->dma_hdl, NULL, in drm_pci_alloc() 257 (void) ddi_dma_unbind_handle(dmah->dma_hdl); in drm_pci_alloc() 270 ddi_dma_free_handle(&dmah->dma_hdl); in drm_pci_alloc() 284 (void) ddi_dma_unbind_handle(dmah->dma_hdl); in drm_pci_free() 286 ddi_dma_free_handle(&dmah->dma_hdl); in drm_pci_free()
|
H A D | drm_gem.c | 287 DDI_DMA_DONTWAIT, NULL, &obj->dma_hdl)) { in drm_gem_object_alloc() 292 if (ddi_dma_mem_alloc(obj->dma_hdl, ptob(pgcnt), &acc_attr, in drm_gem_object_alloc() 299 if (ddi_dma_addr_bind_handle(obj->dma_hdl, NULL, in drm_gem_object_alloc() 325 ddi_dma_nextcookie(obj->dma_hdl, &cookie); in drm_gem_object_alloc() 367 (void) ddi_dma_unbind_handle(obj->dma_hdl); in drm_gem_object_alloc() 371 ddi_dma_free_handle(&obj->dma_hdl); in drm_gem_object_alloc() 660 (void) ddi_dma_unbind_handle(obj->dma_hdl); in drm_gem_object_free() 662 ddi_dma_free_handle(&obj->dma_hdl); in drm_gem_object_free()
|
H A D | ati_pcigart.c | 101 ddi_dma_nextcookie(dmah->dma_hdl, &dmah->cookie); in drm_ati_pcigart_init() 106 (void) ddi_dma_sync(entry->dmah_gart->dma_hdl, 0, in drm_ati_pcigart_init()
|
/titanic_50/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_ixl_update.c | 538 ddi_dma_handle_t dma_hdl; in hci1394_ixl_update_prep_jump() local 611 dma_hdl = xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_dma_handle; in hci1394_ixl_update_prep_jump() 614 err = ddi_dma_sync(dma_hdl, (off_t)hcidescp, sizeof (hci1394_desc_t), in hci1394_ixl_update_prep_jump() 991 ddi_dma_handle_t dma_hdl; in hci1394_ixl_update_prep_recv_pkt() local 1091 dma_hdl = xferctlp->dma[0].dma_buf->bi_dma_handle; in hci1394_ixl_update_prep_recv_pkt() 1094 err = ddi_dma_sync(dma_hdl, (off_t)hcidescp, sizeof (hci1394_desc_t), in hci1394_ixl_update_prep_recv_pkt() 1239 ddi_dma_handle_t dma_hdl; in hci1394_ixl_update_prep_send_pkt() local 1354 dma_hdl = xferctlp->dma[0].dma_buf->bi_dma_handle; in hci1394_ixl_update_prep_send_pkt() 1357 err = ddi_dma_sync(dma_hdl, (off_t)hcidescp, in hci1394_ixl_update_prep_send_pkt() 1525 ddi_dma_handle_t dma_hdl; in hci1394_ixl_update_perform() local [all …]
|
H A D | hci1394_ixl_misc.c | 279 ddi_dma_handle_t dma_hdl; in hci1394_ixl_check_status() local 291 dma_hdl = dma->dma_buf->bi_dma_handle; in hci1394_ixl_check_status() 297 err = ddi_dma_sync(dma_hdl, hcidesc_off, in hci1394_ixl_check_status() 323 err = ddi_dma_sync(dma_hdl, hcidesc_off, in hci1394_ixl_check_status() 353 err = ddi_dma_sync(dma_hdl, hcidesc_off, in hci1394_ixl_check_status() 392 err = ddi_dma_sync(dma_hdl, hcidesc_off, in hci1394_ixl_check_status()
|
H A D | hci1394_ixl_isr.c | 545 ddi_dma_handle_t dma_hdl; in hci1394_ixl_intr_check_done() local 655 dma_hdl = dma->dma_buf->bi_dma_handle; in hci1394_ixl_intr_check_done() 660 err = ddi_dma_sync(dma_hdl, hcidesc_off, sizeof (hci1394_desc_t), in hci1394_ixl_intr_check_done() 838 dma_hdl = dma->dma_buf->bi_dma_handle; in hci1394_ixl_intr_check_done() 843 err = ddi_dma_sync(dma_hdl, hcidesc_off, in hci1394_ixl_intr_check_done()
|
/titanic_50/usr/src/uts/common/io/nge/ |
H A D | nge_rx.c | 334 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring() 339 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring() 343 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring() 394 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring() 399 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring() 403 (void) ddi_dma_sync(rrp->desc.dma_hdl, in nge_recv_ring()
|
/titanic_50/usr/src/uts/common/io/rtls/ |
H A D | rtls.c | 1150 (void) ddi_dma_sync(rtlsp->dma_area_tx[cur_desc].dma_hdl, 0, totlen, in rtls_send() 1312 (void) ddi_dma_sync(rtlsp->dma_area_rx.dma_hdl, in rtls_receive() 1316 (void) ddi_dma_sync(rtlsp->dma_area_rx.dma_hdl, in rtls_receive() 1348 (void) ddi_dma_sync(rtlsp->dma_area_rx.dma_hdl, in rtls_receive() 1503 DDI_DMA_SLEEP, NULL, &dma_p->dma_hdl); in rtls_alloc_dma_mem() 1508 dma_p->dma_hdl = NULL; in rtls_alloc_dma_mem() 1515 err = ddi_dma_mem_alloc(dma_p->dma_hdl, memsize, attr_p, in rtls_alloc_dma_mem() 1522 ddi_dma_free_handle(&dma_p->dma_hdl); in rtls_alloc_dma_mem() 1523 dma_p->dma_hdl = NULL; in rtls_alloc_dma_mem() 1532 err = ddi_dma_addr_bind_handle(dma_p->dma_hdl, NULL, in rtls_alloc_dma_mem() [all …]
|
/titanic_50/usr/src/uts/common/io/rwd/ |
H A D | rt2661.c | 538 DDI_DMA_SLEEP, NULL, &dma_p->dma_hdl); in rt2661_alloc_dma_mem() 548 err = ddi_dma_mem_alloc(dma_p->dma_hdl, memsize, attr_p, in rt2661_alloc_dma_mem() 560 err = ddi_dma_addr_bind_handle(dma_p->dma_hdl, NULL, in rt2661_alloc_dma_mem() 582 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in rt2661_alloc_dma_mem() 586 ddi_dma_free_handle(&dma_p->dma_hdl); in rt2661_alloc_dma_mem() 594 if (dma_p->dma_hdl != NULL) { in rt2661_free_dma_mem() 595 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in rt2661_free_dma_mem() 600 ddi_dma_free_handle(&dma_p->dma_hdl); in rt2661_free_dma_mem() 602 dma_p->dma_hdl = NULL; in rt2661_free_dma_mem() 668 (void) ddi_dma_sync(ring->txdesc_dma.dma_hdl, in rt2661_alloc_tx_ring() [all …]
|
H A D | rt2661_var.h | 37 ddi_dma_handle_t dma_hdl; /* DMA handle */ member 200 #define RT2661_DMA_SYNC(area, flag) ((void) ddi_dma_sync((area).dma_hdl,\
|
/titanic_50/usr/src/uts/common/io/rge/ |
H A D | rge_main.c | 145 DDI_DMA_SLEEP, NULL, &dma_p->dma_hdl); in rge_alloc_dma_mem() 147 dma_p->dma_hdl = NULL; in rge_alloc_dma_mem() 154 err = ddi_dma_mem_alloc(dma_p->dma_hdl, memsize, acc_attr_p, in rge_alloc_dma_mem() 158 ddi_dma_free_handle(&dma_p->dma_hdl); in rge_alloc_dma_mem() 159 dma_p->dma_hdl = NULL; in rge_alloc_dma_mem() 168 err = ddi_dma_addr_bind_handle(dma_p->dma_hdl, NULL, in rge_alloc_dma_mem() 173 ddi_dma_free_handle(&dma_p->dma_hdl); in rge_alloc_dma_mem() 175 dma_p->dma_hdl = NULL; in rge_alloc_dma_mem() 192 if (dma_p->dma_hdl != NULL) { in rge_free_dma_mem() 194 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in rge_free_dma_mem() [all …]
|
/titanic_50/usr/src/uts/common/io/iwk/ |
H A D | iwk2_var.h | 37 (void) ddi_dma_sync((area).dma_hdl, (area).offset, \ 51 ddi_dma_handle_t dma_hdl; /* DMA handle */ member
|
/titanic_50/usr/src/uts/common/io/wpi/ |
H A D | wpivar.h | 65 (void) ddi_dma_sync((area).dma_hdl, (area).offset, \ 79 ddi_dma_handle_t dma_hdl; /* DMA handle */ member
|
H A D | wpi.c | 797 DDI_DMA_SLEEP, NULL, &dma_p->dma_hdl); in wpi_alloc_dma_mem() 799 dma_p->dma_hdl = NULL; in wpi_alloc_dma_mem() 806 err = ddi_dma_mem_alloc(dma_p->dma_hdl, memsize, acc_attr_p, in wpi_alloc_dma_mem() 810 ddi_dma_free_handle(&dma_p->dma_hdl); in wpi_alloc_dma_mem() 811 dma_p->dma_hdl = NULL; in wpi_alloc_dma_mem() 820 err = ddi_dma_addr_bind_handle(dma_p->dma_hdl, NULL, in wpi_alloc_dma_mem() 825 ddi_dma_free_handle(&dma_p->dma_hdl); in wpi_alloc_dma_mem() 827 dma_p->dma_hdl = NULL; in wpi_alloc_dma_mem() 844 if (dma_p->dma_hdl != NULL) { in wpi_free_dma_mem() 846 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in wpi_free_dma_mem() [all …]
|
/titanic_50/usr/src/uts/common/io/rwn/ |
H A D | rt2860_var.h | 64 ddi_dma_handle_t dma_hdl; /* DMA handle */ member 116 #define RT2860_DMA_SYNC(area, flag) ((void) ddi_dma_sync((area).dma_hdl,\
|
/titanic_50/usr/src/uts/common/io/iwp/ |
H A D | iwp_var.h | 37 (void) ddi_dma_sync((area).dma_hdl, (area).offset, \ 51 ddi_dma_handle_t dma_hdl; /* DMA handle */ member
|
/titanic_50/usr/src/uts/common/io/iwh/ |
H A D | iwh_var.h | 37 (void) ddi_dma_sync((area).dma_hdl, (area).offset, \ 51 ddi_dma_handle_t dma_hdl; /* DMA handle */ member
|
/titanic_50/usr/src/uts/common/io/rtw/ |
H A D | rtwvar.h | 167 #define RTW_DMA_SYNC(area, flag) ((void) ddi_dma_sync((area).dma_hdl,\ 171 ((void) ddi_dma_sync((area).dma_hdl, offset, len, (flag))) 184 ddi_dma_handle_t dma_hdl; /* DMA handle */ member
|
/titanic_50/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_impl.h | 85 ddi_dma_handle_t dma_hdl; member 313 #define DMA_SYNC(descp, flag) ((void) ddi_dma_sync((descp)->dma_hdl, \
|
/titanic_50/usr/src/uts/common/io/bge/ |
H A D | bge_recv2.c | 195 if (bge_check_dma_handle(bgep, srbdp->pbuf.dma_hdl) != DDI_FM_OK) { in bge_receive_packet() 305 if (bge_check_dma_handle(bgep, rrp->desc.dma_hdl) != DDI_FM_OK) { in bge_receive_ring() 375 if (bge_check_dma_handle(bgep, rrp->desc.dma_hdl) != DDI_FM_OK) { in bge_poll_ring()
|
H A D | bge_send.c | 429 (void) ddi_dma_sync(txbuf->buf.dma_hdl, 0, in bge_send_serial() 471 (void) ddi_dma_sync(ssbdp->desc.dma_hdl, 0, in bge_send_serial() 478 (void) ddi_dma_sync(ssbdp->desc.dma_hdl, 0, in bge_send_serial()
|
/titanic_50/usr/src/uts/intel/io/amd8111s/ |
H A D | amd8111s_main.c | 945 pRing->dma_hdl = kmem_zalloc(sizeof (ddi_dma_handle_t) * in amd8111s_alloc_dma_ringbuf() 953 if (pRing->msg_buf == NULL || pRing->dma_hdl == NULL || in amd8111s_alloc_dma_ringbuf() 963 DDI_DMA_SLEEP, NULL, &(pRing->dma_hdl[idx])) in amd8111s_alloc_dma_ringbuf() 969 } else if (ddi_dma_mem_alloc(pRing->dma_hdl[idx], in amd8111s_alloc_dma_ringbuf() 983 } else if (ddi_dma_addr_bind_handle(pRing->dma_hdl[idx], in amd8111s_alloc_dma_ringbuf() 1004 pRing->dma_hdl[idx]; in amd8111s_alloc_dma_ringbuf() 1033 (void) ddi_dma_unbind_handle(pRing->dma_hdl[idx]); in amd8111s_free_dma_ringbuf() 1049 if (pRing->dma_hdl != NULL) { in amd8111s_free_dma_ringbuf() 1051 if (pRing->dma_hdl[idx] == 0) { in amd8111s_free_dma_ringbuf() 1054 ddi_dma_free_handle(&pRing->dma_hdl[idx]); in amd8111s_free_dma_ringbuf() [all …]
|
/titanic_50/usr/src/uts/common/io/ath/ |
H A D | ath_impl.h | 121 #define ATH_DMA_SYNC(area, flag) ((void) ddi_dma_sync((area).dma_hdl, \ 215 ddi_dma_handle_t dma_hdl; /* DMA handle */ member
|
/titanic_50/usr/src/uts/common/io/mwl/ |
H A D | mwl.c | 354 DDI_DMA_SLEEP, NULL, &dma_p->dma_hdl); in mwl_alloc_dma_mem() 364 err = ddi_dma_mem_alloc(dma_p->dma_hdl, memsize, attr_p, in mwl_alloc_dma_mem() 376 err = ddi_dma_addr_bind_handle(dma_p->dma_hdl, NULL, in mwl_alloc_dma_mem() 399 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in mwl_alloc_dma_mem() 403 ddi_dma_free_handle(&dma_p->dma_hdl); in mwl_alloc_dma_mem() 411 if (dma_p->dma_hdl != NULL) { in mwl_free_dma_mem() 412 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in mwl_free_dma_mem() 417 ddi_dma_free_handle(&dma_p->dma_hdl); in mwl_free_dma_mem() 419 dma_p->dma_hdl = NULL; in mwl_free_dma_mem() 511 (void) ddi_dma_sync(ring->rxdesc_dma.dma_hdl, in mwl_alloc_rx_ring() [all …]
|
/titanic_50/usr/src/uts/common/io/ntxn/ |
H A D | unm_gem.c | 443 if (dma_p->dma_hdl != NULL) { in unm_free_dma_mem() 445 (void) ddi_dma_unbind_handle(dma_p->dma_hdl); in unm_free_dma_mem() 453 if (dma_p->dma_hdl != NULL) { in unm_free_dma_mem() 454 ddi_dma_free_handle(&dma_p->dma_hdl); in unm_free_dma_mem() 455 dma_p->dma_hdl = NULL; in unm_free_dma_mem() 470 NULL, &dma_p->dma_hdl); in unm_alloc_dma_mem() 477 ret = ddi_dma_mem_alloc(dma_p->dma_hdl, in unm_alloc_dma_mem() 494 ret = ddi_dma_addr_bind_handle(dma_p->dma_hdl, in unm_alloc_dma_mem()
|