Home
last modified time | relevance | path

Searched refs:pressure (Results 1 – 25 of 59) sorted by relevance

123

/drivers/iio/pressure/
DKconfig10 tristate "Honeywell ABP pressure sensor driver"
13 Say yes here to build support for the Honeywell ABP pressure
20 tristate "Bosch Sensortec BMP180/BMP280 pressure sensor I2C driver"
27 pressure and temperature sensors. Also supports the BME280 with
57 tristate "All Sensors DLHL60D and DLHL60G low voltage digital pressure sensors"
63 pressure sensors driver.
69 tristate "Infineon DPS310 pressure and temperature sensor"
73 Support for the Infineon DPS310 digital barometric pressure sensor.
93 tristate "Hope RF HP03 temperature and pressure sensor driver"
97 Say yes here to build support for Hope RF HP03 pressure and
[all …]
Dms5611_core.c105 s32 *temp, s32 *pressure) in ms5611_read_temp_and_pressure() argument
110 ret = st->read_adc_temp_and_pressure(st, temp, pressure); in ms5611_read_temp_and_pressure()
117 return st->compensate_temp_and_pressure(st, temp, pressure); in ms5611_read_temp_and_pressure()
121 s32 *temp, s32 *pressure) in ms5611_temp_and_pressure_compensate() argument
123 s32 t = *temp, p = *pressure; in ms5611_temp_and_pressure_compensate()
151 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5611_temp_and_pressure_compensate()
157 s32 *temp, s32 *pressure) in ms5607_temp_and_pressure_compensate() argument
159 s32 t = *temp, p = *pressure; in ms5607_temp_and_pressure_compensate()
187 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5607_temp_and_pressure_compensate()
241 s32 temp, pressure; in ms5611_read_raw() local
[all …]
Dabp060mg.c104 u16 pressure; in abp060mg_get_measurement() local
118 pressure = be16_to_cpu(buf[0]); in abp060mg_get_measurement()
119 if (pressure & ABP060MG_ERROR_MASK) in abp060mg_get_measurement()
122 if (pressure < ABP060MG_MIN_COUNTS || pressure > ABP060MG_MAX_COUNTS) in abp060mg_get_measurement()
125 *val = pressure; in abp060mg_get_measurement()
Ddlhl60d.c124 unsigned int *pressure, unsigned int *temperature) in dlh_read_direct() argument
132 *pressure = get_unaligned_be32(&st->rx_buf[1]) >> 8; in dlh_read_direct()
144 unsigned int pressure, temperature; in dlh_read_raw() local
155 ret = dlh_read_direct(st, &pressure, &temperature); in dlh_read_raw()
162 *value = pressure; in dlh_read_raw()
Dms5637.c59 unsigned int pressure; in ms5637_read_raw() local
66 &pressure); in ms5637_read_raw()
76 *val = pressure / 1000; in ms5637_read_raw()
77 *val2 = (pressure % 1000) * 1000; in ms5637_read_raw()
Dms5611.h51 s32 *temp, s32 *pressure);
54 s32 *pressure);
Dt5403.c48 static int t5403_read(struct t5403_data *data, bool pressure) in t5403_read() argument
53 (pressure ? (data->mode << T5403_MODE_SHIFT) : T5403_PT) | in t5403_read()
58 wait_time += pressure ? t5403_pressure_conv_ms[data->mode] : 2; in t5403_read()
Dhp03.c43 s32 pressure; /* kPa */ member
150 priv->pressure = ((x * 100) >> 5) + (cx_val[6] * 10); in hp03_update_temp_pressure()
178 *val = priv->pressure; in hp03_read_raw()
Ddps310.c623 s64 pressure = 0ULL; in dps310_calculate_pressure() local
674 pressure -= div64_u64_rem(-nums[i], denoms[i], &irem); in dps310_calculate_pressure()
677 pressure += div64_u64_rem(nums[i], denoms[i], &irem); in dps310_calculate_pressure()
686 pressure += div_s64(rem, 1000000000LL); in dps310_calculate_pressure()
687 if (pressure < 0LL) in dps310_calculate_pressure()
690 return (int)min_t(s64, pressure, INT_MAX); in dps310_calculate_pressure()
Dms5611_i2c.c59 s32 *temp, s32 *pressure) in ms5611_i2c_read_adc_temp_and_pressure() argument
79 return ms5611_i2c_read_adc(st, pressure); in ms5611_i2c_read_adc_temp_and_pressure()
/drivers/input/touchscreen/
Dwm831x-ts.c64 bool pressure; member
92 if (wm831x_ts->pressure) in wm831x_ts_data_irq()
139 if (wm831x_ts->pressure) in wm831x_ts_data_irq()
167 if (wm831x_ts->pressure) in wm831x_ts_pen_down_irq()
271 wm831x_ts->pressure = pdata->pressure; in wm831x_ts_probe()
273 wm831x_ts->pressure = true; in wm831x_ts_probe()
281 WARN_ON(pdata->pressure && pdata->fivewire); in wm831x_ts_probe()
282 wm831x_ts->pressure = false; in wm831x_ts_probe()
355 if (wm831x_ts->pressure) in wm831x_ts_probe()
Dresistive-adc-touch.c50 bool pressure; member
92 if ((!x && !y) || (st->pressure && (press < st->pressure_min))) { in grts_cb()
101 if (st->pressure) in grts_cb()
171 st->pressure = true; in grts_get_properties()
196 st->pressure = true; in grts_get_properties()
229 if (st->pressure) { in grts_probe()
252 if (st->pressure) in grts_probe()
Dtsc200x-core.c113 int x, int y, int pressure) in tsc200x_update_pen_state() argument
115 if (pressure) { in tsc200x_update_pen_state()
118 input_report_abs(ts->idev, ABS_PRESSURE, pressure); in tsc200x_update_pen_state()
120 input_report_key(ts->idev, BTN_TOUCH, !!pressure); in tsc200x_update_pen_state()
132 pressure); in tsc200x_update_pen_state()
139 unsigned int pressure; in tsc200x_irq_thread() local
179 pressure = tsdata.x * (tsdata.z2 - tsdata.z1) / tsdata.z1; in tsc200x_irq_thread()
180 pressure = pressure * ts->x_plate_ohm / 4096; in tsc200x_irq_thread()
181 if (unlikely(pressure > MAX_12BIT)) in tsc200x_irq_thread()
186 tsc200x_update_pen_state(ts, tsdata.x, tsdata.y, pressure); in tsc200x_irq_thread()
Dzylonite-wm97xx.c61 static int pressure; variable
62 module_param(pressure, int, 0);
63 MODULE_PARM_DESC(pressure, "Pressure readback (1 = pressure, 0 = no pressure)");
114 if (pressure) in wm97xx_acc_pen_down()
Dmainstone-wm97xx.c85 static int pressure; variable
86 module_param(pressure, int, 0);
87 MODULE_PARM_DESC(pressure, "Pressure readback (1 = pressure, 0 = no pressure)");
147 if (pressure) in wm97xx_acc_pen_down()
Dmxs-lradc-ts.c77 u32 pressure; member
228 unsigned int pressure, m1, m2; in mxs_lradc_read_ts_pressure() local
247 pressure = m1; in mxs_lradc_read_ts_pressure()
248 pressure *= (1 << LRADC_RESOLUTION); in mxs_lradc_read_ts_pressure()
249 pressure /= m2; in mxs_lradc_read_ts_pressure()
251 dev_dbg(ts->dev, "Pressure = %u\n", pressure); in mxs_lradc_read_ts_pressure()
252 return pressure; in mxs_lradc_read_ts_pressure()
358 writel(info[lradc->soc].pressure, in mxs_lradc_prepare_pressure()
Dwm9705.c47 static int pressure = DEFAULT_PRESSURE & 0xfff; variable
48 module_param(pressure, int, 0);
49 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement.");
153 pressure = 0; in wm9705_phy_init()
Dtps6507x-ts.c37 u16 pressure; member
157 &tsc->tc.pressure); in tps6507x_ts_poll()
161 pendown = tsc->tc.pressure > tsc->min_pressure; in tps6507x_ts_poll()
191 input_report_abs(input_dev, ABS_PRESSURE, tsc->tc.pressure); in tps6507x_ts_poll()
Dsis_i2c.c177 u8 pressure; in sis_ts_report_contact() local
196 pressure = height = width = 1; in sis_ts_report_contact()
204 pressure = in sis_ts_report_contact()
215 input_report_abs(input, ABS_MT_PRESSURE, pressure); in sis_ts_report_contact()
Dwm9712.c60 static int pressure = DEFAULT_PRESSURE & 0xfff; variable
61 module_param(pressure, int, 0);
62 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement.");
185 pressure = 0; in wm9712_phy_init()
Dwm9713.c60 static int pressure = DEFAULT_PRESSURE & 0xfff; variable
61 module_param(pressure, int, 0);
62 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement.");
189 pressure = 0; in wm9713_phy_init()
Dpcap_ts.c25 u16 pressure; member
46 pcap_ts->pressure = res[0]; in pcap_ts_read_xy()
67 pcap_ts->pressure); in pcap_ts_read_xy()
Dwacom_i2c.c93 unsigned int x, y, pressure; in wacom_i2c_irq() local
108 pressure = le16_to_cpup((__le16 *)&data[8]); in wacom_i2c_irq()
122 input_report_abs(input, ABS_PRESSURE, pressure); in wacom_i2c_irq()
/drivers/input/mouse/
Dsynaptics_usb.c107 unsigned int pressure; in synusb_report_stick() local
109 pressure = synusb->data[6]; in synusb_report_stick()
113 if (pressure > 0) { in synusb_report_stick()
118 input_report_abs(input_dev, ABS_PRESSURE, pressure); in synusb_report_stick()
130 unsigned int pressure, w; in synusb_report_touchpad() local
132 pressure = synusb->data[6]; in synusb_report_touchpad()
137 if (pressure > 0) { in synusb_report_touchpad()
163 if (pressure > 30) in synusb_report_touchpad()
165 if (pressure < 25) in synusb_report_touchpad()
174 input_report_abs(input_dev, ABS_PRESSURE, pressure); in synusb_report_touchpad()
/drivers/input/tablet/
Dkbtab.c36 int pressure; in kbtab_irq() local
67 pressure = data[5]; in kbtab_irq()
69 input_report_abs(dev, ABS_PRESSURE, pressure); in kbtab_irq()
71 input_report_key(dev, BTN_LEFT, pressure > kb_pressure_click ? 1 : 0); in kbtab_irq()

123