Searched refs:set_max (Results 1 - 5 of 5) sorted by relevance
/linux-4.4.14/drivers/ide/ |
H A D | ide-disk.c | 299 u64 capacity, set_max; ide_disk_hpa_get_native_capacity() local 302 set_max = idedisk_read_native_max_address(drive, lba48); ide_disk_hpa_get_native_capacity() 309 if (set_max == capacity + 1) ide_disk_hpa_get_native_capacity() 310 set_max--; ide_disk_hpa_get_native_capacity() 313 return set_max; ide_disk_hpa_get_native_capacity() 316 static u64 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48) ide_disk_hpa_set_capacity() argument 318 set_max = idedisk_set_max_address(drive, set_max, lba48); ide_disk_hpa_set_capacity() 319 if (set_max) ide_disk_hpa_set_capacity() 320 drive->capacity64 = set_max; ide_disk_hpa_set_capacity() 322 return set_max; ide_disk_hpa_set_capacity() 327 u64 capacity, set_max; idedisk_check_hpa() local 331 set_max = ide_disk_hpa_get_native_capacity(drive, lba48); idedisk_check_hpa() 333 if (set_max <= capacity) idedisk_check_hpa() 336 drive->probed_capacity = set_max; idedisk_check_hpa() 343 set_max, sectors_to_MB(set_max)); idedisk_check_hpa() 348 set_max = ide_disk_hpa_set_capacity(drive, set_max, lba48); idedisk_check_hpa() 349 if (set_max) idedisk_check_hpa()
|
/linux-4.4.14/drivers/hwmon/ |
H A D | abx500.c | 176 static ssize_t set_max(struct device *dev, struct device_attribute *devattr, 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);
|
H A D | lm95241.c | 247 static ssize_t set_max(struct device *dev, struct device_attribute *attr, 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,
|
H A D | adm9240.c | 277 static ssize_t set_max(struct device *dev, struct device_attribute *devattr, set_max() function 300 show_max, set_max, 0); 302 show_max, set_max, 1);
|
/linux-4.4.14/drivers/power/ |
H A D | ab8500_charger.c | 213 int set_max; member in struct:ab8500_charger_max_usb_in_curr 789 di->max_usb_in_curr.set_max = di->max_usb_in_curr.usb_type_max; ab8500_charger_max_usb_curr() 791 link_status, di->max_usb_in_curr.set_max); ab8500_charger_max_usb_curr() 1078 di->max_usb_in_curr.set_max = di->max_usb_in_curr.usb_type_max; ab8500_charger_get_usb_cur() 1245 if (di->max_usb_in_curr.set_max > 0) ab8500_charger_set_vbus_in_curr() 1246 min_value = min(di->max_usb_in_curr.set_max, min_value); ab8500_charger_set_vbus_in_curr() 2742 di->max_usb_in_curr.set_max = ab8500_charger_vbus_drop_end_work() 2746 di->max_usb_in_curr.set_max); ab8500_charger_vbus_drop_end_work()
|
Completed in 378 milliseconds