Home
last modified time | relevance | path

Searched refs:f2 (Results 1 – 25 of 52) sorted by relevance

123

/drivers/isdn/hisax/
Dhfc_2bs0.c61 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes()
63 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes()
88 u_char cip, f1, f2; in hfc_clear_fifo() local
101 f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_clear_fifo()
105 while (((f1 != f2) || (z1 != z2)) && cnt--) { in hfc_clear_fifo()
108 bcs->channel, f1, f2); in hfc_clear_fifo()
123 if (f1 != f2) { in hfc_clear_fifo()
134 f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_clear_fifo()
260 bcs->hw.hfc.f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); in hfc_fill_fifo()
264 bcs->channel, bcs->hw.hfc.f1, bcs->hw.hfc.f2, in hfc_fill_fifo()
[all …]
Dhfc_pci.c234 bzr->f2 = bzr->f1; /* init F pointers to remain constant */ in hfcpci_clear_fifo_rx()
260 bzt->f2 = bzt->f1; /* init F pointers to remain constant */ in hfcpci_clear_fifo_tx()
281 zp = &bz->za[bz->f2]; /* point to Z-Regs */ in hfcpci_empty_fifo()
285 new_f2 = (bz->f2 + 1) & MAX_B_FRAMES; in hfcpci_empty_fifo()
294 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_fifo()
318 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_fifo()
344 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg()
345 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
352 df->f1, df->f2, zp->z1, zp->z2, rcnt); in receive_dmsg()
361 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | (MAX_D_FRAMES + 1); /* next buffer */ in receive_dmsg()
[all …]
Dhfc_2bds0.c147 if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) in GetFreeFifoBytes_B()
149 s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; in GetFreeFifoBytes_B()
161 if (cs->hw.hfcD.f1 == cs->hw.hfcD.f2) in GetFreeFifoBytes_D()
163 s = cs->hw.hfcD.send[cs->hw.hfcD.f1] - cs->hw.hfcD.send[cs->hw.hfcD.f2]; in GetFreeFifoBytes_D()
279 bcs->hw.hfc.f2 = ReadReg(cs, HFCD_DATA, cip); in hfc_fill_fifo()
283 bcs->channel, bcs->hw.hfc.f1, bcs->hw.hfc.f2, in hfc_fill_fifo()
285 fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; in hfc_fill_fifo()
355 u_char f1, f2, cip; in main_rec_2bds0() local
371 f2 = ReadReg(cs, HFCD_DATA, cip); in main_rec_2bds0()
372 if (f1 != f2) { in main_rec_2bds0()
[all …]
Dhfc_pci.h193 u_char f1, f2; /* f pointers */ member
201 u_char f1, f2; /* f pointers */ member
Dhfc4s8s_l1.c634 u_char f1, f2, df; in rx_d_frame() local
648 f2 = Read_hfc8(l1p->hw, A_F2); in rx_d_frame()
650 if (f1 < f2) in rx_d_frame()
651 df = MAX_F_CNT + 1 + f1 - f2; in rx_d_frame()
653 df = f1 - f2; in rx_d_frame()
740 u_char f1, f2; in rx_b_frame() local
755 f2 = Read_hfc8(l1->hw, A_F2); in rx_b_frame()
756 hdlc_complete = ((f1 ^ f2) & MAX_F_CNT); in rx_b_frame()
841 u_char f1, f2; in tx_d_frame() local
853 f2 = Read_hfc8_stable(l1p->hw, A_F2); in tx_d_frame()
[all …]
Dhfc_sx.c121 u_char f_msk, f1, f2, *src; in write_fifo() local
160 f2 = Read_hfc(cs, HFCSX_FIF_F2) & f_msk; in write_fifo()
162 count = f1 - f2; /* frame count actually buffered */ in write_fifo()
175 fifo, f1, f2, z1); in write_fifo()
177 count = *(msp + f2) - z1; in write_fifo()
209 u_char f_msk, f1, f2, *dst; in read_fifo() local
249 f2 = Read_hfc(cs, HFCSX_FIF_F2) & f_msk; in read_fifo()
251 if (f1 == f2) return (NULL); /* no frame available */ in read_fifo()
260 fifo, f1, f2, z1, z2); in read_fifo()
/drivers/video/fbdev/matrox/
Dg450_pll.c43 static inline unsigned int pll_freq_delta(unsigned int f1, unsigned int f2) { in pll_freq_delta() argument
44 if (f2 < f1) { in pll_freq_delta()
45 f2 = f1 - f2; in pll_freq_delta()
47 f2 = f2 - f1; in pll_freq_delta()
49 return f2; in pll_freq_delta()
/drivers/media/tuners/
Dm88rs6000t.c38 u8 N, f0 = 0, f1 = 0, f2 = 0, f3 = 0; in m88rs6000t_set_demod_mclk() local
76 f2 = div - f1; in m88rs6000t_set_demod_mclk()
82 f2 = div - f0 - f1; in m88rs6000t_set_demod_mclk()
88 f2 = (div - f0 - f1) / 2; in m88rs6000t_set_demod_mclk()
89 f3 = div - f0 - f1 - f2; in m88rs6000t_set_demod_mclk()
94 f2 = 16; in m88rs6000t_set_demod_mclk()
102 if (f2 == 16) in m88rs6000t_set_demod_mclk()
103 f2 = 0; in m88rs6000t_set_demod_mclk()
113 reg1E = ((f3 << 4) + f2) & 0xFF; in m88rs6000t_set_demod_mclk()
Dmt20xx.c69 int f1, int f2, int spectrum_from,int spectrum_to) in mt2032_spurcheck() argument
75 f2=f2/1000; in mt2032_spurcheck()
80 f1,f2,spectrum_from,spectrum_to); in mt2032_spurcheck()
84 f=n1*(f1-f2); in mt2032_spurcheck()
87 f=f-f2; in mt2032_spurcheck()
92 } while ( (f>(f2-spectrum_to)) || (n2>-5)); in mt2032_spurcheck()
/drivers/isdn/hardware/mISDN/
Dhfcpci.c352 bzr->f2 = bzr->f1; /* init F pointers to remain constant */ in hfcpci_clear_fifo_rx()
382 fifo, bzt->f1, bzt->f2, in hfcpci_clear_fifo_tx()
386 bzt->f2 = MAX_B_FRAMES; in hfcpci_clear_fifo_tx()
387 bzt->f1 = bzt->f2; /* init F pointers to remain constant */ in hfcpci_clear_fifo_tx()
396 fifo, bzt->f1, bzt->f2, in hfcpci_clear_fifo_tx()
414 zp = &bz->za[bz->f2]; /* point to Z-Regs */ in hfcpci_empty_bfifo()
418 new_f2 = (bz->f2 + 1) & MAX_B_FRAMES; in hfcpci_empty_bfifo()
428 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_bfifo()
455 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_bfifo()
475 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg()
[all …]
Dhfc_pci.h193 u_char f1, f2; /* f pointers */ member
202 u_char f1, f2; /* f pointers */ member
Dhfcmulti.c1950 int Fspace, f1, f2; in hfcmulti_tx() local
2001 f2 = HFC_inb_nodebug(hc, A_F2); in hfcmulti_tx()
2002 while (f2 != (temp = HFC_inb_nodebug(hc, A_F2))) { in hfcmulti_tx()
2006 __func__, hc->id + 1, temp, f2); in hfcmulti_tx()
2007 f2 = temp; /* repeat until F2 is equal */ in hfcmulti_tx()
2009 Fspace = f2 - f1 - 1; in hfcmulti_tx()
2019 if (f1 != f2) in hfcmulti_tx()
2026 if (f1 != f2) in hfcmulti_tx()
2196 int f1 = 0, f2 = 0; /* = 0, to make GCC happy */ in hfcmulti_rx() local
2242 f2 = HFC_inb_nodebug(hc, A_F2); in hfcmulti_rx()
[all …]
/drivers/input/touchscreen/
Dwacom_i2c.c100 unsigned char tsw, f1, f2, ers; in wacom_i2c_irq() local
111 f2 = data[3] & 0x10; in wacom_i2c_irq()
125 input_report_key(input, BTN_STYLUS2, f2); in wacom_i2c_irq()
Dwacom_w8001.c61 u8 f2; member
112 coord->f2 = data[0] & 0x04; in parse_pen_data()
228 if (!coord->f2) { in report_pen_events()
241 w8001->type = coord->f2 ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in report_pen_events()
245 input_report_key(dev, BTN_STYLUS2, coord->f2); in report_pen_events()
/drivers/media/usb/go7007/
Dgo7007-fw.c1293 int f2 = (go->sensor_framerate - arate % go->sensor_framerate) / rprime; in avsync_to_package() local
1300 0xbff4, f1 > f2 ? f1 : f2, in avsync_to_package()
1301 0xbff5, f1 < f2 ? f1 : f2, in avsync_to_package()
1302 0xbff6, f1 < f2 ? ratio : ratio + 1, in avsync_to_package()
1303 0xbff7, f1 > f2 ? ratio : ratio + 1, in avsync_to_package()
/drivers/hwmon/
Dnct7802.c222 unsigned int f1, f2; in nct7802_read_fan() local
229 ret = regmap_read(data->regmap, REG_FANCOUNT_LOW, &f2); in nct7802_read_fan()
232 ret = (f1 << 5) | (f2 >> 3); in nct7802_read_fan()
246 unsigned int f1, f2; in nct7802_read_fan_min() local
253 ret = regmap_read(data->regmap, reg_fan_high, &f2); in nct7802_read_fan_min()
256 ret = f1 | ((f2 & 0xf8) << 5); in nct7802_read_fan_min()
Dg762.c200 unsigned long f2 = p * clk_div; in cnt_from_rpm() local
205 rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2); in cnt_from_rpm()
206 return DIV_ROUND_CLOSEST(f1, rpm * f2); in cnt_from_rpm()
/drivers/pinctrl/
Dpinctrl-tz1090.c739 #define MUX(f0, f1, f2, f3, f4, mux_r, mux_b, mux_w) \ argument
744 TZ1090_MUX_ ## f2, \
775 #define DEFINE_SUBMUX(mux, f0, f1, f2, f3, f4, mux_r, mux_b, mux_w) \ argument
777 MUX(f0, f1, f2, f3, f4, mux_r, mux_b, mux_w)
802 #define MUX_PG(pg_name, f0, f1, f2, f3, f4, \ argument
808 .mux = MUX(f0, f1, f2, f3, f4, \
Dpinctrl-falcon.c54 #define MFP_FALCON(a, f0, f1, f2, f3) \ argument
61 FALCON_MUX_##f2, \
/drivers/usb/host/
Duhci-hcd.h470 #define uhci_frame_before_eq(f1, f2) (0 <= (int) ((f2) - (f1))) argument
/drivers/s390/block/
Ddasd_eckd.h277 __u16 f2; member
282 __u8 f2; member
/drivers/media/usb/cpia2/
Dcpia2_v4l.c559 struct v4l2_fract f2 = framerate_controls[i].period; in cpia2_s_parm() local
561 f1.numerator *= f2.denominator; in cpia2_s_parm()
562 f2.numerator *= f1.denominator; in cpia2_s_parm()
563 if (f1.numerator >= f2.numerator) in cpia2_s_parm()
/drivers/net/wireless/ath/ath9k/
Dar9003_calib.c564 f2; in ar9003_hw_solve_iq_cal() local
569 f2 = ((f1 >> 3) * (f1 >> 3) + (f3 >> 3) * (f3 >> 3)) >> 9; in ar9003_hw_solve_iq_cal()
571 if (!f2) { in ar9003_hw_solve_iq_cal()
581 mag_tx = (mag_tx / f2); in ar9003_hw_solve_iq_cal()
582 phs_tx = (phs_tx / f2); in ar9003_hw_solve_iq_cal()
/drivers/media/platform/coda/
Dcoda-common.c825 struct v4l2_fract f2 = { 0, 1 }; in coda_approximate_timeperframe() local
855 while (f2.numerator <= 65536 && f2.denominator < 65536) { in coda_approximate_timeperframe()
857 f1 = f2; in coda_approximate_timeperframe()
865 f2.numerator = f0.numerator + i * f1.numerator; in coda_approximate_timeperframe()
866 f2.denominator = f0.denominator + i * f2.denominator; in coda_approximate_timeperframe()
/drivers/pinctrl/qcom/
Dpinctrl-ipq8064.c180 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10) \ argument
188 IPQ_MUX_##f2, \

123