Home
last modified time | relevance | path

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

12345

/drivers/iio/adc/
A Dmcp320x.c305 .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 Dltc2497.c68 - 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,
A Dad7949.c58 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()
336 ad7949_adc->resolution = spec->resolution; in ad7949_spi_probe()
339 if (spi_is_bpw_supported(spi, ad7949_adc->resolution)) { in ad7949_spi_probe()
[all …]
A Dad4851.c165 unsigned int resolution; member
328 switch (st->info->resolution) { in ad4851_set_oversampling_ratio()
1072 .resolution = 16,
1081 .resolution = 20,
1090 .resolution = 16,
1099 .resolution = 20,
1108 .resolution = 16,
1117 .resolution = 20,
1126 .resolution = 16,
1135 .resolution = 20,
[all …]
A Dmcp3564.c670 .resolution = 16,
676 .resolution = 16,
682 .resolution = 16,
688 .resolution = 24,
694 .resolution = 24,
700 .resolution = 24,
706 .resolution = 16,
712 .resolution = 16,
718 .resolution = 16,
724 .resolution = 24,
[all …]
A Dmeson_saradc.c323 unsigned int resolution; member
701 *val2 = priv->param->resolution; in meson_sar_adc_iio_info_read_raw()
1142 nominal0 = (1 << priv->param->resolution) / 4; in meson_sar_adc_calib()
1143 nominal1 = (1 << priv->param->resolution) * 3 / 4; in meson_sar_adc_calib()
1202 .resolution = 10,
1212 .resolution = 10,
1222 .resolution = 10,
1231 .resolution = 12,
1241 .resolution = 12,
1252 .resolution = 12,
[all …]
/drivers/iio/dac/
A Dti-dac082s085.c25 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 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()
A Dti-dac5571.c34 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 …]
/drivers/hwmon/
A Dmax77705-hwmon.c21 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()
A Dftsteutates.c71 enum WATCHDOG_RESOLUTION resolution; member
222 enum WATCHDOG_RESOLUTION resolution) in fts_wd_set_resolution() argument
226 if (data->resolution == resolution) in fts_wd_set_resolution()
233 if ((resolution == seconds && ret & BIT(1)) || in fts_wd_set_resolution()
235 data->resolution = resolution; in fts_wd_set_resolution()
239 if (resolution == seconds) in fts_wd_set_resolution()
248 data->resolution = resolution; in fts_wd_set_resolution()
255 enum WATCHDOG_RESOLUTION resolution = seconds; in fts_wd_set_timeout() local
264 resolution = minutes; in fts_wd_set_timeout()
267 ret = fts_wd_set_resolution(data, resolution); in fts_wd_set_timeout()
[all …]
A Dlm92.c66 static inline s16 TEMP_TO_REG(long val, int resolution) in TEMP_TO_REG() argument
69 return DIV_ROUND_CLOSEST(val << (resolution - 9), 1000) << (16 - resolution); in TEMP_TO_REG()
82 int resolution; member
206 val = TEMP_TO_REG(TEMP_FROM_REG(temp) - val, data->resolution); in lm92_temp_write()
214 return regmap_write(regmap, reg, TEMP_TO_REG(val, data->resolution)); in lm92_temp_write()
398 data->resolution = (unsigned long)i2c_get_match_data(client); in lm92_probe()
A Dlm75.c112 u8 resolution; /* In bits, 9 to 16 */ member
338 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument
340 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc()
406 *val = lm75_reg_to_mc(regval, data->resolution); in lm75_read()
418 u8 resolution; in lm75_write_temp() local
437 resolution = data->params->resolution_limits; in lm75_write_temp()
439 resolution = data->resolution; in lm75_write_temp()
442 temp = DIV_ROUND_CLOSEST(temp << (resolution - 8), in lm75_write_temp()
443 1000) << (16 - resolution); in lm75_write_temp()
466 data->resolution = data->params->resolutions[index]; in lm75_update_interval()
[all …]
A Dsch56xx-common.c356 unsigned int resolution; in watchdog_set_timeout() local
362 resolution = 1; in watchdog_set_timeout()
364 resolution = 60; in watchdog_set_timeout()
366 if (timeout < resolution || timeout > (resolution * 255)) in watchdog_set_timeout()
369 if (resolution == 1) in watchdog_set_timeout()
390 data->watchdog_preset = DIV_ROUND_UP(timeout, resolution); in watchdog_set_timeout()
391 wddev->timeout = data->watchdog_preset * resolution; in watchdog_set_timeout()
A Dlm90.c449 .resolution = 8,
474 .resolution = 10,
494 .resolution = 10,
507 .resolution = 8,
533 .resolution = 8,
540 .resolution = 10,
617 .resolution = 10,
630 .resolution = 8,
636 .resolution = 8,
1354 return ((val >> (16 - resolution)) * 1000) >> (resolution - 8); in lm90_temp_from_reg()
[all …]
/drivers/staging/media/atomisp/pci/camera/util/src/
A Dutil.c120 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()
/drivers/watchdog/
A 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()
/drivers/acpi/acpica/
A 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()
/drivers/comedi/drivers/
A Ddas800.c92 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 …]
/drivers/input/mouse/
A 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()
/drivers/pwm/
A Dpwm-mediatek.c151 u64 resolution; in pwm_mediatek_config() local
169 resolution = (u64)NSEC_PER_SEC * 1000; in pwm_mediatek_config()
170 do_div(resolution, clk_rate); in pwm_mediatek_config()
172 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in pwm_mediatek_config()
177 resolution *= 2; in pwm_mediatek_config()
180 resolution); in pwm_mediatek_config()
198 cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution); in pwm_mediatek_config()
/drivers/hid/
A Dhid-uclogic-params.c242 s32 resolution; in uclogic_params_pen_init_v1() local
283 resolution = get_unaligned_le16(buf + 10); in uclogic_params_pen_init_v1()
284 if (resolution == 0) { in uclogic_params_pen_init_v1()
290 resolution; in uclogic_params_pen_init_v1()
293 resolution; in uclogic_params_pen_init_v1()
387 s32 resolution; in uclogic_params_pen_init_v2() local
446 if (resolution == 0) { in uclogic_params_pen_init_v2()
452 resolution; in uclogic_params_pen_init_v2()
455 resolution; in uclogic_params_pen_init_v2()
1114 s32 resolution; in uclogic_params_parse_ugee_v2_desc() local
[all …]
/drivers/iio/resolver/
A Dad2s1210.c156 enum ad2s1210_resolution resolution; member
349 msleep(track_time_ms[st->resolution] * 8192000 / st->clkin_hz); in ad2s1210_reinit_excitation_frequency()
535 *val = ret << (2 * (AD2S1210_RES_16 - st->resolution)); in ad2s1210_get_hysteresis()
694 ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in ad2s1210_get_lot_low_threshold()
771 *val2 = ad2s1210_velocity_scale[st->resolution]; in ad2s1210_read_raw()
1053 int step = ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in in_angl1_thresh_rising_value_available_show()
1064 int step = ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in in_angl1_thresh_rising_hysteresis_available_show()
1120 data |= FIELD_PREP(AD2S1210_SET_RES, st->resolution); in ad2s1210_initial()
1394 st->resolution = (val - 10) >> 1; in ad2s1210_setup_properties()
1403 st->resolution)); in ad2s1210_setup_properties()
[all …]
/drivers/staging/media/atomisp/pci/
A Dia_css_metadata.h28 struct ia_css_resolution resolution; /** Resolution */ member
32 struct ia_css_resolution resolution; /** Resolution */ member
/drivers/media/pci/mgb4/
A Dmgb4_vout.c68 u32 resolution = mgb4_read_reg(video, regs->resolution); in get_timings() local
72 timings->bt.width = resolution >> 16; in get_timings()
73 timings->bt.height = resolution & 0xFFFF; in get_timings()
545 u32 config, resolution; in fh_open() local
564 resolution = mgb4_read_reg(video, voutdev->config->regs.resolution); in fh_open()
565 voutdev->width = resolution >> 16; in fh_open()
566 voutdev->height = resolution & 0xFFFF; in fh_open()
670 mgb4_write_reg(video, regs->resolution, (1280 << 16) | 640); in fpga_init()
699 voutdev->regs[2].offset = voutdev->config->regs.resolution; in create_debugfs()

Completed in 79 milliseconds

12345