usr/src/tools/smatch/src/check_kernel_printf.c
580
static struct typedef_lookup dma = { .name = "dma_addr_t" };
usr/src/tools/smatch/src/check_kernel_printf.c
589
which = &dma;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1049
dma = kmem_zalloc(sizeof (domount_args_t), KM_SLEEP);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1050
dma->dma_esi = esi_first;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1051
dma->dma_hostlist = hostlist;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1052
dma->dma_nargs = nargs_head;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1053
*dmap = dma;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1059
nfs4_trigger_domount_args_destroy(domount_args_t *dma, vnode_t *vp)
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1061
if (dma != NULL) {
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1062
if (dma->dma_esi != NULL && vp != NULL)
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1063
nfs4_trigger_esi_destroy(dma->dma_esi, vp);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1065
if (dma->dma_hostlist != NULL)
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1066
kmem_free(dma->dma_hostlist, MAXPATHLEN);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1068
if (dma->dma_nargs != NULL) {
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1069
struct nfs_args *nargs = dma->dma_nargs;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1080
kmem_free(dma, sizeof (domount_args_t));
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1840
nfs4_trigger_domount(vnode_t *stubvp, domount_args_t *dma, vfs_t **vfsp,
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1854
ephemeral_servinfo_t *esi = dma->dma_esi;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1855
struct nfs_args *nargs = dma->dma_nargs;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1890
spec_len = strlen(dma->dma_hostlist);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1902
(void) snprintf(uap->spec, spec_len + 1, "%s:%s%s", dma->dma_hostlist,
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
213
static void nfs4_trigger_domount_args_destroy(domount_args_t *dma,
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
747
domount_args_t *dma;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
839
error = nfs4_trigger_domount_args_create(vp, cr, &dma);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
852
nfs4_trigger_domount_args_destroy(dma, vp);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
860
error = nfs4_trigger_domount(vp, dma, &vfsp, mcred, newvpp);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
861
nfs4_trigger_domount_args_destroy(dma, vp);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
910
domount_args_t *dma;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1006
xferctl_nxtp->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1025
dma[ii + 1].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1035
xferctl_curp->dma[ii].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1051
xferctl_curp->dma[ii].dma_descp);
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1053
xferctl_curp->dma[ii].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1060
hcidescp -= ((xferctl_curp->dma[ii].dma_bound &
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1347
xctlp->dma[0].dma_bound = dma_desc_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1348
xctlp->dma[0].dma_descp =
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1350
xctlp->dma[0].dma_buf = &wvp->dma_currentp->mem;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1438
xctlp->dma[ii].dma_bound = dma_desc_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1439
xctlp->dma[ii].dma_descp = dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1440
xctlp->dma[ii].dma_buf = &wvp->dma_currentp->mem;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1520
xctlp->dma[0].dma_bound = dma_desc_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1521
xctlp->dma[0].dma_descp = dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1522
xctlp->dma[0].dma_buf = &wvp->dma_currentp->mem;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1618
xctlp->dma[0].dma_bound = dma_desc_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1619
xctlp->dma[0].dma_descp =
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1621
xctlp->dma[0].dma_buf = &wvp->dma_currentp->mem;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1718
xctlp->dma[ii].dma_bound = dma_desc_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1719
xctlp->dma[ii].dma_descp = dma_descp + 2 *
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1721
xctlp->dma[ii].dma_buf = &wvp->dma_currentp->mem;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1846
xctlp->dma[ii].dma_bound = dma_desc_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1847
xctlp->dma[ii].dma_descp = dma_descp + sizeof (hci1394_desc_t);
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
1848
xctlp->dma[ii].dma_buf = &wvp->dma_currentp->mem;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
290
ixl_exec_stp->compiler_privatep)->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
903
xferctl_curp->dma[0].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
904
acc_hdl = xferctl_curp->dma[0].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
930
xferctl_curp->dma[repcnt - 1].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
932
xferctl_curp->dma[repcnt - 1].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
947
dma_execnext_addr = xferctl_nxtp->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
956
xferctl_curp->dma[repcnt - 1].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
958
xferctl_curp->dma[repcnt - 1].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
969
xferctl_curp->dma[repcnt - 1].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
970
acc_hdl = xferctl_curp->dma[repcnt - 1].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
979
xferctl_curp->dma[ii].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
980
acc_hdl = xferctl_curp->dma[ii].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_comp.c
982
xferctl_curp->dma[ii + 1].dma_bound);
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
297
if (hci1394_ixl_check_status(&xferctlp->dma[ixldepth],
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
333
if (hci1394_ixl_check_status(&xferctlp->dma[ixldepth],
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
475
hci1394_xfer_ctl_dma_t *dma;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
504
dma = &xferctlp->dma[ixldepth];
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
531
dmastartp = dma->dma_bound & ~DESC_Z_MASK;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
532
dmaendp = dmastartp + ((dma->dma_bound & DESC_Z_MASK) << 4);
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
567
acc_hdl = dma->dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
568
dma_hdl = dma->dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
569
hcidescp = (hci1394_desc_t *)dma->dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
570
hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
719
dma = &xferctlp->dma[skipdepth];
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
720
acc_hdl = dma->dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
721
dma_hdl = dma->dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
722
hcidescp = (hci1394_desc_t *)dma->dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
723
hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
749
dmastartp = dma->dma_bound & ~DESC_Z_MASK;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_isr.c
750
dmaendp = dmastartp + ((dma->dma_bound & DESC_Z_MASK) << 4);
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
150
&xferctlp->dma[ixldepth], ixlcur->ixl_opcode,
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
238
hci1394_ixl_check_status(hci1394_xfer_ctl_dma_t *dma, uint16_t ixlopcode,
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
252
hcidescp = (hci1394_desc_t *)(dma->dma_descp);
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
253
hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
254
acc_hdl = dma->dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
255
dma_hdl = dma->dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
295
hcicnt = dma->dma_bound & DESC_Z_MASK;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
297
hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
343
(off_t)dma->dma_buf->bi_kaddr;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_misc.c
93
ixl_exec_startp->compiler_privatep)->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1157
uvp->hdr_offset = xferctlp->dma[0].dma_bound & DESC_Z_MASK - 1;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1179
hcidescp = (hci1394_desc_imm_t *)xferctlp->dma[0].dma_descp -
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1181
acc_hdl = xferctlp->dma[0].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1182
dma_hdl = xferctlp->dma[0].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1289
uvp->hdr_offset = xferctlp->dma[0].dma_bound & DESC_Z_MASK - 1;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1365
xferctlp->dma[xferctlp->cnt - 1].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1366
acc_hdl = xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1368
xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1419
xferctlp->dma[ii].dma_descp - uvp->hci_offset;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1420
acc_hdl = xferctlp->dma[ii].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1421
dma_hdl = xferctlp->dma[ii].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1426
xferctlp->dma[ii + 1].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1431
uvp->skipaddr = xferctlp->dma[ii].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1472
xferctlp->dma[ii].dma_descp - uvp->hdr_offset;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1473
acc_hdl = xferctlp->dma[ii].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1474
dma_hdl = xferctlp->dma[ii].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1509
xferctlp->dma[0].dma_descp - uvp->hci_offset;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1510
acc_hdl = xferctlp->dma[0].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1511
dma_hdl = xferctlp->dma[0].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1566
xferctlp->dma[ii].dma_descp - uvp->hci_offset;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1567
acc_hdl = xferctlp->dma[ii].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1568
dma_hdl = xferctlp->dma[ii].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1640
hcidescp = (hci1394_desc_imm_t *)xferctlp->dma[0].dma_descp -
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1642
acc_hdl = xferctlp->dma[0].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1643
dma_hdl = xferctlp->dma[0].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1685
xferctlp->dma[ii].dma_descp - uvp->hdr_offset;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1686
acc_hdl = xferctlp->dma[ii].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
1687
dma_hdl = xferctlp->dma[ii].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
516
ixlp->compiler_privatep)->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
538
hcidescp = (hci1394_desc_t *)xferctlp->dma[xferctlp->cnt - 1].dma_descp;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
539
acc_hdl = xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
540
dma_hdl = xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_dma_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
675
uvp->hci_offset = xferctlp->dma[0].dma_bound & DESC_Z_MASK;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
746
uvp->skipaddr = xferctlp->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
769
uvp->skipaddr = xferctlp->dma[0].dma_bound;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
837
uvp->hdr_offset = xferctlp->dma[0].dma_bound & DESC_Z_MASK;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
938
uvp->hci_offset = xferctlp->dma[0].dma_bound & DESC_Z_MASK;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
958
hcidescp = (hci1394_desc_t *)xferctlp->dma[0].dma_descp -
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
960
acc_hdl = xferctlp->dma[0].dma_buf->bi_handle;
usr/src/uts/common/io/1394/adapters/hci1394_ixl_update.c
961
dma_hdl = xferctlp->dma[0].dma_buf->bi_dma_handle;
usr/src/uts/common/io/aac/aac.c
3211
ddi_dma_handle_t dma = softs->comm_space_dma_handle;
usr/src/uts/common/io/aac/aac.c
3220
(void) ddi_dma_sync(dma, (uintptr_t)softs->qtablep->qt_qindex[queue] - \
usr/src/uts/common/io/aac/aac.c
3223
if (aac_check_dma_handle(dma) != DDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
3247
(void) ddi_dma_sync(dma, (uintptr_t)(softs->qentries[queue] + pi) - \
usr/src/uts/common/io/aac/aac.c
3254
(void) ddi_dma_sync(dma,
usr/src/uts/common/io/aac/aac.c
3272
ddi_dma_handle_t dma = softs->comm_space_dma_handle;
usr/src/uts/common/io/aac/aac.c
3281
(void) ddi_dma_sync(dma, (uintptr_t)softs->qtablep->qt_qindex[queue] - \
usr/src/uts/common/io/aac/aac.c
3308
(void) ddi_dma_sync(dma, (uintptr_t)(softs->qentries[queue] + pi) - \
usr/src/uts/common/io/aac/aac.c
3311
if (aac_check_dma_handle(dma) != DDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
3337
(void) ddi_dma_sync(dma,
usr/src/uts/common/io/aac/aac.c
3680
ddi_dma_handle_t dma = softs->comm_space_dma_handle;
usr/src/uts/common/io/aac/aac.c
3812
(void) ddi_dma_sync(dma, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge.h
134
#define ATGE_PUT64(dma, addr, v) \
usr/src/uts/common/io/atge/atge.h
135
ddi_put64(dma->acchdl, (addr), (v))
usr/src/uts/common/io/atge/atge.h
137
#define ATGE_PUT32(dma, addr, v) \
usr/src/uts/common/io/atge/atge.h
138
ddi_put32(dma->acchdl, (addr), (v))
usr/src/uts/common/io/atge/atge.h
140
#define ATGE_GET32(dma, addr) \
usr/src/uts/common/io/atge/atge.h
141
ddi_get32(dma->acchdl, (addr))
usr/src/uts/common/io/atge/atge.h
143
#define ATGE_GET64(dma, addr) \
usr/src/uts/common/io/atge/atge.h
144
ddi_get64(dma->acchdl, (addr))
usr/src/uts/common/io/atge/atge.h
146
#define DMA_SYNC(dma, s, l, d) \
usr/src/uts/common/io/atge/atge.h
147
(void) ddi_dma_sync(dma->hdl, (off_t)(s), (l), d)
usr/src/uts/common/io/atge/atge_l1.c
129
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1.c
143
dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_tx_desc,
usr/src/uts/common/io/atge/atge_l1.c
145
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1.c
150
atgep->atge_tx_ring->r_desc_ring = dma;
usr/src/uts/common/io/atge/atge_l1.c
171
dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_rx_desc,
usr/src/uts/common/io/atge/atge_l1.c
173
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1.c
178
l1->atge_rx_ring->r_desc_ring = dma;
usr/src/uts/common/io/atge/atge_l1.c
197
dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_cmb,
usr/src/uts/common/io/atge/atge_l1.c
199
l1->atge_l1_cmb = dma;
usr/src/uts/common/io/atge/atge_l1.c
200
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1.c
211
dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_rr,
usr/src/uts/common/io/atge/atge_l1.c
213
l1->atge_l1_rr = dma;
usr/src/uts/common/io/atge/atge_l1.c
214
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1.c
226
dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_smb,
usr/src/uts/common/io/atge/atge_l1.c
228
l1->atge_l1_smb = dma;
usr/src/uts/common/io/atge/atge_l1.c
229
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1.c
302
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1.c
308
dma = l1->atge_rx_ring->r_desc_ring;
usr/src/uts/common/io/atge/atge_l1.c
309
bzero(dma->addr, L1_RX_RING_SZ);
usr/src/uts/common/io/atge/atge_l1.c
312
rx = (l1_rx_desc_t *)(dma->addr + (i * sizeof (l1_rx_desc_t)));
usr/src/uts/common/io/atge/atge_l1.c
314
ATGE_PUT64(dma, &rx->addr,
usr/src/uts/common/io/atge/atge_l1.c
316
ATGE_PUT32(dma, &rx->len,
usr/src/uts/common/io/atge/atge_l1.c
321
DMA_SYNC(dma, 0, L1_RX_RING_SZ, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1.c
340
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1.c
345
dma = l1->atge_l1_rr;
usr/src/uts/common/io/atge/atge_l1.c
346
bzero(dma->addr, L1_RR_RING_SZ);
usr/src/uts/common/io/atge/atge_l1.c
347
DMA_SYNC(dma, 0, L1_RR_RING_SZ, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1.c
354
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1.c
357
dma = l1->atge_l1_smb;
usr/src/uts/common/io/atge/atge_l1.c
358
bzero(dma->addr, L1_SMB_BLOCK_SZ);
usr/src/uts/common/io/atge/atge_l1.c
359
DMA_SYNC(dma, 0, L1_SMB_BLOCK_SZ, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1.c
366
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1.c
369
dma = l1->atge_l1_cmb;
usr/src/uts/common/io/atge/atge_l1.c
370
bzero(dma->addr, L1_CMB_BLOCK_SZ);
usr/src/uts/common/io/atge/atge_l1.c
371
DMA_SYNC(dma, 0, L1_CMB_BLOCK_SZ, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1.c
453
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1.c
460
dma = l1->atge_l1_smb;
usr/src/uts/common/io/atge/atge_l1.c
461
DMA_SYNC(dma, 0, L1_SMB_BLOCK_SZ, DDI_DMA_SYNC_FORKERNEL);
usr/src/uts/common/io/atge/atge_l1.c
463
smb = (atge_l1_smb_t *)dma->addr;
usr/src/uts/common/io/atge/atge_l1.c
552
DMA_SYNC(dma, 0, L1_SMB_BLOCK_SZ, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1c.c
157
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1c.c
171
dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_tx_desc,
usr/src/uts/common/io/atge/atge_l1c.c
173
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1c.c
178
atgep->atge_tx_ring->r_desc_ring = dma;
usr/src/uts/common/io/atge/atge_l1c.c
199
dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_rx_desc,
usr/src/uts/common/io/atge/atge_l1c.c
201
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1c.c
206
l1c->atge_rx_ring->r_desc_ring = dma;
usr/src/uts/common/io/atge/atge_l1c.c
225
dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_cmb,
usr/src/uts/common/io/atge/atge_l1c.c
227
l1c->atge_l1c_cmb = dma;
usr/src/uts/common/io/atge/atge_l1c.c
228
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1c.c
239
dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_rr,
usr/src/uts/common/io/atge/atge_l1c.c
241
l1c->atge_l1c_rr = dma;
usr/src/uts/common/io/atge/atge_l1c.c
242
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1c.c
254
dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_smb,
usr/src/uts/common/io/atge/atge_l1c.c
256
l1c->atge_l1c_smb = dma;
usr/src/uts/common/io/atge/atge_l1c.c
257
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1c.c
338
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1c.c
344
dma = l1c->atge_rx_ring->r_desc_ring;
usr/src/uts/common/io/atge/atge_l1c.c
345
bzero(dma->addr, L1C_RX_RING_SZ);
usr/src/uts/common/io/atge/atge_l1c.c
348
rx = (l1c_rx_desc_t *)(dma->addr +
usr/src/uts/common/io/atge/atge_l1c.c
351
ATGE_PUT64(dma, &rx->addr,
usr/src/uts/common/io/atge/atge_l1c.c
356
DMA_SYNC(dma, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1c.c
376
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1c.c
381
dma = l1c->atge_l1c_rr;
usr/src/uts/common/io/atge/atge_l1c.c
382
bzero(dma->addr, L1C_RR_RING_SZ);
usr/src/uts/common/io/atge/atge_l1c.c
383
DMA_SYNC(dma, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1c.c
390
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1c.c
393
dma = l1c->atge_l1c_smb;
usr/src/uts/common/io/atge/atge_l1c.c
394
bzero(dma->addr, L1C_SMB_BLOCK_SZ);
usr/src/uts/common/io/atge/atge_l1c.c
395
DMA_SYNC(dma, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1c.c
402
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1c.c
405
dma = l1c->atge_l1c_cmb;
usr/src/uts/common/io/atge/atge_l1c.c
406
bzero(dma->addr, L1C_CMB_BLOCK_SZ);
usr/src/uts/common/io/atge/atge_l1c.c
407
DMA_SYNC(dma, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1c.c
560
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1c.c
567
dma = l1c->atge_l1c_smb;
usr/src/uts/common/io/atge/atge_l1c.c
568
DMA_SYNC(dma, 0, 0, DDI_DMA_SYNC_FORKERNEL);
usr/src/uts/common/io/atge/atge_l1c.c
570
smb = (atge_l1c_smb_t *)dma->addr;
usr/src/uts/common/io/atge/atge_l1c.c
659
DMA_SYNC(dma, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1e.c
110
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1e.c
121
dma = l1e->atge_l1e_rx_page[pages];
usr/src/uts/common/io/atge/atge_l1e.c
122
if (dma != NULL) {
usr/src/uts/common/io/atge/atge_l1e.c
123
(void) ddi_dma_unbind_handle(dma->hdl);
usr/src/uts/common/io/atge/atge_l1e.c
124
ddi_dma_mem_free(&dma->acchdl);
usr/src/uts/common/io/atge/atge_l1e.c
125
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_l1e.c
126
kmem_free(dma, sizeof (atge_dma_t));
usr/src/uts/common/io/atge/atge_l1e.c
137
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1e.c
154
dma = atge_alloc_a_dma_blk(atgep, &atge_l1e_dma_attr_tx_desc,
usr/src/uts/common/io/atge/atge_l1e.c
156
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1e.c
161
atgep->atge_tx_ring->r_desc_ring = dma;
usr/src/uts/common/io/atge/atge_l1e.c
196
dma = atge_alloc_a_dma_blk(atgep, &atge_l1e_dma_attr_rx_desc,
usr/src/uts/common/io/atge/atge_l1e.c
199
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1e.c
204
l1e->atge_l1e_rx_page[pages] = dma;
usr/src/uts/common/io/atge/atge_l1e.c
220
dma = atge_alloc_a_dma_blk(atgep, &atge_l1e_dma_attr_cmb,
usr/src/uts/common/io/atge/atge_l1e.c
222
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_l1e.c
227
l1e->atge_l1e_rx_cmb = dma;
usr/src/uts/common/io/atge/atge_l1e.c
289
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_l1e.c
306
dma = l1e->atge_l1e_rx_page[pages];
usr/src/uts/common/io/atge/atge_l1e.c
307
ASSERT(dma != NULL);
usr/src/uts/common/io/atge/atge_l1e.c
308
bzero(dma->addr, l1e->atge_l1e_pagesize);
usr/src/uts/common/io/atge/atge_l1e.c
309
DMA_SYNC(dma, 0, l1e->atge_l1e_pagesize, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_l1e.c
312
dma = l1e->atge_l1e_rx_cmb;
usr/src/uts/common/io/atge/atge_l1e.c
313
ASSERT(dma != NULL);
usr/src/uts/common/io/atge/atge_l1e.c
314
bzero(dma->addr, L1E_RX_CMB_SZ * L1E_RX_PAGES);
usr/src/uts/common/io/atge/atge_l1e.c
315
DMA_SYNC(dma, 0, L1E_RX_CMB_SZ * L1E_RX_PAGES, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/atge/atge_main.c
1431
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_main.c
1440
dma = atge_buf_alloc(r->r_atge, buflen, f);
usr/src/uts/common/io/atge/atge_main.c
1441
if (dma == NULL) {
usr/src/uts/common/io/atge/atge_main.c
1446
tbl[i] = dma;
usr/src/uts/common/io/atge/atge_main.c
1475
atge_dma_t *dma;
usr/src/uts/common/io/atge/atge_main.c
1477
dma = kmem_zalloc(sizeof (atge_dma_t), KM_SLEEP);
usr/src/uts/common/io/atge/atge_main.c
1480
DDI_DMA_SLEEP, NULL, &dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1488
err = ddi_dma_mem_alloc(dma->hdl,
usr/src/uts/common/io/atge/atge_main.c
1490
&dma->addr, &dma->len, &dma->acchdl);
usr/src/uts/common/io/atge/atge_main.c
1495
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1499
err = ddi_dma_addr_bind_handle(dma->hdl, NULL, dma->addr,
usr/src/uts/common/io/atge/atge_main.c
1500
dma->len, d | DDI_DMA_CONSISTENT, DDI_DMA_SLEEP,
usr/src/uts/common/io/atge/atge_main.c
1501
NULL, &dma->cookie, &dma->count);
usr/src/uts/common/io/atge/atge_main.c
1506
ddi_dma_mem_free(&dma->acchdl);
usr/src/uts/common/io/atge/atge_main.c
1507
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1511
return (dma);
usr/src/uts/common/io/atge/atge_main.c
1513
kmem_free(dma, sizeof (atge_dma_t));
usr/src/uts/common/io/atge/atge_main.c
1518
atge_free_a_dma_blk(atge_dma_t *dma)
usr/src/uts/common/io/atge/atge_main.c
1520
if (dma != NULL) {
usr/src/uts/common/io/atge/atge_main.c
1521
(void) ddi_dma_unbind_handle(dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1522
ddi_dma_mem_free(&dma->acchdl);
usr/src/uts/common/io/atge/atge_main.c
1523
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1524
kmem_free(dma, sizeof (atge_dma_t));
usr/src/uts/common/io/atge/atge_main.c
1531
atge_dma_t *dma = NULL;
usr/src/uts/common/io/atge/atge_main.c
1534
dma = kmem_zalloc(sizeof (atge_dma_t), KM_SLEEP);
usr/src/uts/common/io/atge/atge_main.c
1537
DDI_DMA_SLEEP, NULL, &dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1545
err = ddi_dma_mem_alloc(dma->hdl, len, &atge_buf_attr,
usr/src/uts/common/io/atge/atge_main.c
1546
DDI_DMA_STREAMING, DDI_DMA_SLEEP, NULL, &dma->addr,
usr/src/uts/common/io/atge/atge_main.c
1547
&dma->len, &dma->acchdl);
usr/src/uts/common/io/atge/atge_main.c
1552
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1556
err = ddi_dma_addr_bind_handle(dma->hdl, NULL, dma->addr, dma->len,
usr/src/uts/common/io/atge/atge_main.c
1557
(f | DDI_DMA_CONSISTENT), DDI_DMA_SLEEP, NULL, &dma->cookie,
usr/src/uts/common/io/atge/atge_main.c
1558
&dma->count);
usr/src/uts/common/io/atge/atge_main.c
1563
ddi_dma_mem_free(&dma->acchdl);
usr/src/uts/common/io/atge/atge_main.c
1564
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1571
ASSERT(dma->count == 1);
usr/src/uts/common/io/atge/atge_main.c
1573
return (dma);
usr/src/uts/common/io/atge/atge_main.c
1575
kmem_free(dma, sizeof (atge_dma_t));
usr/src/uts/common/io/atge/atge_main.c
1580
atge_buf_free(atge_dma_t *dma)
usr/src/uts/common/io/atge/atge_main.c
1582
ASSERT(dma != NULL);
usr/src/uts/common/io/atge/atge_main.c
1584
(void) ddi_dma_unbind_handle(dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1585
ddi_dma_mem_free(&dma->acchdl);
usr/src/uts/common/io/atge/atge_main.c
1586
ddi_dma_free_handle(&dma->hdl);
usr/src/uts/common/io/atge/atge_main.c
1587
kmem_free(dma, sizeof (atge_dma_t));
usr/src/uts/common/io/blkdev/blkdev.c
2298
bd_alloc_handle(void *private, bd_ops_t *ops, ddi_dma_attr_t *dma, int kmflag)
usr/src/uts/common/io/blkdev/blkdev.c
2333
hdl->h_dma = dma;
usr/src/uts/common/io/bnx/570x/common/include/5706_reg.h
13569
dma_reg_t dma;
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_hw_reset.c
2041
REG_WR(pdev, dma.dma_config, val);
usr/src/uts/common/io/ena/ena.c
781
ena_dma_buf_t *dma = &aq->ea_sq.eas_dma;
usr/src/uts/common/io/ena/ena.c
794
if (!ena_dma_alloc(ena, dma, &conf, size)) {
usr/src/uts/common/io/ena/ena.c
799
ENA_DMA_VERIFY_ADDR(ena, dma->edb_cookie->dmac_laddress);
usr/src/uts/common/io/ena/ena.c
800
aq->ea_sq.eas_entries = (void *)dma->edb_va;
usr/src/uts/common/io/ena/ena.c
802
ena_dma_bzero(dma);
usr/src/uts/common/io/ena/ena.c
809
addr_low = (uint32_t)(dma->edb_cookie->dmac_laddress);
usr/src/uts/common/io/ena/ena.c
810
addr_high = (uint32_t)(dma->edb_cookie->dmac_laddress >> 32);
usr/src/uts/common/io/ena/ena.c
836
ena_dma_buf_t *dma = &aq->ea_cq.eac_dma;
usr/src/uts/common/io/ena/ena.c
849
if (!ena_dma_alloc(ena, dma, &conf, size)) {
usr/src/uts/common/io/ena/ena.c
854
ENA_DMA_VERIFY_ADDR(ena, dma->edb_cookie->dmac_laddress);
usr/src/uts/common/io/ena/ena.c
855
aq->ea_cq.eac_entries = (void *)dma->edb_va;
usr/src/uts/common/io/ena/ena.c
857
ena_dma_bzero(dma);
usr/src/uts/common/io/ena/ena.c
862
addr_low = (uint32_t)(dma->edb_cookie->dmac_laddress);
usr/src/uts/common/io/ena/ena.c
863
addr_high = (uint32_t)(dma->edb_cookie->dmac_laddress >> 32);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
779
ismt_dma_free(ismt_dma_t *dma)
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
782
if (dma->id_size != 0) {
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
783
(void) ddi_dma_unbind_handle(dma->id_hdl);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
784
dma->id_size = 0;
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
787
if (dma->id_acc != NULL) {
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
788
ddi_dma_mem_free(&dma->id_acc);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
789
dma->id_acc = NULL;
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
790
dma->id_va = NULL;
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
791
dma->id_alloc_len = 0;
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
794
if (dma->id_hdl != NULL) {
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
795
ddi_dma_free_handle(&dma->id_hdl);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
796
dma->id_hdl = NULL;
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
799
ASSERT0(dma->id_size);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
800
ASSERT0(dma->id_alloc_len);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
801
ASSERT3P(dma->id_acc, ==, NULL);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
802
ASSERT3P(dma->id_hdl, ==, NULL);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
803
ASSERT3P(dma->id_va, ==, NULL);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
807
ismt_dma_alloc(ismt_t *ismt, ismt_dma_t *dma, size_t size)
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
813
bzero(dma, sizeof (ismt_dma_t));
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
815
DDI_DMA_SLEEP, NULL, &dma->id_hdl);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
827
ret = ddi_dma_mem_alloc(dma->id_hdl, size, &acc, flags,
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
828
DDI_DMA_SLEEP, NULL, &dma->id_va, &dma->id_alloc_len,
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
829
&dma->id_acc);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
833
ismt_dma_free(dma);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
837
bzero(dma->id_va, dma->id_alloc_len);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
838
ret = ddi_dma_addr_bind_handle(dma->id_hdl, NULL, dma->id_va,
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
839
dma->id_alloc_len, DDI_DMA_RDWR | flags, DDI_DMA_DONTWAIT, NULL,
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
843
"DMA memory: %d", dma->id_alloc_len, ret);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
844
ismt_dma_free(dma);
usr/src/uts/common/io/i2c/ctrl/ismt/ismt.c
848
dma->id_size = size;
usr/src/uts/common/io/ib/adapters/hermon/hermon_cmd.c
1593
hermon_map_cmd_post(hermon_state_t *state, hermon_dma_info_t *dma,
usr/src/uts/common/io/ib/adapters/hermon/hermon_cmd.c
1634
vaddr = dma->icmaddr;
usr/src/uts/common/io/ib/adapters/hermon/hermon_cmd.c
1733
ddi_dma_nextcookie(dma->dma_hdl, &cookie);
usr/src/uts/common/io/ib/clients/rdsv3/ib_rdma.c
63
uint64_t *dma;
usr/src/uts/common/io/iwn/if_iwn.c
1742
iwn_dma_contig_alloc(struct iwn_softc *sc, struct iwn_dma_info *dma,
usr/src/uts/common/io/iwn/if_iwn.c
1763
&dma->dma_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1770
error = ddi_dma_mem_alloc(dma->dma_hdl, size, acc_attr,
usr/src/uts/common/io/iwn/if_iwn.c
1772
&dma->vaddr, &dma->length, &dma->acc_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1779
bzero(dma->vaddr, dma->length);
usr/src/uts/common/io/iwn/if_iwn.c
1781
error = ddi_dma_addr_bind_handle(dma->dma_hdl, NULL, dma->vaddr,
usr/src/uts/common/io/iwn/if_iwn.c
1782
dma->length, flags, DDI_DMA_SLEEP, NULL, &dma->cookie,
usr/src/uts/common/io/iwn/if_iwn.c
1783
&dma->ncookies);
usr/src/uts/common/io/iwn/if_iwn.c
1785
dma->ncookies = 0;
usr/src/uts/common/io/iwn/if_iwn.c
1791
dma->size = size;
usr/src/uts/common/io/iwn/if_iwn.c
1792
dma->paddr = dma->cookie.dmac_laddress;
usr/src/uts/common/io/iwn/if_iwn.c
1795
*kvap = (void *)dma->vaddr;
usr/src/uts/common/io/iwn/if_iwn.c
1800
ddi_dma_mem_free(&dma->acc_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1802
ddi_dma_free_handle(&dma->dma_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1804
bzero(dma, sizeof (struct iwn_dma_info));
usr/src/uts/common/io/iwn/if_iwn.c
1809
iwn_dma_contig_free(struct iwn_dma_info *dma)
usr/src/uts/common/io/iwn/if_iwn.c
1811
if (dma->dma_hdl != NULL) {
usr/src/uts/common/io/iwn/if_iwn.c
1812
if (dma->ncookies)
usr/src/uts/common/io/iwn/if_iwn.c
1813
(void) ddi_dma_unbind_handle(dma->dma_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1814
ddi_dma_free_handle(&dma->dma_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1817
if (dma->acc_hdl != NULL)
usr/src/uts/common/io/iwn/if_iwn.c
1818
ddi_dma_mem_free(&dma->acc_hdl);
usr/src/uts/common/io/iwn/if_iwn.c
1820
bzero(dma, sizeof (struct iwn_dma_info));
usr/src/uts/common/io/iwn/if_iwn.c
6686
struct iwn_dma_info *dma = &sc->fw_dma;
usr/src/uts/common/io/iwn/if_iwn.c
6693
memcpy(dma->vaddr, fw->init.data, fw->init.datasz);
usr/src/uts/common/io/iwn/if_iwn.c
6694
memcpy((char *)dma->vaddr + IWN4965_FW_DATA_MAXSZ,
usr/src/uts/common/io/iwn/if_iwn.c
6696
(void) ddi_dma_sync(dma->dma_hdl, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/iwn/if_iwn.c
6701
iwn_prph_write(sc, IWN_BSM_DRAM_DATA_ADDR, dma->paddr >> 4);
usr/src/uts/common/io/iwn/if_iwn.c
6704
(dma->paddr + IWN4965_FW_DATA_MAXSZ) >> 4);
usr/src/uts/common/io/iwn/if_iwn.c
6734
memcpy(dma->vaddr, fw->main.data, fw->main.datasz);
usr/src/uts/common/io/iwn/if_iwn.c
6735
memcpy((char *)dma->vaddr + IWN4965_FW_DATA_MAXSZ,
usr/src/uts/common/io/iwn/if_iwn.c
6737
(void) ddi_dma_sync(dma->dma_hdl, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/iwn/if_iwn.c
6742
iwn_prph_write(sc, IWN_BSM_DRAM_DATA_ADDR, dma->paddr >> 4);
usr/src/uts/common/io/iwn/if_iwn.c
6745
(dma->paddr + IWN4965_FW_DATA_MAXSZ) >> 4);
usr/src/uts/common/io/iwn/if_iwn.c
6757
struct iwn_dma_info *dma = &sc->fw_dma;
usr/src/uts/common/io/iwn/if_iwn.c
6764
memcpy(dma->vaddr, section, size);
usr/src/uts/common/io/iwn/if_iwn.c
6765
(void) ddi_dma_sync(dma->dma_hdl, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/iwn/if_iwn.c
6775
IWN_LOADDR(dma->paddr));
usr/src/uts/common/io/iwn/if_iwn.c
6777
IWN_HIADDR(dma->paddr) << 28 | size);
usr/src/uts/common/io/mlxcx/mlxcx.h
212
#define MLXCX_DMA_SYNC(dma, flag) VERIFY0(ddi_dma_sync( \
usr/src/uts/common/io/mlxcx/mlxcx.h
213
(dma).mxdb_dma_handle, 0, 0, \
usr/src/uts/common/io/mlxcx/mlxcx.h
216
#define MLXCX_DMA_SYNC(dma, flag) (void) ddi_dma_sync( \
usr/src/uts/common/io/mlxcx/mlxcx.h
217
(dma).mxdb_dma_handle, 0, 0, \
usr/src/uts/common/io/mwl/mwl.c
637
mwl_hal_sethwdma(struct mwl_softc *sc, const struct mwl_hal_txrxdma *dma)
usr/src/uts/common/io/mwl/mwl.c
643
pCmd->WcbBase[0] = LE_32(dma->wcbBase[0]);
usr/src/uts/common/io/mwl/mwl.c
644
pCmd->WcbBase[1] = LE_32(dma->wcbBase[1]);
usr/src/uts/common/io/mwl/mwl.c
645
pCmd->WcbBase[2] = LE_32(dma->wcbBase[2]);
usr/src/uts/common/io/mwl/mwl.c
646
pCmd->WcbBase[3] = LE_32(dma->wcbBase[3]);
usr/src/uts/common/io/mwl/mwl.c
647
pCmd->TxWcbNumPerQueue = LE_32(dma->maxNumTxWcb);
usr/src/uts/common/io/mwl/mwl.c
648
pCmd->NumTxQueues = LE_32(dma->maxNumWCB);
usr/src/uts/common/io/mwl/mwl.c
650
pCmd->RxPdWrPtr = LE_32(dma->rxDescRead);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
1582
cmd.data0 = ntohl(ss->rx_done.dma.low);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
1583
cmd.data1 = ntohl(ss->rx_done.dma.high);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
210
uint_t alloc_flags, int bind_flags, struct myri10ge_dma_stuff *dma,
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
220
NULL, &dma->handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
228
err = ddi_dma_mem_alloc(dma->handle, len, accattr, alloc_flags,
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
230
&dma->acc_handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
238
err = ddi_dma_addr_bind_handle(dma->handle, NULL, kaddr, len,
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
254
dma->low = htonl(MYRI10GE_LOWPART_TO_U32(cookie.dmac_laddress));
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
255
dma->high = htonl(MYRI10GE_HIGHPART_TO_U32(cookie.dmac_laddress));
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
259
(void) ddi_dma_unbind_handle(dma->handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
262
ddi_dma_mem_free(&dma->acc_handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
265
ddi_dma_free_handle(&dma->handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
275
bind_flags, (void*) dma);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
282
myri10ge_dma_free(struct myri10ge_dma_stuff *dma)
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
284
(void) ddi_dma_unbind_handle(dma->handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
285
ddi_dma_mem_free(&dma->acc_handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
286
ddi_dma_free_handle(&dma->handle);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
2968
req->addr_low = cp->dma.low;
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
2969
req->addr_high = cp->dma.high;
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
2975
(void) ddi_dma_sync(cp->dma.handle, 0, len, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
3148
low = ntohl(cp->dma.low);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
3180
low = ntohl(cp->dma.low);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
3201
low = ntohl(cp->dma.low);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
3217
high_swapped = cp->dma.high;
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
3218
low = ntohl(cp->dma.low);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
460
rx->shadow[idx].addr_low = j->dma.low;
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
461
rx->shadow[idx].addr_high = j->dma.high;
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
4614
struct myri10ge_dma_stuff dma;
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
4629
DDI_DMA_WRITE|DDI_DMA_STREAMING, &dma, 0, DDI_DMA_DONTWAIT);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
4632
myri10ge_dma_free(&dma);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
5547
myri10ge_dma_free(&ss->rx_done.dma);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
5601
&ss->rx_done.dma, 1, DDI_DMA_DONTWAIT);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
603
j->dma.low =
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
605
j->dma.high =
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
733
dma_low = ntohl(j->dma.low);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
734
dma_high = ntohl(j->dma.high);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
905
myri10ge_dma_free(&tx->cp[idx].dma);
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
940
DDI_DMA_WRITE|DDI_DMA_STREAMING, &ss->tx.cp[h].dma, 1,
usr/src/uts/common/io/myri10ge/drv/myri10ge.c
960
myri10ge_dma_free(&ss->tx.cp[h].dma);
usr/src/uts/common/io/myri10ge/drv/myri10ge_var.h
121
struct myri10ge_dma_stuff dma;
usr/src/uts/common/io/myri10ge/drv/myri10ge_var.h
151
mcp_dma_addr_t dma; /* Kept in network byte order */
usr/src/uts/common/io/myri10ge/drv/myri10ge_var.h
307
struct myri10ge_dma_stuff dma;
usr/src/uts/common/io/myri10ge/drv/myri10ge_var.h
496
uint_t alloc_flags, int bind_flags, struct myri10ge_dma_stuff *dma,
usr/src/uts/common/io/myri10ge/drv/myri10ge_var.h
498
void myri10ge_dma_free(struct myri10ge_dma_stuff *dma);
usr/src/uts/common/io/nvme/nvme.c
1467
nvme_check_dma_hdl(nvme_dma_t *dma)
usr/src/uts/common/io/nvme/nvme.c
1471
if (dma == NULL)
usr/src/uts/common/io/nvme/nvme.c
1474
ddi_fm_dma_err_get(dma->nd_dmah, &error, DDI_FME_VERSION);
usr/src/uts/common/io/nvme/nvme.c
1483
nvme_free_dma_common(nvme_dma_t *dma)
usr/src/uts/common/io/nvme/nvme.c
1485
if (dma->nd_dmah != NULL)
usr/src/uts/common/io/nvme/nvme.c
1486
(void) ddi_dma_unbind_handle(dma->nd_dmah);
usr/src/uts/common/io/nvme/nvme.c
1487
if (dma->nd_acch != NULL)
usr/src/uts/common/io/nvme/nvme.c
1488
ddi_dma_mem_free(&dma->nd_acch);
usr/src/uts/common/io/nvme/nvme.c
1489
if (dma->nd_dmah != NULL)
usr/src/uts/common/io/nvme/nvme.c
1490
ddi_dma_free_handle(&dma->nd_dmah);
usr/src/uts/common/io/nvme/nvme.c
1494
nvme_free_dma(nvme_dma_t *dma)
usr/src/uts/common/io/nvme/nvme.c
1496
nvme_free_dma_common(dma);
usr/src/uts/common/io/nvme/nvme.c
1497
kmem_free(dma, sizeof (*dma));
usr/src/uts/common/io/nvme/nvme.c
1503
nvme_dma_t *dma = (nvme_dma_t *)buf;
usr/src/uts/common/io/nvme/nvme.c
1505
nvme_free_dma_common(dma);
usr/src/uts/common/io/nvme/nvme.c
1509
nvme_alloc_dma_common(nvme_t *nvme, nvme_dma_t *dma,
usr/src/uts/common/io/nvme/nvme.c
1513
&dma->nd_dmah) != DDI_SUCCESS) {
usr/src/uts/common/io/nvme/nvme.c
1528
(void) ddi_dma_mem_alloc(dma->nd_dmah, len, &nvme->n_reg_acc_attr,
usr/src/uts/common/io/nvme/nvme.c
1529
DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, &dma->nd_memp,
usr/src/uts/common/io/nvme/nvme.c
1530
&dma->nd_len, &dma->nd_acch);
usr/src/uts/common/io/nvme/nvme.c
1532
if (ddi_dma_addr_bind_handle(dma->nd_dmah, NULL, dma->nd_memp,
usr/src/uts/common/io/nvme/nvme.c
1533
dma->nd_len, flags | DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL,
usr/src/uts/common/io/nvme/nvme.c
1534
&dma->nd_cookie, &dma->nd_ncookie) != DDI_DMA_MAPPED) {
usr/src/uts/common/io/nvme/nvme.c
1538
nvme_free_dma_common(dma);
usr/src/uts/common/io/nvme/nvme.c
1549
nvme_dma_t *dma = kmem_zalloc(sizeof (nvme_dma_t), KM_SLEEP);
usr/src/uts/common/io/nvme/nvme.c
1551
if (nvme_alloc_dma_common(nvme, dma, len, flags, dma_attr) !=
usr/src/uts/common/io/nvme/nvme.c
1554
kmem_free(dma, sizeof (nvme_dma_t));
usr/src/uts/common/io/nvme/nvme.c
1558
bzero(dma->nd_memp, dma->nd_len);
usr/src/uts/common/io/nvme/nvme.c
1560
*ret = dma;
usr/src/uts/common/io/nvme/nvme.c
1567
nvme_dma_t *dma = (nvme_dma_t *)buf;
usr/src/uts/common/io/nvme/nvme.c
1570
dma->nd_dmah = NULL;
usr/src/uts/common/io/nvme/nvme.c
1571
dma->nd_acch = NULL;
usr/src/uts/common/io/nvme/nvme.c
1573
if (nvme_alloc_dma_common(nvme, dma, nvme->n_pagesize,
usr/src/uts/common/io/nvme/nvme.c
1578
ASSERT(dma->nd_ncookie == 1);
usr/src/uts/common/io/nvme/nvme.c
1580
dma->nd_cached = B_TRUE;
usr/src/uts/common/io/nvme/nvme.c
1587
uint_t flags, nvme_dma_t **dma)
usr/src/uts/common/io/nvme/nvme.c
1594
if (nvme_zalloc_dma(nvme, len, flags, &q_dma_attr, dma)
usr/src/uts/common/io/nvme/nvme.c
1601
if ((*dma)->nd_ncookie != 1) {
usr/src/uts/common/io/nvme/nvme.c
1610
if (*dma) {
usr/src/uts/common/io/nvme/nvme.c
1611
nvme_free_dma(*dma);
usr/src/uts/common/io/nvme/nvme.c
1612
*dma = NULL;
usr/src/uts/common/io/nvme/nvme.c
5734
nvme_fill_prp(nvme_cmd_t *cmd, ddi_dma_handle_t dma)
usr/src/uts/common/io/nvme/nvme.c
5741
uint_t ncookies = ddi_dma_ncookies(dma);
usr/src/uts/common/io/nvme/nvme.c
5746
if ((cookie = ddi_dma_cookie_get(dma, 0)) == NULL)
usr/src/uts/common/io/nvme/nvme.c
5754
if ((cookie = ddi_dma_cookie_get(dma, 1)) == NULL)
usr/src/uts/common/io/nvme/nvme.c
5788
if ((cookie = ddi_dma_cookie_get(dma, idx)) == NULL)
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1532
lmrc_dma_t dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1535
ret = lmrc_dma_alloc(lmrc, lmrc->l_dma_attr, &dma,
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1544
IOCInitMsg = dma.ld_buf;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1570
hdr->mh_data_xfer_len = lmrc_dma_get_size(&dma);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1572
lmrc_dma_set_addr64(&dma, &init->mi_queue_info_new_phys_addr);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1582
(void) ddi_dma_sync(dma.ld_hdl, 0, dma.ld_len, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
1599
lmrc_dma_free(&dma);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
2043
lmrc_dma_t *dma = &mfi->mfi_data_dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
2053
ret = lmrc_dma_alloc(lmrc, lmrc->l_dma_attr, dma, xferlen,
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
2062
hdr->mh_data_xfer_len = lmrc_dma_get_size(dma);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
2064
dcmd->md_sgl.ms64_length = lmrc_dma_get_size(dma);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
2065
lmrc_dma_set_addr64(dma, &dcmd->md_sgl.ms64_phys_addr);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
664
lmrc_dma_t *dma = &mfi->mfi_frame_dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
671
(void) ddi_dma_sync(dma->ld_hdl, 0, dma->ld_len,
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
710
lmrc_dma_t *dma = &mfi->mfi_frame_dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc.c
719
(void) ddi_dma_sync(dma->ld_hdl, 0, dma->ld_len,
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_phys.c
141
lmrc_dma_t *dma = &mfi->mfi_data_dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_phys.c
142
mfi_pd_map_t *pm = dma->ld_buf;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_phys.c
166
VERIFY3U(pdmap_sz, ==, dma->ld_len);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_raid.c
163
lmrc_dma_t *dma = &mfi->mfi_data_dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_raid.c
164
mfi_ld_ref_t *ld_sync = dma->ld_buf;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_raid.c
168
bzero(dma->ld_buf, dma->ld_len);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_raid.c
197
lmrc_dma_t *dma = &mfi->mfi_data_dma;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_raid.c
198
lmrc_fw_raid_map_t *rm = dma->ld_buf;
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_raid.c
219
VERIFY3U(lmrc->l_raidmap->rm_raidmap_sz, ==, dma->ld_len);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1116
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1120
if ((dma = pqi_alloc_single(s, len)) == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1124
sg->sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1125
sg->sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1131
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORCPU);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1132
(void) memcpy(buf, dma->alloc_memory, len);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1135
pqi_free_single(s, dma);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1533
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1538
if ((dma = pqi_alloc_single(s, sizeof (*buf))) == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1549
rqst.rp_sglist[0].sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1550
rqst.rp_sglist[0].sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1556
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORCPU);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1557
(void) memcpy(buf, dma->alloc_memory, sizeof (*buf));
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1560
pqi_free_single(s, dma);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1568
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1571
if ((dma = pqi_alloc_single(s, sizeof (*ident))) == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1578
rqst.rp_sglist[0].sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1579
rqst.rp_sglist[0].sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1585
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORCPU);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1586
(void) memcpy(ident, dma->alloc_memory, sizeof (*ident));
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1589
pqi_free_single(s, dma);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1596
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1600
if ((dma = pqi_alloc_single(s, len)) == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1606
(void) memcpy(dma->alloc_memory, buf, dma->len_to_alloc);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1607
rqst.rp_sglist[0].sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1608
rqst.rp_sglist[0].sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1613
pqi_free_single(s, dma);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1620
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1624
if ((dma = pqi_alloc_single(s, len)) == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1630
rqst.rp_sglist[0].sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1631
rqst.rp_sglist[0].sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1637
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORCPU);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1638
(void) memcpy(data, dma->alloc_memory, len);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1642
pqi_free_single(s, dma);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
457
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
470
if ((dma = pqi_alloc_single(s, sizeof (*cap))) == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
474
sg->sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
475
sg->sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
479
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORCPU);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
480
cap = (pqi_device_capability_t *)dma->alloc_memory;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
496
pqi_free_single(s, dma);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
859
pqi_dma_overhead_t *dma;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
864
dma = pqi_alloc_single(s, PQI_REPORT_EVENT_CONFIG_BUFFER_LENGTH);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
865
if (dma == NULL)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
875
sg->sg_addr = dma->dma_addr;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
876
sg->sg_len = dma->len_to_alloc;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
882
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORCPU);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
883
ec = (pqi_event_config_t *)dma->alloc_memory;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
898
(void) ddi_dma_sync(dma->handle, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
903
pqi_free_single(s, dma);
usr/src/uts/common/io/sdcard/impl/sda_host.c
55
sda_host_alloc(dev_info_t *dip, int nslot, sda_ops_t *ops, ddi_dma_attr_t *dma)
usr/src/uts/common/io/sdcard/impl/sda_host.c
66
h->h_dma = dma;
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
216
xhci_ring_trb_tail_valid(xhci_ring_t *xrp, uint64_t dma)
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
221
return (dma == tail);
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
229
xhci_ring_trb_valid_range(xhci_ring_t *xrp, uint64_t dma, uint_t range)
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
238
if (taddr == dma)
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
407
xhci_ring_trb_consumed(xhci_ring_t *xrp, uint64_t dma)
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
412
if (dma < pa || dma >= high ||
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
413
dma % sizeof (xhci_trb_t) != 0)
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
416
dma -= pa;
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
417
dma /= sizeof (xhci_trb_t);
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
419
VERIFY(dma < xrp->xr_ntrb);
usr/src/uts/common/io/usb/hcd/xhci/xhci_ring.c
421
xrp->xr_tail = dma + 1;
usr/src/uts/common/io/vioblk/vioblk.c
323
vioblk_internal(vioblk_t *vib, int type, virtio_dma_t *dma,
usr/src/uts/common/io/vioblk/vioblk.c
342
if (dma != NULL) {
usr/src/uts/common/io/vioblk/vioblk.c
344
for (uint_t n = 0; n < virtio_dma_ncookies(dma); n++) {
usr/src/uts/common/io/vioblk/vioblk.c
346
virtio_dma_cookie_pa(dma, n),
usr/src/uts/common/io/vioblk/vioblk.c
347
virtio_dma_cookie_size(dma, n), dir) !=
usr/src/uts/common/io/vioblk/vioblk.c
363
virtio_dma_t *dma = NULL;
usr/src/uts/common/io/vioblk/vioblk.c
366
dma = virtio_dma_alloc(vib->vib_virtio,
usr/src/uts/common/io/vioblk/vioblk.c
369
if (dma == NULL)
usr/src/uts/common/io/vioblk/vioblk.c
372
wzp = virtio_dma_va(dma, 0);
usr/src/uts/common/io/vioblk/vioblk.c
387
virtio_dma_cookie_pa(dma, 0),
usr/src/uts/common/io/vioblk/vioblk.c
388
virtio_dma_cookie_size(dma, 0),
usr/src/uts/common/io/vioblk/vioblk.c
390
virtio_dma_free(dma);
usr/src/uts/common/io/vioblk/vioblk.c
585
virtio_dma_t *dma;
usr/src/uts/common/io/vioblk/vioblk.c
588
if ((dma = virtio_dma_alloc(vib->vib_virtio, VIRTIO_BLK_ID_BYTES,
usr/src/uts/common/io/vioblk/vioblk.c
595
if ((r = vioblk_internal(vib, VIRTIO_BLK_T_GET_ID, dma, 0,
usr/src/uts/common/io/vioblk/vioblk.c
597
const char *b = virtio_dma_va(dma, 0);
usr/src/uts/common/io/vioblk/vioblk.c
603
bcopy(virtio_dma_va(dma, 0), vib->vib_rawid,
usr/src/uts/common/io/vioblk/vioblk.c
630
virtio_dma_free(dma);
usr/src/uts/common/sys/1394/adapters/hci1394_ixl.h
136
hci1394_xfer_ctl_dma_t dma[1]; /* addrs of descriptor blocks, cnt of */
usr/src/uts/common/sys/1394/adapters/hci1394_ixl.h
278
int hci1394_ixl_check_status(hci1394_xfer_ctl_dma_t *dma, uint16_t ixlopcode,
usr/src/uts/common/sys/nxge/nxge_impl.h
667
uint16_t dma;
usr/src/uts/common/sys/usb/hcd/xhci/xhci.h
111
#define XHCI_DMA_SYNC(dma, flag) VERIFY0(ddi_dma_sync( \
usr/src/uts/common/sys/usb/hcd/xhci/xhci.h
112
(dma).xdb_dma_handle, 0, 0, \
usr/src/uts/common/sys/usb/hcd/xhci/xhci.h
115
#define XHCI_DMA_SYNC(dma, flag) ((void) ddi_dma_sync( \
usr/src/uts/common/sys/usb/hcd/xhci/xhci.h
116
(dma).xdb_dma_handle, 0, 0, \
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
331
acpidev_resource_insert_dma(acpidev_resource_handle_t rhdl, int dma)
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
340
rhdl->acpidev_dmap[rhdl->acpidev_dma_count] = dma;
usr/src/uts/i86pc/io/isa.c
1151
int dma[] = {0x2};
usr/src/uts/i86pc/io/isa.c
1168
"dma-channels", (int *)dma, (int)(sizeof (dma) / sizeof (int)));
usr/src/uts/i86pc/io/rootnex.c
1708
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
1736
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
1737
dma->dp_prealloc_buffer = (uchar_t *)(((uintptr_t)dma +
usr/src/uts/i86pc/io/rootnex.c
1744
dma->dp_dip = rdip;
usr/src/uts/i86pc/io/rootnex.c
1745
dma->dp_sglinfo.si_flags = attr->dma_attr_flags;
usr/src/uts/i86pc/io/rootnex.c
1746
dma->dp_sglinfo.si_min_addr = attr->dma_attr_addr_lo;
usr/src/uts/i86pc/io/rootnex.c
1756
dma->dp_sglinfo.si_max_addr = attr->dma_attr_seg;
usr/src/uts/i86pc/io/rootnex.c
1757
dma->dp_sglinfo.si_flags &= ~_DDI_DMA_BOUNCE_ON_SEG;
usr/src/uts/i86pc/io/rootnex.c
1759
dma->dp_sglinfo.si_max_addr = attr->dma_attr_addr_hi;
usr/src/uts/i86pc/io/rootnex.c
1766
if (attr->dma_attr_seg >= dma->dp_sglinfo.si_max_addr)
usr/src/uts/i86pc/io/rootnex.c
1767
dma->dp_sglinfo.si_cancross = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
1769
dma->dp_sglinfo.si_cancross = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
1772
mutex_init(&dma->dp_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/i86pc/io/rootnex.c
1800
dma->dp_granularity_power_2 = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
1802
dma->dp_granularity_power_2 = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
1812
if (dma->dp_granularity_power_2) {
usr/src/uts/i86pc/io/rootnex.c
1813
dma->dp_maxxfer = attr->dma_attr_maxxfer -
usr/src/uts/i86pc/io/rootnex.c
1817
dma->dp_maxxfer = attr->dma_attr_maxxfer -
usr/src/uts/i86pc/io/rootnex.c
1821
dma->dp_maxxfer = attr->dma_attr_maxxfer;
usr/src/uts/i86pc/io/rootnex.c
1824
maxsegmentsize_ll = MIN(seg, dma->dp_maxxfer);
usr/src/uts/i86pc/io/rootnex.c
1831
dma->dp_sglinfo.si_max_cookie_size = maxsegmentsize;
usr/src/uts/i86pc/io/rootnex.c
1832
dma->dp_sglinfo.si_segmask = attr->dma_attr_seg;
usr/src/uts/i86pc/io/rootnex.c
1906
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
1910
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
1913
ASSERT(!dma->dp_inuse);
usr/src/uts/i86pc/io/rootnex.c
1915
mutex_destroy(&dma->dp_mutex);
usr/src/uts/i86pc/io/rootnex.c
1962
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
1968
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
1969
dmao = &dma->dp_dma;
usr/src/uts/i86pc/io/rootnex.c
1970
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
1975
dma->dp_sleep_flags = kmflag = KM_SLEEP;
usr/src/uts/i86pc/io/rootnex.c
1977
dma->dp_sleep_flags = kmflag = KM_NOSLEEP;
usr/src/uts/i86pc/io/rootnex.c
1992
e = mutex_tryenter(&dma->dp_mutex);
usr/src/uts/i86pc/io/rootnex.c
1997
if (dma->dp_inuse) {
usr/src/uts/i86pc/io/rootnex.c
1998
mutex_exit(&dma->dp_mutex);
usr/src/uts/i86pc/io/rootnex.c
2002
dma->dp_inuse = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
2003
mutex_exit(&dma->dp_mutex);
usr/src/uts/i86pc/io/rootnex.c
2007
dma->dp_dma = dmareq->dmar_object;
usr/src/uts/i86pc/io/rootnex.c
2011
dmao = &dma->dp_dvma;
usr/src/uts/i86pc/io/rootnex.c
2018
dma->dp_dvma_used = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
2024
dma->dp_dvma_used = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
2025
dma->dp_need_to_free_cookie = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2028
cookie = hp->dmai_cookie = dma->dp_cookies =
usr/src/uts/i86pc/io/rootnex.c
2029
(ddi_dma_cookie_t *)dma->dp_prealloc_buffer;
usr/src/uts/i86pc/io/rootnex.c
2051
sinfo->si_max_pages = mmu_btopr(dma->dp_dma.dmao_size) + 1;
usr/src/uts/i86pc/io/rootnex.c
2053
if (dma->dp_dvma_used) {
usr/src/uts/i86pc/io/rootnex.c
2066
ncookies = (dma->dp_dma.dmao_size / sinfo->si_max_cookie_size)
usr/src/uts/i86pc/io/rootnex.c
2070
(dma->dp_dma.dmao_size / attr->dma_attr_seg) + 1;
usr/src/uts/i86pc/io/rootnex.c
2082
dma->dp_cookies = (ddi_dma_cookie_t *)dma->dp_prealloc_buffer;
usr/src/uts/i86pc/io/rootnex.c
2083
dma->dp_need_to_free_cookie = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2101
dma->dp_cookie_size = sinfo->si_max_pages *
usr/src/uts/i86pc/io/rootnex.c
2103
dma->dp_cookies = kmem_alloc(dma->dp_cookie_size, kmflag);
usr/src/uts/i86pc/io/rootnex.c
2104
if (dma->dp_cookies == NULL) {
usr/src/uts/i86pc/io/rootnex.c
2109
dma->dp_need_to_free_cookie = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
2113
hp->dmai_cookie = dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2122
if (dma->dp_dvma_used)
usr/src/uts/i86pc/io/rootnex.c
2123
rootnex_dvma_get_sgl(dmao, dma->dp_cookies, &dma->dp_sglinfo);
usr/src/uts/i86pc/io/rootnex.c
2125
rootnex_get_sgl(dmao, dma->dp_cookies, &dma->dp_sglinfo);
usr/src/uts/i86pc/io/rootnex.c
2148
(dmao->dmao_size <= dma->dp_maxxfer)) {
usr/src/uts/i86pc/io/rootnex.c
2165
*cookiep = dma->dp_cookies[0];
usr/src/uts/i86pc/io/rootnex.c
2193
if (dma->dp_dvma_used) {
usr/src/uts/i86pc/io/rootnex.c
2195
&dma->dp_dvma);
usr/src/uts/i86pc/io/rootnex.c
2199
e = rootnex_bind_slowpath(hp, dmareq, dma, attr, &dma->dp_dma,
usr/src/uts/i86pc/io/rootnex.c
2205
if (dma->dp_need_to_free_cookie) {
usr/src/uts/i86pc/io/rootnex.c
2206
kmem_free(dma->dp_cookies, dma->dp_cookie_size);
usr/src/uts/i86pc/io/rootnex.c
2221
if ((dma->dp_window[dma->dp_current_win].wd_dosync) &&
usr/src/uts/i86pc/io/rootnex.c
2239
*ccountp = dma->dp_window[dma->dp_current_win].wd_cookie_cnt;
usr/src/uts/i86pc/io/rootnex.c
2240
ASSERT(hp->dmai_nwin <= dma->dp_max_win);
usr/src/uts/i86pc/io/rootnex.c
2242
*cookiep = dma->dp_cookies[0];
usr/src/uts/i86pc/io/rootnex.c
2289
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
2293
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2297
e = rootnex_verify_buffer(dma);
usr/src/uts/i86pc/io/rootnex.c
2305
if (dma->dp_window && dma->dp_window[dma->dp_current_win].wd_dosync &&
usr/src/uts/i86pc/io/rootnex.c
2315
rootnex_teardown_copybuf(dma);
usr/src/uts/i86pc/io/rootnex.c
2316
rootnex_teardown_windows(dma);
usr/src/uts/i86pc/io/rootnex.c
2319
if (IOMMU_USED(rdip) && dma->dp_dvma_used)
usr/src/uts/i86pc/io/rootnex.c
2321
&dma->dp_dvma);
usr/src/uts/i86pc/io/rootnex.c
2328
if (dma->dp_need_to_free_cookie) {
usr/src/uts/i86pc/io/rootnex.c
2329
kmem_free(dma->dp_cookies, dma->dp_cookie_size);
usr/src/uts/i86pc/io/rootnex.c
2376
rootnex_dma_t *dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2378
if (dma->dp_sleep_flags != KM_SLEEP &&
usr/src/uts/i86pc/io/rootnex.c
2379
dma->dp_sleep_flags != KM_NOSLEEP)
usr/src/uts/i86pc/io/rootnex.c
2381
return (dma->dp_sleep_flags);
usr/src/uts/i86pc/io/rootnex.c
2388
rootnex_dma_t *dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2391
if (dma->dp_window) {
usr/src/uts/i86pc/io/rootnex.c
2392
window = &dma->dp_window[dma->dp_current_win];
usr/src/uts/i86pc/io/rootnex.c
2395
hp->dmai_cookie = dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2409
rootnex_dma_t *dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2417
if (dma->dp_window) {
usr/src/uts/i86pc/io/rootnex.c
2418
window = &dma->dp_window[dma->dp_current_win];
usr/src/uts/i86pc/io/rootnex.c
2422
cp = dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2423
*ccountp = dma->dp_sglinfo.si_sgl_size;
usr/src/uts/i86pc/io/rootnex.c
2450
rootnex_dma_t *dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2456
ASSERT(dma->dp_need_to_switch_cookies == B_FALSE);
usr/src/uts/i86pc/io/rootnex.c
2458
if (dma->dp_window) {
usr/src/uts/i86pc/io/rootnex.c
2459
window = &dma->dp_window[dma->dp_current_win];
usr/src/uts/i86pc/io/rootnex.c
2460
dma->dp_saved_cookies = window->wd_first_cookie;
usr/src/uts/i86pc/io/rootnex.c
2463
cur_cookiep = (hp->dmai_cookie - dma->dp_saved_cookies)
usr/src/uts/i86pc/io/rootnex.c
2466
dma->dp_saved_cookies = dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2467
dma->dp_cookies = cookiep;
usr/src/uts/i86pc/io/rootnex.c
2468
ASSERT(ccount == dma->dp_sglinfo.si_sgl_size);
usr/src/uts/i86pc/io/rootnex.c
2469
cur_cookiep = (hp->dmai_cookie - dma->dp_saved_cookies)
usr/src/uts/i86pc/io/rootnex.c
2470
+ dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2473
dma->dp_need_to_switch_cookies = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
2484
rootnex_dma_t *dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2491
if (dma->dp_need_to_switch_cookies == B_FALSE)
usr/src/uts/i86pc/io/rootnex.c
2494
ASSERT(dma->dp_saved_cookies);
usr/src/uts/i86pc/io/rootnex.c
2496
if (dma->dp_window) {
usr/src/uts/i86pc/io/rootnex.c
2497
window = &dma->dp_window[dma->dp_current_win];
usr/src/uts/i86pc/io/rootnex.c
2499
window->wd_first_cookie = dma->dp_saved_cookies;
usr/src/uts/i86pc/io/rootnex.c
2500
dma->dp_saved_cookies = NULL;
usr/src/uts/i86pc/io/rootnex.c
2505
cookie_array = dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2506
dma->dp_cookies = dma->dp_saved_cookies;
usr/src/uts/i86pc/io/rootnex.c
2507
dma->dp_saved_cookies = NULL;
usr/src/uts/i86pc/io/rootnex.c
2508
ccount = dma->dp_sglinfo.si_sgl_size;
usr/src/uts/i86pc/io/rootnex.c
2510
+ dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
2517
dma->dp_need_to_switch_cookies = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2548
rootnex_verify_buffer(rootnex_dma_t *dma)
usr/src/uts/i86pc/io/rootnex.c
2559
if (dma->dp_dma.dmao_type == DMA_OTYP_PAGES) {
usr/src/uts/i86pc/io/rootnex.c
2560
poff = dma->dp_dma.dmao_obj.pp_obj.pp_offset & MMU_PAGEOFFSET;
usr/src/uts/i86pc/io/rootnex.c
2562
vaddr = dma->dp_dma.dmao_obj.virt_obj.v_addr;
usr/src/uts/i86pc/io/rootnex.c
2565
pcnt = mmu_btopr(dma->dp_dma.dmao_size + poff);
usr/src/uts/i86pc/io/rootnex.c
2567
switch (dma->dp_dma.dmao_type) {
usr/src/uts/i86pc/io/rootnex.c
2573
pp = dma->dp_dma.dmao_obj.pp_obj.pp_pp;
usr/src/uts/i86pc/io/rootnex.c
2584
pplist = dma->dp_dma.dmao_obj.virt_obj.v_priv;
usr/src/uts/i86pc/io/rootnex.c
2598
if (rootnex_get_as(&dma->dp_dma) == &kas) {
usr/src/uts/i86pc/io/rootnex.c
2626
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
2629
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
2632
dma->dp_current_cookie = 0;
usr/src/uts/i86pc/io/rootnex.c
2633
dma->dp_copybuf_size = 0;
usr/src/uts/i86pc/io/rootnex.c
2634
dma->dp_window = NULL;
usr/src/uts/i86pc/io/rootnex.c
2635
dma->dp_cbaddr = NULL;
usr/src/uts/i86pc/io/rootnex.c
2636
dma->dp_inuse = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2637
dma->dp_dvma_used = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2638
dma->dp_need_to_free_cookie = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2639
dma->dp_need_to_switch_cookies = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2640
dma->dp_saved_cookies = NULL;
usr/src/uts/i86pc/io/rootnex.c
2641
dma->dp_sleep_flags = KM_PANIC;
usr/src/uts/i86pc/io/rootnex.c
2642
dma->dp_need_to_free_window = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2643
dma->dp_partial_required = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2644
dma->dp_trim_required = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
2645
dma->dp_sglinfo.si_copybuf_req = 0;
usr/src/uts/i86pc/io/rootnex.c
3198
rootnex_dma_t *dma, ddi_dma_attr_t *attr, ddi_dma_obj_t *dmao, int kmflag)
usr/src/uts/i86pc/io/rootnex.c
3213
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
3222
e = rootnex_setup_copybuf(hp, dmareq, dma, attr);
usr/src/uts/i86pc/io/rootnex.c
3227
dma->dp_copybuf_size = 0;
usr/src/uts/i86pc/io/rootnex.c
3234
if ((dma->dp_copybuf_size < sinfo->si_copybuf_req) ||
usr/src/uts/i86pc/io/rootnex.c
3235
(dmao->dmao_size > dma->dp_maxxfer) ||
usr/src/uts/i86pc/io/rootnex.c
3237
dma->dp_partial_required = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
3239
dma->dp_trim_required = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
3242
dma->dp_partial_required = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
3243
dma->dp_trim_required = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
3247
if (dma->dp_partial_required &&
usr/src/uts/i86pc/io/rootnex.c
3250
mnum = ddi_driver_major(dma->dp_dip);
usr/src/uts/i86pc/io/rootnex.c
3265
"/etc/system(5).", ddi_driver_name(dma->dp_dip));
usr/src/uts/i86pc/io/rootnex.c
3274
e = rootnex_setup_windows(hp, dma, attr, dmao, kmflag);
usr/src/uts/i86pc/io/rootnex.c
3276
rootnex_teardown_copybuf(dma);
usr/src/uts/i86pc/io/rootnex.c
3280
window = &dma->dp_window[0];
usr/src/uts/i86pc/io/rootnex.c
3281
cookie = &dma->dp_cookies[0];
usr/src/uts/i86pc/io/rootnex.c
3283
rootnex_init_win(hp, dma, window, cookie, cur_offset);
usr/src/uts/i86pc/io/rootnex.c
3295
if (dma->dp_copybuf_size > 0) {
usr/src/uts/i86pc/io/rootnex.c
3296
rootnex_setup_cookie(dmao, dma, cookie,
usr/src/uts/i86pc/io/rootnex.c
3310
if (dma->dp_copybuf_size &&
usr/src/uts/i86pc/io/rootnex.c
3311
(copybuf_used > dma->dp_copybuf_size)) {
usr/src/uts/i86pc/io/rootnex.c
3313
e = rootnex_copybuf_window_boundary(hp, dma, &window,
usr/src/uts/i86pc/io/rootnex.c
3316
rootnex_teardown_copybuf(dma);
usr/src/uts/i86pc/io/rootnex.c
3317
rootnex_teardown_windows(dma);
usr/src/uts/i86pc/io/rootnex.c
3329
dma->dp_dip);
usr/src/uts/i86pc/io/rootnex.c
3336
e = rootnex_sgllen_window_boundary(hp, dma, &window,
usr/src/uts/i86pc/io/rootnex.c
3339
rootnex_teardown_copybuf(dma);
usr/src/uts/i86pc/io/rootnex.c
3340
rootnex_teardown_windows(dma);
usr/src/uts/i86pc/io/rootnex.c
3352
dma->dp_dip);
usr/src/uts/i86pc/io/rootnex.c
3356
dma->dp_maxxfer) {
usr/src/uts/i86pc/io/rootnex.c
3358
e = rootnex_maxxfer_window_boundary(hp, dma, &window,
usr/src/uts/i86pc/io/rootnex.c
3361
rootnex_teardown_copybuf(dma);
usr/src/uts/i86pc/io/rootnex.c
3362
rootnex_teardown_windows(dma);
usr/src/uts/i86pc/io/rootnex.c
3374
dma->dp_dip);
usr/src/uts/i86pc/io/rootnex.c
3401
ASSERT(dma->dp_partial_required);
usr/src/uts/i86pc/io/rootnex.c
3412
rootnex_dma_t *dma, ddi_dma_attr_t *attr)
usr/src/uts/i86pc/io/rootnex.c
3420
ASSERT(!dma->dp_dvma_used);
usr/src/uts/i86pc/io/rootnex.c
3422
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
3431
dma->dp_copybuf_size = MIN(sinfo->si_copybuf_req, max_copybuf);
usr/src/uts/i86pc/io/rootnex.c
3432
ASSERT((dma->dp_copybuf_size & MMU_PAGEOFFSET) == 0);
usr/src/uts/i86pc/io/rootnex.c
3458
e = i_ddi_mem_alloc(dma->dp_dip, &lattr, dma->dp_copybuf_size, cansleep,
usr/src/uts/i86pc/io/rootnex.c
3459
0, NULL, &dma->dp_cbaddr, &dma->dp_cbsize, NULL);
usr/src/uts/i86pc/io/rootnex.c
3464
ROOTNEX_DPROBE2(rootnex__alloc__copybuf, dev_info_t *, dma->dp_dip,
usr/src/uts/i86pc/io/rootnex.c
3465
size_t, dma->dp_copybuf_size);
usr/src/uts/i86pc/io/rootnex.c
3477
rootnex_setup_windows(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
3492
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
3494
dma->dp_current_win = 0;
usr/src/uts/i86pc/io/rootnex.c
3498
if (!dma->dp_partial_required) {
usr/src/uts/i86pc/io/rootnex.c
3499
dma->dp_max_win = 1;
usr/src/uts/i86pc/io/rootnex.c
3519
if (sinfo->si_copybuf_req > dma->dp_copybuf_size) {
usr/src/uts/i86pc/io/rootnex.c
3520
ASSERT(dma->dp_copybuf_size > 0);
usr/src/uts/i86pc/io/rootnex.c
3522
dma->dp_copybuf_size) + 1 + 2;
usr/src/uts/i86pc/io/rootnex.c
3547
if (dmao->dmao_size > dma->dp_maxxfer) {
usr/src/uts/i86pc/io/rootnex.c
3549
dma->dp_maxxfer) + 1 + 2;
usr/src/uts/i86pc/io/rootnex.c
3553
dma->dp_max_win = copybuf_win + sglwin + maxxfer_win;
usr/src/uts/i86pc/io/rootnex.c
3554
ASSERT(dma->dp_max_win > 0);
usr/src/uts/i86pc/io/rootnex.c
3556
win_state_size = dma->dp_max_win * sizeof (rootnex_window_t);
usr/src/uts/i86pc/io/rootnex.c
3567
if (dma->dp_need_to_free_cookie) {
usr/src/uts/i86pc/io/rootnex.c
3569
ASSERT(space_used <= dma->dp_cookie_size);
usr/src/uts/i86pc/io/rootnex.c
3570
if ((dma->dp_cookie_size - space_used) <=
usr/src/uts/i86pc/io/rootnex.c
3573
windowp = (rootnex_window_t *)dma->dp_prealloc_buffer;
usr/src/uts/i86pc/io/rootnex.c
3581
state_available = dma->dp_cookie_size - space_used;
usr/src/uts/i86pc/io/rootnex.c
3583
&dma->dp_cookies[sinfo->si_sgl_size];
usr/src/uts/i86pc/io/rootnex.c
3591
&dma->dp_cookies[sinfo->si_sgl_size];
usr/src/uts/i86pc/io/rootnex.c
3598
if (dma->dp_copybuf_size > 0) {
usr/src/uts/i86pc/io/rootnex.c
3609
dma->dp_window = windowp;
usr/src/uts/i86pc/io/rootnex.c
3610
dma->dp_need_to_free_window = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
3614
dma->dp_window = kmem_alloc(space_needed, kmflag);
usr/src/uts/i86pc/io/rootnex.c
3615
if (dma->dp_window == NULL) {
usr/src/uts/i86pc/io/rootnex.c
3618
dma->dp_need_to_free_window = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
3619
dma->dp_window_size = space_needed;
usr/src/uts/i86pc/io/rootnex.c
3621
dma->dp_dip, size_t, space_needed);
usr/src/uts/i86pc/io/rootnex.c
3628
if (dma->dp_copybuf_size > 0) {
usr/src/uts/i86pc/io/rootnex.c
3629
dma->dp_pgmap = (rootnex_pgmap_t *)(((uintptr_t)
usr/src/uts/i86pc/io/rootnex.c
3630
&dma->dp_window[dma->dp_max_win] + 0x7) & ~0x7);
usr/src/uts/i86pc/io/rootnex.c
3633
dma->dp_pgmap = NULL;
usr/src/uts/i86pc/io/rootnex.c
3645
rootnex_teardown_copybuf(rootnex_dma_t *dma)
usr/src/uts/i86pc/io/rootnex.c
3648
if (dma->dp_cbaddr != NULL) {
usr/src/uts/i86pc/io/rootnex.c
3649
i_ddi_mem_free(dma->dp_cbaddr, NULL);
usr/src/uts/i86pc/io/rootnex.c
3659
rootnex_teardown_windows(rootnex_dma_t *dma)
usr/src/uts/i86pc/io/rootnex.c
3665
if (dma->dp_need_to_free_window) {
usr/src/uts/i86pc/io/rootnex.c
3666
kmem_free(dma->dp_window, dma->dp_window_size);
usr/src/uts/i86pc/io/rootnex.c
3678
rootnex_init_win(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
3702
rootnex_setup_cookie(ddi_dma_obj_t *dmar_object, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
3716
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
3743
if (!ISP2(dma->dp_copybuf_size)) {
usr/src/uts/i86pc/io/rootnex.c
3750
dma->dp_pgmap[pidx].pm_uses_copybuf = B_TRUE;
usr/src/uts/i86pc/io/rootnex.c
3757
if ((*copybuf_used + MMU_PAGESIZE) <= dma->dp_copybuf_size) {
usr/src/uts/i86pc/io/rootnex.c
3758
dma->dp_pgmap[pidx].pm_cbaddr = dma->dp_cbaddr +
usr/src/uts/i86pc/io/rootnex.c
3762
dma->dp_pgmap[pidx].pm_cbaddr = (caddr_t)(
usr/src/uts/i86pc/io/rootnex.c
3763
(uintptr_t)dma->dp_cbaddr +
usr/src/uts/i86pc/io/rootnex.c
3765
(dma->dp_copybuf_size - 1)));
usr/src/uts/i86pc/io/rootnex.c
3767
dma->dp_pgmap[pidx].pm_cbaddr = (caddr_t)(
usr/src/uts/i86pc/io/rootnex.c
3768
(uintptr_t)dma->dp_cbaddr +
usr/src/uts/i86pc/io/rootnex.c
3769
(*copybuf_used % dma->dp_copybuf_size));
usr/src/uts/i86pc/io/rootnex.c
377
rootnex_dma_t *dma, ddi_dma_attr_t *attr, ddi_dma_obj_t *dmao, int kmflag);
usr/src/uts/i86pc/io/rootnex.c
3779
dma->dp_pgmap[pidx].pm_cbaddr)) + poff;
usr/src/uts/i86pc/io/rootnex.c
379
rootnex_dma_t *dma, ddi_dma_attr_t *attr);
usr/src/uts/i86pc/io/rootnex.c
3790
dma->dp_pgmap[pidx].pm_kaddr = (caddr_t)(((uintptr_t)
usr/src/uts/i86pc/io/rootnex.c
380
static void rootnex_teardown_copybuf(rootnex_dma_t *dma);
usr/src/uts/i86pc/io/rootnex.c
3800
dma->dp_pgmap[pidx].pm_kaddr = hat_kpm_pfn2va(pfn);
usr/src/uts/i86pc/io/rootnex.c
381
static int rootnex_setup_windows(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
3824
dma->dp_pgmap[pidx].pm_uses_copybuf = B_FALSE;
usr/src/uts/i86pc/io/rootnex.c
383
static void rootnex_teardown_windows(rootnex_dma_t *dma);
usr/src/uts/i86pc/io/rootnex.c
384
static void rootnex_init_win(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
3847
rootnex_sgllen_window_boundary(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
3860
if (!dma->dp_trim_required) {
usr/src/uts/i86pc/io/rootnex.c
3862
rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
usr/src/uts/i86pc/io/rootnex.c
387
rootnex_dma_t *dma, ddi_dma_cookie_t *cookie, off_t cur_offset,
usr/src/uts/i86pc/io/rootnex.c
3870
if (dma->dp_granularity_power_2) {
usr/src/uts/i86pc/io/rootnex.c
3879
rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
usr/src/uts/i86pc/io/rootnex.c
390
rootnex_dma_t *dma, rootnex_window_t **windowp, ddi_dma_cookie_t *cookie,
usr/src/uts/i86pc/io/rootnex.c
3927
rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
usr/src/uts/i86pc/io/rootnex.c
393
rootnex_dma_t *dma, rootnex_window_t **windowp,
usr/src/uts/i86pc/io/rootnex.c
3949
if ((*windowp)->wd_size > dma->dp_maxxfer) {
usr/src/uts/i86pc/io/rootnex.c
3955
trim_sz = (*windowp)->wd_size - dma->dp_maxxfer;
usr/src/uts/i86pc/io/rootnex.c
396
rootnex_dma_t *dma, rootnex_window_t **windowp, ddi_dma_cookie_t *cookie);
usr/src/uts/i86pc/io/rootnex.c
3961
ASSERT((*windowp)->wd_size == dma->dp_maxxfer);
usr/src/uts/i86pc/io/rootnex.c
3969
rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
usr/src/uts/i86pc/io/rootnex.c
3987
rootnex_copybuf_window_boundary(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
399
static int rootnex_verify_buffer(rootnex_dma_t *dma);
usr/src/uts/i86pc/io/rootnex.c
4000
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
4016
if (!dma->dp_trim_required) {
usr/src/uts/i86pc/io/rootnex.c
4018
rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
usr/src/uts/i86pc/io/rootnex.c
4032
if (dma->dp_granularity_power_2) {
usr/src/uts/i86pc/io/rootnex.c
4046
rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
usr/src/uts/i86pc/io/rootnex.c
4102
dma->dp_pgmap[pidx].pm_cbaddr;
usr/src/uts/i86pc/io/rootnex.c
4120
rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
usr/src/uts/i86pc/io/rootnex.c
4139
(*windowp)->wd_trim.tr_first_cbaddr = dma->dp_cbaddr;
usr/src/uts/i86pc/io/rootnex.c
4142
paddr = pfn_to_pa(hat_getpfnum(kas.a_hat, dma->dp_cbaddr)) +
usr/src/uts/i86pc/io/rootnex.c
4172
dma->dp_pgmap[pidx + 1].pm_cbaddr += MMU_PAGESIZE;
usr/src/uts/i86pc/io/rootnex.c
4176
dma->dp_pgmap[pidx + 1].pm_cbaddr)) + poff;
usr/src/uts/i86pc/io/rootnex.c
4191
ASSERT((*windowp)->wd_size < dma->dp_maxxfer);
usr/src/uts/i86pc/io/rootnex.c
4209
rootnex_maxxfer_window_boundary(ddi_dma_impl_t *hp, rootnex_dma_t *dma,
usr/src/uts/i86pc/io/rootnex.c
4223
trim_sz = ((*windowp)->wd_size + cookie->dmac_size) - dma->dp_maxxfer;
usr/src/uts/i86pc/io/rootnex.c
4225
ASSERT(trim_sz <= dma->dp_maxxfer);
usr/src/uts/i86pc/io/rootnex.c
4240
(*windowp)->wd_size = dma->dp_maxxfer;
usr/src/uts/i86pc/io/rootnex.c
4258
rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
usr/src/uts/i86pc/io/rootnex.c
4281
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
4293
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
4294
sinfo = &dma->dp_sglinfo;
usr/src/uts/i86pc/io/rootnex.c
4300
if (dma->dp_window == NULL) {
usr/src/uts/i86pc/io/rootnex.c
4305
win = &dma->dp_window[dma->dp_current_win];
usr/src/uts/i86pc/io/rootnex.c
4356
cbpage = &dma->dp_pgmap[pidx];
usr/src/uts/i86pc/io/rootnex.c
4375
dev_info_t *, dma->dp_dip, size_t, psize);
usr/src/uts/i86pc/io/rootnex.c
4386
dev_info_t *, dma->dp_dip, size_t, psize);
usr/src/uts/i86pc/io/rootnex.c
4488
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
4493
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
4501
dmao = dma->dp_dvma_used ? &dma->dp_dvma : &dma->dp_dma;
usr/src/uts/i86pc/io/rootnex.c
4509
if (dma->dp_window == NULL) {
usr/src/uts/i86pc/io/rootnex.c
4515
hp->dmai_cookie = dma->dp_cookies;
usr/src/uts/i86pc/io/rootnex.c
4518
*ccountp = dma->dp_sglinfo.si_sgl_size;
usr/src/uts/i86pc/io/rootnex.c
4527
window = &dma->dp_window[dma->dp_current_win];
usr/src/uts/i86pc/io/rootnex.c
4538
dma->dp_current_win = win;
usr/src/uts/i86pc/io/rootnex.c
4539
window = &dma->dp_window[win];
usr/src/uts/i86pc/io/rootnex.c
4547
dma->dp_pgmap[trim->tr_first_pidx].pm_cbaddr =
usr/src/uts/i86pc/io/rootnex.c
4555
dma->dp_pgmap[trim->tr_last_pidx].pm_cbaddr =
usr/src/uts/i86pc/io/rootnex.c
4612
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
4615
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
4616
dma->dp_iommu_private = v;
usr/src/uts/i86pc/io/rootnex.c
4627
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
4630
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
4632
return (dma->dp_iommu_private);
usr/src/uts/i86pc/io/rootnex.c
4695
rootnex_dma_t *dma;
usr/src/uts/i86pc/io/rootnex.c
4706
dma = (rootnex_dma_t *)hp->dmai_private;
usr/src/uts/i86pc/io/rootnex.c
4715
if (dma->dp_window == NULL) {
usr/src/uts/i86pc/io/rootnex.c
4717
for (i = 0; i < dma->dp_sglinfo.si_sgl_size; i++) {
usr/src/uts/i86pc/io/rootnex.c
4722
if ((fault_addr >= dma->dp_cookies[i].dmac_laddress) &&
usr/src/uts/i86pc/io/rootnex.c
4723
(fault_addr <= (dma->dp_cookies[i].dmac_laddress +
usr/src/uts/i86pc/io/rootnex.c
4724
dma->dp_cookies[i].dmac_size))) {
usr/src/uts/i86pc/io/rootnex.c
4735
window = &dma->dp_window[i];
usr/src/uts/i86pc/sys/acpidev_rsc.h
168
int dma);
usr/src/uts/intel/io/acpica/acpi_enum.c
1062
int dma[ACPI_ISA_LIMIT];
usr/src/uts/intel/io/acpica/acpi_enum.c
1068
dma[count++] = i;
usr/src/uts/intel/io/acpica/acpi_enum.c
1072
"dma-channels", (int *)dma, count);
usr/src/uts/intel/io/acpica/acpi_enum.c
233
dma[(*dma_count)++] = resource_ptr->Data.Dma.Channels[i];
usr/src/uts/intel/io/acpica/acpi_enum.c
667
"dma-channels", (int *)dma, dma_count);
usr/src/uts/intel/io/acpica/acpi_enum.c
82
static int dma[ACPI_ISA_LIMIT];
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
2210
boolean_t dma;
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
2279
dma = ata_prop_lookup_int(DDI_DEV_T_ANY, tdip,
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
2288
if (dma == FALSE) {
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
177
int vmxnet3_alloc_dma_mem_1(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
179
int vmxnet3_alloc_dma_mem_128(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
181
int vmxnet3_alloc_dma_mem_512(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
183
void vmxnet3_free_dma_mem(vmxnet3_dmabuf_t *dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
249
(((Vmxnet3_GenericDesc *) (Ring)->dma.buf) + Idx)
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
66
vmxnet3_dmabuf_t dma;
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
74
vmxnet3_dmabuf_t dma;
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
94
vmxnet3_dmabuf_t dma;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
293
if ((err = vmxnet3_alloc_dma_mem_512(dp, &cmdRing->dma, ringSize,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
297
(void) memset(cmdRing->dma.buf, 0, ringSize);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
316
if (vmxnet3_alloc_dma_mem_512(dp, &compRing->dma, ringSize,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
320
(void) memset(compRing->dma.buf, 0, ringSize);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
342
ASSERT(!txq->cmdRing.dma.buf && !txq->compRing.dma.buf);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
347
tqdesc->conf.txRingBasePA = txq->cmdRing.dma.bufPA;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
355
tqdesc->conf.compRingBasePA = txq->compRing.dma.bufPA;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
370
vmxnet3_free_dma_mem(&txq->compRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
372
vmxnet3_free_dma_mem(&txq->cmdRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
392
ASSERT(!rxq->cmdRing.dma.buf && !rxq->compRing.dma.buf);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
397
rqdesc->conf.rxRingBasePA[0] = rxq->cmdRing.dma.bufPA;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
405
rqdesc->conf.compRingBasePA = rxq->compRing.dma.bufPA;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
420
vmxnet3_free_dma_mem(&rxq->compRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
422
vmxnet3_free_dma_mem(&rxq->cmdRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
436
ASSERT(txq->cmdRing.dma.buf && txq->compRing.dma.buf);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
442
vmxnet3_free_dma_mem(&txq->cmdRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
443
vmxnet3_free_dma_mem(&txq->compRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
455
ASSERT(rxq->cmdRing.dma.buf && rxq->compRing.dma.buf);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
461
vmxnet3_free_dma_mem(&rxq->cmdRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
462
vmxnet3_free_dma_mem(&rxq->compRing.dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_rx.c
204
rxBuf->mblk = desballoc((uchar_t *)rxBuf->dma.buf,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_rx.c
205
rxBuf->dma.bufLen, BPRI_MED, &rxBuf->freeCB);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_rx.c
221
rxDesc->rxd.addr = rxBuf->dma.bufPA;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_rx.c
222
rxDesc->rxd.len = rxBuf->dma.bufLen;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_rx.c
44
if ((err = vmxnet3_alloc_dma_mem_1(dp, &rxBuf->dma, (dp->cur_mtu + 18),
usr/src/uts/intel/io/vmxnet3s/vmxnet3_rx.c
65
vmxnet3_free_dma_mem(&rxBuf->dma);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
105
vmxnet3_alloc_dma_mem(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
119
&dma->dmaHandle)) != DDI_SUCCESS) {
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
128
if (ddi_dma_mem_alloc(dma->dmaHandle, size, &vmxnet3_dev_attr,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
129
DDI_DMA_CONSISTENT, cb, NULL, &dma->buf, &dma->bufLen,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
130
&dma->dataHandle) != DDI_SUCCESS) {
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
139
if ((dmaerr = ddi_dma_addr_bind_handle(dma->dmaHandle, NULL, dma->buf,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
140
dma->bufLen, DDI_DMA_RDWR | DDI_DMA_STREAMING, cb, NULL, &cookie,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
149
dma->bufPA = cookie.dmac_laddress;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
154
ddi_dma_mem_free(&dma->dataHandle);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
156
ddi_dma_free_handle(&dma->dmaHandle);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
158
dma->buf = NULL;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
159
dma->bufPA = 0;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
160
dma->bufLen = 0;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
165
vmxnet3_alloc_dma_mem_1(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
168
return (vmxnet3_alloc_dma_mem(dp, dma, size, canSleep,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
173
vmxnet3_alloc_dma_mem_512(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
176
return (vmxnet3_alloc_dma_mem(dp, dma, size, canSleep,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
181
vmxnet3_alloc_dma_mem_128(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
184
return (vmxnet3_alloc_dma_mem(dp, dma, size, canSleep,
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
192
vmxnet3_free_dma_mem(vmxnet3_dmabuf_t *dma)
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
194
(void) ddi_dma_unbind_handle(dma->dmaHandle);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
195
ddi_dma_mem_free(&dma->dataHandle);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
196
ddi_dma_free_handle(&dma->dmaHandle);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
198
dma->buf = NULL;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
199
dma->bufPA = 0;
usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
200
dma->bufLen = 0;
usr/src/uts/sun/io/scsi/adapters/fas.c
1582
volatile struct dma *dmar = fas->f_dma; \
usr/src/uts/sun/io/scsi/adapters/fas.c
1595
volatile struct dma *dmar = fas->f_dma; \
usr/src/uts/sun/io/scsi/adapters/fas.c
160
_NOTE(DATA_READABLE_WITHOUT_LOCK(dma fasdebug))
usr/src/uts/sun/io/scsi/adapters/fas.c
1607
volatile struct dma *dmar = fas->f_dma; \
usr/src/uts/sun/io/scsi/adapters/fas.c
1804
volatile struct dma *dmar = fas->f_dma;
usr/src/uts/sun/io/scsi/adapters/fas.c
3869
volatile struct dma *dmar = fas->f_dma;
usr/src/uts/sun/io/scsi/adapters/fas.c
4833
volatile struct dma *dmar = fas->f_dma;
usr/src/uts/sun/io/scsi/adapters/fas.c
525
volatile struct dma *dmar = NULL;
usr/src/uts/sun/io/scsi/adapters/fas.c
5796
volatile struct dma *dmar = fas->f_dma;
usr/src/uts/sun/io/scsi/adapters/fas.c
636
(off_t)0, (off_t)sizeof (struct dma),
usr/src/uts/sun/io/scsi/adapters/fas.c
9316
volatile struct dma *dmar = fas->f_dma;
usr/src/uts/sun/sys/scsi/adapters/fasvar.h
356
volatile struct dma *f_dma;