Home
last modified time | relevance | path

Searched refs:ae4cmd_q (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/dma/amd/ae4dma/
H A Dae4dma-dev.c19 struct ae4_cmd_queue *ae4cmd_q = container_of(work, struct ae4_cmd_queue, p_work.work); in ae4_pending_work() local
20 struct pt_cmd_queue *cmd_q = &ae4cmd_q->cmd_q; in ae4_pending_work()
25 wait_event_interruptible(ae4cmd_q->q_w, in ae4_pending_work()
26 ((atomic64_read(&ae4cmd_q->done_cnt)) < in ae4_pending_work()
27 atomic64_read(&ae4cmd_q->intr_cnt))); in ae4_pending_work()
29 atomic64_inc(&ae4cmd_q->done_cnt); in ae4_pending_work()
31 mutex_lock(&ae4cmd_q->cmd_lock); in ae4_pending_work()
33 while ((ae4cmd_q->dridx != cridx) && !list_empty(&ae4cmd_q->cmd)) { in ae4_pending_work()
34 cmd = list_first_entry(&ae4cmd_q->cmd, struct pt_cmd, entry); in ae4_pending_work()
37 ae4_check_status_error(ae4cmd_q, ae4cmd_q->dridx); in ae4_pending_work()
[all …]
H A Dae4dma.h94 struct ae4_cmd_queue ae4cmd_q[MAX_AE4_HW_QUEUES]; member
101 void ae4_check_status_error(struct ae4_cmd_queue *ae4cmd_q, int idx);
/linux/drivers/dma/amd/ptdma/
H A Dptdma-dmaengine.c49 void ae4_check_status_error(struct ae4_cmd_queue *ae4cmd_q, int idx) in ae4_check_status_error() argument
51 struct pt_cmd_queue *cmd_q = &ae4cmd_q->cmd_q; in ae4_check_status_error()
99 struct ae4_cmd_queue *ae4cmd_q; in pt_get_cmd_queue() local
105 ae4cmd_q = &ae4->ae4cmd_q[chan->id]; in pt_get_cmd_queue()
106 cmd_q = &ae4cmd_q->cmd_q; in pt_get_cmd_queue()
114 static int ae4_core_execute_cmd(struct ae4dma_desc *desc, struct ae4_cmd_queue *ae4cmd_q) in ae4_core_execute_cmd() argument
117 struct pt_cmd_queue *cmd_q = &ae4cmd_q->cmd_q; in ae4_core_execute_cmd()
124 mutex_lock(&ae4cmd_q->cmd_lock); in ae4_core_execute_cmd()
125 memcpy(&cmd_q->qbase[ae4cmd_q->tail_wi], desc, sizeof(struct ae4dma_desc)); in ae4_core_execute_cmd()
126 ae4cmd_q->q_cmd_count++; in ae4_core_execute_cmd()
[all …]
H A Dptdma-debugfs.c104 struct ae4_cmd_queue *ae4cmd_q; in ptdma_debugfs_setup() local
123 ae4cmd_q = &ae4->ae4cmd_q[i]; in ptdma_debugfs_setup()
124 cmd_q = &ae4cmd_q->cmd_q; in ptdma_debugfs_setup()
127 snprintf(name, 29, "q%d", ae4cmd_q->id); in ptdma_debugfs_setup()