Lines Matching refs:desc

135 	struct dma_async_tx_descriptor *desc;  member
531 struct qcom_slim_ngd_dma_desc *desc; in qcom_slim_ngd_tx_msg_get() local
540 desc = &ctrl->txdesc[ctrl->tx_tail]; in qcom_slim_ngd_tx_msg_get()
541 desc->base = ctrl->tx_base + ctrl->tx_tail * SLIM_MSGQ_BUF_LEN; in qcom_slim_ngd_tx_msg_get()
542 desc->comp = comp; in qcom_slim_ngd_tx_msg_get()
547 return desc->base; in qcom_slim_ngd_tx_msg_get()
552 struct qcom_slim_ngd_dma_desc *desc = args; in qcom_slim_ngd_tx_msg_dma_cb() local
553 struct qcom_slim_ngd_ctrl *ctrl = desc->ctrl; in qcom_slim_ngd_tx_msg_dma_cb()
558 if (desc->comp) { in qcom_slim_ngd_tx_msg_dma_cb()
559 complete(desc->comp); in qcom_slim_ngd_tx_msg_dma_cb()
560 desc->comp = NULL; in qcom_slim_ngd_tx_msg_dma_cb()
570 struct qcom_slim_ngd_dma_desc *desc; in qcom_slim_ngd_tx_msg_post() local
578 desc = &ctrl->txdesc[index]; in qcom_slim_ngd_tx_msg_post()
579 desc->phys = ctrl->tx_phys_base + offset; in qcom_slim_ngd_tx_msg_post()
580 desc->base = ctrl->tx_base + offset; in qcom_slim_ngd_tx_msg_post()
581 desc->ctrl = ctrl; in qcom_slim_ngd_tx_msg_post()
584 desc->desc = dmaengine_prep_slave_single(ctrl->dma_tx_channel, in qcom_slim_ngd_tx_msg_post()
585 desc->phys, len, in qcom_slim_ngd_tx_msg_post()
588 if (!desc->desc) { in qcom_slim_ngd_tx_msg_post()
594 desc->desc->callback = qcom_slim_ngd_tx_msg_dma_cb; in qcom_slim_ngd_tx_msg_post()
595 desc->desc->callback_param = desc; in qcom_slim_ngd_tx_msg_post()
596 desc->desc->cookie = dmaengine_submit(desc->desc); in qcom_slim_ngd_tx_msg_post()
627 struct qcom_slim_ngd_dma_desc *desc = args; in qcom_slim_ngd_rx_msgq_cb() local
628 struct qcom_slim_ngd_ctrl *ctrl = desc->ctrl; in qcom_slim_ngd_rx_msgq_cb()
630 qcom_slim_ngd_rx(ctrl, (u8 *)desc->base); in qcom_slim_ngd_rx_msgq_cb()
632 desc->desc = dmaengine_prep_slave_single(ctrl->dma_rx_channel, in qcom_slim_ngd_rx_msgq_cb()
633 desc->phys, SLIM_MSGQ_BUF_LEN, in qcom_slim_ngd_rx_msgq_cb()
636 if (!desc->desc) { in qcom_slim_ngd_rx_msgq_cb()
641 desc->desc->callback = qcom_slim_ngd_rx_msgq_cb; in qcom_slim_ngd_rx_msgq_cb()
642 desc->desc->callback_param = desc; in qcom_slim_ngd_rx_msgq_cb()
643 desc->desc->cookie = dmaengine_submit(desc->desc); in qcom_slim_ngd_rx_msgq_cb()
649 struct qcom_slim_ngd_dma_desc *desc; in qcom_slim_ngd_post_rx_msgq() local
653 desc = &ctrl->rx_desc[i]; in qcom_slim_ngd_post_rx_msgq()
654 desc->phys = ctrl->rx_phys_base + i * SLIM_MSGQ_BUF_LEN; in qcom_slim_ngd_post_rx_msgq()
655 desc->ctrl = ctrl; in qcom_slim_ngd_post_rx_msgq()
656 desc->base = ctrl->rx_base + i * SLIM_MSGQ_BUF_LEN; in qcom_slim_ngd_post_rx_msgq()
657 desc->desc = dmaengine_prep_slave_single(ctrl->dma_rx_channel, in qcom_slim_ngd_post_rx_msgq()
658 desc->phys, SLIM_MSGQ_BUF_LEN, in qcom_slim_ngd_post_rx_msgq()
661 if (!desc->desc) { in qcom_slim_ngd_post_rx_msgq()
666 desc->desc->callback = qcom_slim_ngd_rx_msgq_cb; in qcom_slim_ngd_post_rx_msgq()
667 desc->desc->callback_param = desc; in qcom_slim_ngd_post_rx_msgq()
668 desc->desc->cookie = dmaengine_submit(desc->desc); in qcom_slim_ngd_post_rx_msgq()