Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/arch/s390/boot/
Dkaslr.c186 unsigned long max_pos, pos; in randomize_within_range() local
192 max_pos = iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), true, 0); in randomize_within_range()
193 if (!max_pos) in randomize_within_range()
195 if (get_random(max_pos, &pos)) in randomize_within_range()
/linux-6.6.21/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.6.21/drivers/vfio/pci/mlx5/
Dmain.c338 header_buf->start_pos = header_buf->migf->max_pos; in mlx5vf_add_stop_copy_header()
339 migf->max_pos += header_buf->length; in mlx5vf_add_stop_copy_header()
445 info.dirty_bytes = migf->max_pos - *pos; in mlx5vf_precopy_ioctl()
693 migf->max_pos += image_size; in mlx5vf_resume_read_image()
743 migf->max_pos += migf->record_size; in mlx5vf_resume_read_header_data()
810 migf->max_pos += vhca_buf->length; in mlx5vf_resume_read_header()
870 vhca_buf_header->start_pos = migf->max_pos; in mlx5vf_resume_write()
898 vhca_buf->start_pos = migf->max_pos; in mlx5vf_resume_write()
Dcmd.h92 loff_t max_pos; member
Dcmd.c521 header_buf->start_pos = header_buf->migf->max_pos; in add_buf_header()
522 migf->max_pos += header_buf->length; in add_buf_header()
553 async_data->buf->start_pos = migf->max_pos; in mlx5vf_save_callback()
554 migf->max_pos += async_data->buf->length; in mlx5vf_save_callback()
/linux-6.6.21/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()