Home
last modified time | relevance | path

Searched refs:sh_num (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Dsoc24.c138 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 Dsoc21.c279 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 Dnv.c358 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 Dgfx_v9_0.h29 void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num,
H A Dsoc15.c382 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 Dcik.c1124 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 Dvi.c747 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 Dsi.c1166 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 Damdgpu_kms.c788 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 Dgfx_v9_4.c94 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 Damdgpu_gfx.h291 u32 sh_num, u32 instance, int xcc_id);
H A Dgfx_v9_4_2.c848 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 Dgfx_v6_0.c1287 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 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()
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 Damdgpu.h596 u32 sh_num, u32 reg_offset, u32 *value);
H A Dgfx_v12_0.c230 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 Dgfx_v9_4_3.c693 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 Dgfx_v11_0.c278 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 Dgfx_v8_0.c3394 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 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
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 Dgfx_v10_0.c3657 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 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()
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 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()
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()