/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_kernel_queue.c | 37 static bool initialize(struct kernel_queue *kq, struct kfd_dev *dev, in initialize() argument 44 BUG_ON(!kq || !dev); in initialize() 54 kq->dev = dev; in initialize() 55 kq->nop_packet = nop.u32all; in initialize() 59 kq->mqd = dev->dqm->ops.get_mqd_manager(dev->dqm, in initialize() 67 if (kq->mqd == NULL) in initialize() 77 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in initialize() 83 kq->pq_kernel_addr = kq->pq->cpu_ptr; in initialize() 84 kq->pq_gpu_addr = kq->pq->gpu_addr; in initialize() 86 retval = kq->ops_asic_specific.initialize(kq, dev, type, queue_size); in initialize() [all …]
|
D | kfd_kernel_queue_vi.c | 26 static bool initialize_vi(struct kernel_queue *kq, struct kfd_dev *dev, 28 static void uninitialize_vi(struct kernel_queue *kq); 36 static bool initialize_vi(struct kernel_queue *kq, struct kfd_dev *dev, in initialize_vi() argument 41 retval = kfd_gtt_sa_allocate(dev, PAGE_SIZE, &kq->eop_mem); in initialize_vi() 45 kq->eop_gpu_addr = kq->eop_mem->gpu_addr; in initialize_vi() 46 kq->eop_kernel_addr = kq->eop_mem->cpu_ptr; in initialize_vi() 48 memset(kq->eop_kernel_addr, 0, PAGE_SIZE); in initialize_vi() 53 static void uninitialize_vi(struct kernel_queue *kq) in uninitialize_vi() argument 55 kfd_gtt_sa_free(kq->dev, kq->eop_mem); in uninitialize_vi()
|
D | kfd_process_queue_manager.c | 40 if (pqn->kq && pqn->kq->queue->properties.queue_id == qid) in get_queue_by_qid() 102 pqn->kq->queue->properties.queue_id); in pqm_uninit() 160 struct kernel_queue *kq; in pqm_create_queue() local 169 kq = NULL; in pqm_create_queue() 219 pqn->kq = NULL; in pqm_create_queue() 240 pqn->kq = NULL; in pqm_create_queue() 247 kq = kernel_queue_init(dev, KFD_QUEUE_TYPE_DIQ); in pqm_create_queue() 248 if (kq == NULL) { in pqm_create_queue() 252 kq->queue->properties.queue_id = *qid; in pqm_create_queue() 253 pqn->kq = kq; in pqm_create_queue() [all …]
|
D | kfd_kernel_queue.h | 56 bool (*initialize)(struct kernel_queue *kq, struct kfd_dev *dev, 58 void (*uninitialize)(struct kernel_queue *kq); 59 int (*acquire_packet_buffer)(struct kernel_queue *kq, 63 void (*submit_packet)(struct kernel_queue *kq); 64 void (*rollback_packet)(struct kernel_queue *kq);
|
D | kfd_dbgdev.c | 60 struct kernel_queue *kq; in dbgdev_diq_submit_ib() local 65 BUG_ON(!dbgdev || !dbgdev->kq || !packet_buff || !size_in_bytes); in dbgdev_diq_submit_ib() 67 kq = dbgdev->kq; in dbgdev_diq_submit_ib() 77 status = kq->ops.acquire_packet_buffer(kq, in dbgdev_diq_submit_ib() 120 kq->ops.rollback_packet(kq); in dbgdev_diq_submit_ib() 157 kq->ops.submit_packet(kq); in dbgdev_diq_submit_ib() 178 dbgdev->kq = NULL; in dbgdev_register_nodiq() 187 struct kernel_queue *kq = NULL; in dbgdev_register_diq() local 203 kq = pqm_get_kernel_queue(dbgdev->pqm, qid); in dbgdev_register_diq() 205 if (kq == NULL) { in dbgdev_register_diq() [all …]
|
D | kfd_kernel_queue_cik.c | 26 static bool initialize_cik(struct kernel_queue *kq, struct kfd_dev *dev, 28 static void uninitialize_cik(struct kernel_queue *kq); 36 static bool initialize_cik(struct kernel_queue *kq, struct kfd_dev *dev, in initialize_cik() argument 42 static void uninitialize_cik(struct kernel_queue *kq) in uninitialize_cik() argument
|
D | kfd_packet_manager.c | 323 struct kernel_queue *kq; in pm_create_runlist_ib() local 359 list_for_each_entry(kq, &qpd->priv_queue_list, list) { in pm_create_runlist_ib() 360 if (kq->queue->properties.is_active != true) in pm_create_runlist_ib() 364 kq->queue->queue, qpd->is_debug); in pm_create_runlist_ib() 370 kq->queue, in pm_create_runlist_ib() 375 kq->queue, in pm_create_runlist_ib()
|
D | kfd_device_queue_manager.h | 114 struct kernel_queue *kq, 118 struct kernel_queue *kq,
|
D | kfd_device_queue_manager.c | 792 struct kernel_queue *kq, in create_kernel_queue_cpsch() argument 795 BUG_ON(!dqm || !kq || !qpd); in create_kernel_queue_cpsch() 815 list_add(&kq->list, &qpd->priv_queue_list); in create_kernel_queue_cpsch() 825 struct kernel_queue *kq, in destroy_kernel_queue_cpsch() argument 828 BUG_ON(!dqm || !kq); in destroy_kernel_queue_cpsch() 835 list_del(&kq->list); in destroy_kernel_queue_cpsch()
|
D | kfd_dbgmgr.h | 260 struct kernel_queue *kq; member
|
D | kfd_priv.h | 640 void kernel_queue_uninit(struct kernel_queue *kq); 645 struct kernel_queue *kq; member
|
/drivers/soc/ti/ |
D | knav_qmss_acc.c | 70 struct knav_queue_inst *kq, in knav_acc_set_notify() argument 81 if (!enabled || atomic_read(&kq->desc_count) <= 0) in knav_acc_set_notify() 84 kq->notify_needed = 1; in knav_acc_set_notify() 85 atomic_inc(&kq->acc->retrigger_count); in knav_acc_set_notify() 86 mask = BIT(kq->acc->channel % 32); in knav_acc_set_notify() 87 offset = ACC_INTD_OFFSET_STATUS(kq->acc->channel); in knav_acc_set_notify() 89 kq->acc->name); in knav_acc_set_notify() 97 struct knav_queue_inst *kq = NULL; in knav_acc_int_handler() local 118 kq = knav_range_offset_to_inst(kdev, range, queue); in knav_acc_int_handler() 175 kq = knav_range_offset_to_inst(kdev, range, in knav_acc_int_handler() [all …]
|