Home
last modified time | relevance | path

Searched refs:se_num (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Dsoc24.c137 u32 se_num, in soc24_read_indexed_register() argument
144 if (se_num != 0xffffffff || sh_num != 0xffffffff) in soc24_read_indexed_register()
145 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in soc24_read_indexed_register()
149 if (se_num != 0xffffffff || sh_num != 0xffffffff) in soc24_read_indexed_register()
156 bool indexed, u32 se_num, in soc24_get_register_value() argument
160 return soc24_read_indexed_register(adev, se_num, sh_num, reg_offset); in soc24_get_register_value()
169 static int soc24_read_register(struct amdgpu_device *adev, u32 se_num, in soc24_read_register() argument
186 se_num, sh_num, reg_offset); in soc24_read_register()
H A Dsoc21.c278 static uint32_t soc21_read_indexed_register(struct amdgpu_device *adev, u32 se_num, in soc21_read_indexed_register() argument
284 if (se_num != 0xffffffff || sh_num != 0xffffffff) in soc21_read_indexed_register()
285 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in soc21_read_indexed_register()
289 if (se_num != 0xffffffff || sh_num != 0xffffffff) in soc21_read_indexed_register()
296 bool indexed, u32 se_num, in soc21_get_register_value() argument
300 return soc21_read_indexed_register(adev, se_num, sh_num, reg_offset); in soc21_get_register_value()
308 static int soc21_read_register(struct amdgpu_device *adev, u32 se_num, in soc21_read_register() argument
325 se_num, sh_num, reg_offset); in soc21_read_register()
H A Dnv.c357 static uint32_t nv_read_indexed_register(struct amdgpu_device *adev, u32 se_num, in nv_read_indexed_register() argument
363 if (se_num != 0xffffffff || sh_num != 0xffffffff) in nv_read_indexed_register()
364 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in nv_read_indexed_register()
368 if (se_num != 0xffffffff || sh_num != 0xffffffff) in nv_read_indexed_register()
375 bool indexed, u32 se_num, in nv_get_register_value() argument
379 return nv_read_indexed_register(adev, se_num, sh_num, reg_offset); in nv_get_register_value()
387 static int nv_read_register(struct amdgpu_device *adev, u32 se_num, in nv_read_register() argument
404 se_num, sh_num, reg_offset); in nv_read_register()
H A Dgfx_v9_0.h29 void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num,
H A Dsoc15.c381 static uint32_t soc15_read_indexed_register(struct amdgpu_device *adev, u32 se_num, in soc15_read_indexed_register() argument
387 if (se_num != 0xffffffff || sh_num != 0xffffffff) in soc15_read_indexed_register()
388 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in soc15_read_indexed_register()
392 if (se_num != 0xffffffff || sh_num != 0xffffffff) in soc15_read_indexed_register()
399 bool indexed, u32 se_num, in soc15_get_register_value() argument
403 return soc15_read_indexed_register(adev, se_num, sh_num, reg_offset); in soc15_get_register_value()
413 static int soc15_read_register(struct amdgpu_device *adev, u32 se_num, in soc15_read_register() argument
430 se_num, sh_num, reg_offset); in soc15_read_register()
H A Dcik.c1123 bool indexed, u32 se_num, in cik_get_register_value() argument
1128 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in cik_get_register_value()
1143 if (se_num != 0xffffffff || sh_num != 0xffffffff) in cik_get_register_value()
1144 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in cik_get_register_value()
1148 if (se_num != 0xffffffff || sh_num != 0xffffffff) in cik_get_register_value()
1218 static int cik_read_register(struct amdgpu_device *adev, u32 se_num, in cik_read_register() argument
1230 *value = cik_get_register_value(adev, indexed, se_num, sh_num, in cik_read_register()
H A Dgfx_v9_4.c93 static void gfx_v9_4_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v9_4_select_se_sh() argument
105 if (se_num == 0xffffffff) in gfx_v9_4_select_se_sh()
109 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v9_4_select_se_sh()
883 for (j = 0; j < gfx_v9_4_edc_counter_regs[i].se_num; j++) { in gfx_v9_4_query_ras_error_count()
917 for (j = 0; j < gfx_v9_4_edc_counter_regs[i].se_num; j++) { in gfx_v9_4_reset_ras_error_count()
987 for (i = 0; i < gfx_v9_4_ea_err_status_regs.se_num; i++) { in gfx_v9_4_query_ras_error_status()
H A Dvi.c746 bool indexed, u32 se_num, in vi_get_register_value() argument
751 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in vi_get_register_value()
766 if (se_num != 0xffffffff || sh_num != 0xffffffff) in vi_get_register_value()
767 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in vi_get_register_value()
771 if (se_num != 0xffffffff || sh_num != 0xffffffff) in vi_get_register_value()
841 static int vi_read_register(struct amdgpu_device *adev, u32 se_num, in vi_read_register() argument
853 *value = vi_get_register_value(adev, indexed, se_num, sh_num, in vi_read_register()
H A Dsi.c1165 bool indexed, u32 se_num, in si_get_register_value() argument
1170 unsigned se_idx = (se_num == 0xffffffff) ? 0 : se_num; in si_get_register_value()
1183 if (se_num != 0xffffffff || sh_num != 0xffffffff) in si_get_register_value()
1184 amdgpu_gfx_select_se_sh(adev, se_num, sh_num, 0xffffffff, 0); in si_get_register_value()
1188 if (se_num != 0xffffffff || sh_num != 0xffffffff) in si_get_register_value()
1239 static int si_read_register(struct amdgpu_device *adev, u32 se_num, in si_read_register() argument
1251 *value = si_get_register_value(adev, indexed, se_num, sh_num, in si_read_register()
H A Dsoc15.h66 uint32_t se_num; member
H A Damdgpu_gfx.h290 void (*select_se_sh)(struct amdgpu_device *adev, u32 se_num,
480 uint32_t se_num; member
H A Dgfx_v9_4_2.c847 static void gfx_v9_4_2_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v9_4_2_select_se_sh() argument
859 if (se_num == 0xffffffff) in gfx_v9_4_2_select_se_sh()
863 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v9_4_2_select_se_sh()
1503 for (j = 0; j < gfx_v9_4_2_edc_counter_regs[i].se_num; j++) { in gfx_v9_4_2_query_sram_edc_count()
1680 for (i = 0; i < gfx_v9_4_2_ea_err_status_regs.se_num; i++) { in gfx_v9_4_2_reset_ea_err_status()
1710 for (i = 0; i < gfx_v9_4_2_ea_err_status_regs.se_num; i++) { in gfx_v9_4_2_query_ea_err_status()
H A Damdgpu_kms.c785 unsigned int se_num = (info->read_mmr_reg.instance >> in amdgpu_info_ioctl() local
798 if (se_num == AMDGPU_INFO_MMR_SE_INDEX_MASK) { in amdgpu_info_ioctl()
799 se_num = 0xffffffff; in amdgpu_info_ioctl()
800 } else if (se_num >= AMDGPU_GFX_MAX_SE) { in amdgpu_info_ioctl()
827 if (amdgpu_asic_read_register(adev, se_num, sh_num, in amdgpu_info_ioctl()
H A Dgfx_v9_4_3.c692 static void gfx_v9_4_3_xcc_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v9_4_3_xcc_select_se_sh() argument
704 if (se_num == 0xffffffff) in gfx_v9_4_3_xcc_select_se_sh()
708 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v9_4_3_xcc_select_se_sh()
4409 for (j = 0; j < gfx_v9_4_3_ce_reg_list[i].se_num; j++) { in gfx_v9_4_3_inst_query_ras_err_count()
4412 if (gfx_v9_4_3_ce_reg_list[i].se_num > 1 || in gfx_v9_4_3_inst_query_ras_err_count()
4439 for (j = 0; j < gfx_v9_4_3_ue_reg_list[i].se_num; j++) { in gfx_v9_4_3_inst_query_ras_err_count()
4442 if (gfx_v9_4_3_ue_reg_list[i].se_num > 1 || in gfx_v9_4_3_inst_query_ras_err_count()
4477 for (j = 0; j < gfx_v9_4_3_ce_reg_list[i].se_num; j++) { in gfx_v9_4_3_inst_reset_ras_err_count()
4480 if (gfx_v9_4_3_ce_reg_list[i].se_num > 1 || in gfx_v9_4_3_inst_reset_ras_err_count()
4499 for (j = 0; j < gfx_v9_4_3_ue_reg_list[i].se_num; j++) { in gfx_v9_4_3_inst_reset_ras_err_count()
[all …]
H A Dgfx_v6_0.c1286 static void gfx_v6_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v6_0_select_se_sh() argument
1296 if ((se_num == 0xffffffff) && (sh_num == 0xffffffff)) in gfx_v6_0_select_se_sh()
1299 else if (se_num == 0xffffffff) in gfx_v6_0_select_se_sh()
1304 (se_num << GRBM_GFX_INDEX__SE_INDEX__SHIFT); in gfx_v6_0_select_se_sh()
1307 (se_num << GRBM_GFX_INDEX__SE_INDEX__SHIFT); in gfx_v6_0_select_se_sh()
H A Dgfx_v7_0.c1550 u32 se_num, u32 sh_num, u32 instance, in gfx_v7_0_select_se_sh() argument
1560 if ((se_num == 0xffffffff) && (sh_num == 0xffffffff)) in gfx_v7_0_select_se_sh()
1563 else if (se_num == 0xffffffff) in gfx_v7_0_select_se_sh()
1568 (se_num << GRBM_GFX_INDEX__SE_INDEX__SHIFT); in gfx_v7_0_select_se_sh()
1571 (se_num << GRBM_GFX_INDEX__SE_INDEX__SHIFT); in gfx_v7_0_select_se_sh()
H A Damdgpu.h595 int (*read_register)(struct amdgpu_device *adev, u32 se_num,
H A Dgfx_v12_0.c229 static void gfx_v12_0_select_se_sh(struct amdgpu_device *adev, u32 se_num,
1529 static void gfx_v12_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v12_0_select_se_sh() argument
1541 if (se_num == 0xffffffff) in gfx_v12_0_select_se_sh()
1545 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v12_0_select_se_sh()
H A Dgfx_v9_0.c2446 void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num, in gfx_v9_0_select_se_sh() argument
2456 if (se_num == 0xffffffff) in gfx_v9_0_select_se_sh()
2459 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v9_0_select_se_sh()
7005 for (j = 0; j < gfx_v9_0_edc_counter_regs[i].se_num; j++) { in gfx_v9_0_reset_ras_error_count()
7067 for (j = 0; j < gfx_v9_0_edc_counter_regs[i].se_num; j++) { in gfx_v9_0_query_ras_error_count()
H A Dgfx_v11_0.c277 static void gfx_v11_0_select_se_sh(struct amdgpu_device *adev, u32 se_num,
1769 static void gfx_v11_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v11_0_select_se_sh() argument
1781 if (se_num == 0xffffffff) in gfx_v11_0_select_se_sh()
1785 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v11_0_select_se_sh()
H A Dgfx_v8_0.c3394 u32 se_num, u32 sh_num, u32 instance, in gfx_v8_0_select_se_sh() argument
3404 if (se_num == 0xffffffff) in gfx_v8_0_select_se_sh()
3407 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v8_0_select_se_sh()
H A Dgfx_v10_0.c3656 static void gfx_v10_0_select_se_sh(struct amdgpu_device *adev, u32 se_num,
4902 static void gfx_v10_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v10_0_select_se_sh() argument
4914 if (se_num == 0xffffffff) in gfx_v10_0_select_se_sh()
4918 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SE_INDEX, se_num); in gfx_v10_0_select_se_sh()
/linux/drivers/gpu/drm/radeon/
H A Dsi.c2928 u32 se_num, u32 sh_num) in si_select_se_sh() argument
2932 if ((se_num == 0xffffffff) && (sh_num == 0xffffffff)) in si_select_se_sh()
2934 else if (se_num == 0xffffffff) in si_select_se_sh()
2937 data |= SH_BROADCAST_WRITES | SE_INDEX(se_num); in si_select_se_sh()
2939 data |= SH_INDEX(sh_num) | SE_INDEX(se_num); in si_select_se_sh()
2973 u32 se_num, u32 sh_per_se, in si_setup_spi() argument
2979 for (i = 0; i < se_num; i++) { in si_setup_spi()
3020 u32 se_num, u32 sh_per_se, in si_setup_rb() argument
3028 for (i = 0; i < se_num; i++) { in si_setup_rb()
3038 for (i = 0; i < max_rb_num_per_se * se_num; i++) { in si_setup_rb()
[all …]
H A Dcik.c3027 u32 se_num, u32 sh_num) in cik_select_se_sh() argument
3031 if ((se_num == 0xffffffff) && (sh_num == 0xffffffff)) in cik_select_se_sh()
3033 else if (se_num == 0xffffffff) in cik_select_se_sh()
3036 data |= SH_BROADCAST_WRITES | SE_INDEX(se_num); in cik_select_se_sh()
3038 data |= SH_INDEX(sh_num) | SE_INDEX(se_num); in cik_select_se_sh()
3102 u32 se_num, u32 sh_per_se, in cik_setup_rb() argument
3110 for (i = 0; i < se_num; i++) { in cik_setup_rb()
3123 for (i = 0; i < max_rb_num_per_se * se_num; i++) { in cik_setup_rb()
3131 for (i = 0; i < se_num; i++) { in cik_setup_rb()