hattr 105 drivers/hwmon/hwmon.c struct hwmon_device_attribute *hattr = to_hwmon_attr(dattr); hattr 107 drivers/hwmon/hwmon.c kfree(hattr); hattr 201 drivers/hwmon/hwmon.c struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); hattr 205 drivers/hwmon/hwmon.c ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index, hattr 210 drivers/hwmon/hwmon.c trace_hwmon_attr_show(hattr->index + hwmon_attr_base(hattr->type), hattr 211 drivers/hwmon/hwmon.c hattr->name, val); hattr 220 drivers/hwmon/hwmon.c struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); hattr 221 drivers/hwmon/hwmon.c enum hwmon_sensor_types type = hattr->type; hattr 225 drivers/hwmon/hwmon.c ret = hattr->ops->read_string(dev, hattr->type, hattr->attr, hattr 226 drivers/hwmon/hwmon.c hattr->index, &s); hattr 230 drivers/hwmon/hwmon.c trace_hwmon_attr_show_string(hattr->index + hwmon_attr_base(type), hattr 231 drivers/hwmon/hwmon.c hattr->name, s); hattr 240 drivers/hwmon/hwmon.c struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); hattr 248 drivers/hwmon/hwmon.c ret = hattr->ops->write(dev, hattr->type, hattr->attr, hattr->index, hattr 253 drivers/hwmon/hwmon.c trace_hwmon_attr_store(hattr->index + hwmon_attr_base(hattr->type), hattr 254 drivers/hwmon/hwmon.c hattr->name, val); hattr 277 drivers/hwmon/hwmon.c struct hwmon_device_attribute *hattr; hattr 298 drivers/hwmon/hwmon.c hattr = kzalloc(sizeof(*hattr), GFP_KERNEL); hattr 299 drivers/hwmon/hwmon.c if (!hattr) hattr 305 drivers/hwmon/hwmon.c scnprintf(hattr->name, sizeof(hattr->name), template, hattr 307 drivers/hwmon/hwmon.c name = hattr->name; hattr 310 drivers/hwmon/hwmon.c hattr->type = type; hattr 311 drivers/hwmon/hwmon.c hattr->attr = attr; hattr 312 drivers/hwmon/hwmon.c hattr->index = index; hattr 313 drivers/hwmon/hwmon.c hattr->ops = ops; hattr 315 drivers/hwmon/hwmon.c dattr = &hattr->dev_attr;