/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_tx.c | 59 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() 262 if (dmah.head != NULL) { in nge_tx_recycle() 444 nge_dmah_node_t *dmah; in nge_send_mapped() local 476 dmah = dmah_list.head; in nge_send_mapped() [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/drv/ |
H A D | xge_osdep.h | 357 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()
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_nic_main.c | 872 if (dmah != NULL) { in unm_reserve_dma_handle() 874 dmah->next = NULL; in unm_reserve_dma_handle() 879 return (dmah); in unm_reserve_dma_handle() 930 tail = dmah; in unm_send_mapped() 936 dmah = NULL; in unm_send_mapped() 953 dmah = NULL; in unm_send_mapped() 958 dmah = NULL; in unm_send_mapped() 970 dmah = NULL; in unm_send_mapped() 1065 if (dmah != NULL) { in unm_send_mapped() 1070 tail = dmah; in unm_send_mapped() [all …]
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_util.c | 325 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()
|
/illumos-gate/usr/src/uts/common/io/qede/ |
H A D | qede_fp.c | 42 qede_dma_handle_entry_t *dmah; in qede_get_dmah_entry() local 45 dmah = list->free_list[list->head]; in qede_get_dmah_entry() 50 return (dmah); in qede_get_dmah_entry() 63 while (dmah != NULL) { in qede_put_dmah_entries() 64 next = dmah->next; in qede_put_dmah_entries() 65 dmah->next = NULL; in qede_put_dmah_entries() 66 list->free_list[index] = dmah; in qede_put_dmah_entries() 68 dmah = next; in qede_put_dmah_entries() 157 head = dmah; in qede_process_tx_completions() 163 while (dmah != NULL) { in qede_process_tx_completions() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pvscsi/ |
H A D | pvscsi.c | 266 (void) ddi_dma_sync(pvs->cmp_ring_buf.dmah, 0, 0, in pvscsi_process_comp_ring() 287 (void) ddi_dma_sync(pvs->state_buf.dmah, 0, 0, DDI_DMA_SYNC_FORDEV); in pvscsi_process_comp_ring() 307 (void) ddi_dma_sync(pvs->msg_ring_buf.dmah, 0, 0, in pvscsi_process_msg_ring() 696 DDI_DMA_SLEEP, NULL, &buf->dmah)) != DDI_SUCCESS) { in pvscsi_setup_dma_buffer() 701 if ((ddi_dma_mem_alloc(buf->dmah, length, &pvscsi_dma_attrs, in pvscsi_setup_dma_buffer() 708 if ((ddi_dma_addr_bind_handle(buf->dmah, NULL, buf->addr, in pvscsi_setup_dma_buffer() 715 buf->pa = ddi_dma_cookie_one(buf->dmah)->dmac_laddress; in pvscsi_setup_dma_buffer() 724 (void) ddi_dma_unbind_handle(buf->dmah); in pvscsi_free_dma_buffer() 729 if (buf->dmah != NULL) { in pvscsi_free_dma_buffer() 730 ddi_dma_free_handle(&buf->dmah); in pvscsi_free_dma_buffer() [all …]
|
H A D | pvscsi_var.h | 21 ddi_dma_handle_t dmah; member
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiosolo/ |
H A D | audiosolo.c | 141 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 …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audioens/ |
H A D | audioens.c | 108 ddi_dma_handle_t dmah; member 731 (void) ddi_dma_sync(port->dmah, 0, 0, DDI_DMA_SYNC_FORKERNEL); in audioens_sync() 733 (void) ddi_dma_sync(port->dmah, 0, 0, DDI_DMA_SYNC_FORDEV); in audioens_sync() 896 NULL, &port->dmah) != DDI_SUCCESS) { in audioens_init() 901 if (ddi_dma_mem_alloc(port->dmah, bufsz, &buf_attr, in audioens_init() 910 if (ddi_dma_addr_bind_handle(port->dmah, NULL, port->kaddr, in audioens_init() 963 (void) ddi_dma_unbind_handle(port->dmah); in audioens_destroy() 966 if (port->dmah != NULL) in audioens_destroy() 967 ddi_dma_free_handle(&port->dmah); in audioens_destroy()
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/ |
H A D | audiopci.c | 89 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()
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmi/ |
H A D | audiocmi.c | 687 (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 D | audiocmi.h | 265 ddi_dma_handle_t dmah; member
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.h | 38 ddi_dma_handle_t dmah; member 251 (void) ddi_dma_sync(d->dmah, off, size, dir)
|
H A D | iprb.c | 461 &h->dmah) != DDI_SUCCESS) { in iprb_dma_alloc() 465 if (ddi_dma_mem_alloc(h->dmah, size, &buf_attr, DDI_DMA_CONSISTENT, in iprb_dma_alloc() 471 if (ddi_dma_addr_bind_handle(h->dmah, NULL, h->vaddr, size, in iprb_dma_alloc() 485 (void) ddi_dma_unbind_handle(h->dmah); in iprb_dma_free() 490 if (h->dmah != NULL) in iprb_dma_free() 491 ddi_dma_free_handle(&h->dmah); in iprb_dma_free() 492 h->dmah = NULL; in iprb_dma_free()
|
/illumos-gate/usr/src/uts/common/io/hme/ |
H A D | hme.c | 2354 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 D | hme.h | 62 ddi_dma_handle_t dmah; member
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs_proto.h | 287 ddi_acc_handle_t *acch, ddi_dma_handle_t *dmah, size_t length,
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_subr.c | 6929 *dmah = NULL; in pmcs_dma_setup() 6931 if (ddi_dma_alloc_handle(dip, dma_attr, DDI_DMA_SLEEP, NULL, dmah) != in pmcs_dma_setup() 6938 if (ddi_dma_mem_alloc(*dmah, length, &mattr, ddma_flag, DDI_DMA_SLEEP, in pmcs_dma_setup() 6942 ddi_dma_free_handle(dmah); in pmcs_dma_setup() 6943 *dmah = NULL; in pmcs_dma_setup() 6947 if (ddi_dma_addr_bind_handle(*dmah, NULL, *kvap, real_length, in pmcs_dma_setup() 6951 ddi_dma_free_handle(dmah); in pmcs_dma_setup() 6953 *dmah = NULL; in pmcs_dma_setup() 6960 if (ddi_dma_unbind_handle(*dmah) != DDI_SUCCESS) { in pmcs_dma_setup() 6964 ddi_dma_free_handle(dmah); in pmcs_dma_setup() [all …]
|