/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager_cik.c | 34 static inline struct cik_mqd *get_mqd(void *mqd) in get_mqd() argument 36 return (struct cik_mqd *)mqd; in get_mqd() 39 static inline struct cik_sdma_rlc_registers *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 41 return (struct cik_sdma_rlc_registers *)mqd; in get_sdma_mqd() 44 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask() argument 56 m = get_mqd(mqd); in update_cu_mask() 87 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd() argument 135 *mqd = m; in init_mqd() 141 static void init_mqd_sdma(struct mqd_manager *mm, void **mqd, in init_mqd_sdma() argument 151 *mqd = m; in init_mqd_sdma() [all …]
|
D | kfd_mqd_manager_vi.c | 37 static inline struct vi_mqd *get_mqd(void *mqd) in get_mqd() argument 39 return (struct vi_mqd *)mqd; in get_mqd() 42 static inline struct vi_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 44 return (struct vi_sdma_mqd *)mqd; in get_sdma_mqd() 47 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask() argument 59 m = get_mqd(mqd); in update_cu_mask() 90 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd() argument 150 *mqd = m; in init_mqd() 156 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd() argument 164 return mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() [all …]
|
D | kfd_mqd_manager_v10.c | 34 static inline struct v10_compute_mqd *get_mqd(void *mqd) in get_mqd() argument 36 return (struct v10_compute_mqd *)mqd; in get_mqd() 39 static inline struct v10_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 41 return (struct v10_sdma_mqd *)mqd; in get_sdma_mqd() 44 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask() argument 56 m = get_mqd(mqd); in update_cu_mask() 87 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd() argument 136 *mqd = m; in init_mqd() 142 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd() argument 150 r = mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() [all …]
|
D | kfd_mqd_manager_v9.c | 35 static inline struct v9_mqd *get_mqd(void *mqd) in get_mqd() argument 37 return (struct v9_mqd *)mqd; in get_mqd() 40 static inline struct v9_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 42 return (struct v9_sdma_mqd *)mqd; in get_sdma_mqd() 45 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask() argument 57 m = get_mqd(mqd); in update_cu_mask() 130 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd() argument 188 *mqd = m; in init_mqd() 194 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd() argument 201 return mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id, in load_mqd() [all …]
|
D | kfd_mqd_manager.h | 73 void (*init_mqd)(struct mqd_manager *mm, void **mqd, 77 int (*load_mqd)(struct mqd_manager *mm, void *mqd, 82 void (*update_mqd)(struct mqd_manager *mm, void *mqd, 85 int (*destroy_mqd)(struct mqd_manager *mm, void *mqd, 90 void (*free_mqd)(struct mqd_manager *mm, void *mqd, 93 bool (*is_occupied)(struct mqd_manager *mm, void *mqd, 97 int (*get_wave_state)(struct mqd_manager *mm, void *mqd, 116 void free_mqd_hiq_sdma(struct mqd_manager *mm, void *mqd,
|
D | kfd_kernel_queue.c | 151 kq->mqd_mgr->init_mqd(kq->mqd_mgr, &kq->queue->mqd, in kq_initialize() 160 kq->mqd_mgr->load_mqd(kq->mqd_mgr, kq->queue->mqd, in kq_initialize() 180 kq->mqd_mgr->free_mqd(kq->mqd_mgr, kq->queue->mqd, kq->queue->mqd_mem_obj); in kq_initialize() 203 kq->queue->mqd, in kq_uninitialize() 211 kq->mqd_mgr->free_mqd(kq->mqd_mgr, kq->queue->mqd, in kq_uninitialize()
|
D | kfd_device_queue_manager.c | 372 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_nocpsch() 384 retval = mqd_mgr->load_mqd(mqd_mgr, q->mqd, q->pipe, in create_queue_nocpsch() 406 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in create_queue_nocpsch() 496 retval = mqd_mgr->destroy_mqd(mqd_mgr, q->mqd, in destroy_queue_nocpsch_locked() 551 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_nocpsch() 593 retval = mqd_mgr->destroy_mqd(mqd_mgr, q->mqd, in update_queue() 602 mqd_mgr->update_mqd(mqd_mgr, q->mqd, &q->properties); in update_queue() 638 retval = mqd_mgr->load_mqd(mqd_mgr, q->mqd, in update_queue() 681 retval = mqd_mgr->destroy_mqd(mqd_mgr, q->mqd, in evict_process_queues_nocpsch() 796 retval = mqd_mgr->load_mqd(mqd_mgr, q->mqd, q->pipe, in restore_process_queues_nocpsch() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | mes_v10_1.c | 597 struct v10_compute_mqd *mqd = ring->mqd_ptr; in mes_v10_1_mqd_init() local 601 mqd->header = 0xC0310800; in mes_v10_1_mqd_init() 602 mqd->compute_pipelinestat_enable = 0x00000001; in mes_v10_1_mqd_init() 603 mqd->compute_static_thread_mgmt_se0 = 0xffffffff; in mes_v10_1_mqd_init() 604 mqd->compute_static_thread_mgmt_se1 = 0xffffffff; in mes_v10_1_mqd_init() 605 mqd->compute_static_thread_mgmt_se2 = 0xffffffff; in mes_v10_1_mqd_init() 606 mqd->compute_static_thread_mgmt_se3 = 0xffffffff; in mes_v10_1_mqd_init() 607 mqd->compute_misc_reserved = 0x00000003; in mes_v10_1_mqd_init() 610 mqd->cp_hqd_eop_base_addr_lo = eop_base_addr; in mes_v10_1_mqd_init() 611 mqd->cp_hqd_eop_base_addr_hi = upper_32_bits(eop_base_addr); in mes_v10_1_mqd_init() [all …]
|
D | amdgpu_amdkfd_arcturus.c | 64 static inline struct v9_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 66 return (struct v9_sdma_mqd *)mqd; in get_sdma_mqd() 125 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, in kgd_hqd_sdma_load() argument 136 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_load() 227 static bool kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd) in kgd_hqd_sdma_is_occupied() argument 234 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_is_occupied() 246 static int kgd_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd, in kgd_hqd_sdma_destroy() argument 255 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_destroy()
|
D | amdgpu_amdkfd_gfx_v8.c | 158 static inline struct vi_mqd *get_mqd(void *mqd) in get_mqd() argument 160 return (struct vi_mqd *)mqd; in get_mqd() 163 static inline struct vi_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 165 return (struct vi_sdma_mqd *)mqd; in get_sdma_mqd() 168 static int kgd_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, in kgd_hqd_load() argument 179 m = get_mqd(mqd); in kgd_hqd_load() 279 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, in kgd_hqd_sdma_load() argument 288 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_load() 392 static bool kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd) in kgd_hqd_sdma_is_occupied() argument 399 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_is_occupied() [all …]
|
D | amdgpu_amdkfd_gfx_v10.c | 212 static inline struct v10_compute_mqd *get_mqd(void *mqd) in get_mqd() argument 214 return (struct v10_compute_mqd *)mqd; in get_mqd() 217 static inline struct v10_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 219 return (struct v10_sdma_mqd *)mqd; in get_sdma_mqd() 222 static int kgd_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, in kgd_hqd_load() argument 232 m = get_mqd(mqd); in kgd_hqd_load() 305 static int kgd_hiq_mqd_load(struct kgd_dev *kgd, void *mqd, in kgd_hiq_mqd_load() argument 315 m = get_mqd(mqd); in kgd_hiq_mqd_load() 390 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, in kgd_hqd_sdma_load() argument 401 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_load() [all …]
|
D | amdgpu_amdkfd_gfx_v9.c | 224 static inline struct v9_mqd *get_mqd(void *mqd) in get_mqd() argument 226 return (struct v9_mqd *)mqd; in get_mqd() 229 static inline struct v9_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 231 return (struct v9_sdma_mqd *)mqd; in get_sdma_mqd() 234 int kgd_gfx_v9_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, in kgd_gfx_v9_hqd_load() argument 244 m = get_mqd(mqd); in kgd_gfx_v9_hqd_load() 314 int kgd_gfx_v9_hiq_mqd_load(struct kgd_dev *kgd, void *mqd, in kgd_gfx_v9_hiq_mqd_load() argument 324 m = get_mqd(mqd); in kgd_gfx_v9_hiq_mqd_load() 399 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, in kgd_hqd_sdma_load() argument 410 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_load() [all …]
|
D | amdgpu_amdkfd_gfx_v7.c | 200 static inline struct cik_mqd *get_mqd(void *mqd) in get_mqd() argument 202 return (struct cik_mqd *)mqd; in get_mqd() 205 static inline struct cik_sdma_rlc_registers *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 207 return (struct cik_sdma_rlc_registers *)mqd; in get_sdma_mqd() 210 static int kgd_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, in kgd_hqd_load() argument 221 m = get_mqd(mqd); in kgd_hqd_load() 292 static int kgd_hqd_sdma_load(struct kgd_dev *kgd, void *mqd, in kgd_hqd_sdma_load() argument 301 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_load() 397 static bool kgd_hqd_sdma_is_occupied(struct kgd_dev *kgd, void *mqd) in kgd_hqd_sdma_is_occupied() argument 404 m = get_sdma_mqd(mqd); in kgd_hqd_sdma_is_occupied() [all …]
|
D | amdgpu_amdkfd_gfx_v10_3.c | 182 static inline struct v10_compute_mqd *get_mqd(void *mqd) in get_mqd() argument 184 return (struct v10_compute_mqd *)mqd; in get_mqd() 187 static inline struct v10_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument 189 return (struct v10_sdma_mqd *)mqd; in get_sdma_mqd() 192 static int hqd_load_v10_3(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, in hqd_load_v10_3() argument 202 m = get_mqd(mqd); in hqd_load_v10_3() 290 static int hiq_mqd_load_v10_3(struct kgd_dev *kgd, void *mqd, in hiq_mqd_load_v10_3() argument 300 m = get_mqd(mqd); in hiq_mqd_load_v10_3() 375 static int hqd_sdma_load_v10_3(struct kgd_dev *kgd, void *mqd, in hqd_sdma_load_v10_3() argument 386 m = get_sdma_mqd(mqd); in hqd_sdma_load_v10_3() [all …]
|
D | amdgpu_amdkfd_gfx_v9.h | 32 int kgd_gfx_v9_hqd_load(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, 36 int kgd_gfx_v9_hiq_mqd_load(struct kgd_dev *kgd, void *mqd, 44 int kgd_gfx_v9_hqd_destroy(struct kgd_dev *kgd, void *mqd,
|
D | gfx_v7_0.c | 2921 struct cik_mqd *mqd, in gfx_v7_0_mqd_init() argument 2929 memset(mqd, 0, sizeof(struct cik_mqd)); in gfx_v7_0_mqd_init() 2931 mqd->header = 0xC0310800; in gfx_v7_0_mqd_init() 2932 mqd->compute_static_thread_mgmt_se0 = 0xffffffff; in gfx_v7_0_mqd_init() 2933 mqd->compute_static_thread_mgmt_se1 = 0xffffffff; in gfx_v7_0_mqd_init() 2934 mqd->compute_static_thread_mgmt_se2 = 0xffffffff; in gfx_v7_0_mqd_init() 2935 mqd->compute_static_thread_mgmt_se3 = 0xffffffff; in gfx_v7_0_mqd_init() 2938 mqd->cp_hqd_pq_doorbell_control = in gfx_v7_0_mqd_init() 2941 mqd->cp_hqd_pq_doorbell_control |= CP_HQD_PQ_DOORBELL_CONTROL__DOORBELL_EN_MASK; in gfx_v7_0_mqd_init() 2943 mqd->cp_hqd_pq_doorbell_control &= ~CP_HQD_PQ_DOORBELL_CONTROL__DOORBELL_EN_MASK; in gfx_v7_0_mqd_init() [all …]
|
D | gfx_v9_0.c | 3400 static void gfx_v9_0_mqd_set_priority(struct amdgpu_ring *ring, struct v9_mqd *mqd) in gfx_v9_0_mqd_set_priority() argument 3408 mqd->cp_hqd_pipe_priority = AMDGPU_GFX_PIPE_PRIO_HIGH; in gfx_v9_0_mqd_set_priority() 3409 mqd->cp_hqd_queue_priority = in gfx_v9_0_mqd_set_priority() 3418 struct v9_mqd *mqd = ring->mqd_ptr; in gfx_v9_0_mqd_init() local 3422 mqd->header = 0xC0310800; in gfx_v9_0_mqd_init() 3423 mqd->compute_pipelinestat_enable = 0x00000001; in gfx_v9_0_mqd_init() 3424 mqd->compute_static_thread_mgmt_se0 = 0xffffffff; in gfx_v9_0_mqd_init() 3425 mqd->compute_static_thread_mgmt_se1 = 0xffffffff; in gfx_v9_0_mqd_init() 3426 mqd->compute_static_thread_mgmt_se2 = 0xffffffff; in gfx_v9_0_mqd_init() 3427 mqd->compute_static_thread_mgmt_se3 = 0xffffffff; in gfx_v9_0_mqd_init() [all …]
|
D | gfx_v10_0.c | 6126 struct v10_gfx_mqd *mqd = ring->mqd_ptr; in gfx_v10_0_gfx_mqd_init() local 6132 mqd->cp_gfx_hqd_wptr = 0; in gfx_v10_0_gfx_mqd_init() 6133 mqd->cp_gfx_hqd_wptr_hi = 0; in gfx_v10_0_gfx_mqd_init() 6136 mqd->cp_mqd_base_addr = ring->mqd_gpu_addr & 0xfffffffc; in gfx_v10_0_gfx_mqd_init() 6137 mqd->cp_mqd_base_addr_hi = upper_32_bits(ring->mqd_gpu_addr); in gfx_v10_0_gfx_mqd_init() 6144 mqd->cp_gfx_mqd_control = tmp; in gfx_v10_0_gfx_mqd_init() 6149 mqd->cp_gfx_hqd_vmid = 0; in gfx_v10_0_gfx_mqd_init() 6155 mqd->cp_gfx_hqd_queue_priority = tmp; in gfx_v10_0_gfx_mqd_init() 6160 mqd->cp_gfx_hqd_quantum = tmp; in gfx_v10_0_gfx_mqd_init() 6164 mqd->cp_gfx_hqd_base = hqd_gpu_addr; in gfx_v10_0_gfx_mqd_init() [all …]
|
D | gfx_v8_0.c | 4432 static void gfx_v8_0_mqd_set_priority(struct amdgpu_ring *ring, struct vi_mqd *mqd) in gfx_v8_0_mqd_set_priority() argument 4439 mqd->cp_hqd_pipe_priority = AMDGPU_GFX_PIPE_PRIO_HIGH; in gfx_v8_0_mqd_set_priority() 4440 mqd->cp_hqd_queue_priority = in gfx_v8_0_mqd_set_priority() 4449 struct vi_mqd *mqd = ring->mqd_ptr; in gfx_v8_0_mqd_init() local 4453 mqd->header = 0xC0310800; in gfx_v8_0_mqd_init() 4454 mqd->compute_pipelinestat_enable = 0x00000001; in gfx_v8_0_mqd_init() 4455 mqd->compute_static_thread_mgmt_se0 = 0xffffffff; in gfx_v8_0_mqd_init() 4456 mqd->compute_static_thread_mgmt_se1 = 0xffffffff; in gfx_v8_0_mqd_init() 4457 mqd->compute_static_thread_mgmt_se2 = 0xffffffff; in gfx_v8_0_mqd_init() 4458 mqd->compute_static_thread_mgmt_se3 = 0xffffffff; in gfx_v8_0_mqd_init() [all …]
|
D | gfx_v8_0.h | 33 int gfx_v8_0_mqd_commit(struct amdgpu_device *adev, struct vi_mqd *mqd);
|
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
D | grukservices.c | 545 int gru_create_message_queue(struct gru_message_queue_desc *mqd, in gru_create_message_queue() argument 561 mqd->mq = mq; in gru_create_message_queue() 562 mqd->mq_gpa = uv_gpa(mq); in gru_create_message_queue() 563 mqd->qlines = qlines; in gru_create_message_queue() 564 mqd->interrupt_pnode = nasid >> 1; in gru_create_message_queue() 565 mqd->interrupt_vector = vector; in gru_create_message_queue() 566 mqd->interrupt_apicid = apicid; in gru_create_message_queue() 579 static int send_noop_message(void *cb, struct gru_message_queue_desc *mqd, in send_noop_message() argument 591 gru_mesq(cb, mqd->mq_gpa, gru_get_tri(mhdr), 1, IMA); in send_noop_message() 615 m = mqd->mq_gpa + (gru_get_amo_value_head(cb) << 6); in send_noop_message() [all …]
|
D | grukservices.h | 61 extern int gru_create_message_queue(struct gru_message_queue_desc *mqd, 81 extern int gru_send_message_gpa(struct gru_message_queue_desc *mqd, 101 extern void gru_free_message(struct gru_message_queue_desc *mqd, 117 extern void *gru_get_next_message(struct gru_message_queue_desc *mqd);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/include/ |
D | kgd_kfd_interface.h | 239 int (*hqd_load)(struct kgd_dev *kgd, void *mqd, uint32_t pipe_id, 244 int (*hiq_mqd_load)(struct kgd_dev *kgd, void *mqd, 248 int (*hqd_sdma_load)(struct kgd_dev *kgd, void *mqd, 262 int (*hqd_destroy)(struct kgd_dev *kgd, void *mqd, uint32_t reset_type, 266 bool (*hqd_sdma_is_occupied)(struct kgd_dev *kgd, void *mqd); 268 int (*hqd_sdma_destroy)(struct kgd_dev *kgd, void *mqd,
|
/kernel/liteos_m/kal/posix/src/ |
D | mqueue.c | 428 static int MqGetSetAttr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in MqGetSetAttr() argument 431 return OsMqGetAttr(mqd, old); in MqGetSetAttr() 433 return OsMqSetAttr(mqd, new, old); in MqGetSetAttr() 436 int mq_getattr(mqd_t mqd, struct mq_attr *attr) in mq_getattr() argument 438 if ((mqd == (mqd_t)NULL) || (mqd == (mqd_t)-1)) { in mq_getattr() 442 return MqGetSetAttr(mqd, NULL, attr); in mq_getattr() 445 int mq_setattr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in mq_setattr() argument 447 if ((mqd == (mqd_t)NULL) || (mqd == (mqd_t)-1)) { in mq_setattr() 455 return MqGetSetAttr(mqd, new, old); in mq_setattr()
|
/kernel/liteos_a/syscall/ |
D | ipc_syscall.c | 106 int SysMqGetSetAttr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old) in SysMqGetSetAttr() argument 118 MQUEUE_FD_U2K(mqd); in SysMqGetSetAttr() 119 ret = mq_getsetattr(mqd, new ? &knew : NULL, old ? &kold : NULL); in SysMqGetSetAttr()
|