Lines Matching defs:dmareq
344 #define OBJSIZE dmareq->dmar_object.dmao_size
821 check_dma_attr(struct ddi_dma_req *dmareq, ddi_dma_attr_t *dma_attr,
832 if ((dmareq->dmar_flags & DDI_DMA_PARTIAL) == 0)
839 if (!((addrlow + dmareq->dmar_object.dmao_size == 0) &&
841 if ((dmareq->dmar_flags & DDI_DMA_PARTIAL) == 0)
851 ddi_dma_handle_t handle, struct ddi_dma_req *dmareq,
876 size = (uint32_t)dmareq->dmar_object.dmao_size;
878 rval = check_dma_attr(dmareq, dma_attr, &size);
884 mp->dmai_rflags = (dmareq->dmar_flags & DMP_DDIFLAGS) |
887 switch (dmareq->dmar_object.dmao_type) {
890 addr = (uintptr_t)dmareq->dmar_object.dmao_obj.virt_obj.v_addr;
892 pplist = dmareq->dmar_object.dmao_obj.virt_obj.v_priv;
906 pp = dmareq->dmar_object.dmao_obj.pp_obj.pp_pp;
907 offset = dmareq->dmar_object.dmao_obj.pp_obj.pp_offset;
963 * save dmareq-object, size and npages into mp
965 mp->dmai_object = dmareq->dmar_object;
972 dmareq->dmar_fp == DDI_DMA_SLEEP ? VM_SLEEP : VM_NOSLEEP);
1053 dmareq->dmar_fp == DDI_DMA_SLEEP ? VM_SLEEP : VM_NOSLEEP);
1057 if (dmareq->dmar_fp == DDI_DMA_SLEEP)
1092 (dmareq->dmar_object.dmao_size + (size - 1)) / size;
1113 dmareq->dmar_fp != DDI_DMA_DONTWAIT) {
1114 ddi_set_callback(dmareq->dmar_fp,
1115 dmareq->dmar_arg, &softsp->dvma_call_list_id);
1329 struct ddi_dma_req *dmareq = (struct ddi_dma_req *)offp;
1341 dma_lim = dmareq->dmar_limits;
1353 np = dmareq->dmar_object.dmao_size;
1374 dmareq->dmar_fp == DDI_DMA_SLEEP ? VM_SLEEP : VM_NOSLEEP);