| /drivers/input/touchscreen/ |
| A D | apple_z2.c | 105 touchscreen_report_pos(z2->input_dev, &z2->props, in apple_z2_parse_touches() 136 z2->index_parity = !z2->index_parity; in apple_z2_read_packet() 147 error = spi_read(z2->spidev, z2->rx_buf, pkt_len); in apple_z2_read_packet() 151 apple_z2_parse_touches(z2, z2->rx_buf + 5, pkt_len - 5); in apple_z2_read_packet() 263 error = request_firmware(&fw, z2->fw_name, &z2->spidev->dev); in apple_z2_upload_firmware() 354 z2 = devm_kzalloc(dev, sizeof(*z2), GFP_KERNEL); in apple_z2_probe() 355 if (!z2) in apple_z2_probe() 359 if (!z2->tx_buf) in apple_z2_probe() 363 if (!z2->rx_buf) in apple_z2_probe() 366 z2->spidev = spi; in apple_z2_probe() [all …]
|
| A D | ti_am335x_tsc.c | 224 u32 *x, u32 *y, u32 *z1, u32 *z2) in titsc_read_coordinates() argument 237 *z2 = titsc_readl(ts_dev, REG_FIFO0); in titsc_read_coordinates() 238 *z2 &= 0xfff; in titsc_read_coordinates() 281 unsigned int z1, z2, z; in titsc_irq() local 313 titsc_read_coordinates(ts_dev, &x, &y, &z1, &z2); in titsc_irq() 315 if (ts_dev->pen_down && z1 != 0 && z2 != 0) { in titsc_irq() 321 z = z1 - z2; in titsc_irq() 324 z /= z2; in titsc_irq()
|
| A D | tsc200x-core.c | 71 u16 z2; member 154 if (unlikely(tsdata.z1 == 0 || tsdata.z2 > MAX_12BIT)) in tsc200x_irq_thread() 156 if (unlikely(tsdata.z1 >= tsdata.z2)) in tsc200x_irq_thread() 165 ts->in_z1 == tsdata.z1 && ts->in_z2 == tsdata.z2) { in tsc200x_irq_thread() 176 ts->in_z2 = tsdata.z2; in tsc200x_irq_thread() 179 pressure = tsdata.x * (tsdata.z2 - tsdata.z1) / tsdata.z1; in tsc200x_irq_thread()
|
| A D | 88pm860x-ts.c | 54 int z1, z2, rt = 0; in pm860x_touch_handler() local 65 z2 = ((buf[6] & 0xFF) << 4) | (buf[7] & 0x0F); in pm860x_touch_handler() 69 rt = z2 / z1 - 1; in pm860x_touch_handler() 72 z1, z2, rt); in pm860x_touch_handler()
|
| A D | bu21029_ts.c | 167 u16 x, y, z1, z2; in bu21029_touch_report() local 184 z2 = (buf[6] << 4) | (buf[7] >> 4); in bu21029_touch_report() 186 if (z1 && z2) { in bu21029_touch_report() 194 rz = z2 - z1; in bu21029_touch_report()
|
| A D | ads7846.c | 91 u16 x, y, z1, z2; member 191 #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref)) 721 packet->z2 = val; in ads7846_set_cmd_val() 854 u16 x, y, z1, z2; in ads7846_report_state() local 860 z2 = 0; in ads7846_report_state() 863 z2 = packet->z2; in ads7846_report_state() 874 Rt = z2; in ads7846_report_state()
|
| A D | resistive-adc-touch.c | 71 unsigned int z2 = touch_info[st->ch_map[GRTS_CH_Z2]]; in grts_cb() local 75 Rt = z2; in grts_cb()
|
| A D | tsc2007.h | 58 u16 z1, z2; member
|
| A D | ad7879.c | 169 u16 x, y, z1, z2; in ad7879_report() local 174 z2 = ts->conversion_data[AD7879_SEQ_Z2] & MAX_12BIT; in ad7879_report() 193 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7879_report()
|
| A D | tsc2007_core.c | 63 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values() 79 rt = tc->z2 - tc->z1; in tsc2007_calculate_resistance()
|
| A D | tsc2007_iio.c | 75 tc.z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_raw()
|
| A D | ad7877.c | 323 u16 x, y, z1, z2; in ad7877_process_data() local 328 z2 = ts->conversion_data[AD7877_SEQ_Z2] & MAX_12BIT; in ad7877_process_data() 342 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7877_process_data()
|
| /drivers/isdn/mISDN/ |
| A D | dsp_biquad.h | 23 int32_t z2; member 36 bq->z2 = 0; in biquad2_init() 44 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2() 45 y = z0 + bq->z1 * bq->b1 + bq->z2 * bq->b2; in biquad2() 47 bq->z2 = bq->z1; in biquad2()
|
| /drivers/isdn/hardware/mISDN/ |
| A D | hfcpci.c | 343 bzr->za[MAX_B_FRAMES].z2 = cpu_to_le16( in hfcpci_clear_fifo_rx() 373 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2), in hfcpci_clear_fifo_tx() 416 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo() 431 le16_to_cpu(zp->z2); /* maximum */ in hfcpci_empty_bfifo() 443 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo() 475 le16_to_cpu(zp->z2), in receive_dmsg() 491 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg() 492 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & in receive_dmsg() 511 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg() 635 le16_to_cpu(zp->z2), rcnt); in main_rec_hfcpci() [all …]
|
| A D | hfc_pci.h | 173 __le16 z2; /* Z2 pointer 16 Bit */ member
|
| A D | hfcmulti.c | 1905 int Zspace, z1, z2; /* must be int for calculation */ in hfcmulti_tx() local 1990 z2 = HFC_inw_nodebug(hc, A_Z2) - hc->Zmin; in hfcmulti_tx() 1994 "%d!=%d\n", __func__, hc->id + 1, temp, z2); in hfcmulti_tx() 1995 z2 = temp; /* repeat unti Z2 is equal */ in hfcmulti_tx() 1997 hc->chan[ch].Zfill = z1 - z2; in hfcmulti_tx() 2000 Zspace = z2 - z1; in hfcmulti_tx() 2012 if (z1 == z2) { /* empty */ in hfcmulti_tx() 2152 int Zsize, z1, z2 = 0; /* = 0, to make GCC happy */ in hfcmulti_rx() local 2208 z2 = HFC_inw_nodebug(hc, A_Z2) - hc->Zmin; in hfcmulti_rx() 2209 Zsize = z1 - z2; in hfcmulti_rx() [all …]
|
| /drivers/iio/magnetometer/ |
| A D | bmc150_magn.c | 119 __le16 z2; member 408 s16 z2 = le16_to_cpu(tregs->z2); in bmc150_magn_compensate_z() local 416 ((s16)xyz1)))) >> 2)) / (z2 + ((s16)(((((s32)z1) * in bmc150_magn_compensate_z()
|
| /drivers/iio/adc/ |
| A D | at91_adc.c | 310 unsigned int xscale, yscale, reg, z1, z2; in at91_ts_sample() local 344 z2 = (reg >> 16) & xyz_mask; in at91_ts_sample() 347 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample() 353 xpos, xscale, ypos, yscale, z1, z2, pres); in at91_ts_sample()
|
| A D | at91-sama5d2_adc.c | 1063 u32 z1, z2; in at91_adc_touch_pressure() local 1071 z2 = (val >> 16) & AT91_SAMA5D2_XYZ_MASK; in at91_adc_touch_pressure() 1075 (z2 * factor / z1 - factor) / in at91_adc_touch_pressure()
|
| /drivers/video/fbdev/ |
| A D | cg6.c | 202 u32 x2, y2, z2, color2; member
|