Home
last modified time | relevance | path

Searched refs:wqi_size (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_guc_submit.c567 static int wq_wait_for_space(struct xe_exec_queue *q, u32 wqi_size) in wq_wait_for_space() argument
576 if (wqi_size > AVAILABLE_SPACE) { in wq_wait_for_space()
579 if (wqi_size > AVAILABLE_SPACE) { in wq_wait_for_space()
622 u32 wqi_size = (q->width + (WQ_HEADER_SIZE - 1)) * sizeof(u32); in wq_item_append() local
623 u32 len_dw = (wqi_size / sizeof(u32)) - 1; in wq_item_append()
626 if (wqi_size > wq_space_until_wrap(q)) { in wq_item_append()
630 if (wq_wait_for_space(q, wqi_size)) in wq_item_append()
645 xe_assert(xe, i == wqi_size / sizeof(u32)); in wq_item_append()
649 xe_map_memcpy_to(xe, &map, 0, wqi, wqi_size); in wq_item_append()
650 q->guc->wqi_tail += wqi_size; in wq_item_append()
/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_submission.c496 static u32 *get_wq_pointer(struct intel_context *ce, u32 wqi_size) in get_wq_pointer() argument
505 if (wqi_size > AVAILABLE_SPACE) { in get_wq_pointer()
508 if (wqi_size > AVAILABLE_SPACE) in get_wq_pointer()
819 static void write_wqi(struct intel_context *ce, u32 wqi_size) in write_wqi() argument
828 ce->parallel.guc.wqi_tail = (ce->parallel.guc.wqi_tail + wqi_size) & in write_wqi()
854 unsigned int wqi_size = (ce->parallel.number_children + 4) * in __guc_wq_item_append() local
857 u32 len_dw = (wqi_size / sizeof(u32)) - 1; in __guc_wq_item_append()
867 if (wqi_size > wq_space_until_wrap(ce)) { in __guc_wq_item_append()
873 wqi = get_wq_pointer(ce, wqi_size); in __guc_wq_item_append()
888 write_wqi(ce, wqi_size); in __guc_wq_item_append()