Searched refs:z2 (Results 1 - 33 of 33) sorted by relevance

/linux-4.4.14/drivers/isdn/mISDN/
H A Ddsp_biquad.h37 int32_t z2; member in struct:biquad2_state
50 bq->z2 = 0; biquad2_init()
58 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; biquad2()
59 y = z0 + bq->z1 * bq->b1 + bq->z2 * bq->b2; biquad2()
61 bq->z2 = bq->z1; biquad2()
/linux-4.4.14/sound/soc/pxa/
H A DMakefile30 snd-soc-z2-objs := z2.o
48 obj-$(CONFIG_SND_PXA2XX_SOC_Z2) += snd-soc-z2.o
H A Dz2.c2 * linux/sound/soc/pxa/z2.c
29 #include <mach/z2.h>
104 /* z2 machine dapm widgets */
159 /* z2 digital audio interface glue - connects codec <--> CPU */
173 /* z2 audio machine driver */
/linux-4.4.14/arch/arm/mach-pxa/include/mach/
H A Dz2.h2 * arch/arm/mach-pxa/include/mach/z2.h
/linux-4.4.14/drivers/isdn/hisax/
H A Dhfc_2bs0.c87 int rcnt, z1, z2; hfc_clear_fifo() local
103 z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); hfc_clear_fifo()
105 while (((f1 != f2) || (z1 != z2)) && cnt--) { hfc_clear_fifo()
109 rcnt = z1 - z2; hfc_clear_fifo()
115 debugl1(cs, "hfc clear %d z1(%x) z2(%x) cnt(%d)", hfc_clear_fifo()
116 bcs->channel, z1, z2, rcnt); hfc_clear_fifo()
136 z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); hfc_clear_fifo()
242 int z1, z2; hfc_fill_fifo() local
279 z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); hfc_fill_fifo()
280 count = z1 - z2; hfc_fill_fifo()
329 int z1, z2, rcnt; main_irq_hfc() local
358 z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); main_irq_hfc()
359 rcnt = z1 - z2; main_irq_hfc()
365 debugl1(cs, "hfc rec %d z1(%x) z2(%x) cnt(%d)", main_irq_hfc()
366 bcs->channel, z1, z2, rcnt); main_irq_hfc()
H A Dhfc_pci.c232 bzr->za[MAX_B_FRAMES].z2 = bzr->za[MAX_B_FRAMES].z1; hfcpci_clear_fifo_rx()
258 bzt->za[MAX_B_FRAMES].z2 = bzt->za[MAX_B_FRAMES].z1; hfcpci_clear_fifo_tx()
282 new_z2 = zp->z2 + count; /* new position in fifo */ hfcpci_empty_fifo()
293 bz->za[new_f2].z2 = new_z2; hfcpci_empty_fifo()
303 if (zp->z2 + count <= B_FIFO_SIZE + B_SUB_VAL) hfcpci_empty_fifo()
306 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ hfcpci_empty_fifo()
308 ptr1 = bdata + (zp->z2 - B_SUB_VAL); /* start of data */ hfcpci_empty_fifo()
317 bz->za[new_f2].z2 = new_z2; hfcpci_empty_fifo()
346 rcnt = zp->z1 - zp->z2; receive_dmsg()
351 debugl1(cs, "hfcpci recd f1(%d) f2(%d) z1(%x) z2(%x) cnt(%d)", receive_dmsg()
352 df->f1, df->f2, zp->z1, zp->z2, rcnt); receive_dmsg()
362 df->za[df->f2 & D_FREG_MASK].z2 = (zp->z2 + rcnt) & (D_FIFO_SIZE - 1); receive_dmsg()
368 if (zp->z2 + rcnt <= D_FIFO_SIZE) receive_dmsg()
371 maxlen = D_FIFO_SIZE - zp->z2; /* maximum */ receive_dmsg()
373 ptr1 = df->data + zp->z2; /* start of data */ receive_dmsg()
383 df->za[df->f2 & D_FREG_MASK].z2 = (zp->z2 + total) & (D_FIFO_SIZE - 1); receive_dmsg()
482 rcnt = zp->z1 - zp->z2; main_rec_hfcpci()
487 debugl1(cs, "hfcpci rec %d z1(%x) z2(%x) cnt(%d)", main_rec_hfcpci()
488 bcs->channel, zp->z1, zp->z2, rcnt); main_rec_hfcpci()
548 count = df->za[df->f2 & D_FREG_MASK].z2 - df->za[df->f1 & D_FREG_MASK].z1 - 1; hfcpci_fill_dfifo()
615 debugl1(cs, "hfcpci_fill_fifo_trans %d z1(%x) z2(%x)", hfcpci_fill_fifo()
679 count = bz->za[bz->f2].z2 - bz->za[bz->f1].z1 - 1; hfcpci_fill_fifo()
854 rcnt = zp->z1 - zp->z2; receive_emsg()
859 debugl1(cs, "hfcpci e_rec z1(%x) z2(%x) cnt(%d)", receive_emsg()
860 zp->z1, zp->z2, rcnt); receive_emsg()
861 new_z2 = zp->z2 + rcnt; /* new position in fifo */ receive_emsg()
869 bz->za[new_f2].z2 = new_z2; receive_emsg()
876 if (zp->z2 <= B_FIFO_SIZE + B_SUB_VAL) receive_emsg()
879 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ receive_emsg()
881 ptr1 = bdata + (zp->z2 - B_SUB_VAL); /* start of data */ receive_emsg()
890 bz->za[new_f2].z2 = new_z2; receive_emsg()
H A Dhfc_sx.c120 int fifo_size, count, z1, z2; write_fifo() local
142 z2 = Read_hfc(cs, HFCSX_FIF_Z2H); write_fifo()
143 z2 = ((z2 << 8) | Read_hfc(cs, HFCSX_FIF_Z2L)); write_fifo()
144 count = z2 - z1; write_fifo()
208 { int fifo_size, count, z1, z2; read_fifo() local
228 z2 = Read_hfc(cs, HFCSX_FIF_Z2H); read_fifo()
229 z2 = ((z2 << 8) | Read_hfc(cs, HFCSX_FIF_Z2L)); read_fifo()
231 count = z1 - z2; read_fifo()
255 z2 = Read_hfc(cs, HFCSX_FIF_Z2H); read_fifo()
256 z2 = ((z2 << 8) | Read_hfc(cs, HFCSX_FIF_Z2L)); read_fifo()
259 debugl1(cs, "hfcsx_read_fifo %d f1(%x) f2(%x) z1(f2)(%x) z2(f2)(%x)", read_fifo()
260 fifo, f1, f2, z1, z2); read_fifo()
262 count = z1 - z2; read_fifo()
H A Dhfc_2bds0.c354 int z1, z2, rcnt; main_rec_2bds0() local
377 z2 = ReadZReg(cs, HFCB_FIFO | HFCB_Z2 | HFCB_REC | HFCB_CHANNEL(bcs->channel)); main_rec_2bds0()
378 rcnt = z1 - z2; main_rec_2bds0()
383 debugl1(cs, "hfc rec %d z1(%x) z2(%x) cnt(%d)", main_rec_2bds0()
384 bcs->channel, z1, z2, rcnt); main_rec_2bds0()
591 int rcnt, z1, z2; receive_dmsg() local
610 z2 = ReadZReg(cs, HFCD_FIFO | HFCD_Z2 | HFCD_REC); receive_dmsg()
611 rcnt = z1 - z2; receive_dmsg()
616 debugl1(cs, "hfcd recd f1(%d) f2(%d) z1(%x) z2(%x) cnt(%d)", receive_dmsg()
617 f1, f2, z1, z2, rcnt); receive_dmsg()
H A Dhfc_pci.h187 unsigned short z2; /* Z2 pointer 16 Bit */ member in struct:__anon5619
H A Dhfc4s8s_l1.c633 int z1, z2; rx_d_frame() local
659 z2 = Read_hfc16(l1p->hw, A_Z2); rx_d_frame()
661 z1 = z1 - z2 + 1; rx_d_frame()
739 int z1, z2, hdlc_complete; rx_b_frame() local
760 z2 = Read_hfc16(l1->hw, A_Z2); rx_b_frame()
761 z1 = (z1 - z2); rx_b_frame()
/linux-4.4.14/drivers/input/touchscreen/
H A Dti_am335x_tsc.c214 u32 *x, u32 *y, u32 *z1, u32 *z2) titsc_read_coordinates()
227 *z2 = titsc_readl(ts_dev, REG_FIFO0); titsc_read_coordinates()
228 *z2 &= 0xfff; titsc_read_coordinates()
271 unsigned int z1, z2, z; titsc_irq() local
303 titsc_read_coordinates(ts_dev, &x, &y, &z1, &z2); titsc_irq()
305 if (ts_dev->pen_down && z1 != 0 && z2 != 0) { titsc_irq()
309 * x postion/4096 * ((z2 / z1) - 1) titsc_irq()
311 z = z1 - z2; titsc_irq()
314 z /= z2; titsc_irq()
213 titsc_read_coordinates(struct titsc *ts_dev, u32 *x, u32 *y, u32 *z1, u32 *z2) titsc_read_coordinates() argument
H A D88pm860x-ts.c57 int z1, z2, rt = 0; pm860x_touch_handler() local
68 z2 = ((buf[6] & 0xFF) << 4) | (buf[7] & 0x0F); pm860x_touch_handler()
72 rt = z2 / z1 - 1; pm860x_touch_handler()
74 dev_dbg(chip->dev, "z1:%d, z2:%d, rt:%d\n", pm860x_touch_handler()
75 z1, z2, rt); pm860x_touch_handler()
H A Dtsc200x-core.c43 * 5) tsc200x_irq_thread() queues up a transfer to fetch the x, y, z1, z2
80 u16 z2; member in struct:tsc200x_data
164 if (unlikely(tsdata.z1 == 0 || tsdata.z2 > MAX_12BIT)) tsc200x_irq_thread()
166 if (unlikely(tsdata.z1 >= tsdata.z2)) tsc200x_irq_thread()
175 ts->in_z1 == tsdata.z1 && ts->in_z2 == tsdata.z2) { tsc200x_irq_thread()
186 ts->in_z2 = tsdata.z2; tsc200x_irq_thread()
189 pressure = tsdata.x * (tsdata.z2 - tsdata.z1) / tsdata.z1; tsc200x_irq_thread()
H A Dtsc2007.c66 u16 z1, z2; member in struct:ts_event
125 tc->z2 = tsc2007_xfer(tsc, READ_Z2); tsc2007_read_values()
141 rt = tc->z2 - tc->z1; tsc2007_calculate_pressure()
H A Dads7846.c76 u16 z1, z2; member in struct:ts_event
188 #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref))
753 u16 x, y, z1, z2; ads7846_report_state() local
764 z2 = 0; ads7846_report_state()
769 z2 = packet->tc.z2; ads7846_report_state()
786 Rt = z2; ads7846_report_state()
1126 x->rx_buf = &packet->tc.z2; ads7846_setup_spi_msg()
1140 x->rx_buf = &packet->tc.z2; ads7846_setup_spi_msg()
H A Dad7879.c157 u16 x, y, z1, z2; ad7879_report() local
162 z2 = ts->conversion_data[AD7879_SEQ_Z2] & MAX_12BIT; ad7879_report()
181 Rt = (z2 - z1) * x * ts->x_plate_ohms; ad7879_report()
H A Dad7877.c335 u16 x, y, z1, z2; ad7877_process_data() local
340 z2 = ts->conversion_data[AD7877_SEQ_Z2] & MAX_12BIT; ad7877_process_data()
354 Rt = (z2 - z1) * x * ts->x_plate_ohms; ad7877_process_data()
H A Dcolibri-vf50-ts.c163 "Measured values: x: %d, y: %d, z1: %d, z2: %d, p: %d\n", vf50_ts_irq_bh()
/linux-4.4.14/drivers/isdn/hardware/mISDN/
H A Dhfcpci.c354 bzr->za[MAX_B_FRAMES].z2 = cpu_to_le16( hfcpci_clear_fifo_rx()
381 "z1(%x) z2(%x) state(%x)\n", hfcpci_clear_fifo_tx()
384 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2), hfcpci_clear_fifo_tx()
389 bzt->za[MAX_B_FRAMES].z2 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 2); hfcpci_clear_fifo_tx()
395 "hfcpci_clear_fifo_tx%d f1(%x) f2(%x) z1(%x) z2(%x)\n", hfcpci_clear_fifo_tx()
398 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2)); hfcpci_clear_fifo_tx()
415 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ hfcpci_empty_bfifo()
427 bz->za[new_f2].z2 = cpu_to_le16(new_z2); hfcpci_empty_bfifo()
438 if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL) hfcpci_empty_bfifo()
442 le16_to_cpu(zp->z2); /* maximum */ hfcpci_empty_bfifo()
444 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); hfcpci_empty_bfifo()
454 bz->za[new_f2].z2 = cpu_to_le16(new_z2); hfcpci_empty_bfifo()
477 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); receive_dmsg()
483 "hfcpci recd f1(%d) f2(%d) z1(%x) z2(%x) cnt(%d)\n", receive_dmsg()
486 le16_to_cpu(zp->z2), receive_dmsg()
502 df->za[df->f2 & D_FREG_MASK].z2 = receive_dmsg()
503 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & receive_dmsg()
516 if (le16_to_cpu(zp->z2) + rcnt <= D_FIFO_SIZE) receive_dmsg()
519 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); receive_dmsg()
522 ptr1 = df->data + le16_to_cpu(zp->z2); receive_dmsg()
534 df->za[df->f2 & D_FREG_MASK].z2 = cpu_to_le16(( receive_dmsg()
535 le16_to_cpu(zp->z2) + total) & (D_FIFO_SIZE - 1)); receive_dmsg()
639 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); main_rec_hfcpci()
645 "hfcpci rec ch(%x) z1(%x) z2(%x) cnt(%d)\n", main_rec_hfcpci()
647 le16_to_cpu(zp->z2), rcnt); main_rec_hfcpci()
710 maxlen = le16_to_cpu(df->za[df->f2 & D_FREG_MASK].z2) - hfcpci_fill_dfifo()
785 "cnt(%d) z1(%x) z2(%x)\n", bch->nr, count, hfcpci_fill_fifo()
875 maxlen = le16_to_cpu(bz->za[bz->f2].z2) - hfcpci_fill_fifo()
H A Dhfcmulti.c1949 int Zspace, z1, z2; /* must be int for calculation */ hfcmulti_tx() local
2034 z2 = HFC_inw_nodebug(hc, A_Z2) - hc->Zmin; hfcmulti_tx()
2035 while (z2 != (temp = (HFC_inw_nodebug(hc, A_Z2) - hc->Zmin))) { hfcmulti_tx()
2037 printk(KERN_DEBUG "%s(card %d): reread z2 because " hfcmulti_tx()
2038 "%d!=%d\n", __func__, hc->id + 1, temp, z2); hfcmulti_tx()
2039 z2 = temp; /* repeat unti Z2 is equal */ hfcmulti_tx()
2041 hc->chan[ch].Zfill = z1 - z2; hfcmulti_tx()
2044 Zspace = z2 - z1; hfcmulti_tx()
2056 if (z1 == z2) { /* empty */ hfcmulti_tx()
2093 && !test_bit(FLG_HDLC, &bch->Flags) && z2 == z1) { hfcmulti_tx()
2147 "left (z1=%04x, z2=%04x) sending %d of %d bytes %s\n", hfcmulti_tx()
2148 __func__, hc->id + 1, ch, Zspace, z1, z2, ii-i, len-i, hfcmulti_tx()
2195 int Zsize, z1, z2 = 0; /* = 0, to make GCC happy */ hfcmulti_rx() local
2247 printk(KERN_DEBUG "%s(card %d): reread z2 because " hfcmulti_rx()
2248 "%d!=%d\n", __func__, hc->id + 1, temp, z2); hfcmulti_rx()
2251 z2 = HFC_inw_nodebug(hc, A_Z2) - hc->Zmin; hfcmulti_rx()
2252 Zsize = z1 - z2; hfcmulti_rx()
2291 "bytes (z1=%04x, z2=%04x) HDLC %s (f1=%d, f2=%d) " hfcmulti_rx()
2293 Zsize, z1, z2, (f1 == f2) ? "fragment" : "COMPLETE", hfcmulti_rx()
2370 "(z1=%04x, z2=%04x) TRANS\n", hfcmulti_rx()
2371 __func__, hc->id + 1, ch, Zsize, z1, z2); hfcmulti_rx()
H A Dhfc_pci.h187 __le16 z2; /* Z2 pointer 16 Bit */ member in struct:zt
/linux-4.4.14/arch/arm/mach-pxa/
H A Dz2.c2 * linux/arch/arm/mach-pxa/z2.c
40 #include <mach/z2.h>
313 .name = "z2:green:wifi", z2_mmc_init()
318 .name = "z2:green:charged", z2_mmc_init()
323 .name = "z2:amber:charging", z2_mmc_init()
/linux-4.4.14/mm/
H A Dmemory_hotplug.c347 static int __meminit move_pfn_range_left(struct zone *z1, struct zone *z2, move_pfn_range_left() argument
360 /* can't move pfns which are higher than @z2 */ move_pfn_range_left()
361 if (end_pfn > zone_end_pfn(z2)) move_pfn_range_left()
363 /* the move out part must be at the left most of @z2 */ move_pfn_range_left()
364 if (start_pfn > z2->zone_start_pfn) move_pfn_range_left()
367 if (end_pfn <= z2->zone_start_pfn) move_pfn_range_left()
377 resize_zone(z2, end_pfn, zone_end_pfn(z2)); move_pfn_range_left()
389 static int __meminit move_pfn_range_right(struct zone *z1, struct zone *z2, move_pfn_range_right() argument
396 ret = ensure_zone_is_initialized(z2, start_pfn, end_pfn - start_pfn); move_pfn_range_right()
412 /* use end_pfn for z2's end_pfn if z2 is empty */ move_pfn_range_right()
413 if (!zone_is_empty(z2)) move_pfn_range_right()
414 z2_end_pfn = zone_end_pfn(z2); move_pfn_range_right()
419 resize_zone(z2, start_pfn, z2_end_pfn); move_pfn_range_right()
423 fix_zone_id(z2, start_pfn, end_pfn); move_pfn_range_right()
/linux-4.4.14/arch/x86/crypto/
H A Dpoly1305-avx2-x86_64.S120 # combine r2,u2,w2,y2 and s2=r2*5,v2=u2*5,x2=w2*5,z2=y2*5
227 # t1 += [ hc3[3] * s2, hc3[2] * v2, hc3[1] * x2, hc3[0] * z2 ]
251 # t1 += [ hc4[3] * s2, hc4[2] * v2, hc4[1] * x2, hc4[0] * z2 ]
/linux-4.4.14/drivers/iio/magnetometer/
H A Dbmc150_magn.c129 __le16 z2; member in struct:bmc150_magn_trim_regs
414 s16 z2 = le16_to_cpu(tregs->z2); bmc150_magn_compensate_z() local
422 ((s16)xyz1)))) >> 2)) / (z2 + ((s16)(((((s32)z1) * bmc150_magn_compensate_z()
/linux-4.4.14/drivers/clk/shmobile/
H A Dclk-r8a73a4.c155 } else if (!strcmp(name, "z") || !strcmp(name, "z2")) { r8a73a4_cpg_register_clock()
/linux-4.4.14/drivers/s390/crypto/
H A Dzcrypt_api.c470 unsigned long long z1, z2, z3; zcrypt_rsa_crt() local
511 z1 = z2 = z3 = 0; zcrypt_rsa_crt()
513 copy_from_user(&z2, crt->bp_key, len) || zcrypt_rsa_crt()
516 z1 = z2 = z3 = 0; zcrypt_rsa_crt()
524 if (z1 != 0ULL || z2 != 0ULL || z3 != 0ULL) zcrypt_rsa_crt()
/linux-4.4.14/drivers/iio/adc/
H A Dat91_adc.c286 unsigned int xscale, yscale, reg, z1, z2; at91_ts_sample() local
321 z2 = (reg >> 16) & xyz_mask; at91_ts_sample()
324 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) at91_ts_sample()
329 dev_dbg(&idev->dev, "xpos = %d, xscale = %d, ypos = %d, yscale = %d, z1 = %d, z2 = %d, press = %d\n", at91_ts_sample()
330 xpos, xscale, ypos, yscale, z1, z2, pres); at91_ts_sample()
/linux-4.4.14/drivers/power/
H A Dz2_battery.c319 .name = "z2-battery",
/linux-4.4.14/arch/mips/include/asm/
H A Duaccess.h474 "1: "insn("%z2", "%3")" # __put_data_asm \n" \
748 "1: " insn " %z2, %3 # __put_user_unaligned_asm\n" \
/linux-4.4.14/drivers/video/fbdev/
H A Dcg6.c201 u32 x2, y2, z2, color2; member in struct:cg6_fbc
/linux-4.4.14/drivers/input/mouse/
H A Dhgpk.c300 * byte 5: 0 z6 z5 z4 z3 z2 z1 z0
/linux-4.4.14/drivers/misc/
H A Dkgdbts.c271 break_helper("z2", arg, 0); hw_rem_write_break()

Completed in 1291 milliseconds