Lines Matching refs:vt8231_data
143 struct vt8231_data { struct
167 static inline int vt8231_read_value(struct vt8231_data *data, u8 reg) in vt8231_read_value() argument
172 static inline void vt8231_write_value(struct vt8231_data *data, u8 reg, in vt8231_write_value()
178 static struct vt8231_data *vt8231_update_device(struct device *dev) in vt8231_update_device()
180 struct vt8231_data *data = dev_get_drvdata(dev); in vt8231_update_device()
252 struct vt8231_data *data = vt8231_update_device(dev); in in_show()
262 struct vt8231_data *data = vt8231_update_device(dev); in in_min_show()
272 struct vt8231_data *data = vt8231_update_device(dev); in in_max_show()
282 struct vt8231_data *data = dev_get_drvdata(dev); in in_min_store()
302 struct vt8231_data *data = dev_get_drvdata(dev); in in_max_store()
321 struct vt8231_data *data = vt8231_update_device(dev); in in5_input_show()
330 struct vt8231_data *data = vt8231_update_device(dev); in in5_min_show()
339 struct vt8231_data *data = vt8231_update_device(dev); in in5_max_show()
349 struct vt8231_data *data = dev_get_drvdata(dev); in in5_min_store()
369 struct vt8231_data *data = dev_get_drvdata(dev); in in5_max_store()
409 struct vt8231_data *data = vt8231_update_device(dev); in temp1_input_show()
416 struct vt8231_data *data = vt8231_update_device(dev); in temp1_max_show()
423 struct vt8231_data *data = vt8231_update_device(dev); in temp1_max_hyst_show()
431 struct vt8231_data *data = dev_get_drvdata(dev); in temp1_max_store()
449 struct vt8231_data *data = dev_get_drvdata(dev); in temp1_max_hyst_store()
469 struct vt8231_data *data = vt8231_update_device(dev); in temp_show()
478 struct vt8231_data *data = vt8231_update_device(dev); in temp_max_show()
487 struct vt8231_data *data = vt8231_update_device(dev); in temp_min_show()
497 struct vt8231_data *data = dev_get_drvdata(dev); in temp_max_store()
517 struct vt8231_data *data = dev_get_drvdata(dev); in temp_min_store()
563 struct vt8231_data *data = vt8231_update_device(dev); in fan_show()
573 struct vt8231_data *data = vt8231_update_device(dev); in fan_min_show()
583 struct vt8231_data *data = vt8231_update_device(dev); in fan_div_show()
593 struct vt8231_data *data = dev_get_drvdata(dev); in fan_min_store()
612 struct vt8231_data *data = dev_get_drvdata(dev); in fan_div_store()
668 struct vt8231_data *data = vt8231_update_device(dev); in alarms_show()
677 struct vt8231_data *data = vt8231_update_device(dev); in alarm_show()
698 struct vt8231_data *data = dev_get_drvdata(dev); in name_show()
819 static void vt8231_init_device(struct vt8231_data *data) in vt8231_init_device()
828 struct vt8231_data *data; in vt8231_probe()
840 data = devm_kzalloc(&pdev->dev, sizeof(struct vt8231_data), GFP_KERNEL); in vt8231_probe()
897 struct vt8231_data *data = platform_get_drvdata(pdev); in vt8231_remove()