| /linux/drivers/iio/adc/ |
| H A D | mcp320x.c | 67 unsigned int resolution; member 223 *val2 = adc->chip_info->resolution; in mcp320x_read_raw() 305 .resolution = 10 310 .resolution = 10 315 .resolution = 10 320 .resolution = 10 325 .resolution = 12 330 .resolution = 12 335 .resolution = 12 340 .resolution = 12 [all …]
|
| H A D | ltc2497.c | 68 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure() 71 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure() 102 u32 resolution; in ltc2497_probe() local 120 resolution = chip_info->resolution; in ltc2497_probe() 121 st->recv_size = BITS_TO_BYTES(resolution) + 1; in ltc2497_probe() 135 .resolution = 16, 139 .resolution = 24,
|
| H A D | ad7949.c | 58 u8 resolution; member 62 [ID_AD7949] = { .num_channels = 8, .resolution = 14 }, 63 [ID_AD7682] = { .num_channels = 4, .resolution = 16 }, 64 [ID_AD7689] = { .num_channels = 8, .resolution = 16 }, 86 u8 resolution; member 170 *val >>= 16 - ad7949_adc->resolution; in ad7949_spi_read_channel() 179 *val >>= 16 - ad7949_adc->resolution; in ad7949_spi_read_channel() 248 *val2 = (1 << ad7949_adc->resolution) - 1; in ad7949_spi_read_raw() 334 ad7949_adc->resolution = spec->resolution; in ad7949_spi_probe() 337 if (spi_is_bpw_supported(spi, ad7949_adc->resolution)) { in ad7949_spi_probe() [all …]
|
| /linux/sound/core/seq/ |
| H A D | seq_timer.c | 27 tmr->tick.resolution = (tmr->tempo * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 33 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * tmr->tempo_base; in snd_seq_timer_set_tick_resolution() 34 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 36 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 37 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 119 unsigned long resolution, in snd_seq_timer_interrupt() argument 135 resolution *= ticks; in snd_seq_timer_interrupt() 138 resolution = (resolution >> 16) * tmr->skew + in snd_seq_timer_interrupt() 139 (((resolution & 0xffff) * tmr->skew) >> 16); in snd_seq_timer_interrupt() 143 snd_seq_inc_time_nsec(&tmr->cur_time, resolution); in snd_seq_timer_interrupt() [all …]
|
| H A D | seq_timer.h | 14 unsigned long resolution; /* time per tick in nsec */ member 55 unsigned long resolution) in snd_seq_timer_update_tick() argument 57 if (tick->resolution > 0) { in snd_seq_timer_update_tick() 58 tick->fraction += resolution; in snd_seq_timer_update_tick() 59 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick() 60 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
|
| /linux/drivers/iio/dac/ |
| H A D | ti-dac082s085.c | 25 u8 resolution; member 29 [dual_8bit] = { .num_channels = 2, .resolution = 8 }, 30 [dual_10bit] = { .num_channels = 2, .resolution = 10 }, 31 [dual_12bit] = { .num_channels = 2, .resolution = 12 }, 32 [quad_8bit] = { .num_channels = 4, .resolution = 8 }, 33 [quad_10bit] = { .num_channels = 4, .resolution = 10 }, 34 [quad_12bit] = { .num_channels = 4, .resolution = 12 }, 57 u8 resolution; member 68 u8 shift = 12 - ti_dac->resolution; in ti_dac_cmd() 205 *val2 = ti_dac->resolution; in ti_dac_read_raw() [all …]
|
| H A D | ti-dac7311.c | 27 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() 266 ti_dac->resolution = spec->resolution; in ti_dac_probe()
|
| H A D | mcp47feb02.c | 106 unsigned int resolution; member 114 .resolution = 8, 122 .resolution = 8, 130 .resolution = 8, 138 .resolution = 8, 146 .resolution = 10, 154 .resolution = 10, 162 .resolution = 10, 170 .resolution = 10, 178 .resolution = 12, [all …]
|
| H A D | ti-dac5571.c | 34 u8 resolution; member 38 [single_8bit] = {.num_channels = 1, .resolution = 8}, 39 [single_10bit] = {.num_channels = 1, .resolution = 10}, 40 [single_12bit] = {.num_channels = 1, .resolution = 12}, 41 [quad_8bit] = {.num_channels = 4, .resolution = 8}, 42 [quad_10bit] = {.num_channels = 4, .resolution = 10}, 43 [quad_12bit] = {.num_channels = 4, .resolution = 12}, 71 shift = 12 - data->spec->resolution; in dac5571_cmd_single() 85 shift = 16 - data->spec->resolution; in dac5571_cmd_quad() 259 *val2 = data->spec->resolution; in dac5571_read_raw() [all …]
|
| /linux/sound/core/ |
| H A D | hrtimer.c | 23 static unsigned int resolution; variable 49 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback() 55 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback() 99 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start() 133 resolution = hrtimer_resolution; in snd_hrtimer_init() 144 timer->hw.resolution = resolution; in snd_hrtimer_init() 145 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
|
| H A D | timer.c | 95 unsigned int resolution; /* current period resolution in ns */ member 107 unsigned int resolution; /* current period resolution in ns */ member 488 return timer->hw.resolution; in snd_timer_hw_resolution() 510 unsigned long resolution = 0; in snd_timer_notify1() local 524 resolution = snd_timer_hw_resolution(timer); in snd_timer_notify1() 526 ti->ccallback(ti, event, &tstamp, resolution); in snd_timer_notify1() 536 ts->ccallback(ts, event, &tstamp, resolution); in snd_timer_notify1() 769 unsigned long resolution, ticks; in snd_timer_process_callbacks() local 781 resolution = ti->resolution; in snd_timer_process_callbacks() 785 ti->callback(ti, resolution, ticks); in snd_timer_process_callbacks() [all …]
|
| /linux/drivers/hwmon/ |
| H A D | max77705-hwmon.c | 21 u32 resolution; member 28 .resolution = 125000 34 .resolution = 312500 42 .resolution = 427246 47 .resolution = 156250 140 res = current_channel_desc[channel].resolution; in max77705_read() 145 res = current_channel_desc[channel].resolution; in max77705_read() 156 res = voltage_channel_desc[channel].resolution; in max77705_read()
|
| H A D | ftsteutates.c | 66 enum WATCHDOG_RESOLUTION resolution; member 198 enum WATCHDOG_RESOLUTION resolution) in fts_wd_set_resolution() argument 202 if (data->resolution == resolution) in fts_wd_set_resolution() 209 if ((resolution == seconds && ret & BIT(1)) || in fts_wd_set_resolution() 210 (resolution == minutes && (ret & BIT(1)) == 0)) { in fts_wd_set_resolution() 211 data->resolution = resolution; in fts_wd_set_resolution() 215 if (resolution == seconds) in fts_wd_set_resolution() 224 data->resolution = resolution; in fts_wd_set_resolution() 231 enum WATCHDOG_RESOLUTION resolution = seconds; in fts_wd_set_timeout() local 240 resolution = minutes; in fts_wd_set_timeout() [all …]
|
| H A D | lm92.c | 65 static inline s16 TEMP_TO_REG(long val, int resolution) in TEMP_TO_REG() argument 68 return DIV_ROUND_CLOSEST(val << (resolution - 9), 1000) << (16 - resolution); in TEMP_TO_REG() 80 int resolution; member 203 val = TEMP_TO_REG(TEMP_FROM_REG(temp) - val, data->resolution); in lm92_temp_write() 208 return regmap_write(regmap, reg, TEMP_TO_REG(val, data->resolution)); in lm92_temp_write() 392 data->resolution = (unsigned long)i2c_get_match_data(client); in lm92_probe()
|
| /linux/scripts/kconfig/tests/err_recursive_dep/ |
| H A D | expected_stderr | 3 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 32 For a resolution refer to Documentation/kbuild/kconfig-language.rst 37 For a resolution refer to Documentation/kbuild/kconfig-language.rst
|
| /linux/Documentation/timers/ |
| H A D | hrtimers.rst | 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 …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-w1_therm | 47 What: /sys/bus/w1/devices/.../resolution 51 (RW) get or set the device resolution (on supported devices, 52 if not, this entry is not present). Note that the resolution 57 * '9..14': device resolution in bit 58 or resolution to set in bit 59 * '-xx': xx is kernel error when reading the resolution 62 Some DS18B20 clones are fixed in 12-bit resolution, so the 63 actual resolution is read back from the chip and verified. Error 82 conversion duration depend on the resolution (if 84 resolution, 750ms for 12bits. [all …]
|
| /linux/drivers/staging/media/atomisp/pci/camera/util/src/ |
| H A D | util.c | 120 bool ia_css_util_resolution_is_zero(const struct ia_css_resolution resolution) in ia_css_util_resolution_is_zero() argument 122 return (resolution.width == 0) || (resolution.height == 0); in ia_css_util_resolution_is_zero() 127 const struct ia_css_resolution resolution = { .width = width, .height = height }; in ia_css_util_check_res() local 129 if (ia_css_util_resolution_is_zero(resolution)) in ia_css_util_check_res()
|
| /linux/samples/hid/ |
| H A D | hid_surface_dial.c | 121 int err, opt, hid_id, resolution = 72; in main() local 143 resolution = (int) l; in main() 183 skel->data->resolution = resolution; in main() 184 skel->data->physical = (int)(resolution / 72); in main()
|
| /linux/drivers/acpi/acpica/ |
| H A 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/drivers/watchdog/ |
| H A 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_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/sound/drivers/pcsp/ |
| H A D | pcsp.c | 45 unsigned int resolution = hrtimer_resolution; in snd_pcsp_create() local 49 if (resolution > PCSP_MAX_PERIOD_NS) { in snd_pcsp_create() 52 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/Documentation/hwmon/ |
| H A D | ds1621.rst | 102 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.
|
| /linux/drivers/comedi/drivers/ |
| H A D | das800.c | 92 int resolution; member 165 .resolution = 12, 171 .resolution = 12, 177 .resolution = 12, 183 .resolution = 12, 189 .resolution = 12, 195 .resolution = 12, 201 .resolution = 16, 238 if (board->resolution == 16) in das800_enable() 385 if (board->resolution == 12 && gain > 0) in das800_ai_do_cmd() [all …]
|
| /linux/drivers/input/mouse/ |
| H A D | lifebook.c | 228 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()
|