Lines Matching refs:tre
118 struct hidma_tre *tre; in hidma_ll_free() local
125 tre = &lldev->trepool[tre_ch]; in hidma_ll_free()
126 if (atomic_read(&tre->allocated) != true) { in hidma_ll_free()
131 atomic_set(&tre->allocated, 0); in hidma_ll_free()
138 struct hidma_tre *tre; in hidma_ll_request() local
153 tre = &lldev->trepool[i]; in hidma_ll_request()
154 tre->dma_sig = sig; in hidma_ll_request()
155 tre->dev_name = dev_name; in hidma_ll_request()
156 tre->callback = callback; in hidma_ll_request()
157 tre->data = data; in hidma_ll_request()
158 tre->idx = i; in hidma_ll_request()
159 tre->status = 0; in hidma_ll_request()
160 tre->queued = 0; in hidma_ll_request()
161 tre->err_code = 0; in hidma_ll_request()
162 tre->err_info = 0; in hidma_ll_request()
163 tre->lldev = lldev; in hidma_ll_request()
164 tre_local = &tre->tre_local[0]; in hidma_ll_request()
179 struct hidma_tre *tre; in hidma_ll_tre_complete() local
181 while (kfifo_out(&lldev->handoff_fifo, &tre, 1)) { in hidma_ll_tre_complete()
183 if (tre->callback) in hidma_ll_tre_complete()
184 tre->callback(tre->data); in hidma_ll_tre_complete()
191 struct hidma_tre *tre; in hidma_post_completed() local
198 tre = lldev->pending_tre_list[tre_iterator / HIDMA_TRE_SIZE]; in hidma_post_completed()
199 if (!tre) { in hidma_post_completed()
205 lldev->pending_tre_list[tre->tre_index] = NULL; in hidma_post_completed()
221 tre->err_info = err_info; in hidma_post_completed()
222 tre->err_code = err_code; in hidma_post_completed()
223 tre->queued = 0; in hidma_post_completed()
225 kfifo_put(&lldev->handoff_fifo, tre); in hidma_post_completed()
526 struct hidma_tre *tre; in hidma_ll_queue_request() local
529 tre = &lldev->trepool[tre_ch]; in hidma_ll_queue_request()
533 tre->tre_index = lldev->tre_write_offset / HIDMA_TRE_SIZE; in hidma_ll_queue_request()
534 lldev->pending_tre_list[tre->tre_index] = tre; in hidma_ll_queue_request()
536 &tre->tre_local[0], HIDMA_TRE_SIZE); in hidma_ll_queue_request()
537 tre->err_code = 0; in hidma_ll_queue_request()
538 tre->err_info = 0; in hidma_ll_queue_request()
539 tre->queued = 1; in hidma_ll_queue_request()
602 struct hidma_tre *tre; in hidma_ll_set_transfer_params() local
611 tre = &lldev->trepool[tre_ch]; in hidma_ll_set_transfer_params()
612 if (atomic_read(&tre->allocated) != true) { in hidma_ll_set_transfer_params()
618 tre_local = &tre->tre_local[0]; in hidma_ll_set_transfer_params()
626 tre->int_flags = flags; in hidma_ll_set_transfer_params()
837 struct hidma_tre *tre; in hidma_ll_status() local
843 tre = &lldev->trepool[tre_ch]; in hidma_ll_status()
844 err_code = tre->err_code; in hidma_ll_status()