Home
last modified time | relevance | path

Searched refs:smu_i2c (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Dsmu_v11_0_i2c.c49 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(control); in smu_v11_0_i2c_set_clock_gating() local
50 struct amdgpu_device *adev = smu_i2c->adev; in smu_v11_0_i2c_set_clock_gating()
78 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(control); in smu_v11_0_i2c_enable() local
79 struct amdgpu_device *adev = smu_i2c->adev; in smu_v11_0_i2c_enable()
104 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(control); in smu_v11_0_i2c_clear_status() local
105 struct amdgpu_device *adev = smu_i2c->adev; in smu_v11_0_i2c_clear_status()
115 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(control); in smu_v11_0_i2c_configure() local
116 struct amdgpu_device *adev = smu_i2c->adev; in smu_v11_0_i2c_configure()
137 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(control); in smu_v11_0_i2c_set_clock() local
138 struct amdgpu_device *adev = smu_i2c->adev; in smu_v11_0_i2c_set_clock()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_0_ppt.c60 #define to_amdgpu_device(x) (container_of(x, struct amdgpu_device, pm.smu_i2c))
1615 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in smu_v13_0_0_i2c_xfer() local
1616 struct amdgpu_device *adev = smu_i2c->adev; in smu_v13_0_0_i2c_xfer()
1631 req->I2CcontrollerPort = smu_i2c->port; in smu_v13_0_0_i2c_xfer()
1714 struct amdgpu_smu_i2c_bus *smu_i2c = &adev->pm.smu_i2c[i]; in smu_v13_0_0_i2c_control_init() local
1715 struct i2c_adapter *control = &smu_i2c->adapter; in smu_v13_0_0_i2c_control_init()
1717 smu_i2c->adev = adev; in smu_v13_0_0_i2c_control_init()
1718 smu_i2c->port = i; in smu_v13_0_0_i2c_control_init()
1719 mutex_init(&smu_i2c->mutex); in smu_v13_0_0_i2c_control_init()
1726 i2c_set_adapdata(control, smu_i2c); in smu_v13_0_0_i2c_control_init()
[all …]
Daldebaran_ppt.c1474 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in aldebaran_i2c_xfer() local
1475 struct amdgpu_device *adev = smu_i2c->adev; in aldebaran_i2c_xfer()
1490 req->I2CcontrollerPort = smu_i2c->port; in aldebaran_i2c_xfer()
1571 struct amdgpu_smu_i2c_bus *smu_i2c = &adev->pm.smu_i2c[0]; in aldebaran_i2c_control_init() local
1572 struct i2c_adapter *control = &smu_i2c->adapter; in aldebaran_i2c_control_init()
1575 smu_i2c->adev = adev; in aldebaran_i2c_control_init()
1576 smu_i2c->port = 0; in aldebaran_i2c_control_init()
1577 mutex_init(&smu_i2c->mutex); in aldebaran_i2c_control_init()
1584 i2c_set_adapdata(control, smu_i2c); in aldebaran_i2c_control_init()
1592 adev->pm.ras_eeprom_i2c_bus = &adev->pm.smu_i2c[0].adapter; in aldebaran_i2c_control_init()
[all …]
Dsmu_v13_0_7_ppt.c60 #define to_amdgpu_device(x) (container_of(x, struct amdgpu_device, pm.smu_i2c))
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Darcturus_ppt.c2062 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in arcturus_i2c_xfer() local
2063 struct amdgpu_device *adev = smu_i2c->adev; in arcturus_i2c_xfer()
2078 req->I2CcontrollerPort = smu_i2c->port; in arcturus_i2c_xfer()
2163 struct amdgpu_smu_i2c_bus *smu_i2c = &adev->pm.smu_i2c[i]; in arcturus_i2c_control_init() local
2164 struct i2c_adapter *control = &smu_i2c->adapter; in arcturus_i2c_control_init()
2166 smu_i2c->adev = adev; in arcturus_i2c_control_init()
2167 smu_i2c->port = i; in arcturus_i2c_control_init()
2168 mutex_init(&smu_i2c->mutex); in arcturus_i2c_control_init()
2175 i2c_set_adapdata(control, smu_i2c); in arcturus_i2c_control_init()
2184 adev->pm.ras_eeprom_i2c_bus = &adev->pm.smu_i2c[0].adapter; in arcturus_i2c_control_init()
[all …]
Dnavi10_ppt.c2963 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in navi10_i2c_xfer() local
2964 struct amdgpu_device *adev = smu_i2c->adev; in navi10_i2c_xfer()
2979 req->I2CcontrollerPort = smu_i2c->port; in navi10_i2c_xfer()
3063 struct amdgpu_smu_i2c_bus *smu_i2c = &adev->pm.smu_i2c[i]; in navi10_i2c_control_init() local
3064 struct i2c_adapter *control = &smu_i2c->adapter; in navi10_i2c_control_init()
3066 smu_i2c->adev = adev; in navi10_i2c_control_init()
3067 smu_i2c->port = i; in navi10_i2c_control_init()
3068 mutex_init(&smu_i2c->mutex); in navi10_i2c_control_init()
3075 i2c_set_adapdata(control, smu_i2c); in navi10_i2c_control_init()
3084 adev->pm.ras_eeprom_i2c_bus = &adev->pm.smu_i2c[0].adapter; in navi10_i2c_control_init()
[all …]
Dsienna_cichlid_ppt.c3702 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in sienna_cichlid_i2c_xfer() local
3703 struct amdgpu_device *adev = smu_i2c->adev; in sienna_cichlid_i2c_xfer()
3718 req->I2CcontrollerPort = smu_i2c->port; in sienna_cichlid_i2c_xfer()
3802 struct amdgpu_smu_i2c_bus *smu_i2c = &adev->pm.smu_i2c[i]; in sienna_cichlid_i2c_control_init() local
3803 struct i2c_adapter *control = &smu_i2c->adapter; in sienna_cichlid_i2c_control_init()
3805 smu_i2c->adev = adev; in sienna_cichlid_i2c_control_init()
3806 smu_i2c->port = i; in sienna_cichlid_i2c_control_init()
3807 mutex_init(&smu_i2c->mutex); in sienna_cichlid_i2c_control_init()
3814 i2c_set_adapdata(control, smu_i2c); in sienna_cichlid_i2c_control_init()
3824 adev->pm.ras_eeprom_i2c_bus = &adev->pm.smu_i2c[1].adapter; in sienna_cichlid_i2c_control_init()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/pm/inc/
Damdgpu_dpm.h347 struct amdgpu_smu_i2c_bus smu_i2c[MAX_SMU_I2C_BUSES]; member