/Linux-v4.19/drivers/hwmon/ |
D | lm75.c | 79 u8 resolution; /* In bits, between 9 and 12 */ member 86 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument 88 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc() 126 *val = lm75_reg_to_mc(regval, data->resolution); in lm75_read() 138 u8 resolution; in lm75_write() local 160 resolution = data->resolution_limits; in lm75_write() 162 resolution = data->resolution; in lm75_write() 165 temp = DIV_ROUND_CLOSEST(temp << (resolution - 8), in lm75_write() 166 1000) << (16 - resolution); in lm75_write() 307 data->resolution = 12; in lm75_probe() [all …]
|
D | ftsteutates.c | 82 enum WATCHDOG_RESOLUTION resolution; member 233 enum WATCHDOG_RESOLUTION resolution) in fts_wd_set_resolution() argument 237 if (data->resolution == resolution) in fts_wd_set_resolution() 244 if ((resolution == seconds && ret & BIT(1)) || in fts_wd_set_resolution() 245 (resolution == minutes && (ret & BIT(1)) == 0)) { in fts_wd_set_resolution() 246 data->resolution = resolution; in fts_wd_set_resolution() 250 if (resolution == seconds) in fts_wd_set_resolution() 259 data->resolution = resolution; in fts_wd_set_resolution() 266 enum WATCHDOG_RESOLUTION resolution = seconds; in fts_wd_set_timeout() local 275 resolution = minutes; in fts_wd_set_timeout() [all …]
|
D | sch56xx-common.c | 262 unsigned int resolution; in watchdog_set_timeout() local 268 resolution = 1; in watchdog_set_timeout() 270 resolution = 60; in watchdog_set_timeout() 272 if (timeout < resolution || timeout > (resolution * 255)) in watchdog_set_timeout() 275 if (resolution == 1) in watchdog_set_timeout() 296 data->watchdog_preset = DIV_ROUND_UP(timeout, resolution); in watchdog_set_timeout() 297 wddev->timeout = data->watchdog_preset * resolution; in watchdog_set_timeout()
|
/Linux-v4.19/drivers/iio/adc/ |
D | mcp320x.c | 69 unsigned int resolution; member 225 *val2 = adc->chip_info->resolution; in mcp320x_read_raw() 307 .resolution = 10 312 .resolution = 10 317 .resolution = 10 322 .resolution = 10 327 .resolution = 12 332 .resolution = 12 337 .resolution = 12 342 .resolution = 12 [all …]
|
/Linux-v4.19/drivers/iio/dac/ |
D | ti-dac082s085.c | 27 u8 resolution; member 31 [dual_8bit] = { .num_channels = 2, .resolution = 8 }, 32 [dual_10bit] = { .num_channels = 2, .resolution = 10 }, 33 [dual_12bit] = { .num_channels = 2, .resolution = 12 }, 34 [quad_8bit] = { .num_channels = 4, .resolution = 8 }, 35 [quad_10bit] = { .num_channels = 4, .resolution = 10 }, 36 [quad_12bit] = { .num_channels = 4, .resolution = 12 }, 59 u8 resolution; member 70 u8 shift = 12 - ti_dac->resolution; in ti_dac_cmd() 207 *val2 = ti_dac->resolution; in ti_dac_read_raw() [all …]
|
D | ti-dac5571.c | 35 u8 resolution; member 39 [single_8bit] = {.num_channels = 1, .resolution = 8}, 40 [single_10bit] = {.num_channels = 1, .resolution = 10}, 41 [single_12bit] = {.num_channels = 1, .resolution = 12}, 42 [quad_8bit] = {.num_channels = 4, .resolution = 8}, 43 [quad_10bit] = {.num_channels = 4, .resolution = 10}, 44 [quad_12bit] = {.num_channels = 4, .resolution = 12}, 72 shift = 12 - data->spec->resolution; in dac5571_cmd_single() 86 shift = 16 - data->spec->resolution; in dac5571_cmd_quad() 259 *val2 = data->spec->resolution; in dac5571_read_raw() [all …]
|
/Linux-v4.19/sound/core/ |
D | hrtimer.c | 36 static unsigned int resolution; variable 62 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback() 68 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback() 115 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start() 149 resolution = hrtimer_resolution; in snd_hrtimer_init() 160 timer->hw.resolution = resolution; in snd_hrtimer_init() 161 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
|
D | timer.c | 435 return timer->hw.resolution; in snd_timer_hw_resolution() 459 unsigned long resolution = 0; in snd_timer_notify1() local 473 resolution = snd_timer_hw_resolution(timer); in snd_timer_notify1() 475 ti->ccallback(ti, event, &tstamp, resolution); in snd_timer_notify1() 484 ts->ccallback(ts, event + 100, &tstamp, resolution); in snd_timer_notify1() 732 unsigned long resolution, ticks; in snd_timer_tasklet() local 749 resolution = ti->resolution; in snd_timer_tasklet() 754 ti->callback(ti, resolution, ticks); in snd_timer_tasklet() 770 unsigned long resolution, ticks; in snd_timer_interrupt() local 784 resolution = snd_timer_hw_resolution(timer); in snd_timer_interrupt() [all …]
|
D | timer_compat.c | 44 u32 resolution; member 80 info.resolution = t->hw.resolution; in snd_timer_user_info_compat() 88 u32 resolution; member 107 status.resolution = snd_timer_resolution(tu->timeri); in snd_timer_user_status_compat()
|
/Linux-v4.19/scripts/kconfig/tests/err_recursive_dep/ |
D | expected_stderr | 3 For a resolution refer to Documentation/kbuild/kconfig-language.txt 8 For a resolution refer to Documentation/kbuild/kconfig-language.txt 14 For a resolution refer to Documentation/kbuild/kconfig-language.txt 20 For a resolution refer to Documentation/kbuild/kconfig-language.txt 26 For a resolution refer to Documentation/kbuild/kconfig-language.txt 31 For a resolution refer to Documentation/kbuild/kconfig-language.txt 37 For a resolution refer to Documentation/kbuild/kconfig-language.txt
|
/Linux-v4.19/sound/core/seq/ |
D | seq_timer.c | 39 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 45 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution() 46 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 48 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 49 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 136 unsigned long resolution, in snd_seq_timer_interrupt() argument 154 resolution *= ticks; in snd_seq_timer_interrupt() 157 resolution = (resolution >> 16) * tmr->skew + in snd_seq_timer_interrupt() 158 (((resolution & 0xffff) * tmr->skew) >> 16); in snd_seq_timer_interrupt() 162 snd_seq_inc_time_nsec(&tmr->cur_time, resolution); in snd_seq_timer_interrupt() [all …]
|
D | seq_timer.h | 29 unsigned long resolution; /* time per tick in nsec */ member 69 unsigned long resolution) in snd_seq_timer_update_tick() argument 71 if (tick->resolution > 0) { in snd_seq_timer_update_tick() 72 tick->fraction += resolution; in snd_seq_timer_update_tick() 73 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick() 74 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
|
/Linux-v4.19/Documentation/timers/ |
D | hrtimers.txt | 2 hrtimers - subsystem for high-resolution kernel timers 5 This patch introduces a new subsystem for high-resolution kernel timers. 9 back and forth trying to integrate high-resolution and high-precision 11 such high-resolution timer implementations in practice, we came to the 18 - the forced handling of low-resolution and high-resolution timers in 30 necessitate a more complex handling of high resolution timers, which 62 high-resolution timer subsystem as well. 64 While this subsystem does not offer high-resolution clock sources just 65 yet, the hrtimer subsystem can be easily extended with high-resolution 73 resolution and low precision use cases - once the precision-sensitive [all …]
|
D | highres.txt | 1 High resolution timers and dynamic ticks design notes 25 - high resolution timer functionality 79 functionality like high resolution timers or dynamic ticks. 99 accounting, profiling, and high resolution timers. 128 utilize the high resolution and dynamic tick functionalities without any change 130 enabling of high resolution timers and dynamic ticks is simply provided by 138 high resolution timer functionality 141 During system boot it is not possible to use the high resolution timer 146 the high resolution functionality can work. Up to the point where hrtimers are 147 initialized, the system works in the usual low resolution periodic mode. The [all …]
|
/Linux-v4.19/drivers/acpi/acpica/ |
D | hwtimer.c | 30 acpi_status acpi_get_timer_resolution(u32 * resolution) in acpi_get_timer_resolution() argument 34 if (!resolution) { in acpi_get_timer_resolution() 39 *resolution = 24; in acpi_get_timer_resolution() 41 *resolution = 32; in acpi_get_timer_resolution()
|
/Linux-v4.19/drivers/staging/iio/resolver/ |
D | ad2s1210.c | 79 u8 resolution; member 155 int resolution = (gpio_get_value(st->pdata->res[0]) << 1) | in ad2s1210_read_resolution_pin() local 158 return ad2s1210_resolution_value[resolution]; in ad2s1210_read_resolution_pin() 168 ad2s1210_res_pins[(st->resolution - 10) / 2][0]); in ad2s1210_set_resolution_pin() 170 ad2s1210_res_pins[(st->resolution - 10) / 2][1]); in ad2s1210_set_resolution_pin() 304 st->resolution in ad2s1210_store_control() 308 if (data != st->resolution) in ad2s1210_store_control() 327 return sprintf(buf, "%d\n", st->resolution); in ad2s1210_show_resolution() 366 st->resolution in ad2s1210_store_resolution() 370 if (data != st->resolution) in ad2s1210_store_resolution() [all …]
|
/Linux-v4.19/drivers/pwm/ |
D | pwm-mediatek.c | 147 u64 resolution; in mtk_pwm_config() local 155 resolution = (u64)NSEC_PER_SEC * 1000; in mtk_pwm_config() 156 do_div(resolution, clk_get_rate(clk)); in mtk_pwm_config() 158 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in mtk_pwm_config() 160 resolution *= 2; in mtk_pwm_config() 163 resolution); in mtk_pwm_config() 181 cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution); in mtk_pwm_config()
|
/Linux-v4.19/drivers/watchdog/ |
D | bcm_kona_wdt.c | 32 #define SECS_TO_TICKS(x, w) ((x) << (w)->resolution) 33 #define TICKS_TO_SECS(x, w) ((x) >> (w)->resolution) 50 int resolution; member 124 res, wdt->resolution, in bcm_kona_wdt_dbg_show() 208 if (wdt->resolution > SECWDOG_MAX_RES) in bcm_kona_wdt_set_resolution_reg() 212 wdt->resolution << SECWDOG_CLKS_SHIFT); in bcm_kona_wdt_set_resolution_reg() 307 wdt->resolution = SECWDOG_DEFAULT_RESOLUTION; in bcm_kona_wdt_probe()
|
/Linux-v4.19/sound/drivers/pcsp/ |
D | pcsp.c | 46 unsigned int resolution = hrtimer_resolution; in snd_pcsp_create() local 50 if (resolution > PCSP_MAX_PERIOD_NS) { in snd_pcsp_create() 52 "(%unS)\n", resolution); in snd_pcsp_create() 60 if (loops_per_jiffy >= PCSP_MIN_LPJ && resolution <= PCSP_MIN_PERIOD_NS) in snd_pcsp_create() 66 loops_per_jiffy, min_div, resolution); in snd_pcsp_create()
|
/Linux-v4.19/include/sound/ |
D | timer.h | 58 unsigned long resolution; /* average timer resolution for one tick in nsec */ member 104 unsigned long ticks, unsigned long resolution); 108 unsigned long resolution); 114 unsigned long resolution; /* current resolution for tasklet */ member
|
/Linux-v4.19/Documentation/hwmon/ |
D | ds1621 | 83 also pin compatible with the DS1621 and provide multi-resolution support. 94 DS1631 - 93ms..750ms for 9..12 bits resolution, respectively. 95 DS1721 - 93ms..750ms for 9..12 bits resolution, respectively. 96 DS1731 - 93ms..750ms for 9..12 bits resolution, respectively. 115 As mentioned above, the DS1631, DS1721, and DS1731 provide multi-resolution 126 At initial device power-on, the default resolution is set to 12-bits. 128 The resolution mode for the DS1631, DS1721, or DS1731 can be changed from 130 will normalize the range of input values to the device maximum resolution 179 Mathematically, the resolution can be derived from the conversion time 186 -> 'g(x)' = the resolution in degrees C per LSB.
|
D | lm73 | 25 LSB: 0.25, 0.125, 0.0625, and 0.3125. Changing the resolution mode 27 From userspace, the desired resolution can be specified as a function of 30 maximum times defined for the resolution in the datasheet. 73 Mathematically, the resolution can be derived from the conversion time 79 resolution in degrees C per LSB.
|
/Linux-v4.19/drivers/input/mouse/ |
D | lifebook.c | 231 static void lifebook_set_resolution(struct psmouse *psmouse, unsigned int resolution) in lifebook_set_resolution() argument 236 if (resolution == 0 || resolution > 400) in lifebook_set_resolution() 237 resolution = 400; in lifebook_set_resolution() 239 p = params[resolution / 100]; in lifebook_set_resolution() 241 psmouse->resolution = 50 << p; in lifebook_set_resolution()
|
/Linux-v4.19/drivers/staging/comedi/drivers/ |
D | das800.c | 94 int resolution; member 167 .resolution = 12, 173 .resolution = 12, 179 .resolution = 12, 185 .resolution = 12, 191 .resolution = 12, 197 .resolution = 12, 203 .resolution = 16, 240 if (board->resolution == 16) in das800_enable() 387 if (board->resolution == 12 && gain > 0) in das800_ai_do_cmd() [all …]
|
/Linux-v4.19/Documentation/media/uapi/rc/ |
D | lirc-get-rec-resolution.rst | 12 LIRC_GET_REC_RESOLUTION - Obtain the value of receive resolution, in microseconds. 33 Some receivers have maximum resolution which is defined by internal 37 This ioctl returns the integer value with such resolution, with can be
|