Lines Matching defs:device
31 /* ISA device, if found */
41 MODULE_PARM_DESC(force_id, "Override the detected device ID");
201 struct device *hwmon_dev;
557 if (client) { /* I2C device */
565 } else { /* ISA device */
578 if (client) { /* I2C device */
586 } else { /* ISA device */
594 static struct dme1737_data *dme1737_update_device(struct device *dev)
799 static ssize_t show_in(struct device *dev, struct device_attribute *attr,
830 static ssize_t set_in(struct device *dev, struct device_attribute *attr,
877 static ssize_t show_temp(struct device *dev, struct device_attribute *attr,
914 static ssize_t set_temp(struct device *dev, struct device_attribute *attr,
965 static ssize_t show_zone(struct device *dev, struct device_attribute *attr,
1006 static ssize_t set_zone(struct device *dev, struct device_attribute *attr,
1080 static ssize_t show_fan(struct device *dev, struct device_attribute *attr,
1120 static ssize_t set_fan(struct device *dev, struct device_attribute *attr,
1196 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr,
1257 static void dme1737_chmod_file(struct device*, struct attribute*, umode_t);
1259 static ssize_t set_pwm(struct device *dev, struct device_attribute *attr,
1462 static ssize_t vrm_show(struct device *dev, struct device_attribute *attr,
1471 static ssize_t vrm_store(struct device *dev, struct device_attribute *attr,
1489 static ssize_t cpu0_vid_show(struct device *dev,
1497 static ssize_t name_show(struct device *dev, struct device_attribute *attr,
1506 * Sysfs device attribute defines and structs
2043 static void dme1737_chmod_file(struct device *dev,
2052 static void dme1737_chmod_group(struct device *dev,
2062 static void dme1737_remove_files(struct device *dev)
2101 static int dme1737_create_files(struct device *dev)
2173 * Inform if the device is locked. Otherwise change the permissions of
2232 static int dme1737_init_device(struct device *dev)
2377 * I2C device detection and registration
2390 * Check device ID
2400 /* Select logical device A (runtime registers) */
2436 struct device *dev = &adapter->dev;
2469 struct device *dev = &client->dev;
2485 dev_err(dev, "Failed to initialize device.\n");
2496 /* Register device */
2499 dev_err(dev, "Failed to register device.\n");
2541 * ISA device detection and registration
2552 * Check device ID
2562 /* Select logical device A (runtime registers) */
2601 pr_err("Failed to allocate device\n");
2608 pr_err("Failed to add device resource (err = %d)\n", err);
2614 pr_err("Failed to add device (err = %d)\n", err);
2629 u8 company, device;
2632 struct device *dev = &pdev->dev;
2662 device = dme1737_read(data, DME1737_REG_DEVICE);
2665 (device == SCH311X_DEVICE)) {
2668 (device == SCH5127_DEVICE)) {
2689 dev_err(dev, "Failed to initialize device.\n");
2700 /* Register device */
2703 dev_err(dev, "Failed to register device.\n");
2751 /* Return 0 if we didn't find an ISA device */