Searched refs:max_pos (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/iio/potentiometer/ |
A D | mcp4131.c | 54 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, }, 198 *val2 = data->cfg->max_pos; in mcp4131_read_raw() [all …]
|
A D | ad5110.c | 34 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 …]
|
A D | ad5272.c | 28 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()
|
/linux/arch/s390/boot/ |
A D | kaslr.c | 176 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/drivers/misc/ |
A D | ad525x_dpot.c | 87 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()
|
A D | ad525x_dpot.h | 13 #define DPOT_CONF(features, wipers, max_pos, uid) \ argument 15 ((max_pos & 0xF) << 6) | (uid & 0x3F))
|
/linux/kernel/ |
A D | kcov.c | 218 u64 count, start_index, end_pos, max_pos; in write_comp_data() local 231 max_pos = t->kcov_size * sizeof(unsigned long); in write_comp_data() 238 if (likely(end_pos <= max_pos)) { in write_comp_data()
|
Completed in 17 milliseconds