| H A D | xe_hwmon.c | 6 #include <linux/hwmon-sysfs.h> 7 #include <linux/hwmon.h> 73 * SF_* - scale factors for particular quantities according to hwmon spec. 82 * PL*_HWMON_ATTR - mapping of hardware power limits to corresponding hwmon power attribute. 115 * struct xe_hwmon - xe hwmon data structure 118 /** @hwmon_dev: hwmon device for xe */ 143 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 146 struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe); in xe_hwmon_pcode_read_power_limit() 154 hwmon->boot_power_limit_read ? in xe_hwmon_pcode_read_power_limit() 159 drm_dbg(&hwmon in xe_hwmon_pcode_read_power_limit() 178 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 215 xe_hwmon_get_reg(struct xe_hwmon * hwmon,enum xe_hwmon_reg hwmon_reg,int channel) xe_hwmon_get_reg() argument 287 xe_hwmon_power_max_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * value) xe_hwmon_power_max_read() argument 331 xe_hwmon_power_max_write(struct xe_hwmon * hwmon,u32 attr,int channel,long value) xe_hwmon_power_max_write() argument 406 xe_hwmon_power_rated_max_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * value) xe_hwmon_power_rated_max_read() argument 451 xe_hwmon_energy_get(struct xe_hwmon * hwmon,int channel,long * energy) xe_hwmon_energy_get() argument 496 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_power_max_interval_show() local 551 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_power_max_interval_store() local 653 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_attributes_visible() local 701 xe_hwmon_pcode_read_i1(const struct xe_hwmon * hwmon,u32 * uval) xe_hwmon_pcode_read_i1() argument 714 xe_hwmon_pcode_write_i1(const struct xe_hwmon * hwmon,u32 uval) xe_hwmon_pcode_write_i1() argument 723 xe_hwmon_pcode_read_fan_control(const struct xe_hwmon * hwmon,u32 subcmd,u32 * uval) xe_hwmon_pcode_read_fan_control() argument 736 xe_hwmon_power_curr_crit_read(struct xe_hwmon * hwmon,int channel,long * value,u32 scale_factor) xe_hwmon_power_curr_crit_read() argument 755 xe_hwmon_power_curr_crit_write(struct xe_hwmon * hwmon,int channel,long value,u32 scale_factor) xe_hwmon_power_curr_crit_write() argument 784 xe_hwmon_get_voltage(struct xe_hwmon * hwmon,int channel,long * value) xe_hwmon_get_voltage() argument 795 xe_hwmon_temp_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_temp_is_visible() argument 807 xe_hwmon_temp_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_temp_read() argument 825 xe_hwmon_power_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_power_is_visible() argument 890 xe_hwmon_power_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_power_read() argument 908 xe_hwmon_power_write(struct xe_hwmon * hwmon,u32 attr,int channel,long val) xe_hwmon_power_write() argument 922 xe_hwmon_curr_is_visible(const struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_curr_is_visible() argument 945 xe_hwmon_curr_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_curr_read() argument 956 xe_hwmon_curr_write(struct xe_hwmon * hwmon,u32 attr,int channel,long val) xe_hwmon_curr_write() argument 967 xe_hwmon_in_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_in_is_visible() argument 980 xe_hwmon_in_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_in_read() argument 992 xe_hwmon_energy_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_energy_is_visible() argument 1012 xe_hwmon_energy_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_energy_read() argument 1024 xe_hwmon_fan_is_visible(struct xe_hwmon * hwmon,u32 attr,int channel) xe_hwmon_fan_is_visible() argument 1043 xe_hwmon_fan_input_read(struct xe_hwmon * hwmon,int channel,long * val) xe_hwmon_fan_input_read() argument 1082 xe_hwmon_fan_read(struct xe_hwmon * hwmon,u32 attr,int channel,long * val) xe_hwmon_fan_read() argument 1096 struct xe_hwmon *hwmon = (struct xe_hwmon *)drvdata; xe_hwmon_is_visible() local 1134 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_read() local 1172 struct xe_hwmon *hwmon = dev_get_drvdata(dev); xe_hwmon_write() local 1232 xe_hwmon_get_preregistration_info(struct xe_hwmon * hwmon) xe_hwmon_get_preregistration_info() argument 1303 struct xe_hwmon *hwmon; xe_hwmon_register() local [all...] |