Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_kernel_queue.c40 static bool kq_initialize(struct kernel_queue *kq, struct kfd_dev *dev, in kq_initialize() argument
60 kq->dev = dev; in kq_initialize()
61 kq->nop_packet = nop.u32all; in kq_initialize()
64 kq->mqd_mgr = dev->dqm->mqd_mgrs[KFD_MQD_TYPE_DIQ]; in kq_initialize()
67 kq->mqd_mgr = dev->dqm->mqd_mgrs[KFD_MQD_TYPE_HIQ]; in kq_initialize()
74 if (!kq->mqd_mgr) in kq_initialize()
84 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in kq_initialize()
90 kq->pq_kernel_addr = kq->pq->cpu_ptr; in kq_initialize()
91 kq->pq_gpu_addr = kq->pq->gpu_addr; in kq_initialize()
95 retval = kfd_gtt_sa_allocate(dev, PAGE_SIZE, &kq->eop_mem); in kq_initialize()
[all …]
Dkfd_process_queue_manager.c38 (pqn->kq && pqn->kq->queue->properties.queue_id == qid)) in get_queue_by_qid()
203 struct kernel_queue *kq; in pqm_create_queue() local
208 kq = NULL; in pqm_create_queue()
255 pqn->kq = NULL; in pqm_create_queue()
275 pqn->kq = NULL; in pqm_create_queue()
280 kq = kernel_queue_init(dev, KFD_QUEUE_TYPE_DIQ); in pqm_create_queue()
281 if (!kq) { in pqm_create_queue()
285 kq->queue->properties.queue_id = *qid; in pqm_create_queue()
286 pqn->kq = kq; in pqm_create_queue()
289 kq, &pdd->qpd); in pqm_create_queue()
[all …]
Dkfd_kernel_queue.h46 int kq_acquire_packet_buffer(struct kernel_queue *kq,
49 void kq_submit_packet(struct kernel_queue *kq);
50 void kq_rollback_packet(struct kernel_queue *kq);
Dkfd_dbgdev.c57 struct kernel_queue *kq; in dbgdev_diq_submit_ib() local
65 kq = dbgdev->kq; in dbgdev_diq_submit_ib()
75 status = kq_acquire_packet_buffer(kq, in dbgdev_diq_submit_ib()
118 kq_rollback_packet(kq); in dbgdev_diq_submit_ib()
154 kq_submit_packet(kq); in dbgdev_diq_submit_ib()
173 dbgdev->kq = NULL; in dbgdev_register_nodiq()
182 struct kernel_queue *kq = NULL; in dbgdev_register_diq() local
197 kq = pqm_get_kernel_queue(dbgdev->pqm, qid); in dbgdev_register_diq()
199 if (!kq) { in dbgdev_register_diq()
205 dbgdev->kq = kq; in dbgdev_register_diq()
[all …]
Dkfd_packet_manager.c131 struct kernel_queue *kq; in pm_create_runlist_ib() local
165 list_for_each_entry(kq, &qpd->priv_queue_list, list) { in pm_create_runlist_ib()
166 if (!kq->queue->properties.is_active) in pm_create_runlist_ib()
170 kq->queue->queue, qpd->is_debug); in pm_create_runlist_ib()
174 kq->queue, in pm_create_runlist_ib()
Dkfd_device_queue_manager.h110 struct kernel_queue *kq,
114 struct kernel_queue *kq,
Dkfd_device_queue_manager.c1230 struct kernel_queue *kq, in create_kernel_queue_cpsch() argument
1249 list_add(&kq->list, &qpd->priv_queue_list); in create_kernel_queue_cpsch()
1250 increment_queue_count(dqm, qpd, kq->queue); in create_kernel_queue_cpsch()
1259 struct kernel_queue *kq, in destroy_kernel_queue_cpsch() argument
1263 list_del(&kq->list); in destroy_kernel_queue_cpsch()
1264 decrement_queue_count(dqm, qpd, kq->queue); in destroy_kernel_queue_cpsch()
1717 struct kernel_queue *kq, *kq_next; in process_termination_cpsch() local
1729 list_for_each_entry_safe(kq, kq_next, &qpd->priv_queue_list, list) { in process_termination_cpsch()
1730 list_del(&kq->list); in process_termination_cpsch()
1731 decrement_queue_count(dqm, qpd, kq->queue); in process_termination_cpsch()
Dkfd_dbgmgr.h259 struct kernel_queue *kq; member
Dkfd_priv.h972 void kernel_queue_uninit(struct kernel_queue *kq, bool hanging);
978 struct kernel_queue *kq; member
/kernel/linux/linux-5.10/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 …]