Home
last modified time | relevance | path

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

1234

/drivers/iio/adc/
Dmcp320x.c67 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 …]
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
64 int bits_per_word = ad7949_adc->resolution; in ad7949_spi_write_cfg()
93 int bits_per_word = ad7949_adc->resolution; in ad7949_spi_read_channel()
94 int mask = GENMASK(ad7949_adc->resolution - 1, 0); in ad7949_spi_read_channel()
258 ad7949_adc->resolution = spec->resolution; in ad7949_spi_probe()
Dmeson_saradc.c255 unsigned int resolution; member
319 return clamp(tmp, 0, (1 << priv->param->resolution) - 1); in meson_sar_adc_calib_val()
371 fifo_val &= GENMASK(priv->param->resolution - 1, 0); in meson_sar_adc_read_raw_sample()
613 *val2 = priv->param->resolution; in meson_sar_adc_iio_info_read_raw()
1030 nominal0 = (1 << priv->param->resolution) / 4; in meson_sar_adc_calib()
1031 nominal1 = (1 << priv->param->resolution) * 3 / 4; in meson_sar_adc_calib()
1074 .resolution = 10,
1085 .resolution = 10,
1096 .resolution = 10,
1104 .resolution = 12,
[all …]
/drivers/iio/dac/
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 },
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 …]
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()
266 ti_dac->resolution = spec->resolution; in ti_dac_probe()
Dti-dac5571.c31 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 …]
/drivers/staging/media/atomisp/pci/camera/util/src/
Dutil.c140 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()
/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()
/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()
/drivers/hwmon/
Dftsteutates.c73 enum WATCHDOG_RESOLUTION resolution; member
224 enum WATCHDOG_RESOLUTION resolution) in fts_wd_set_resolution() argument
228 if (data->resolution == resolution) in fts_wd_set_resolution()
235 if ((resolution == seconds && ret & BIT(1)) || in fts_wd_set_resolution()
236 (resolution == minutes && (ret & BIT(1)) == 0)) { in fts_wd_set_resolution()
237 data->resolution = resolution; in fts_wd_set_resolution()
241 if (resolution == seconds) in fts_wd_set_resolution()
250 data->resolution = resolution; in fts_wd_set_resolution()
257 enum WATCHDOG_RESOLUTION resolution = seconds; in fts_wd_set_timeout() local
266 resolution = minutes; in fts_wd_set_timeout()
[all …]
Dlm75.c109 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 …]
Dsch56xx-common.c249 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()
/drivers/pwm/
Dpwm-mediatek.c123 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()
/drivers/staging/iio/resolver/
Dad2s1210.c95 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 …]
/drivers/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 …]
/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()
Dlogips2pp.c186 unsigned int resolution) in ps2pp_set_resolution() argument
188 if (resolution > 400) { in ps2pp_set_resolution()
196 psmouse->resolution = 800; in ps2pp_set_resolution()
198 psmouse_set_resolution(psmouse, resolution); in ps2pp_set_resolution()
/drivers/hid/
Dhid-uclogic-params.c150 s32 resolution; in uclogic_params_pen_init_v1() local
191 resolution = get_unaligned_le16(buf + 10); in uclogic_params_pen_init_v1()
192 if (resolution == 0) { in uclogic_params_pen_init_v1()
198 resolution; in uclogic_params_pen_init_v1()
201 resolution; in uclogic_params_pen_init_v1()
278 s32 resolution; in uclogic_params_pen_init_v2() local
335 resolution = get_unaligned_le16(buf + 10); in uclogic_params_pen_init_v2()
336 if (resolution == 0) { in uclogic_params_pen_init_v2()
342 resolution; in uclogic_params_pen_init_v2()
345 resolution; in uclogic_params_pen_init_v2()
/drivers/staging/media/atomisp/pci/
Dia_css_metadata.h35 struct ia_css_resolution resolution; /** Resolution */ member
39 struct ia_css_resolution resolution; /** Resolution */ member
/drivers/staging/media/atomisp/pci/camera/util/interface/
Dia_css_util.h101 const struct ia_css_resolution resolution);
112 const struct ia_css_resolution resolution);
/drivers/iio/common/scmi_sensors/
Dscmi_iio.c320 u64 resolution, rem; in scmi_iio_get_raw_available() local
332 resolution = sensor->sensor_info->axis[0].resolution; in scmi_iio_get_raw_available()
342 rem = do_div(resolution, in scmi_iio_get_raw_available()
347 resolution, rem, max_range); in scmi_iio_get_raw_available()
349 resolution = resolution * int_pow(10, exponent); in scmi_iio_get_raw_available()
351 min_range, resolution, max_range); in scmi_iio_get_raw_available()
/drivers/staging/media/meson/vdec/
DTODO7 dynamic resolution switching, including the first one used to determine coded
8 resolution.
/drivers/media/pci/tw5864/
Dtw5864.h47 enum resolution { enum
93 enum resolution resolution; member
/drivers/input/touchscreen/
Dchipone_icn8505.c401 __le16 resolution[2]; in icn8505_probe() local
437 resolution, sizeof(resolution)); in icn8505_probe()
444 le16_to_cpu(resolution[0]) - 1, 0, 0); in icn8505_probe()
446 le16_to_cpu(resolution[1]) - 1, 0, 0); in icn8505_probe()
/drivers/gpu/drm/i915/gvt/
Ddisplay.c535 int type, unsigned int resolution) in setup_virtual_dp_monitor() argument
541 if (drm_WARN_ON(&i915->drm, resolution >= GVT_EDID_NUM)) in setup_virtual_dp_monitor()
554 memcpy(port->edid->edid_block, virtual_dp_monitor_edid[resolution], in setup_virtual_dp_monitor()
562 port->id = resolution; in setup_virtual_dp_monitor()
780 int intel_vgpu_init_display(struct intel_vgpu *vgpu, u64 resolution) in intel_vgpu_init_display() argument
791 resolution); in intel_vgpu_init_display()
794 resolution); in intel_vgpu_init_display()

1234