/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | soc24.c | 137 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 D | soc21.c | 278 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 D | nv.c | 357 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 D | gfx_v9_0.h | 29 void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num,
|
H A D | soc15.c | 381 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 D | cik.c | 1123 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 D | gfx_v9_4.c | 93 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 D | vi.c | 746 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 D | si.c | 1165 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 D | soc15.h | 66 uint32_t se_num; member
|
H A D | amdgpu_gfx.h | 290 void (*select_se_sh)(struct amdgpu_device *adev, u32 se_num, 480 uint32_t se_num; member
|
H A D | gfx_v9_4_2.c | 847 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 D | amdgpu_kms.c | 785 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 D | gfx_v9_4_3.c | 692 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 D | gfx_v6_0.c | 1286 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 D | gfx_v7_0.c | 1550 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 D | amdgpu.h | 595 int (*read_register)(struct amdgpu_device *adev, u32 se_num,
|
H A D | gfx_v12_0.c | 229 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 D | gfx_v9_0.c | 2446 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 D | gfx_v11_0.c | 277 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 D | gfx_v8_0.c | 3394 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 D | gfx_v10_0.c | 3656 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 D | si.c | 2928 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 D | cik.c | 3027 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()
|