Home
last modified time | relevance | path

Searched refs:resolution (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/Linux-v5.4/drivers/iio/adc/
Dmcp320x.c66 unsigned int resolution; member
222 *val2 = adc->chip_info->resolution; in mcp320x_read_raw()
304 .resolution = 10
309 .resolution = 10
314 .resolution = 10
319 .resolution = 10
324 .resolution = 12
329 .resolution = 12
334 .resolution = 12
339 .resolution = 12
[all …]
Dad7949.c29 u8 resolution; member
33 [ID_AD7949] = { .num_channels = 8, .resolution = 14 },
34 [ID_AD7682] = { .num_channels = 4, .resolution = 16 },
35 [ID_AD7689] = { .num_channels = 8, .resolution = 16 },
54 u8 resolution; member
70 int ret = ad7949_adc->resolution; in ad7949_spi_bits_per_word()
111 int mask = GENMASK(ad7949_adc->resolution, 0); in ad7949_spi_read_channel()
269 ad7949_adc->resolution = spec->resolution; in ad7949_spi_probe()
/Linux-v5.4/drivers/iio/dac/
Dti-dac082s085.c24 u8 resolution; member
28 [dual_8bit] = { .num_channels = 2, .resolution = 8 },
29 [dual_10bit] = { .num_channels = 2, .resolution = 10 },
30 [dual_12bit] = { .num_channels = 2, .resolution = 12 },
31 [quad_8bit] = { .num_channels = 4, .resolution = 8 },
32 [quad_10bit] = { .num_channels = 4, .resolution = 10 },
33 [quad_12bit] = { .num_channels = 4, .resolution = 12 },
56 u8 resolution; member
67 u8 shift = 12 - ti_dac->resolution; in ti_dac_cmd()
204 *val2 = ti_dac->resolution; in ti_dac_read_raw()
[all …]
Dti-dac7311.c27 u8 resolution; member
31 [ID_DAC5311] = { .resolution = 8 },
32 [ID_DAC6311] = { .resolution = 10 },
33 [ID_DAC7311] = { .resolution = 12 },
54 u8 resolution; member
68 u8 shift = 14 - ti_dac->resolution; in ti_dac_cmd()
184 *val2 = ti_dac->resolution; in ti_dac_read_raw()
204 if (val >= (1 << ti_dac->resolution) || val < 0) in ti_dac_write_raw()
268 ti_dac->resolution = spec->resolution; in ti_dac_probe()
Dti-dac5571.c32 u8 resolution; member
36 [single_8bit] = {.num_channels = 1, .resolution = 8},
37 [single_10bit] = {.num_channels = 1, .resolution = 10},
38 [single_12bit] = {.num_channels = 1, .resolution = 12},
39 [quad_8bit] = {.num_channels = 4, .resolution = 8},
40 [quad_10bit] = {.num_channels = 4, .resolution = 10},
41 [quad_12bit] = {.num_channels = 4, .resolution = 12},
69 shift = 12 - data->spec->resolution; in dac5571_cmd_single()
83 shift = 16 - data->spec->resolution; in dac5571_cmd_quad()
256 *val2 = data->spec->resolution; in dac5571_read_raw()
[all …]
/Linux-v5.4/sound/core/
Dhrtimer.c22 static unsigned int resolution; variable
48 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback()
54 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback()
101 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
135 resolution = hrtimer_resolution; in snd_hrtimer_init()
146 timer->hw.resolution = resolution; in snd_hrtimer_init()
147 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
Dtimer.c437 return timer->hw.resolution; in snd_timer_hw_resolution()
461 unsigned long resolution = 0; in snd_timer_notify1() local
475 resolution = snd_timer_hw_resolution(timer); in snd_timer_notify1()
477 ti->ccallback(ti, event, &tstamp, resolution); in snd_timer_notify1()
486 ts->ccallback(ts, event + 100, &tstamp, resolution); in snd_timer_notify1()
741 unsigned long resolution, ticks; in snd_timer_process_callbacks() local
753 resolution = ti->resolution; in snd_timer_process_callbacks()
757 ti->callback(ti, resolution, ticks); in snd_timer_process_callbacks()
804 unsigned long resolution; in snd_timer_interrupt() local
820 resolution = snd_timer_hw_resolution(timer); in snd_timer_interrupt()
[all …]
Dtimer_compat.c30 u32 resolution; member
66 info.resolution = t->hw.resolution; in snd_timer_user_info_compat()
74 u32 resolution; member
93 status.resolution = snd_timer_resolution(tu->timeri); in snd_timer_user_status_compat()
/Linux-v5.4/sound/core/seq/
Dseq_timer.c24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution()
31 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution()
33 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution()
34 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution()
121 unsigned long resolution, in snd_seq_timer_interrupt() argument
139 resolution *= ticks; in snd_seq_timer_interrupt()
142 resolution = (resolution >> 16) * tmr->skew + in snd_seq_timer_interrupt()
143 (((resolution & 0xffff) * tmr->skew) >> 16); in snd_seq_timer_interrupt()
147 snd_seq_inc_time_nsec(&tmr->cur_time, resolution); in snd_seq_timer_interrupt()
[all …]
Dseq_timer.h14 unsigned long resolution; /* time per tick in nsec */ member
54 unsigned long resolution) in snd_seq_timer_update_tick() argument
56 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
57 tick->fraction += resolution; in snd_seq_timer_update_tick()
58 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick()
59 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
/Linux-v5.4/scripts/kconfig/tests/err_recursive_dep/
Dexpected_stderr3 For a resolution refer to Documentation/kbuild/kconfig-language.rst
8 For a resolution refer to Documentation/kbuild/kconfig-language.rst
14 For a resolution refer to Documentation/kbuild/kconfig-language.rst
20 For a resolution refer to Documentation/kbuild/kconfig-language.rst
26 For a resolution refer to Documentation/kbuild/kconfig-language.rst
31 For a resolution refer to Documentation/kbuild/kconfig-language.rst
37 For a resolution refer to Documentation/kbuild/kconfig-language.rst
/Linux-v5.4/Documentation/timers/
Dhrtimers.rst2 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 …]
/Linux-v5.4/drivers/acpi/acpica/
Dhwtimer.c30 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-v5.4/drivers/watchdog/
Dbcm_kona_wdt.c32 #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_show()
192 if (wdt->resolution > SECWDOG_MAX_RES) in bcm_kona_wdt_set_resolution_reg()
196 wdt->resolution << SECWDOG_CLKS_SHIFT); in bcm_kona_wdt_set_resolution_reg()
284 wdt->resolution = SECWDOG_DEFAULT_RESOLUTION; in bcm_kona_wdt_probe()
/Linux-v5.4/drivers/hwmon/
Dlm75.c106 u8 resolution; /* In bits, 9 to 16 */ member
297 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument
299 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc()
358 *val = lm75_reg_to_mc(regval, data->resolution); in lm75_read()
369 u8 resolution; in lm75_write_temp() local
388 resolution = data->params->resolution_limits; in lm75_write_temp()
390 resolution = data->resolution; in lm75_write_temp()
393 temp = DIV_ROUND_CLOSEST(temp << (resolution - 8), in lm75_write_temp()
394 1000) << (16 - resolution); in lm75_write_temp()
418 data->resolution = data->params->resolutions[index]; in lm75_update_interval()
[all …]
Dftsteutates.c72 enum WATCHDOG_RESOLUTION resolution; member
223 enum WATCHDOG_RESOLUTION resolution) in fts_wd_set_resolution() argument
227 if (data->resolution == resolution) in fts_wd_set_resolution()
234 if ((resolution == seconds && ret & BIT(1)) || in fts_wd_set_resolution()
235 (resolution == minutes && (ret & BIT(1)) == 0)) { in fts_wd_set_resolution()
236 data->resolution = resolution; in fts_wd_set_resolution()
240 if (resolution == seconds) in fts_wd_set_resolution()
249 data->resolution = resolution; in fts_wd_set_resolution()
256 enum WATCHDOG_RESOLUTION resolution = seconds; in fts_wd_set_timeout() local
265 resolution = minutes; in fts_wd_set_timeout()
[all …]
/Linux-v5.4/sound/drivers/pcsp/
Dpcsp.c47 unsigned int resolution = hrtimer_resolution; in snd_pcsp_create() local
51 if (resolution > PCSP_MAX_PERIOD_NS) { in snd_pcsp_create()
53 "(%unS)\n", resolution); in snd_pcsp_create()
61 if (loops_per_jiffy >= PCSP_MIN_LPJ && resolution <= PCSP_MIN_PERIOD_NS) in snd_pcsp_create()
67 loops_per_jiffy, min_div, resolution); in snd_pcsp_create()
/Linux-v5.4/include/sound/
Dtimer.h43 unsigned long resolution; /* average timer resolution for one tick in nsec */ member
89 unsigned long ticks, unsigned long resolution);
93 unsigned long resolution);
99 unsigned long resolution; /* current resolution for tasklet */ member
/Linux-v5.4/Documentation/hwmon/
Dds1621.rst102 also pin compatible with the DS1621 and provide multi-resolution support.
114 - DS1631 - 93ms..750ms for 9..12 bits resolution, respectively.
115 - DS1721 - 93ms..750ms for 9..12 bits resolution, respectively.
116 - DS1731 - 93ms..750ms for 9..12 bits resolution, respectively.
137 As mentioned above, the DS1631, DS1721, and DS1731 provide multi-resolution
154 At initial device power-on, the default resolution is set to 12-bits.
156 The resolution mode for the DS1631, DS1721, or DS1731 can be changed from
158 will normalize the range of input values to the device maximum resolution
208 Mathematically, the resolution can be derived from the conversion time
216 - 'g(x)' = the resolution in degrees C per LSB.
Dlm73.rst32 LSB: 0.25, 0.125, 0.0625, and 0.3125. Changing the resolution mode
34 From userspace, the desired resolution can be specified as a function of
37 maximum times defined for the resolution in the datasheet.
81 Mathematically, the resolution can be derived from the conversion time
87 resolution in degrees C per LSB.
/Linux-v5.4/drivers/pwm/
Dpwm-mediatek.c126 u64 resolution; in pwm_mediatek_config() local
135 resolution = (u64)NSEC_PER_SEC * 1000; in pwm_mediatek_config()
136 do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm])); in pwm_mediatek_config()
138 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in pwm_mediatek_config()
140 resolution *= 2; in pwm_mediatek_config()
143 resolution); in pwm_mediatek_config()
161 cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution); in pwm_mediatek_config()
/Linux-v5.4/drivers/input/mouse/
Dlifebook.c228 static void lifebook_set_resolution(struct psmouse *psmouse, unsigned int resolution) in lifebook_set_resolution() argument
233 if (resolution == 0 || resolution > 400) in lifebook_set_resolution()
234 resolution = 400; in lifebook_set_resolution()
236 p = params[resolution / 100]; in lifebook_set_resolution()
238 psmouse->resolution = 50 << p; in lifebook_set_resolution()
/Linux-v5.4/Documentation/media/uapi/v4l/
Ddev-decoder.rst65 height for given coded resolution.
67 coded resolution
68 stream resolution in pixels aligned to codec and hardware requirements;
69 typically visible resolution rounded up to full macroblocks;
70 see also: visible resolution.
73 width for given coded resolution.
132 height in pixels for given source resolution; relevant to encoders only.
134 source resolution
135 resolution in pixels of source frames being source to the encoder and
136 subject to further cropping to the bounds of visible resolution; relevant to
[all …]
/Linux-v5.4/drivers/staging/iio/resolver/
Dad2s1210.c95 u8 resolution; member
176 ad2s1210_res_pins[(st->resolution - 10) / 2][0]); in ad2s1210_set_resolution_pin()
178 ad2s1210_res_pins[(st->resolution - 10) / 2][1]); in ad2s1210_set_resolution_pin()
312 st->resolution = in ad2s1210_store_control()
329 return sprintf(buf, "%d\n", st->resolution); in ad2s1210_show_resolution()
368 st->resolution = in ad2s1210_store_resolution()
490 pos >>= 16 - st->resolution; in ad2s1210_read_raw()
497 vel >>= 16 - st->resolution; in ad2s1210_read_raw()
499 negative = (0xffff >> st->resolution) << st->resolution; in ad2s1210_read_raw()
597 data |= (st->resolution - 10) >> 1; in ad2s1210_initial()
[all …]
/Linux-v5.4/drivers/staging/comedi/drivers/
Ddas800.c94 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 …]

12345678910>>...12