Lines Matching refs:sdma_q
110 struct temp_sdma_queue_list *sdma_q, *next; in kfd_sdma_activity_worker() local
156 sdma_q = kzalloc(sizeof(struct temp_sdma_queue_list), GFP_KERNEL); in kfd_sdma_activity_worker()
157 if (!sdma_q) { in kfd_sdma_activity_worker()
162 INIT_LIST_HEAD(&sdma_q->list); in kfd_sdma_activity_worker()
163 sdma_q->rptr = (uint64_t __user *)q->properties.read_ptr; in kfd_sdma_activity_worker()
164 sdma_q->queue_id = q->properties.queue_id; in kfd_sdma_activity_worker()
165 list_add_tail(&sdma_q->list, &sdma_q_list.list); in kfd_sdma_activity_worker()
190 list_for_each_entry(sdma_q, &sdma_q_list.list, list) { in kfd_sdma_activity_worker()
192 ret = read_sdma_queue_counter(sdma_q->rptr, &val); in kfd_sdma_activity_worker()
195 sdma_q->queue_id); in kfd_sdma_activity_worker()
197 sdma_q->sdma_val = val; in kfd_sdma_activity_worker()
221 list_for_each_entry_safe(sdma_q, next, &sdma_q_list.list, list) { in kfd_sdma_activity_worker()
222 if (((uint64_t __user *)q->properties.read_ptr == sdma_q->rptr) && in kfd_sdma_activity_worker()
223 (sdma_q->queue_id == q->properties.queue_id)) { in kfd_sdma_activity_worker()
224 list_del(&sdma_q->list); in kfd_sdma_activity_worker()
225 kfree(sdma_q); in kfd_sdma_activity_worker()
238 list_for_each_entry_safe(sdma_q, next, &sdma_q_list.list, list) { in kfd_sdma_activity_worker()
239 workarea->sdma_activity_counter -= sdma_q->sdma_val; in kfd_sdma_activity_worker()
240 list_del(&sdma_q->list); in kfd_sdma_activity_worker()
241 kfree(sdma_q); in kfd_sdma_activity_worker()
247 list_for_each_entry_safe(sdma_q, next, &sdma_q_list.list, list) { in kfd_sdma_activity_worker()
248 list_del(&sdma_q->list); in kfd_sdma_activity_worker()
249 kfree(sdma_q); in kfd_sdma_activity_worker()