/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_dma.c | 50 dev->dma = drm_calloc(1, sizeof (*dev->dma), DRM_MEM_DMA); 51 if (dev->dma == NULL) 55 pbuf = &(dev->dma->bufs[0]); 65 drm_device_dma_t *dma = dev->dma; local 68 if (dma == NULL) 71 /* Clear dma buffers */ 73 if (dma->bufs[i].seg_count) { 74 drm_free(dma 124 drm_device_dma_t *dma = dev->dma; local [all...] |
H A D | drm_bufs.c | 397 drm_device_dma_t *dma = dev->dma; local 411 if (!dma) 425 entry = &dma->bufs[order]; 444 buf->idx = dma->buf_count + entry->buf_count; 449 buf->offset = (dma->byte_count + offset); 471 (dma->buf_count + entry->buf_count) * sizeof (*dma->buflist), 481 bcopy(temp_buflist, dma->buflist, 482 dma 506 drm_device_dma_t *dma = dev->dma; local 718 drm_device_dma_t *dma = dev->dma; local 784 drm_device_dma_t *dma = dev->dma; local [all...] |
/illumos-gate/usr/src/uts/common/io/sdcard/impl/ |
H A D | sda_host.c | 55 sda_host_alloc(dev_info_t *dip, int nslot, sda_ops_t *ops, ddi_dma_attr_t *dma) argument 66 h->h_dma = dma;
|
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_utils.c | 105 vmxnet3_alloc_dma_mem(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size, argument 119 &dma->dmaHandle)) != DDI_SUCCESS) { 128 if (ddi_dma_mem_alloc(dma->dmaHandle, size, &vmxnet3_dev_attr, 129 DDI_DMA_CONSISTENT, cb, NULL, &dma->buf, &dma->bufLen, 130 &dma->dataHandle) != DDI_SUCCESS) { 139 if ((dmaerr = ddi_dma_addr_bind_handle(dma->dmaHandle, NULL, dma->buf, 140 dma->bufLen, DDI_DMA_RDWR | DDI_DMA_STREAMING, cb, NULL, &cookie, 149 dma 165 vmxnet3_alloc_dma_mem_1(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size, boolean_t canSleep) argument 173 vmxnet3_alloc_dma_mem_512(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size, boolean_t canSleep) argument 181 vmxnet3_alloc_dma_mem_128(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size, boolean_t canSleep) argument 192 vmxnet3_free_dma_mem(vmxnet3_dmabuf_t *dma) argument [all...] |
H A D | vmxnet3.h | 66 vmxnet3_dmabuf_t dma; member in struct:vmxnet3_cmdring_t 74 vmxnet3_dmabuf_t dma; member in struct:vmxnet3_compring_t 94 vmxnet3_dmabuf_t dma; member in struct:vmxnet3_rxbuf_t 177 int vmxnet3_alloc_dma_mem_1(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, 179 int vmxnet3_alloc_dma_mem_128(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, 181 int vmxnet3_alloc_dma_mem_512(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, 183 void vmxnet3_free_dma_mem(vmxnet3_dmabuf_t *dma); 248 (((Vmxnet3_GenericDesc *) (Ring)->dma.buf) + Idx)
|
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_ixl_misc.c | 103 ixl_exec_startp->compiler_privatep)->dma[0].dma_bound; 167 &xferctlp->dma[ixldepth], ixlcur->ixl_opcode, 270 hci1394_ixl_check_status(hci1394_xfer_ctl_dma_t *dma, uint16_t ixlopcode, argument 287 /* last dma descriptor in descriptor block from dma structure */ 288 hcidescp = (hci1394_desc_t *)(dma->dma_descp); 289 hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr; 290 acc_hdl = dma->dma_buf->bi_handle; 291 dma_hdl = dma->dma_buf->bi_dma_handle; 306 /* check if status is set in last dma descripto [all...] |
H A D | hci1394_ixl_isr.c | 185 * follow execution path in IXL, until find dma descriptor in IXL 298 * Process given IXL xfer cmd, checking status of each dma descriptor block 336 * check if status is set in dma descriptor 339 if (hci1394_ixl_check_status(&xferctlp->dma[ixldepth], 346 * count dma desc blks whose status was set 347 * (i.e. advanced to next dma desc) 356 * cur IXL cmd dma desc status not set. save IXL cur cmd 364 * check if dma descriptor processing location is indeterminate 372 * set in cur dma descriptor block. (don't reset status 375 if (hci1394_ixl_check_status(&xferctlp->dma[ixldept 543 hci1394_xfer_ctl_dma_t *dma; local [all...] |
/illumos-gate/usr/src/uts/sun/sys/scsi/adapters/ |
H A D | fasdma.h | 43 * dma for now 45 struct dma { struct 47 uint32_t dma_addr; /* dma address register */ 56 #define DMA_INTPEND 0x0001 /* (R) interrupt pending from fas or dma */ 57 #define DMA_ERRPEND 0x0002 /* (R) error pending from dma */ 64 #define DMA_DMAREV 0x7800 /* (R) dma revision */ 69 #define DMA_TWO_CYCLE 0x00200000 /* (RW) 2 cycle dma access to 366 */ 85 * burst sizes for dma 93 * burst sizes for dma attr
|
/illumos-gate/usr/src/uts/common/io/atge/ |
H A D | atge_l1.c | 129 atge_dma_t *dma; local 143 dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_tx_desc, 145 if (dma == NULL) { 150 atgep->atge_tx_ring->r_desc_ring = dma; 171 dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_rx_desc, 173 if (dma == NULL) { 178 l1->atge_rx_ring->r_desc_ring = dma; 197 dma = atge_alloc_a_dma_blk(atgep, &atge_l1_dma_attr_cmb, 199 l1->atge_l1_cmb = dma; 200 if (dma 302 atge_dma_t *dma; local 340 atge_dma_t *dma; local 354 atge_dma_t *dma; local 366 atge_dma_t *dma; local 453 atge_dma_t *dma; local [all...] |
H A D | atge_l1c.c | 157 atge_dma_t *dma; local 171 dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_tx_desc, 173 if (dma == NULL) { 178 atgep->atge_tx_ring->r_desc_ring = dma; 199 dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_rx_desc, 201 if (dma == NULL) { 206 l1c->atge_rx_ring->r_desc_ring = dma; 225 dma = atge_alloc_a_dma_blk(atgep, &atge_l1c_dma_attr_cmb, 227 l1c->atge_l1c_cmb = dma; 228 if (dma 338 atge_dma_t *dma; local 376 atge_dma_t *dma; local 390 atge_dma_t *dma; local 402 atge_dma_t *dma; local 560 atge_dma_t *dma; local [all...] |
H A D | atge_l1e.c | 110 atge_dma_t *dma; local 121 dma = l1e->atge_l1e_rx_page[pages]; 122 if (dma != NULL) { 123 (void) ddi_dma_unbind_handle(dma->hdl); 124 ddi_dma_mem_free(&dma->acchdl); 125 ddi_dma_free_handle(&dma->hdl); 126 kmem_free(dma, sizeof (atge_dma_t)); 137 atge_dma_t *dma; local 154 dma = atge_alloc_a_dma_blk(atgep, &atge_l1e_dma_attr_tx_desc, 156 if (dma 289 atge_dma_t *dma; local [all...] |
H A D | atge_main.c | 1431 atge_dma_t *dma; local 1440 dma = atge_buf_alloc(r->r_atge, buflen, f); 1441 if (dma == NULL) { 1446 tbl[i] = dma; 1475 atge_dma_t *dma; local 1477 dma = kmem_zalloc(sizeof (atge_dma_t), KM_SLEEP); 1480 DDI_DMA_SLEEP, NULL, &dma->hdl); 1488 err = ddi_dma_mem_alloc(dma->hdl, 1490 &dma->addr, &dma 1518 atge_free_a_dma_blk(atge_dma_t *dma) argument 1531 atge_dma_t *dma = NULL; local 1580 atge_buf_free(atge_dma_t *dma) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | r300_cmdbuf.c | 815 drm_device_dma_t *dma = dev->dma; local 909 idx = header.dma.buf_idx; 910 if (idx < 0 || idx >= dma->buf_count) { 912 idx, dma->buf_count - 1); 917 buf = dma->buflist[idx];
|
H A D | radeon_cp.c | 1509 DRM_ERROR("could not find dma buffer region, offset=0x%lx\n", 2078 drm_device_dma_t *dma = dev->dma; local 2085 if (++dev_priv->last_buf >= dma->buf_count) 2093 for (i = start; i < dma->buf_count; i++) { 2094 buf = dma->buflist[i]; 2119 drm_device_dma_t *dma = dev->dma; 2127 if (++dev_priv->last_buf >= dma->buf_count) 2134 for (i = start; i < dma 2154 drm_device_dma_t *dma = dev->dma; local 2233 drm_device_dma_t *dma = dev->dma; local [all...] |
H A D | radeon_state.c | 2345 drm_device_dma_t *dma = dev->dma; local 2364 if (vertex.idx < 0 || vertex.idx >= dma->buf_count) { 2366 vertex.idx, dma->buf_count - 1); 2377 buf = dma->buflist[vertex.idx]; 2433 drm_device_dma_t *dma = dev->dma; local 2452 if (elts.idx < 0 || elts.idx >= dma->buf_count) { 2454 elts.idx, dma->buf_count - 1); 2465 buf = dma 2628 drm_device_dma_t *dma = dev->dma; local 2704 drm_device_dma_t *dma = dev->dma; local 3067 drm_device_dma_t *dma = dev->dma; local [all...] |
/illumos-gate/usr/src/cmd/fm/schemes/mem/sparc/ |
H A D | mem_disc.c | 255 dimm_map_arg_t *dma = arg; local 271 for (pm = dma->dma_pm; pm != NULL; pm = pm->pm_next) { 282 dm->dm_next = dma->dma_dm; 283 dma->dma_dm = dm; 355 dimm_map_arg_t dma; local 362 dma.dma_pm = path_map; 363 dma.dma_dm = NULL; 366 &dma)) < 0 && errno == ENOENT && path_map == NULL) { 379 if (dma.dma_dm == NULL) { 387 mem.mem_dm = dma [all...] |
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_resource.c | 331 acpidev_resource_insert_dma(acpidev_resource_handle_t rhdl, int dma) argument 340 rhdl->acpidev_dmap[rhdl->acpidev_dma_count] = dma; 815 "dma into resource handle."); 1086 /* Create 'dma-channels' property. */ 1089 "dma-channels", (int *)rhdl->acpidev_dmap, 1092 "'dma-channels' property for %s.", path);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_rdma.c | 63 uint64_t *dma; member in struct:rdsv3_ib_mr
|
/illumos-gate/usr/src/uts/common/sys/1394/adapters/ |
H A D | hci1394_ixl.h | 57 #define HCI1394_IXL_INTR_DMASTOP (2) /* encountered end of dma or stopped */ 59 #define HCI1394_IXL_INTR_DMALOST (-1) /* dma location indeterminate (lost) */ 60 #define HCI1394_IXL_INTR_NOADV (-2) /* dma non-advance retries exhausted */ 98 * dma descriptor block's bound addr (with "Z" bits set); is used to 99 * fill jump/skip addrs of previous dma descriptor block (previous on 136 uint16_t cnt; /* dma descriptor blocks alloc count */ 138 hci1394_xfer_ctl_dma_t dma[1]; /* addrs of descriptor blocks, cnt of */ member in struct:hci1394_xfer_ctl 156 hci1394_idma_desc_mem_t *dma_currentp; /* cur dma descriptor mem */ 264 uint16_t ixlcount; /* ixlxferp # of dma cmds to update */ 280 int hci1394_ixl_check_status(hci1394_xfer_ctl_dma_t *dma, uint16_ [all...] |
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | isa.c | 1150 int dma[] = {0x2}; local 1167 "dma-channels", (int *)dma, (int)(sizeof (dma) / sizeof (int)));
|
/illumos-gate/usr/src/uts/common/io/nvme/ |
H A D | nvme.c | 495 nvme_check_dma_hdl(nvme_dma_t *dma) argument 499 if (dma == NULL) 502 ddi_fm_dma_err_get(dma->nd_dmah, &error, DDI_FME_VERSION); 511 nvme_free_dma_common(nvme_dma_t *dma) argument 513 if (dma->nd_dmah != NULL) 514 (void) ddi_dma_unbind_handle(dma->nd_dmah); 515 if (dma->nd_acch != NULL) 516 ddi_dma_mem_free(&dma->nd_acch); 517 if (dma->nd_dmah != NULL) 518 ddi_dma_free_handle(&dma 522 nvme_free_dma(nvme_dma_t *dma) argument 532 nvme_dma_t *dma = (nvme_dma_t *)buf; local 538 nvme_alloc_dma_common(nvme_t *nvme, nvme_dma_t *dma, size_t len, uint_t flags, ddi_dma_attr_t *dma_attr) argument 578 nvme_dma_t *dma = kmem_zalloc(sizeof (nvme_dma_t), KM_SLEEP); local 597 nvme_dma_t *dma = (nvme_dma_t *)buf; local 616 nvme_zalloc_queue_dma(nvme_t *nvme, uint32_t nentry, uint16_t qe_len, uint_t flags, nvme_dma_t **dma) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | acpi_enum.c | 73 static int interrupt[ACPI_ISA_LIMIT], dma[ACPI_ISA_LIMIT]; variable 152 dma[(*dma_count)++] = resource_ptr->Data.Dma.Channels[i]; 587 "dma-channels", (int *)dma, dma_count); 1005 int dma[ACPI_ISA_LIMIT]; local 1011 dma[count++] = i; 1015 "dma-channels", (int *)dma, count);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_stub_vnops.c | 213 static void nfs4_trigger_domount_args_destroy(domount_args_t *dma, 747 domount_args_t *dma; local 839 error = nfs4_trigger_domount_args_create(vp, cr, &dma); 852 nfs4_trigger_domount_args_destroy(dma, vp); 860 error = nfs4_trigger_domount(vp, dma, &vfsp, mcred, newvpp); 861 nfs4_trigger_domount_args_destroy(dma, vp); 910 domount_args_t *dma; local 1049 dma = kmem_zalloc(sizeof (domount_args_t), KM_SLEEP); 1050 dma->dma_esi = esi_first; 1051 dma 1059 nfs4_trigger_domount_args_destroy(domount_args_t *dma, vnode_t *vp) argument 1840 nfs4_trigger_domount(vnode_t *stubvp, domount_args_t *dma, vfs_t **vfsp, cred_t *cr, vnode_t **newvpp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_cmd.c | 1593 hermon_map_cmd_post(hermon_state_t *state, hermon_dma_info_t *dma, argument 1634 vaddr = dma->icmaddr; 1733 ddi_dma_nextcookie(dma->dma_hdl, &cookie);
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_common.c | 855 * check is deferred to this point so that the various dma 857 * grained dma control be required. 2145 * ata-simplex-dma-channel to: 2152 ata_ctlp->ac_dip, 0, "ata-simplex-dma-channel", 0); 2208 boolean_t dma; local 2277 dma = ata_prop_lookup_int(DDI_DEV_T_ANY, tdip, 2278 0, "ata-dma-enabled", TRUE); 2280 0, "ata-disk-dma-enabled", TRUE); 2282 0, "atapi-cd-dma-enabled", FALSE); 2284 0, "atapi-other-dma [all...] |