Lines Matching refs:device
110 * struct ina3221_data - device specific information
112 * @regmap: Register map of the device
113 * @fields: Register fields of the device
121 struct device *pm_dev;
251 static int ina3221_read_chip(struct device *dev, u32 attr, long *val)
271 static int ina3221_read_in(struct device *dev, u32 attr, int channel, long *val)
327 static int ina3221_read_curr(struct device *dev, u32 attr,
388 static int ina3221_write_chip(struct device *dev, u32 attr, long val)
430 static int ina3221_write_curr(struct device *dev, u32 attr,
476 static int ina3221_write_enable(struct device *dev, int channel, bool enable)
524 static int ina3221_read(struct device *dev, enum hwmon_sensor_types type,
553 static int ina3221_write(struct device *dev, enum hwmon_sensor_types type,
582 static int ina3221_read_string(struct device *dev, enum hwmon_sensor_types type,
693 static ssize_t ina3221_shunt_show(struct device *dev,
704 static ssize_t ina3221_shunt_store(struct device *dev,
761 static int ina3221_probe_child_from_dt(struct device *dev,
802 static int ina3221_probe_from_dt(struct device *dev, struct ina3221_data *ina)
827 struct device *dev = &client->dev;
829 struct device *hwmon_dev;
857 dev_err(dev, "Unable to probe from device tree\n");
884 /* Initialize (resume) the device */
898 dev_err(dev, "Unable to register hwmon device\n");
933 static int __maybe_unused ina3221_suspend(struct device *dev)
956 static int __maybe_unused ina3221_resume(struct device *dev)
966 dev_err(dev, "Unable to reset device\n");