| /linux/drivers/iio/adc/ |
| A D | mcp320x.c | 305 .resolution = 10 310 .resolution = 10 315 .resolution = 10 320 .resolution = 10 325 .resolution = 12 330 .resolution = 12 335 .resolution = 12 340 .resolution = 12 345 .resolution = 13 350 .resolution = 21, [all …]
|
| 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() 337 ad7949_adc->resolution = spec->resolution; in ad7949_spi_probe() 340 if (spi_ctrl_mask & SPI_BPW_MASK(ad7949_adc->resolution)) { in ad7949_spi_probe() [all …]
|
| /linux/drivers/iio/dac/ |
| 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 }, 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() 228 if (val >= (1 << ti_dac->resolution) || val < 0) in ti_dac_write_raw() [all …]
|
| 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()
|
| A D | ti-dac5571.c | 31 u8 resolution; member 35 [single_8bit] = {.num_channels = 1, .resolution = 8}, 36 [single_10bit] = {.num_channels = 1, .resolution = 10}, 37 [single_12bit] = {.num_channels = 1, .resolution = 12}, 38 [quad_8bit] = {.num_channels = 4, .resolution = 8}, 39 [quad_10bit] = {.num_channels = 4, .resolution = 10}, 40 [quad_12bit] = {.num_channels = 4, .resolution = 12}, 68 shift = 12 - data->spec->resolution; in dac5571_cmd_single() 82 shift = 16 - data->spec->resolution; in dac5571_cmd_quad() 256 *val2 = data->spec->resolution; in dac5571_read_raw() [all …]
|
| /linux/sound/core/ |
| A D | hrtimer.c | 22 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()
|
| A D | timer.c | 792 resolution = ti->resolution; in snd_timer_process_callbacks() 873 ti->resolution = resolution; in snd_timer_interrupt() 896 ts->resolution = resolution; in snd_timer_interrupt() 1332 if (r->resolution == resolution) { in snd_timer_user_interrupt() 1342 r->resolution = resolution; in snd_timer_user_interrupt() 1382 r1.val = resolution; in snd_timer_user_ccallback() 1426 r1.val = resolution; in snd_timer_user_tinterrupt() 1664 ginfo->resolution = t->hw.resolution; in snd_timer_user_ginfo() 1819 info->resolution = t->hw.resolution; in snd_timer_user_info() 1843 u64 resolution; in snd_timer_user_params() local [all …]
|
| /linux/sound/core/seq/ |
| A D | seq_timer.c | 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() 150 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt() 483 unsigned long resolution; in snd_seq_info_timer_read() local [all …]
|
| A D | seq_timer.h | 14 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/scripts/kconfig/tests/err_recursive_dep/ |
| 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 31 For a resolution refer to Documentation/kbuild/kconfig-language.rst 37 For a resolution refer to Documentation/kbuild/kconfig-language.rst
|
| /linux/Documentation/timers/ |
| 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. 100 high-resolution clocks, where we need separate pending and expired 104 high-resolution clocks though, it also simplifies the handling of 126 special nanosecond-resolution type: ktime_t. The kernel-internal [all …]
|
| /linux/drivers/staging/media/atomisp/pci/camera/util/src/ |
| A D | util.c | 140 bool ia_css_util_resolution_is_zero(const struct ia_css_resolution resolution) in ia_css_util_resolution_is_zero() argument 142 return (resolution.width == 0) || (resolution.height == 0); in ia_css_util_resolution_is_zero() 146 bool ia_css_util_resolution_is_even(const struct ia_css_resolution resolution) in ia_css_util_resolution_is_even() argument 148 return IS_EVEN(resolution.height) && IS_EVEN(resolution.width); in ia_css_util_resolution_is_even()
|
| /linux/Documentation/ABI/testing/ |
| 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 82 conversion duration depend on the resolution (if 84 resolution, 750ms for 12bits. 101 * '9..14' : set the device resolution in RAM [all …]
|
| /linux/drivers/acpi/acpica/ |
| 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/ |
| 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/drivers/hwmon/ |
| A D | ftsteutates.c | 72 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() 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() 268 ret = fts_wd_set_resolution(data, resolution); in fts_wd_set_timeout() [all …]
|
| A D | lm75.c | 109 u8 resolution; /* In bits, 9 to 16 */ member 307 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument 309 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc() 368 *val = lm75_reg_to_mc(regval, data->resolution); in lm75_read() 379 u8 resolution; in lm75_write_temp() local 398 resolution = data->params->resolution_limits; in lm75_write_temp() 400 resolution = data->resolution; in lm75_write_temp() 403 temp = DIV_ROUND_CLOSEST(temp << (resolution - 8), in lm75_write_temp() 404 1000) << (16 - resolution); in lm75_write_temp() 428 data->resolution = data->params->resolutions[index]; in lm75_update_interval() [all …]
|
| A D | sch56xx-common.c | 249 unsigned int resolution; in watchdog_set_timeout() local 255 resolution = 1; in watchdog_set_timeout() 257 resolution = 60; in watchdog_set_timeout() 259 if (timeout < resolution || timeout > (resolution * 255)) in watchdog_set_timeout() 262 if (resolution == 1) in watchdog_set_timeout() 283 data->watchdog_preset = DIV_ROUND_UP(timeout, resolution); in watchdog_set_timeout() 284 wddev->timeout = data->watchdog_preset * resolution; in watchdog_set_timeout()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| A D | dev-decoder.rst | 65 height for given coded resolution. 67 coded resolution 70 see also: visible resolution. 73 width for given coded resolution. 134 source resolution 147 for example: coded resolution, visible resolution, codec profile. 152 visible resolution 155 display resolution. 263 use this resolution as a placeholder resolution that will likely change 647 resolution changes can be accommodated. [all …]
|
| /linux/Documentation/hwmon/ |
| 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/pwm/ |
| A D | pwm-mediatek.c | 123 u64 resolution; in pwm_mediatek_config() local 136 resolution = (u64)NSEC_PER_SEC * 1000; in pwm_mediatek_config() 137 do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm])); in pwm_mediatek_config() 139 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in pwm_mediatek_config() 141 resolution *= 2; in pwm_mediatek_config() 144 resolution); in pwm_mediatek_config() 162 cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution); in pwm_mediatek_config()
|
| /linux/sound/drivers/pcsp/ |
| 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() 51 "(%unS)\n", resolution); in snd_pcsp_create() 59 if (loops_per_jiffy >= PCSP_MIN_LPJ && resolution <= PCSP_MIN_PERIOD_NS) in snd_pcsp_create() 65 loops_per_jiffy, min_div, resolution); in snd_pcsp_create()
|
| /linux/drivers/staging/iio/resolver/ |
| A D | ad2s1210.c | 95 u8 resolution; member 183 ad2s1210_res_pins[(st->resolution - 10) / 2][0]); in ad2s1210_set_resolution_pin() 185 ad2s1210_res_pins[(st->resolution - 10) / 2][1]); in ad2s1210_set_resolution_pin() 319 st->resolution = in ad2s1210_store_control() 336 return sprintf(buf, "%d\n", st->resolution); in ad2s1210_show_resolution() 375 st->resolution = in ad2s1210_store_resolution() 497 pos >>= 16 - st->resolution; in ad2s1210_read_raw() 504 vel >>= 16 - st->resolution; in ad2s1210_read_raw() 506 negative = (0xffff >> st->resolution) << st->resolution; in ad2s1210_read_raw() 604 data |= (st->resolution - 10) >> 1; in ad2s1210_initial() [all …]
|
| /linux/drivers/comedi/drivers/ |
| A 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/drivers/input/mouse/ |
| 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()
|