Home
last modified time | relevance | path

Searched refs:val2 (Results 51 - 75 of 1113) sorted by relevance

12345678910>>...45

/kernel/linux/linux-5.10/drivers/iio/imu/
H A Dadis16460.c153 static int adis16460_set_freq(struct iio_dev *indio_dev, int val, int val2) in adis16460_set_freq() argument
158 t = val * 1000 + val2 / 1000; in adis16460_set_freq()
172 static int adis16460_get_freq(struct iio_dev *indio_dev, int *val, int *val2) in adis16460_get_freq() argument
185 *val2 = (freq % 1000) * 1000; in adis16460_get_freq()
191 const struct iio_chan_spec *chan, int *val, int *val2, long info) in adis16460_read_raw()
202 *val2 = st->chip_info->gyro_max_val; in adis16460_read_raw()
206 *val2 = st->chip_info->accel_max_val; in adis16460_read_raw()
218 return adis16460_get_freq(indio_dev, val, val2); in adis16460_read_raw()
225 const struct iio_chan_spec *chan, int val, int val2, long info) in adis16460_write_raw()
229 return adis16460_set_freq(indio_dev, val, val2); in adis16460_write_raw()
190 adis16460_read_raw(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *val, int *val2, long info) adis16460_read_raw() argument
224 adis16460_write_raw(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int val, int val2, long info) adis16460_write_raw() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/imu/
H A Dadis16460.c152 static int adis16460_set_freq(struct iio_dev *indio_dev, int val, int val2) in adis16460_set_freq() argument
157 t = val * 1000 + val2 / 1000; in adis16460_set_freq()
171 static int adis16460_get_freq(struct iio_dev *indio_dev, int *val, int *val2) in adis16460_get_freq() argument
184 *val2 = (freq % 1000) * 1000; in adis16460_get_freq()
190 const struct iio_chan_spec *chan, int *val, int *val2, long info) in adis16460_read_raw()
201 *val2 = st->chip_info->gyro_max_val; in adis16460_read_raw()
205 *val2 = st->chip_info->accel_max_val; in adis16460_read_raw()
217 return adis16460_get_freq(indio_dev, val, val2); in adis16460_read_raw()
224 const struct iio_chan_spec *chan, int val, int val2, long info) in adis16460_write_raw()
228 return adis16460_set_freq(indio_dev, val, val2); in adis16460_write_raw()
189 adis16460_read_raw(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *val, int *val2, long info) adis16460_read_raw() argument
223 adis16460_write_raw(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int val, int val2, long info) adis16460_write_raw() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dhid-sensor-als.c85 int *val, int *val2, in als_read_raw()
96 *val2 = 0; in als_read_raw()
126 *val2 = als_state->scale_post_decml; in als_read_raw()
135 &als_state->common_attributes, val, val2); in als_read_raw()
139 &als_state->common_attributes, val, val2); in als_read_raw()
143 &als_state->common_attributes, val, val2); in als_read_raw()
157 int val2, in als_write_raw()
166 &als_state->common_attributes, val, val2); in als_write_raw()
170 &als_state->common_attributes, val, val2); in als_write_raw()
174 &als_state->common_attributes, val, val2); in als_write_raw()
83 als_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) als_read_raw() argument
154 als_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) als_write_raw() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/gyro/
H A Dadxrs290.c157 static int adxrs290_get_3db_freq(struct iio_dev *indio_dev, u8 *val, u8 *val2) in adxrs290_get_3db_freq() argument
172 *val2 = FIELD_GET(ADXRS290_HPF_MASK, temp); in adxrs290_get_3db_freq()
191 const int val, const int val2) in adxrs290_find_match()
196 if (freq_tbl[i][0] == val && freq_tbl[i][1] == val2) in adxrs290_find_match()
284 int *val2, in adxrs290_read_raw()
326 *val2 = 87266; in adxrs290_read_raw()
340 *val2 = adxrs290_lpf_3db_freq_hz_table[t][1]; in adxrs290_read_raw()
350 *val2 = adxrs290_hpf_3db_freq_hz_table[t][1]; in adxrs290_read_raw()
363 int val2, in adxrs290_write_raw()
377 val, val2); in adxrs290_write_raw()
190 adxrs290_find_match(const int (*freq_tbl)[2], const int n, const int val, const int val2) adxrs290_find_match() argument
281 adxrs290_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) adxrs290_read_raw() argument
360 adxrs290_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) adxrs290_write_raw() argument
622 u8 val, val2; adxrs290_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/dac/
H A Dmcp4728.c302 int *val2) in mcp4728_get_scale_avail()
305 *val2 = data->scales_avail[scale * 2 + 1]; in mcp4728_get_scale_avail()
309 int *val2) in mcp4728_get_scale()
315 mcp4728_get_scale_avail(MCP4728_SCALE_VDD, data, val, val2); in mcp4728_get_scale()
319 data, val, val2); in mcp4728_get_scale()
322 data, val, val2); in mcp4728_get_scale()
328 int val2) in mcp4728_find_matching_scale()
332 data->scales_avail[i * 2 + 1] == val2) in mcp4728_find_matching_scale()
339 int val2) in mcp4728_set_scale()
341 int scale = mcp4728_find_matching_scale(data, val, val2); in mcp4728_set_scale()
300 mcp4728_get_scale_avail(enum mcp4728_scale scale, struct mcp4728_data *data, int *val, int *val2) mcp4728_get_scale_avail() argument
308 mcp4728_get_scale(int channel, struct mcp4728_data *data, int *val, int *val2) mcp4728_get_scale() argument
327 mcp4728_find_matching_scale(struct mcp4728_data *data, int val, int val2) mcp4728_find_matching_scale() argument
338 mcp4728_set_scale(int channel, struct mcp4728_data *data, int val, int val2) mcp4728_set_scale() argument
363 mcp4728_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) mcp4728_read_raw() argument
380 mcp4728_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) mcp4728_write_raw() argument
[all...]
/kernel/linux/linux-5.10/sound/isa/cs423x/
H A Dcs4236_lib.c551 unsigned short val1, val2; in snd_cs4236_put_double() local
554 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
557 val2 = mask - val2; in snd_cs4236_put_double()
560 val2 <<= shift_right; in snd_cs4236_put_double()
564 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
565 change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
567 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double()
569 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double()
627 unsigned short val1, val2; snd_cs4236_put_double1() local
677 unsigned short val1, val2; snd_cs4236_put_master_digital() local
738 unsigned short val1, val2; snd_cs4235_put_output_accu() local
[all...]
/kernel/linux/linux-6.6/sound/isa/cs423x/
H A Dcs4236_lib.c549 unsigned short val1, val2; in snd_cs4236_put_double() local
552 val2 = ucontrol->value.integer.value[1] & mask; in snd_cs4236_put_double()
555 val2 = mask - val2; in snd_cs4236_put_double()
558 val2 <<= shift_right; in snd_cs4236_put_double()
562 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
563 change = val1 != chip->eimage[CS4236_REG(left_reg)] || val2 != chip->eimage[CS4236_REG(right_reg)]; in snd_cs4236_put_double()
565 snd_cs4236_ext_out(chip, right_reg, val2); in snd_cs4236_put_double()
567 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_cs4236_put_double()
625 unsigned short val1, val2; snd_cs4236_put_double1() local
675 unsigned short val1, val2; snd_cs4236_put_master_digital() local
736 unsigned short val1, val2; snd_cs4235_put_output_accu() local
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-ops.c330 unsigned int val2 = 0; in snd_soc_put_volsw() local
351 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw()
352 if (mc->platform_max && ((int)val2 + min) > mc->platform_max) in snd_soc_put_volsw()
354 if (val2 > max - min) in snd_soc_put_volsw()
356 val2 = (val2 + min) & mask; in snd_soc_put_volsw()
358 val2 = max - val2; in snd_soc_put_volsw()
361 val |= val2 << rshift; in snd_soc_put_volsw()
363 val2 in snd_soc_put_volsw()
467 unsigned int val2 = ucontrol->value.integer.value[1]; snd_soc_put_volsw_sx() local
1013 unsigned int val2 = (strobe ^ invert) ? 0 : mask; snd_soc_put_strobe() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.h100 u32 val1, val2, val3; \
102 val2 = (u32)(pa) | (I40E_HMC_MAX_BP_COUNT << \
109 wr32((hw), I40E_PFHMC_SDDATALOW, val2); \
121 u32 val2, val3; \
122 val2 = (I40E_HMC_MAX_BP_COUNT << \
128 wr32((hw), I40E_PFHMC_SDDATALOW, val2); \
/kernel/linux/linux-5.10/drivers/iio/pressure/
H A Dmpl115.c45 static int mpl115_comp_pressure(struct mpl115_data *data, int *val, int *val2) in mpl115_comp_pressure() argument
76 *val2 = (kpa & 15) * (1000000 >> 4); in mpl115_comp_pressure()
98 int *val, int *val2, long mask) in mpl115_read_raw()
105 ret = mpl115_comp_pressure(data, val, val2); in mpl115_read_raw()
118 *val2 = 750000; in mpl115_read_raw()
122 *val2 = 915888; in mpl115_read_raw()
96 mpl115_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) mpl115_read_raw() argument
H A Dt5403.c65 static int t5403_comp_pressure(struct t5403_data *data, int *val, int *val2) in t5403_comp_pressure() argument
99 *val2 = (X % 1000) * 1000; in t5403_comp_pressure()
128 int *val, int *val2, long mask) in t5403_read_raw()
137 ret = t5403_comp_pressure(data, val, val2); in t5403_read_raw()
151 *val2 = t5403_pressure_conv_ms[data->mode] * 1000; in t5403_read_raw()
160 int val, int val2, long mask) in t5403_write_raw()
170 if (val2 == t5403_pressure_conv_ms[i] * 1000) { in t5403_write_raw()
126 t5403_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) t5403_read_raw() argument
158 t5403_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) t5403_write_raw() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.h100 u32 val1, val2, val3; \
102 val2 = (u32)(pa) | (I40E_HMC_MAX_BP_COUNT << \
109 wr32((hw), I40E_PFHMC_SDDATALOW, val2); \
121 u32 val2, val3; \
122 val2 = (I40E_HMC_MAX_BP_COUNT << \
128 wr32((hw), I40E_PFHMC_SDDATALOW, val2); \
/kernel/linux/linux-6.6/include/linux/
H A Dhid-sensor-hub.h256 int val1, int val2);
258 int val2);
260 int *val1, int *val2);
262 int *val1, int *val2);
264 int val1, int val2);
266 int *val1, int *val2);
/kernel/linux/linux-6.6/drivers/gpu/drm/ast/
H A Dast_i2c.c65 uint32_t val, val2, count, pass; in ast_i2c_getsda() local
71 val2 = (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb7, 0x20) >> 5) & 0x01; in ast_i2c_getsda()
72 if (val == val2) { in ast_i2c_getsda()
87 uint32_t val, val2, count, pass; in ast_i2c_getscl() local
93 val2 = (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb7, 0x10) >> 4) & 0x01; in ast_i2c_getscl()
94 if (val == val2) { in ast_i2c_getscl()
/kernel/linux/linux-5.10/arch/ia64/lib/
H A Dcopy_user.S80 .rotr val1[PIPE_DEPTH],val2[PIPE_DEPTH]
346 EX(.failure_in1,(p8) ld4 val2[0]=[src1],4) // 4-byte aligned
355 EX(.failure_in1,(p9) ld8 val2[1]=[src1],8) // 8-byte aligned
359 EX(.failure_out, (p8) st4 [dst1]=val2[0],4)
363 EX(.failure_out, (p9) st8 [dst1]=val2[1],8)
378 (p16) ld8 val2[0]=[src2],16
381 (EPI) st8 [dst2]=val2[PIPE_DEPTH-1],16
397 EX(.failure_in1,(p8) ld2 val2[0]=[src1],2) // at least 2 bytes
402 EX(.failure_in1,(p9) ld1 val2[1]=[src1]) // only 1 byte left
408 EX(.failure_out, (p8) st2 [dst1]=val2[
[all...]
H A Dstrlen.S65 // For instance we don't need to look at a NaT in val2 if the zero byte
81 #define val2 r23 define
116 czx1.r val2=w[1] // search 0 byte from right following 8bytes
120 cmp.eq.and p6,p0=8,val2 // p6 = p6 and mask==8
138 tnat.nz.and p7,p0=val2 // test NaT if val2
139 (p7) br.cond.spnt .recover // jump to recovery if val2 is NaT
141 (p8) mov val1=val2 // the other test got us out of the loop
/kernel/linux/linux-6.6/arch/ia64/lib/
H A Dcopy_user.S80 .rotr val1[PIPE_DEPTH],val2[PIPE_DEPTH]
346 EX(.failure_in1,(p8) ld4 val2[0]=[src1],4) // 4-byte aligned
355 EX(.failure_in1,(p9) ld8 val2[1]=[src1],8) // 8-byte aligned
359 EX(.failure_out, (p8) st4 [dst1]=val2[0],4)
363 EX(.failure_out, (p9) st8 [dst1]=val2[1],8)
378 (p16) ld8 val2[0]=[src2],16
381 (EPI) st8 [dst2]=val2[PIPE_DEPTH-1],16
397 EX(.failure_in1,(p8) ld2 val2[0]=[src1],2) // at least 2 bytes
402 EX(.failure_in1,(p9) ld1 val2[1]=[src1]) // only 1 byte left
408 EX(.failure_out, (p8) st2 [dst1]=val2[
[all...]
H A Dstrlen.S65 // For instance we don't need to look at a NaT in val2 if the zero byte
81 #define val2 r23 define
116 czx1.r val2=w[1] // search 0 byte from right following 8bytes
120 cmp.eq.and p6,p0=8,val2 // p6 = p6 and mask==8
138 tnat.nz.and p7,p0=val2 // test NaT if val2
139 (p7) br.cond.spnt .recover // jump to recovery if val2 is NaT
141 (p8) mov val1=val2 // the other test got us out of the loop
/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dad9467.c197 unsigned int *val, unsigned int *val2) in __ad9467_get_scale()
206 *val2 = tmp % 1000000; in __ad9467_get_scale()
272 static int ad9467_get_scale(struct adi_axi_adc_conv *conv, int *val, int *val2) in ad9467_get_scale() argument
294 __ad9467_get_scale(conv, i, val, val2); in ad9467_get_scale()
299 static int ad9467_set_scale(struct adi_axi_adc_conv *conv, int val, int val2) in ad9467_set_scale() argument
312 if (scale_val[0] != val || scale_val[1] != val2) in ad9467_set_scale()
329 int *val, int *val2, long m) in ad9467_read_raw()
335 return ad9467_get_scale(conv, val, val2); in ad9467_read_raw()
347 int val, int val2, long mask) in ad9467_write_raw()
355 return ad9467_set_scale(conv, val, val2); in ad9467_write_raw()
196 __ad9467_get_scale(struct adi_axi_adc_conv *conv, int index, unsigned int *val, unsigned int *val2) __ad9467_get_scale() argument
327 ad9467_read_raw(struct adi_axi_adc_conv *conv, struct iio_chan_spec const *chan, int *val, int *val2, long m) ad9467_read_raw() argument
345 ad9467_write_raw(struct adi_axi_adc_conv *conv, struct iio_chan_spec const *chan, int val, int val2, long mask) ad9467_write_raw() argument
406 unsigned int i, val1, val2; ad9467_scale_fill() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Dad9467.c201 unsigned int *val, unsigned int *val2) in __ad9467_get_scale()
210 *val2 = tmp % 1000000; in __ad9467_get_scale()
276 static int ad9467_get_scale(struct adi_axi_adc_conv *conv, int *val, int *val2) in ad9467_get_scale() argument
298 __ad9467_get_scale(conv, i, val, val2); in ad9467_get_scale()
303 static int ad9467_set_scale(struct adi_axi_adc_conv *conv, int val, int val2) in ad9467_set_scale() argument
316 if (scale_val[0] != val || scale_val[1] != val2) in ad9467_set_scale()
334 int *val, int *val2, long m) in ad9467_read_raw()
340 return ad9467_get_scale(conv, val, val2); in ad9467_read_raw()
352 int val, int val2, long mask) in ad9467_write_raw()
360 return ad9467_set_scale(conv, val, val2); in ad9467_write_raw()
200 __ad9467_get_scale(struct adi_axi_adc_conv *conv, int index, unsigned int *val, unsigned int *val2) __ad9467_get_scale() argument
332 ad9467_read_raw(struct adi_axi_adc_conv *conv, struct iio_chan_spec const *chan, int *val, int *val2, long m) ad9467_read_raw() argument
350 ad9467_write_raw(struct adi_axi_adc_conv *conv, struct iio_chan_spec const *chan, int val, int val2, long mask) ad9467_write_raw() argument
411 unsigned int i, val1, val2; ad9467_scale_fill() local
[all...]
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
H A Dcx18-io.c16 u16 val2 = val | (val << 8); in cx18_memset_io() local
17 u32 val4 = val2 | (val2 << 16); in cx18_memset_io()
26 cx18_writew(cx, val2, dst); in cx18_memset_io()
36 cx18_writew(cx, val2, dst); in cx18_memset_io()
/kernel/linux/linux-6.6/drivers/media/pci/cx18/
H A Dcx18-io.c16 u16 val2 = val | (val << 8); in cx18_memset_io() local
17 u32 val4 = val2 | (val2 << 16); in cx18_memset_io()
26 cx18_writew(cx, val2, dst); in cx18_memset_io()
36 cx18_writew(cx, val2, dst); in cx18_memset_io()
/kernel/linux/linux-5.10/drivers/iio/accel/
H A Dadis16209.c110 int val2, in adis16209_write_raw()
134 int *val, int *val2, in adis16209_read_raw()
153 *val2 = 305180; /* 0.30518 mV */ in adis16209_read_raw()
156 *val2 = 610500; /* 0.6105 mV */ in adis16209_read_raw()
164 *val2 = 0; in adis16209_read_raw()
173 *val2 = IIO_G_TO_M_S_2(244140); in adis16209_read_raw()
182 *val2 = 25000; in adis16209_read_raw()
107 adis16209_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) adis16209_write_raw() argument
132 adis16209_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) adis16209_read_raw() argument
H A Dadis16201.c102 int *val, int *val2, in adis16201_read_raw()
121 *val2 = 220000; in adis16201_read_raw()
125 *val2 = 610000; in adis16201_read_raw()
130 *val2 = 0; in adis16201_read_raw()
139 *val2 = IIO_G_TO_M_S_2(462400); in adis16201_read_raw()
143 *val2 = 100000; in adis16201_read_raw()
183 int val2, in adis16201_write_raw()
100 adis16201_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) adis16201_read_raw() argument
180 adis16201_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) adis16201_write_raw() argument
/kernel/linux/linux-5.10/drivers/iio/temperature/
H A Dhid-sensor-temperature.c54 int *val, int *val2, long mask) in temperature_read_raw()
79 *val2 = temp_st->scale_post_decml; in temperature_read_raw()
88 &temp_st->common_attributes, val, val2); in temperature_read_raw()
92 &temp_st->common_attributes, val, val2); in temperature_read_raw()
100 int val, int val2, long mask) in temperature_write_raw()
107 &temp_st->common_attributes, val, val2); in temperature_write_raw()
110 &temp_st->common_attributes, val, val2); in temperature_write_raw()
52 temperature_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) temperature_read_raw() argument
98 temperature_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, int val2, long mask) temperature_write_raw() argument

Completed in 17 milliseconds

12345678910>>...45