Lines Matching refs:virt_cmd_desc
174 void *virt_cmd_desc[QSPI_MAX_SG]; member
266 dma_pool_free(ctrl->dma_cmd_pool, ctrl->virt_cmd_desc[i], in qcom_qspi_handle_err()
307 struct qspi_cmd_desc *virt_cmd_desc, *prev; in qcom_qspi_alloc_desc() local
311 virt_cmd_desc = dma_pool_alloc(ctrl->dma_cmd_pool, GFP_ATOMIC | __GFP_ZERO, &dma_cmd_desc); in qcom_qspi_alloc_desc()
312 if (!virt_cmd_desc) { in qcom_qspi_alloc_desc()
317 ctrl->virt_cmd_desc[ctrl->n_cmd_desc] = virt_cmd_desc; in qcom_qspi_alloc_desc()
322 virt_cmd_desc->data_address = dma_ptr; in qcom_qspi_alloc_desc()
323 virt_cmd_desc->direction = ctrl->xfer.dir; in qcom_qspi_alloc_desc()
324 virt_cmd_desc->multi_io_mode = qspi_buswidth_to_iomode(ctrl, ctrl->xfer.buswidth); in qcom_qspi_alloc_desc()
325 virt_cmd_desc->fragment = !ctrl->xfer.is_last; in qcom_qspi_alloc_desc()
326 virt_cmd_desc->length = n_bytes; in qcom_qspi_alloc_desc()
330 prev = (ctrl->virt_cmd_desc)[ctrl->n_cmd_desc - 2]; in qcom_qspi_alloc_desc()
390 dma_pool_free(ctrl->dma_cmd_pool, ctrl->virt_cmd_desc[i], in qcom_qspi_setup_dma_desc()
657 dma_pool_free(ctrl->dma_cmd_pool, ctrl->virt_cmd_desc[i], in qcom_qspi_irq()