Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_cxt.c320 u32 cxt_size = CONN_CXT_SIZE(p_hwfn); in qed_cxt_set_proto_cid_count() local
321 u32 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cxt_set_proto_cid_count()
1299 u32 page_sz, elems_per_page, block_waste, cxt_size, cdu_params = 0; in qed_cdu_init_common() local
1303 cxt_size = CONN_CXT_SIZE(p_hwfn); in qed_cdu_init_common()
1304 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
1305 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common()
1307 SET_FIELD(cdu_params, CDUC_CXT_SIZE, cxt_size); in qed_cdu_init_common()
1314 cxt_size = p_hwfn->p_cxt_mngr->task_type_size[0]; in qed_cdu_init_common()
1315 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
1316 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dintel_engine_cs.c276 u32 cxt_size; in intel_engine_context_size() local
299 cxt_size = intel_uncore_read(uncore, GEN7_CXT_SIZE); in intel_engine_context_size()
300 return round_up(GEN7_CXT_TOTAL_SIZE(cxt_size) * 64, in intel_engine_context_size()
303 cxt_size = intel_uncore_read(uncore, CXT_SIZE); in intel_engine_context_size()
304 return round_up(GEN6_CXT_TOTAL_SIZE(cxt_size) * 64, in intel_engine_context_size()
318 cxt_size = intel_uncore_read(uncore, CXT_SIZE) + 1; in intel_engine_context_size()
320 GRAPHICS_VER(gt->i915), cxt_size * 64, in intel_engine_context_size()
321 cxt_size - 1); in intel_engine_context_size()
322 return round_up(cxt_size * 64, PAGE_SIZE); in intel_engine_context_size()