Lines Matching refs:corsairpsu_data
122 struct corsairpsu_data { struct
160 static int corsairpsu_usb_cmd(struct corsairpsu_data *priv, u8 p0, u8 p1, u8 p2, void *data) in corsairpsu_usb_cmd() argument
195 static int corsairpsu_init(struct corsairpsu_data *priv) in corsairpsu_init()
204 static int corsairpsu_fwinfo(struct corsairpsu_data *priv) in corsairpsu_fwinfo()
219 static int corsairpsu_request(struct corsairpsu_data *priv, u8 cmd, u8 rail, void *data) in corsairpsu_request()
246 static int corsairpsu_get_value(struct corsairpsu_data *priv, u8 cmd, u8 rail, long *val) in corsairpsu_get_value()
314 static void corsairpsu_get_criticals(struct corsairpsu_data *priv) in corsairpsu_get_criticals()
344 static void corsairpsu_check_cmd_support(struct corsairpsu_data *priv) in corsairpsu_check_cmd_support()
351 static umode_t corsairpsu_hwmon_temp_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_temp_is_visible()
370 static umode_t corsairpsu_hwmon_fan_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_fan_is_visible()
382 static umode_t corsairpsu_hwmon_pwm_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_pwm_is_visible()
394 static umode_t corsairpsu_hwmon_power_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_power_is_visible()
406 static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_in_is_visible()
429 static umode_t corsairpsu_hwmon_curr_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_curr_is_visible()
454 const struct corsairpsu_data *priv = data; in corsairpsu_hwmon_ops_is_visible()
474 static int corsairpsu_hwmon_temp_read(struct corsairpsu_data *priv, u32 attr, int channel, in corsairpsu_hwmon_temp_read()
494 static int corsairpsu_hwmon_pwm_read(struct corsairpsu_data *priv, u32 attr, int channel, long *val) in corsairpsu_hwmon_pwm_read()
508 static int corsairpsu_hwmon_power_read(struct corsairpsu_data *priv, u32 attr, int channel, in corsairpsu_hwmon_power_read()
525 static int corsairpsu_hwmon_in_read(struct corsairpsu_data *priv, u32 attr, int channel, long *val) in corsairpsu_hwmon_in_read()
553 static int corsairpsu_hwmon_curr_read(struct corsairpsu_data *priv, u32 attr, int channel, in corsairpsu_hwmon_curr_read()
583 struct corsairpsu_data *priv = dev_get_drvdata(dev); in corsairpsu_hwmon_ops_read()
671 struct corsairpsu_data *priv = seqf->private; in print_uptime()
710 struct corsairpsu_data *priv = seqf->private; in vendor_show()
720 struct corsairpsu_data *priv = seqf->private; in product_show()
730 struct corsairpsu_data *priv = seqf->private; in ocpmode_show()
751 static void corsairpsu_debugfs_init(struct corsairpsu_data *priv) in corsairpsu_debugfs_init()
767 static void corsairpsu_debugfs_init(struct corsairpsu_data *priv) in corsairpsu_debugfs_init()
775 struct corsairpsu_data *priv; in corsairpsu_probe()
778 priv = devm_kzalloc(&hdev->dev, sizeof(struct corsairpsu_data), GFP_KERNEL); in corsairpsu_probe()
841 struct corsairpsu_data *priv = hid_get_drvdata(hdev); in corsairpsu_remove()
852 struct corsairpsu_data *priv = hid_get_drvdata(hdev); in corsairpsu_raw_event()
866 struct corsairpsu_data *priv = hid_get_drvdata(hdev); in corsairpsu_resume()