Home
last modified time | relevance | path

Searched refs:resolution (Results 1 – 25 of 81) 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()
615 *val2 = priv->param->resolution; in meson_sar_adc_iio_info_read_raw()
1032 nominal0 = (1 << priv->param->resolution) / 4; in meson_sar_adc_calib()
1033 nominal1 = (1 << priv->param->resolution) * 3 / 4; in meson_sar_adc_calib()
1076 .resolution = 10,
1087 .resolution = 10,
1098 .resolution = 10,
1106 .resolution = 12,
/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.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 …]
Dlm75.c108 u8 resolution; /* In bits, 9 to 16 */ member
299 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument
301 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc()
360 *val = lm75_reg_to_mc(regval, data->resolution); in lm75_read()
371 u8 resolution; in lm75_write_temp() local
390 resolution = data->params->resolution_limits; in lm75_write_temp()
392 resolution = data->resolution; in lm75_write_temp()
395 temp = DIV_ROUND_CLOSEST(temp << (resolution - 8), in lm75_write_temp()
396 1000) << (16 - resolution); in lm75_write_temp()
420 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/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/pwm/
Dpwm-mediatek.c127 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/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.c149 s32 resolution; in uclogic_params_pen_init_v1() local
190 resolution = get_unaligned_le16(buf + 10); in uclogic_params_pen_init_v1()
191 if (resolution == 0) { in uclogic_params_pen_init_v1()
197 resolution; in uclogic_params_pen_init_v1()
200 resolution; in uclogic_params_pen_init_v1()
277 s32 resolution; in uclogic_params_pen_init_v2() local
334 resolution = get_unaligned_le16(buf + 10); in uclogic_params_pen_init_v2()
335 if (resolution == 0) { in uclogic_params_pen_init_v2()
341 resolution; in uclogic_params_pen_init_v2()
344 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/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.c519 int type, unsigned int resolution) in setup_virtual_dp_monitor() argument
524 if (drm_WARN_ON(&i915->drm, resolution >= GVT_EDID_NUM)) in setup_virtual_dp_monitor()
537 memcpy(port->edid->edid_block, virtual_dp_monitor_edid[resolution], in setup_virtual_dp_monitor()
545 port->id = resolution; in setup_virtual_dp_monitor()
768 int intel_vgpu_init_display(struct intel_vgpu *vgpu, u64 resolution) in intel_vgpu_init_display() argument
779 resolution); in intel_vgpu_init_display()
782 resolution); in intel_vgpu_init_display()
Dvgpu.c148 gvt->types[i].resolution = vgpu_types[i].edid; in intel_gvt_init_vgpu_types()
165 vgpu_edid_str(gvt->types[i].resolution)); in intel_gvt_init_vgpu_types()
422 ret = intel_vgpu_init_display(vgpu, param->resolution); in __intel_gvt_create_vgpu()
494 param.resolution = type->resolution; in intel_gvt_create_vgpu()

1234