/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | soc24.c | 138 u32 sh_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() 157 u32 sh_num, u32 reg_offset) in soc24_get_register_value() argument 160 return soc24_read_indexed_register(adev, se_num, sh_num, reg_offset); in soc24_get_register_value() 170 u32 sh_num, u32 reg_offset, u32 *value) in soc24_read_register() argument 186 se_num, sh_num, reg_offset); in soc24_read_register()
|
H A D | soc21.c | 279 u32 sh_num, u32 reg_offset) 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() 297 u32 sh_num, u32 reg_offset) in soc21_get_register_value() argument 300 return soc21_read_indexed_register(adev, se_num, sh_num, reg_offset); in soc21_get_register_value() 309 u32 sh_num, u32 reg_offset, u32 *value) in soc21_read_register() argument 325 se_num, sh_num, reg_offset); in soc21_read_register()
|
H A D | nv.c | 358 u32 sh_num, u32 reg_offset) 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() 376 u32 sh_num, u32 reg_offset) in nv_get_register_value() argument 379 return nv_read_indexed_register(adev, se_num, sh_num, reg_offset); in nv_get_register_value() 388 u32 sh_num, u32 reg_offset, u32 *value) 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 | 382 u32 sh_num, u32 reg_offset) 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() 400 u32 sh_num, u32 reg_offset) in soc15_get_register_value() argument 403 return soc15_read_indexed_register(adev, se_num, sh_num, reg_offset); in soc15_get_register_value() 414 u32 sh_num, u32 reg_offset, u32 *value) in soc15_read_register() argument 430 se_num, sh_num, reg_offset); in soc15_read_register()
|
H A D | cik.c | 1124 u32 sh_num, u32 reg_offset) in cik_get_register_value() argument 1129 unsigned sh_idx = (sh_num == 0xffffffff) ? 0 : sh_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() 1219 u32 sh_num, u32 reg_offset, u32 *value) in cik_read_register() argument 1230 *value = cik_get_register_value(adev, indexed, se_num, sh_num, in cik_read_register()
|
H A D | vi.c | 747 u32 sh_num, u32 reg_offset) in vi_get_register_value() argument 752 unsigned sh_idx = (sh_num == 0xffffffff) ? 0 : sh_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() 842 u32 sh_num, u32 reg_offset, u32 *value) 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 | 1166 u32 sh_num, u32 reg_offset) in si_get_register_value() argument 1171 unsigned sh_idx = (sh_num == 0xffffffff) ? 0 : sh_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() 1240 u32 sh_num, u32 reg_offset, u32 *value) in si_read_register() argument 1251 *value = si_get_register_value(adev, indexed, se_num, sh_num, in si_read_register()
|
H A D | amdgpu_kms.c | 788 unsigned int sh_num = (info->read_mmr_reg.instance >> in amdgpu_info_ioctl() local 805 if (sh_num == AMDGPU_INFO_MMR_SH_INDEX_MASK) { in amdgpu_info_ioctl() 806 sh_num = 0xffffffff; in amdgpu_info_ioctl() 807 } else if (sh_num >= AMDGPU_GFX_MAX_SH_PER_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.c | 94 u32 sh_num, u32 instance) in gfx_v9_4_select_se_sh() argument 111 if (sh_num == 0xffffffff) in gfx_v9_4_select_se_sh() 115 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SH_INDEX, sh_num); in gfx_v9_4_select_se_sh()
|
H A D | amdgpu_gfx.h | 291 u32 sh_num, u32 instance, int xcc_id);
|
H A D | gfx_v9_4_2.c | 848 u32 sh_num, u32 instance) in gfx_v9_4_2_select_se_sh() argument 865 if (sh_num == 0xffffffff) in gfx_v9_4_2_select_se_sh() 869 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SH_INDEX, sh_num); in gfx_v9_4_2_select_se_sh()
|
H A D | gfx_v6_0.c | 1287 u32 sh_num, u32 instance, int xcc_id) in gfx_v6_0_select_se_sh() argument 1296 if ((se_num == 0xffffffff) && (sh_num == 0xffffffff)) in gfx_v6_0_select_se_sh() 1301 (sh_num << GRBM_GFX_INDEX__SH_INDEX__SHIFT); in gfx_v6_0_select_se_sh() 1302 else if (sh_num == 0xffffffff) in gfx_v6_0_select_se_sh() 1306 data |= (sh_num << GRBM_GFX_INDEX__SH_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() 1565 (sh_num << GRBM_GFX_INDEX__SH_INDEX__SHIFT); in gfx_v7_0_select_se_sh() 1566 else if (sh_num == 0xffffffff) in gfx_v7_0_select_se_sh() 1570 data |= (sh_num << GRBM_GFX_INDEX__SH_INDEX__SHIFT) | in gfx_v7_0_select_se_sh()
|
H A D | amdgpu.h | 596 u32 sh_num, u32 reg_offset, u32 *value);
|
H A D | gfx_v12_0.c | 230 u32 sh_num, u32 instance, int xcc_id); 1530 u32 sh_num, u32 instance, int xcc_id) in gfx_v12_0_select_se_sh() argument 1547 if (sh_num == 0xffffffff) in gfx_v12_0_select_se_sh() 1551 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SA_INDEX, sh_num); in gfx_v12_0_select_se_sh()
|
H A D | gfx_v9_4_3.c | 693 u32 sh_num, u32 instance, int xcc_id) in gfx_v9_4_3_xcc_select_se_sh() argument 710 if (sh_num == 0xffffffff) in gfx_v9_4_3_xcc_select_se_sh() 714 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SH_INDEX, sh_num); in gfx_v9_4_3_xcc_select_se_sh()
|
H A D | gfx_v11_0.c | 278 u32 sh_num, u32 instance, int xcc_id); 1770 u32 sh_num, u32 instance, int xcc_id) in gfx_v11_0_select_se_sh() argument 1787 if (sh_num == 0xffffffff) in gfx_v11_0_select_se_sh() 1791 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SA_INDEX, sh_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 3409 if (sh_num == 0xffffffff) in gfx_v8_0_select_se_sh() 3412 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SH_INDEX, sh_num); in gfx_v8_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 2461 if (sh_num == 0xffffffff) in gfx_v9_0_select_se_sh() 2464 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SH_INDEX, sh_num); in gfx_v9_0_select_se_sh()
|
H A D | gfx_v10_0.c | 3657 u32 sh_num, u32 instance, int xcc_id); 4903 u32 sh_num, u32 instance, int xcc_id) in gfx_v10_0_select_se_sh() argument 4920 if (sh_num == 0xffffffff) in gfx_v10_0_select_se_sh() 4924 data = REG_SET_FIELD(data, GRBM_GFX_INDEX, SA_INDEX, sh_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() 2935 data |= SE_BROADCAST_WRITES | SH_INDEX(sh_num); in si_select_se_sh() 2936 else if (sh_num == 0xffffffff) in si_select_se_sh() 2939 data |= SH_INDEX(sh_num) | SE_INDEX(se_num); in si_select_se_sh()
|
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() 3034 data |= SE_BROADCAST_WRITES | SH_INDEX(sh_num); in cik_select_se_sh() 3035 else if (sh_num == 0xffffffff) in cik_select_se_sh() 3038 data |= SH_INDEX(sh_num) | SE_INDEX(se_num); in cik_select_se_sh()
|