Home
last modified time | relevance | path

Searched refs:z1 (Results 1 – 19 of 19) sorted by relevance

/drivers/isdn/mISDN/
A Ddsp_biquad.h22 int32_t z1; member
35 bq->z1 = 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()
48 bq->z1 = z0 >> 15; in biquad2()
/drivers/input/touchscreen/
A Dtsc200x-core.c70 u16 z1; 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()
175 ts->in_z1 = tsdata.z1; in tsc200x_irq_thread()
179 pressure = tsdata.x * (tsdata.z2 - tsdata.z1) / tsdata.z1; in tsc200x_irq_thread()
A D88pm860x-ts.c54 int z1, z2, rt = 0; in pm860x_touch_handler() local
64 z1 = ((buf[4] & 0xFF) << 4) | (buf[5] & 0x0F); in pm860x_touch_handler()
68 if ((x != 0) && (z1 != 0) && (touch->res_x != 0)) { in pm860x_touch_handler()
69 rt = z2 / z1 - 1; in pm860x_touch_handler()
72 z1, z2, rt); in pm860x_touch_handler()
A Dbu21029_ts.c167 u16 x, y, z1, z2; in bu21029_touch_report() local
183 z1 = (buf[4] << 4) | (buf[5] >> 4); in bu21029_touch_report()
186 if (z1 && z2) { in bu21029_touch_report()
194 rz = z2 - z1; in bu21029_touch_report()
197 rz /= z1; in bu21029_touch_report()
A Dti_am335x_tsc.c224 u32 *x, u32 *y, u32 *z1, u32 *z2) in titsc_read_coordinates() argument
235 *z1 = titsc_readl(ts_dev, REG_FIFO0); in titsc_read_coordinates()
236 *z1 &= 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()
A Dresistive-adc-touch.c70 unsigned int z1 = touch_info[st->ch_map[GRTS_CH_Z1]]; in grts_cb() local
74 if (likely(x && z1)) { in grts_cb()
76 Rt -= z1; in grts_cb()
80 Rt /= z1; in grts_cb()
A Dads7846.c91 u16 x, y, z1, z2; member
190 #define READ_Z1(vref) (READ_12BIT_DFR(z1, 1, vref))
718 packet->z1 = val; in ads7846_set_cmd_val()
854 u16 x, y, z1, z2; in ads7846_report_state() local
859 z1 = 0; in ads7846_report_state()
862 z1 = packet->z1; in ads7846_report_state()
872 } else if (likely(x && z1)) { in ads7846_report_state()
875 Rt -= z1; in ads7846_report_state()
879 Rt /= z1; in ads7846_report_state()
A Dtsc2007_core.c62 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values()
77 if (likely(tc->x && tc->z1)) { in tsc2007_calculate_resistance()
79 rt = tc->z2 - tc->z1; in tsc2007_calculate_resistance()
82 rt /= tc->z1; in tsc2007_calculate_resistance()
A Dad7879.c169 u16 x, y, z1, z2; in ad7879_report() local
173 z1 = ts->conversion_data[AD7879_SEQ_Z1] & MAX_12BIT; in ad7879_report()
191 if (likely(x && z1)) { in ad7879_report()
193 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7879_report()
194 Rt /= z1; in ad7879_report()
A Dad7877.c323 u16 x, y, z1, z2; in ad7877_process_data() local
327 z1 = ts->conversion_data[AD7877_SEQ_Z1] & MAX_12BIT; in ad7877_process_data()
340 if (likely(x && z1)) { in ad7877_process_data()
342 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7877_process_data()
343 Rt /= z1; in ad7877_process_data()
A Dtsc2007.h58 u16 z1, z2; member
A Dtsc2007_iio.c74 tc.z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_raw()
/drivers/isdn/hardware/mISDN/
A Dhfcpci.c344 le16_to_cpu(bzr->za[MAX_B_FRAMES].z1)); in hfcpci_clear_fifo_rx()
372 le16_to_cpu(bzt->za[MAX_B_FRAMES].z1), in hfcpci_clear_fifo_tx()
386 le16_to_cpu(bzt->za[MAX_B_FRAMES].z1), in hfcpci_clear_fifo_tx()
474 le16_to_cpu(zp->z1), in receive_dmsg()
479 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg()
485 df->data[le16_to_cpu(zp->z1)]); in receive_dmsg()
544 z1t = &txbz->za[MAX_B_FRAMES].z1; in hfcpci_empty_fifo_trans()
634 bch->nr, le16_to_cpu(zp->z1), in main_rec_hfcpci()
769 z1t = &bz->za[MAX_B_FRAMES].z1; in hfcpci_fill_fifo()
852 bz->za[bz->f1].z1); in hfcpci_fill_fifo()
[all …]
A Dhfc_pci.h172 __le16 z1; /* Z1 pointer 16 Bit */ member
A Dhfcmulti.c1905 int Zspace, z1, z2; /* must be int for calculation */ in hfcmulti_tx() local
1989 z1 = HFC_inw_nodebug(hc, A_Z1) - hc->Zmin; 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()
2049 && !test_bit(FLG_HDLC, &bch->Flags) && z2 == z1) { in hfcmulti_tx()
2152 int Zsize, z1, z2 = 0; /* = 0, to make GCC happy */ in hfcmulti_rx() local
2201 z1 = HFC_inw_nodebug(hc, A_Z1) - hc->Zmin; in hfcmulti_rx()
2206 z1 = temp; /* repeat until Z1 is equal */ in hfcmulti_rx()
2209 Zsize = z1 - z2; in hfcmulti_rx()
[all …]
/drivers/iio/magnetometer/
A Dbmc150_magn.c120 __le16 z1; member
407 u16 z1 = le16_to_cpu(tregs->z1); in bmc150_magn_compensate_z() local
416 ((s16)xyz1)))) >> 2)) / (z2 + ((s16)(((((s32)z1) * in bmc150_magn_compensate_z()
/drivers/iio/adc/
A Dat91_adc.c310 unsigned int xscale, yscale, reg, z1, z2; in at91_ts_sample() local
343 z1 = reg & xyz_mask; in at91_ts_sample()
346 if (z1 != 0) 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 Dat91-sama5d2_adc.c1063 u32 z1, z2; in at91_adc_touch_pressure() local
1070 z1 = val & AT91_SAMA5D2_XYZ_MASK; in at91_adc_touch_pressure()
1073 if (z1 != 0) in at91_adc_touch_pressure()
1075 (z2 * factor / z1 - factor) / in at91_adc_touch_pressure()
/drivers/video/fbdev/
A Dcg6.c201 u32 x1, y1, z1, color1; member

Completed in 63 milliseconds