Searched refs:set_max (Results 1 – 5 of 5) sorted by relevance
/linux-4.4.14/drivers/ide/ |
D | ide-disk.c | 299 u64 capacity, set_max; in ide_disk_hpa_get_native_capacity() local 302 set_max = idedisk_read_native_max_address(drive, lba48); in ide_disk_hpa_get_native_capacity() 309 if (set_max == capacity + 1) in ide_disk_hpa_get_native_capacity() 310 set_max--; in ide_disk_hpa_get_native_capacity() 313 return set_max; in ide_disk_hpa_get_native_capacity() 316 static u64 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48) in ide_disk_hpa_set_capacity() argument 318 set_max = idedisk_set_max_address(drive, set_max, lba48); in ide_disk_hpa_set_capacity() 319 if (set_max) in ide_disk_hpa_set_capacity() 320 drive->capacity64 = set_max; in ide_disk_hpa_set_capacity() 322 return set_max; in ide_disk_hpa_set_capacity() [all …]
|
/linux-4.4.14/drivers/hwmon/ |
D | abx500.c | 176 static ssize_t set_max(struct device *dev, struct device_attribute *devattr, in set_max() function 282 static SENSOR_DEVICE_ATTR(temp1_max, S_IWUSR | S_IRUGO, show_max, set_max, 0); 292 static SENSOR_DEVICE_ATTR(temp2_max, S_IWUSR | S_IRUGO, show_max, set_max, 1); 302 static SENSOR_DEVICE_ATTR(temp3_max, S_IWUSR | S_IRUGO, show_max, set_max, 2); 312 static SENSOR_DEVICE_ATTR(temp4_max, S_IWUSR | S_IRUGO, show_max, set_max, 3);
|
D | lm95241.c | 247 static ssize_t set_max(struct device *dev, struct device_attribute *attr, in set_max() function 308 static SENSOR_DEVICE_ATTR(temp2_max, S_IWUSR | S_IRUGO, show_max, set_max, 310 static SENSOR_DEVICE_ATTR(temp3_max, S_IWUSR | S_IRUGO, show_max, set_max,
|
D | adm9240.c | 277 static ssize_t set_max(struct device *dev, struct device_attribute *devattr, in set_max() function 300 show_max, set_max, 0); 302 show_max, set_max, 1);
|
/linux-4.4.14/drivers/power/ |
D | ab8500_charger.c | 213 int set_max; member 789 di->max_usb_in_curr.set_max = di->max_usb_in_curr.usb_type_max; in ab8500_charger_max_usb_curr() 791 link_status, di->max_usb_in_curr.set_max); in ab8500_charger_max_usb_curr() 1078 di->max_usb_in_curr.set_max = di->max_usb_in_curr.usb_type_max; in ab8500_charger_get_usb_cur() 1245 if (di->max_usb_in_curr.set_max > 0) in ab8500_charger_set_vbus_in_curr() 1246 min_value = min(di->max_usb_in_curr.set_max, min_value); in ab8500_charger_set_vbus_in_curr() 2742 di->max_usb_in_curr.set_max = in ab8500_charger_vbus_drop_end_work() 2746 di->max_usb_in_curr.set_max); in ab8500_charger_vbus_drop_end_work()
|