Home
last modified time | relevance | path

Searched refs:kq (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_kernel_queue.c41 static bool kq_initialize(struct kernel_queue *kq, struct kfd_dev *dev, in kq_initialize() argument
61 kq->dev = dev; in kq_initialize()
62 kq->nop_packet = nop.u32all; in kq_initialize()
65 kq->mqd_mgr = dev->dqm->mqd_mgrs[KFD_MQD_TYPE_DIQ]; in kq_initialize()
68 kq->mqd_mgr = dev->dqm->mqd_mgrs[KFD_MQD_TYPE_HIQ]; in kq_initialize()
75 if (!kq->mqd_mgr) in kq_initialize()
85 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in kq_initialize()
91 kq->pq_kernel_addr = kq->pq->cpu_ptr; in kq_initialize()
92 kq->pq_gpu_addr = kq->pq->gpu_addr; in kq_initialize()
96 retval = kfd_gtt_sa_allocate(dev, PAGE_SIZE, &kq->eop_mem); in kq_initialize()
[all …]
Dkfd_process_queue_manager.c39 (pqn->kq && pqn->kq->queue->properties.queue_id == qid)) in get_queue_by_qid()
241 struct kernel_queue *kq; in pqm_create_queue() local
246 kq = NULL; in pqm_create_queue()
298 pqn->kq = NULL; in pqm_create_queue()
319 pqn->kq = NULL; in pqm_create_queue()
325 kq = kernel_queue_init(dev, KFD_QUEUE_TYPE_DIQ); in pqm_create_queue()
326 if (!kq) { in pqm_create_queue()
330 kq->queue->properties.queue_id = *qid; in pqm_create_queue()
331 pqn->kq = kq; in pqm_create_queue()
334 kq, &pdd->qpd); in pqm_create_queue()
[all …]
Dkfd_kernel_queue.h47 int kq_acquire_packet_buffer(struct kernel_queue *kq,
50 void kq_submit_packet(struct kernel_queue *kq);
51 void kq_rollback_packet(struct kernel_queue *kq);
Dkfd_packet_manager.c132 struct kernel_queue *kq; in pm_create_runlist_ib() local
166 list_for_each_entry(kq, &qpd->priv_queue_list, list) { in pm_create_runlist_ib()
167 if (!kq->queue->properties.is_active) in pm_create_runlist_ib()
171 kq->queue->queue, qpd->is_debug); in pm_create_runlist_ib()
175 kq->queue, in pm_create_runlist_ib()
Dkfd_device_queue_manager.h157 struct kernel_queue *kq,
161 struct kernel_queue *kq,
Dkfd_device_queue_manager.c1565 struct kernel_queue *kq, in create_kernel_queue_cpsch() argument
1584 list_add(&kq->list, &qpd->priv_queue_list); in create_kernel_queue_cpsch()
1585 increment_queue_count(dqm, qpd, kq->queue); in create_kernel_queue_cpsch()
1594 struct kernel_queue *kq, in destroy_kernel_queue_cpsch() argument
1598 list_del(&kq->list); in destroy_kernel_queue_cpsch()
1599 decrement_queue_count(dqm, qpd, kq->queue); in destroy_kernel_queue_cpsch()
2131 struct kernel_queue *kq, *kq_next; in process_termination_cpsch() local
2143 list_for_each_entry_safe(kq, kq_next, &qpd->priv_queue_list, list) { in process_termination_cpsch()
2144 list_del(&kq->list); in process_termination_cpsch()
2145 decrement_queue_count(dqm, qpd, kq->queue); in process_termination_cpsch()
Dkfd_priv.h1192 void kernel_queue_uninit(struct kernel_queue *kq, bool hanging);
1198 struct kernel_queue *kq; member
/linux-6.1.9/drivers/soc/ti/
Dknav_qmss_acc.c53 struct knav_queue_inst *kq, in knav_acc_set_notify() argument
64 if (!enabled || atomic_read(&kq->desc_count) <= 0) in knav_acc_set_notify()
67 kq->notify_needed = 1; in knav_acc_set_notify()
68 atomic_inc(&kq->acc->retrigger_count); in knav_acc_set_notify()
69 mask = BIT(kq->acc->channel % 32); in knav_acc_set_notify()
70 offset = ACC_INTD_OFFSET_STATUS(kq->acc->channel); in knav_acc_set_notify()
72 kq->acc->name); in knav_acc_set_notify()
80 struct knav_queue_inst *kq = NULL; in knav_acc_int_handler() local
101 kq = knav_range_offset_to_inst(kdev, range, queue); in knav_acc_int_handler()
158 kq = knav_range_offset_to_inst(kdev, range, in knav_acc_int_handler()
[all …]