Home
last modified time | relevance | path

Searched refs:dmah (Results 1 – 20 of 20) sorted by relevance

/titanic_41/usr/src/uts/common/io/drm/
H A Ddrm_pci.c219 drm_dma_handle_t *dmah; in drm_pci_alloc() local
232 dmah = kmem_zalloc(sizeof (drm_dma_handle_t), KM_SLEEP); in drm_pci_alloc()
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()
241 DDI_DMA_SLEEP, NULL, (caddr_t *)&dmah->vaddr, in drm_pci_alloc()
242 &dmah->real_sz, &dmah->acc_hdl)) { in drm_pci_alloc()
247 ret = ddi_dma_addr_bind_handle(dmah->dma_hdl, NULL, in drm_pci_alloc()
248 (caddr_t)dmah->vaddr, dmah->real_sz, in drm_pci_alloc()
250 DDI_DMA_SLEEP, NULL, &dmah->cookie, &count); in drm_pci_alloc()
257 (void) ddi_dma_unbind_handle(dmah->dma_hdl); in drm_pci_alloc()
[all …]
H A Dati_pcigart.c48 drm_dma_handle_t *dmah; in drm_ati_pcigart_init() local
81 dmah = entry->dmah_sg; in drm_ati_pcigart_init()
83 for (i = 0; i < dmah->cookie_num; i++) { in drm_ati_pcigart_init()
84 bulksize = dmah->cookie.dmac_size; in drm_ati_pcigart_init()
87 dmah->cookie.dmac_address + k * PAGE_SIZE; in drm_ati_pcigart_init()
101 ddi_dma_nextcookie(dmah->dma_hdl, &dmah->cookie); in drm_ati_pcigart_init()
117 drm_dma_handle_t *dmah; in drm_ati_pcigart_cleanup() local
123 dmah = dev->sg->dmah_gart; in drm_ati_pcigart_cleanup()
125 if (dmah) in drm_ati_pcigart_cleanup()
126 drm_pci_free(dev, dmah); in drm_ati_pcigart_cleanup()
H A Ddrm_scatter.c89 drm_dma_handle_t *dmah; in drm_sg_alloc() local
114 dmah = drm_pci_alloc(dev, ptob(pages), 4096, 0xfffffffful, pages); in drm_sg_alloc()
115 if (dmah == NULL) in drm_sg_alloc()
120 entry->handle = ScatterHandle((unsigned long)dmah->vaddr); in drm_sg_alloc()
121 entry->virtual = (void *)dmah->vaddr; in drm_sg_alloc()
123 entry->dmah_sg = dmah; in drm_sg_alloc()
/titanic_41/usr/src/uts/common/io/nge/
H A Dnge_tx.c59 nge_dmah_node_t *dmah; in nge_tx_recycle_all() local
74 for (dmah = ssbdp->mp_hndl.head; dmah != NULL; in nge_tx_recycle_all()
75 dmah = dmah->next) in nge_tx_recycle_all()
76 (void) ddi_dma_unbind_handle(dmah->hndl); in nge_tx_recycle_all()
164 nge_dmah_list_t dmah; in nge_tx_recycle() local
205 dmah.head = NULL; in nge_tx_recycle()
206 dmah.tail = NULL; in nge_tx_recycle()
224 nge_tx_dmah_push(&ssbdp->mp_hndl, &dmah); in nge_tx_recycle()
260 for (dme = dmah.head; dme != NULL; dme = dme->next) in nge_tx_recycle()
262 if (dmah.head != NULL) { in nge_tx_recycle()
[all …]
/titanic_41/usr/src/uts/common/io/xge/drv/
H A Dxge_osdep.h357 static inline dma_addr_t xge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, in xge_os_dma_map() argument
381 ret = ddi_dma_addr_bind_handle(dmah, NULL, vaddr, size, flags, in xge_os_dma_map()
388 (void) ddi_dma_unbind_handle(dmah); in xge_os_dma_map()
395 static inline void xge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, in xge_os_dma_unmap() argument
398 (void) ddi_dma_unbind_handle(dmah); in xge_os_dma_unmap()
401 static inline void xge_os_dma_sync(pci_dev_h pdev, pci_dma_h dmah, in xge_os_dma_sync() argument
404 (void) ddi_dma_sync(dmah, dma_offset, length, dir); in xge_os_dma_sync()
/titanic_41/usr/src/uts/common/io/ntxn/
H A Dunm_nic_main.c869 unm_dmah_node_t *dmah = NULL; in unm_reserve_dma_handle() local
871 dmah = adapter->dmahdl_pool; in unm_reserve_dma_handle()
872 if (dmah != NULL) { in unm_reserve_dma_handle()
873 adapter->dmahdl_pool = dmah->next; in unm_reserve_dma_handle()
874 dmah->next = NULL; in unm_reserve_dma_handle()
879 return (dmah); in unm_reserve_dma_handle()
895 unm_dmah_node_t *dmah, *head = NULL, *tail = NULL, *hdlp; in unm_send_mapped() local
912 dmah = unm_reserve_dma_handle(adapter); in unm_send_mapped()
913 if (dmah == NULL) { in unm_send_mapped()
918 ret = ddi_dma_addr_bind_handle(dmah->dmahdl, in unm_send_mapped()
[all …]
/titanic_41/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_util.c325 cpqary3_phyctg_t *dmah = NULL; in cpqary3_synccmd_alloc() local
337 dmah = (cpqary3_phyctg_t *)MEM_ZALLOC(sizeof (*dmah)); in cpqary3_synccmd_alloc()
338 if (dmah == NULL) { in cpqary3_synccmd_alloc()
346 &dmabufpa, dmah); in cpqary3_synccmd_alloc()
357 cmddmah->phyctgp = dmah; in cpqary3_synccmd_alloc()
/titanic_41/usr/src/uts/common/io/audio/drv/audioens/
H A Daudioens.c95 ddi_dma_handle_t dmah; member
593 (void) ddi_dma_sync(port->dmah, 0, 0, DDI_DMA_SYNC_FORKERNEL); in audioens_sync()
595 (void) ddi_dma_sync(port->dmah, 0, 0, DDI_DMA_SYNC_FORDEV); in audioens_sync()
745 NULL, &port->dmah) != DDI_SUCCESS) { in audioens_init()
750 if (ddi_dma_mem_alloc(port->dmah, AUDIOENS_BUF_LEN, &buf_attr, in audioens_init()
759 if (ddi_dma_addr_bind_handle(port->dmah, NULL, port->kaddr, in audioens_init()
806 (void) ddi_dma_unbind_handle(port->dmah); in audioens_destroy()
809 if (port->dmah != NULL) in audioens_destroy()
810 ddi_dma_free_handle(&port->dmah); in audioens_destroy()
/titanic_41/usr/src/uts/common/io/audio/drv/audiosolo/
H A Daudiosolo.c141 ddi_dma_handle_t dmah; member
969 (void) ddi_dma_sync(e->dmah, 0, 0, e->syncdir); in solo_sync()
1095 (void) ddi_dma_unbind_handle(dev->play.dmah); in solo_release_resources()
1098 if (dev->play.dmah != NULL) in solo_release_resources()
1099 ddi_dma_free_handle(&dev->play.dmah); in solo_release_resources()
1108 (void) ddi_dma_unbind_handle(dev->rec.dmah); in solo_release_resources()
1111 if (dev->rec.dmah != NULL) in solo_release_resources()
1112 ddi_dma_free_handle(&dev->rec.dmah); in solo_release_resources()
1301 &e->dmah) != DDI_SUCCESS) { in solo_alloc_engine()
1305 if (ddi_dma_mem_alloc(e->dmah, SOLO_BUFSZ, &buf_attr, in solo_alloc_engine()
[all …]
/titanic_41/usr/src/uts/common/io/audio/drv/audiopci/
H A Daudiopci.c89 ddi_dma_handle_t dmah; member
495 (void) ddi_dma_sync(port->dmah, 0, 0, DDI_DMA_SYNC_FORCPU); in audiopci_sync()
497 (void) ddi_dma_sync(port->dmah, 0, 0, DDI_DMA_SYNC_FORDEV); in audiopci_sync()
646 NULL, &port->dmah) != DDI_SUCCESS) { in audiopci_init()
651 if (ddi_dma_mem_alloc(port->dmah, AUDIOPCI_BUF_LEN, &buf_attr, in audiopci_init()
660 if (ddi_dma_addr_bind_handle(port->dmah, NULL, port->kaddr, in audiopci_init()
712 (void) ddi_dma_unbind_handle(port->dmah); in audiopci_destroy()
715 if (port->dmah != NULL) in audiopci_destroy()
716 ddi_dma_free_handle(&port->dmah); in audiopci_destroy()
/titanic_41/usr/src/uts/common/io/audio/drv/audiocmi/
H A Daudiocmi.c687 (void) ddi_dma_sync(port->dmah, 0, 0, port->sync_dir); in cmpci_sync()
791 NULL, &port->dmah) != DDI_SUCCESS) { in cmpci_init()
795 if (ddi_dma_mem_alloc(port->dmah, port->bufsz, &buf_attr, in cmpci_init()
803 if (ddi_dma_addr_bind_handle(port->dmah, NULL, port->kaddr, in cmpci_init()
843 (void) ddi_dma_unbind_handle(port->dmah); in cmpci_destroy()
846 if (port->dmah != NULL) in cmpci_destroy()
847 ddi_dma_free_handle(&port->dmah); in cmpci_destroy()
H A Daudiocmi.h265 ddi_dma_handle_t dmah; member
/titanic_41/usr/src/uts/intel/io/drm/
H A Di915_dma.c86 drm_dma_handle_t *dmah; in i915_init_hardware_status() local
89 dmah = drm_pci_alloc(dev, PAGE_SIZE, PAGE_SIZE, 0xffffffff,1); in i915_init_hardware_status()
91 if (!dmah) { in i915_init_hardware_status()
96 dev_priv->status_page_dmah = dmah; in i915_init_hardware_status()
97 dev_priv->hw_status_page = (void *)dmah->vaddr; in i915_init_hardware_status()
98 dev_priv->dma_status_page = dmah->paddr; in i915_init_hardware_status()
/titanic_41/usr/src/uts/common/io/vioblk/
H A Dvioblk.c111 ddi_dma_handle_t dmah; member
742 (void) ddi_dma_unbind_handle(req->dmah); in vioblk_free_reqs()
744 if (req->dmah) in vioblk_free_reqs()
745 ddi_dma_free_handle(&req->dmah); in vioblk_free_reqs()
765 DDI_DMA_SLEEP, NULL, &req->dmah); in vioblk_alloc_reqs()
774 ret = ddi_dma_addr_bind_handle(req->dmah, NULL, in vioblk_alloc_reqs()
/titanic_41/usr/src/uts/common/io/iprb/
H A Diprb.h38 ddi_dma_handle_t dmah; member
251 (void) ddi_dma_sync(d->dmah, off, size, dir)
H A Diprb.c459 &h->dmah) != DDI_SUCCESS) { in iprb_dma_alloc()
463 if (ddi_dma_mem_alloc(h->dmah, size, &buf_attr, DDI_DMA_CONSISTENT, in iprb_dma_alloc()
469 if (ddi_dma_addr_bind_handle(h->dmah, NULL, h->vaddr, size, in iprb_dma_alloc()
483 (void) ddi_dma_unbind_handle(h->dmah); in iprb_dma_free()
488 if (h->dmah != NULL) in iprb_dma_free()
489 ddi_dma_free_handle(&h->dmah); in iprb_dma_free()
490 h->dmah = NULL; in iprb_dma_free()
/titanic_41/usr/src/uts/common/io/hme/
H A Dhme.c2354 if (ddi_dma_sync(tbuf->dmah, 0, len, DDI_DMA_SYNC_FORDEV) == in hmestart()
2822 DDI_DMA_DONTWAIT, NULL, &buf->dmah) != DDI_SUCCESS) { in hmeallocbuf()
2828 if (ddi_dma_mem_alloc(buf->dmah, ROUNDUP(HMEBUFSIZE, 512), in hmeallocbuf()
2836 if (ddi_dma_addr_bind_handle(buf->dmah, NULL, buf->kaddr, in hmeallocbuf()
2895 (void) ddi_dma_unbind_handle(tbuf->dmah); in hmefreebufs()
2900 if (tbuf->dmah) { in hmefreebufs()
2901 ddi_dma_free_handle(&tbuf->dmah); in hmefreebufs()
2907 (void) ddi_dma_unbind_handle(rbuf->dmah); in hmefreebufs()
2912 if (rbuf->dmah) { in hmefreebufs()
2913 ddi_dma_free_handle(&rbuf->dmah); in hmefreebufs()
[all …]
H A Dhme.h62 ddi_dma_handle_t dmah; member
/titanic_41/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_proto.h287 ddi_acc_handle_t *acch, ddi_dma_handle_t *dmah, size_t length,
/titanic_41/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_subr.c6909 ddi_dma_handle_t *dmah, size_t length, caddr_t *kvap, uint64_t *dma_addr) in pmcs_dma_setup() argument
6925 *dmah = NULL; in pmcs_dma_setup()
6927 if (ddi_dma_alloc_handle(dip, dma_attr, DDI_DMA_SLEEP, NULL, dmah) != in pmcs_dma_setup()
6934 if (ddi_dma_mem_alloc(*dmah, length, &mattr, ddma_flag, DDI_DMA_SLEEP, in pmcs_dma_setup()
6938 ddi_dma_free_handle(dmah); in pmcs_dma_setup()
6939 *dmah = NULL; in pmcs_dma_setup()
6943 if (ddi_dma_addr_bind_handle(*dmah, NULL, *kvap, real_length, in pmcs_dma_setup()
6947 ddi_dma_free_handle(dmah); in pmcs_dma_setup()
6949 *dmah = NULL; in pmcs_dma_setup()
6956 if (ddi_dma_unbind_handle(*dmah) != DDI_SUCCESS) { in pmcs_dma_setup()
[all …]