Home
last modified time | relevance | path

Searched refs:max_pos (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/iio/potentiometer/
Dmcp4131.c54 int max_pos; member
94 [MCP413x_502] = { .wipers = 1, .max_pos = 128, .kohms = 5, },
95 [MCP413x_103] = { .wipers = 1, .max_pos = 128, .kohms = 10, },
96 [MCP413x_503] = { .wipers = 1, .max_pos = 128, .kohms = 50, },
97 [MCP413x_104] = { .wipers = 1, .max_pos = 128, .kohms = 100, },
98 [MCP414x_502] = { .wipers = 1, .max_pos = 128, .kohms = 5, },
99 [MCP414x_103] = { .wipers = 1, .max_pos = 128, .kohms = 10, },
100 [MCP414x_503] = { .wipers = 1, .max_pos = 128, .kohms = 50, },
101 [MCP414x_104] = { .wipers = 1, .max_pos = 128, .kohms = 100, },
102 [MCP415x_502] = { .wipers = 1, .max_pos = 256, .kohms = 5, },
[all …]
Dad5110.c34 int max_pos; member
50 [AD5110_10] = { .max_pos = 128, .kohms = 10 },
51 [AD5110_80] = { .max_pos = 128, .kohms = 80 },
52 [AD5112_05] = { .max_pos = 64, .kohms = 5, .shift = 1 },
53 [AD5112_10] = { .max_pos = 64, .kohms = 10, .shift = 1 },
54 [AD5112_80] = { .max_pos = 64, .kohms = 80, .shift = 1 },
55 [AD5114_10] = { .max_pos = 32, .kohms = 10, .shift = 2 },
56 [AD5114_80] = { .max_pos = 32, .kohms = 80, .shift = 2 },
215 *val = AD5110_WIPER_RESISTANCE * data->cfg->max_pos; in ad5110_read_raw()
220 *val2 = data->cfg->max_pos; in ad5110_read_raw()
[all …]
Dad5272.c28 int max_pos; member
42 [AD5272_020] = { .max_pos = 1024, .kohms = 20 },
43 [AD5272_050] = { .max_pos = 1024, .kohms = 50 },
44 [AD5272_100] = { .max_pos = 1024, .kohms = 100 },
45 [AD5274_020] = { .max_pos = 256, .kohms = 20, .shift = 2 },
46 [AD5274_100] = { .max_pos = 256, .kohms = 100, .shift = 2 },
114 *val2 = data->cfg->max_pos; in ad5272_read_raw()
130 if (val >= data->cfg->max_pos || val < 0 || val2) in ad5272_write_raw()
Dds1803.c165 int max_pos = data->cfg->avail[2]; in ds1803_write_raw() local
172 if (val > max_pos || val < 0) in ds1803_write_raw()
/linux-6.1.9/arch/s390/boot/
Dkaslr.c176 unsigned long base_pos, max_pos, kernel_size; in get_random_base() local
199 max_pos = count_valid_kernel_positions(kernel_size, safe_addr, memory_limit); in get_random_base()
200 if (!max_pos) { in get_random_base()
206 if (get_random(max_pos, &base_pos)) in get_random_base()
/linux-6.1.9/drivers/misc/
Dad525x_dpot.c87 unsigned int max_pos; member
223 if ((reg & DPOT_REG_TOL) || (dpot->max_pos > 256)) in dpot_read_i2c()
394 if (dpot->max_pos > 256) in dpot_write_i2c()
702 data->max_pos = 1 << DPOT_MAX_POS(devid); in ad_dpot_probe()
703 data->rdac_mask = data->max_pos - 1; in ad_dpot_probe()
715 data->rdac_cache[i] = data->max_pos / 2; in ad_dpot_probe()
727 name, data->max_pos); in ad_dpot_probe()
Dad525x_dpot.h13 #define DPOT_CONF(features, wipers, max_pos, uid) \ argument
15 ((max_pos & 0xF) << 6) | (uid & 0x3F))
/linux-6.1.9/kernel/
Dkcov.c233 u64 count, start_index, end_pos, max_pos; in write_comp_data() local
246 max_pos = t->kcov_size * sizeof(unsigned long); in write_comp_data()
253 if (likely(end_pos <= max_pos)) { in write_comp_data()