| H A D | xe_hwmon.c | 6 #include <linux/hwmon-sysfs.h> 7 #include <linux/hwmon.h> 88 * SF_* - scale factors for particular quantities according to hwmon spec. 97 * PL*_HWMON_ATTR - mapping of hardware power limits to corresponding hwmon power attribute. 112 /* Maximum characters in hwmon label name */ 154 * struct xe_hwmon - xe hwmon data structure 157 /** @hwmon_dev: hwmon device for xe */ 183 static int xe_hwmon_pcode_read_power_limit(const struct xe_hwmon *hwmon, u32 attr, int channel, in xe_hwmon_pcode_read_power_limit() argument 186 struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe); in xe_hwmon_pcode_read_power_limit() 194 hwmon in xe_hwmon_pcode_read_power_limit() 218 xe_hwmon_pcode_rmw_power_limit(const struct xe_hwmon * hwmon,u32 attr,u8 channel,u32 clr,u32 set) xe_hwmon_pcode_rmw_power_limit() argument 255 xe_hwmon_get_reg(struct xe_hwmon * hwmon,enum xe_hwmon_reg hwmon_reg,int channel) xe_hwmon_get_reg() argument 329 xe_hwmon_power_max_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * value) xe_hwmon_power_max_read() argument 373 xe_hwmon_power_max_write(struct xe_hwmon * hwmon,u32 attr,int channel,long value) xe_hwmon_power_max_write() argument 448 xe_hwmon_power_rated_max_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * value) xe_hwmon_power_rated_max_read() argument 493 xe_hwmon_energy_get(struct xe_hwmon * hwmon,int channel,long * energy) xe_hwmon_energy_get() argument 538 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_power_max_interval_show() local 591 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_power_max_interval_store() local 691 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_attributes_visible() local 755 xe_hwmon_pcode_read_thermal_info(struct xe_hwmon * hwmon) xe_hwmon_pcode_read_thermal_info() argument 780 get_mc_temp(struct xe_hwmon * hwmon,long * val) get_mc_temp() argument 803 get_pcie_temp(struct xe_hwmon * hwmon,long * val) get_pcie_temp() argument 825 xe_hwmon_pcode_read_i1(const struct xe_hwmon * hwmon,u32 * uval) xe_hwmon_pcode_read_i1() argument 838 xe_hwmon_pcode_write_i1(const struct xe_hwmon * hwmon,u32 uval) xe_hwmon_pcode_write_i1() argument 847 xe_hwmon_pcode_read_fan_control(const struct xe_hwmon * hwmon,u32 subcmd,u32 * uval) xe_hwmon_pcode_read_fan_control() argument 860 xe_hwmon_power_curr_crit_read(struct xe_hwmon * hwmon,int channel,long * value,u32 scale_factor) xe_hwmon_power_curr_crit_read() argument 879 xe_hwmon_power_curr_crit_write(struct xe_hwmon * hwmon,int channel,long value,u32 scale_factor) xe_hwmon_power_curr_crit_write() argument 908 xe_hwmon_get_voltage(struct xe_hwmon * hwmon,int channel,long * value) xe_hwmon_get_voltage() argument 918 is_vram_ch_available(struct xe_hwmon * hwmon,int channel) is_vram_ch_available() argument 934 xe_hwmon_temp_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_temp_is_visible() argument 995 xe_hwmon_temp_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_temp_read() argument 1069 xe_hwmon_power_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_power_is_visible() argument 1134 xe_hwmon_power_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_power_read() argument 1152 xe_hwmon_power_write(struct xe_hwmon * hwmon,u32 attr,int channel,long val) xe_hwmon_power_write() argument 1166 xe_hwmon_curr_is_visible(const struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_curr_is_visible() argument 1189 xe_hwmon_curr_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_curr_read() argument 1200 xe_hwmon_curr_write(struct xe_hwmon * hwmon,u32 attr,int channel,long val) xe_hwmon_curr_write() argument 1211 xe_hwmon_in_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_in_is_visible() argument 1224 xe_hwmon_in_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_in_read() argument 1236 xe_hwmon_energy_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_energy_is_visible() argument 1256 xe_hwmon_energy_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_energy_read() argument 1268 xe_hwmon_fan_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_fan_is_visible() argument 1287 xe_hwmon_fan_input_read(struct xe_hwmon * hwmon,int channel,long * val) xe_hwmon_fan_input_read() argument 1326 xe_hwmon_fan_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_fan_read() argument 1340 struct xe_hwmon *hwmon = (struct xe_hwmon *)drvdata; xe_hwmon_is_visible() local 1374 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_read() local 1400 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_write() local 1418 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_read_label() local 1460 xe_hwmon_get_preregistration_info(struct xe_hwmon * hwmon) xe_hwmon_get_preregistration_info() argument 1534 struct xe_hwmon *hwmon; xe_hwmon_register() local [all...] |