Lines Matching defs:ops
49 const struct hwmon_ops *ops;
161 ret = hwdev->chip->ops->read(tdata->dev, hwmon_temp, hwmon_temp_input,
180 if (!chip->ops->write)
190 err = chip->ops->write(tdata->dev, hwmon_temp,
197 err = chip->ops->write(tdata->dev, hwmon_temp,
269 !chip->ops->is_visible(drvdata, hwmon_temp,
321 ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index,
341 ret = hattr->ops->read_string(dev, hattr->type, hattr->attr,
364 ret = hattr->ops->write(dev, hattr->type, hattr->attr, hattr->index,
391 const struct hwmon_ops *ops)
404 mode = ops->is_visible(drvdata, type, attr, index);
408 if ((mode & 0444) && ((is_string && !ops->read_string) ||
409 (!is_string && !ops->read)))
411 if ((mode & 0222) && !ops->write)
429 hattr->ops = ops;
690 const struct hwmon_ops *ops,
715 templates[attr], ops);
744 ret = hwmon_genattrs(drvdata, &attrs[aindex], chip->ops,
848 if (hdev->of_node && chip && chip->ops->read &&
918 if (!chip->ops || !chip->ops->is_visible || !chip->info)