Searched refs:smu_i2c (Results 1 – 8 of 8) sorted by relevance
49 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(control); in smu_v11_0_i2c_set_clock_gating() local50 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() local79 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() local105 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() local116 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() local138 struct amdgpu_device *adev = smu_i2c->adev; in smu_v11_0_i2c_set_clock()[all …]
60 #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() local1616 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() local1715 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 …]
1474 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in aldebaran_i2c_xfer() local1475 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() local1572 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 …]
60 #define to_amdgpu_device(x) (container_of(x, struct amdgpu_device, pm.smu_i2c))
2062 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in arcturus_i2c_xfer() local2063 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() local2164 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 …]
2963 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in navi10_i2c_xfer() local2964 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() local3064 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 …]
3702 struct amdgpu_smu_i2c_bus *smu_i2c = i2c_get_adapdata(i2c_adap); in sienna_cichlid_i2c_xfer() local3703 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() local3803 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 …]
347 struct amdgpu_smu_i2c_bus smu_i2c[MAX_SMU_I2C_BUSES]; member