Home
last modified time | relevance | path

Searched refs:update_interval (Results 1 – 18 of 18) sorted by relevance

/drivers/hwmon/
Dds1621.c120 u16 update_interval; /* Conversion rate in milliseconds */ member
161 data->update_interval = DS1625_CONVERSION_MAX; in ds1621_init_client()
170 data->update_interval = ds1721_convrates[resol]; in ds1621_init_client()
175 data->update_interval = DS1621_CONVERSION_MAX; in ds1621_init_client()
193 if (time_after(jiffies, data->last_updated + data->update_interval) || in ds1621_update_client()
272 return scnprintf(buf, PAGE_SIZE, "%hu\n", data->update_interval); in update_interval_show()
299 data->update_interval = ds1721_convrates[resol]; in update_interval_store()
307 static DEVICE_ATTR_RW(update_interval);
Dina209.c73 u16 update_interval; member
87 time_after(jiffies, data->last_updated + data->update_interval)) { in ina209_update_device()
252 data->update_interval = ina209_interval_from_reg(regval); in ina209_interval_store()
262 return snprintf(buf, PAGE_SIZE, "%d\n", data->update_interval); in ina209_interval_show()
428 static SENSOR_DEVICE_ATTR_RW(update_interval, ina209_interval, 0);
519 data->update_interval = ina209_interval_from_reg(INA209_CONFIG_DEFAULT); in ina209_init_client()
Dtmp401.c143 unsigned int update_interval; /* in milliseconds */ member
217 msecs_to_jiffies(data->update_interval); in tmp401_update_device()
427 return sprintf(buf, "%u\n", data->update_interval); in update_interval_show()
455 data->update_interval = (1 << (7 - rate)) * 125; in update_interval_store()
485 static DEVICE_ATTR_RW(update_interval);
599 data->update_interval = 500; in tmp401_init_client()
Dlm63.c149 int update_interval; /* in milliseconds */ member
233 msecs_to_jiffies(data->update_interval); in lm63_update_device()
644 unsigned int update_interval; in lm63_set_convrate() local
651 update_interval = (1 << (LM63_MAX_CONVRATE + 6)) * 1000 in lm63_set_convrate()
653 for (i = 0; i < LM63_MAX_CONVRATE; i++, update_interval >>= 1) in lm63_set_convrate()
654 if (interval >= update_interval * 3 / 4) in lm63_set_convrate()
658 data->update_interval = UPDATE_INTERVAL(data->max_convrate_hz, i); in lm63_set_convrate()
666 return sprintf(buf, "%u\n", data->update_interval); in update_interval_show()
846 static DEVICE_ATTR_RW(update_interval);
1057 data->update_interval = UPDATE_INTERVAL(data->max_convrate_hz, in lm63_init_client()
Dsht3x.c562 u16 update_interval; in update_interval_store() local
569 ret = kstrtou16(buf, 0, &update_interval); in update_interval_store()
573 mode = get_mode_from_update_interval(update_interval); in update_interval_store()
637 static SENSOR_DEVICE_ATTR_RW(update_interval, update_interval, 0);
Dlm90.c460 unsigned int update_interval; /* in milliseconds */ member
612 unsigned int update_interval; in lm90_set_convrate() local
619 for (i = 0, update_interval = LM90_MAX_CONVRATE_MS << 6; in lm90_set_convrate()
620 i < data->max_convrate; i++, update_interval >>= 1) in lm90_set_convrate()
621 if (interval >= update_interval * 3 / 4) in lm90_set_convrate()
625 data->update_interval = DIV_ROUND_CLOSEST(update_interval, 64); in lm90_set_convrate()
739 msecs_to_jiffies(data->update_interval); in lm90_update_device()
1313 *val = data->update_interval; in lm90_chip_read()
Dadm1031.c70 unsigned int update_interval; /* In milliseconds */ member
117 + msecs_to_jiffies(data->update_interval); in adm1031_update_device()
855 return sprintf(buf, "%u\n", data->update_interval); in update_interval_show()
889 data->update_interval = update_intervals[i]; in update_interval_store()
895 static DEVICE_ATTR_RW(update_interval);
1022 data->update_interval = update_intervals[i]; in adm1031_init_client()
Dmax6697.c77 int update_interval; /* in milli-seconds */ member
187 + msecs_to_jiffies(data->update_interval))) in max6697_update_device()
591 data->update_interval = factor * MAX6697_CONV_TIME; in max6697_init_chip()
Dlm73.c171 static SENSOR_DEVICE_ATTR_RW(update_interval, convrate, 0);
Dina2xx.c409 static SENSOR_DEVICE_ATTR_RW(update_interval, ina226_interval, 0);
Dstts751.c749 static SENSOR_DEVICE_ATTR_RW(update_interval, interval, 0);
Dlm95234.c534 static DEVICE_ATTR_RW(update_interval);
/drivers/staging/greybus/
Dpower_supply.c41 unsigned int update_interval; member
344 if (gbpsy->update_interval == update_interval_max) in next_interval()
348 gbpsy->update_interval *= 2; in next_interval()
349 if (gbpsy->update_interval > update_interval_max) in next_interval()
350 gbpsy->update_interval = update_interval_max; in next_interval()
730 gbpsy->update_interval = update_interval_init; in gb_power_supply_status_update()
745 if (!gbpsy->update_interval) in gb_power_supply_work()
750 schedule_delayed_work(&gbpsy->work, gbpsy->update_interval); in gb_power_supply_work()
848 gbpsy->update_interval = 0; in _gb_power_supply_release()
923 gbpsy->update_interval = update_interval_init; in gb_power_supply_enable()
[all …]
/drivers/power/supply/
Dda9150-fg.c428 &pdata->update_interval); in da9150_fg_dt_pdata()
485 fg->interval = fg_pdata->update_interval; in da9150_fg_probe()
/drivers/rtc/
Drtc-rv3029c2.c753 static SENSOR_DEVICE_ATTR(update_interval, S_IWUSR | S_IRUGO,
/drivers/scsi/aacraid/
Daachba.c299 int update_interval = 30 * 60; variable
300 module_param(update_interval, int, S_IRUGO|S_IWUSR);
301 MODULE_PARM_DESC(update_interval, "Interval in seconds between time sync"
Daacraid.h2757 extern int update_interval;
Dcommsup.c2506 difference = (long)(unsigned)update_interval*HZ; in aac_command_thread()