Lines Matching refs:t

104 	u8 t;  in wait_reg_mask()  local
108 lgs8gxx_read_reg(priv, reg, &t); in wait_reg_mask()
110 if ((t & mask) == val) in wait_reg_mask()
182 u8 reg_addr, t; in lgs8gxx_get_afc_phase() local
191 lgs8gxx_read_reg(priv, reg_addr, &t); in lgs8gxx_get_afc_phase()
193 v32 |= t; in lgs8gxx_get_afc_phase()
206 u8 t; in lgs8gxx_set_mode_auto() local
213 lgs8gxx_read_reg(priv, 0x0C, &t); in lgs8gxx_set_mode_auto()
214 t &= (~0x04); in lgs8gxx_set_mode_auto()
215 lgs8gxx_write_reg(priv, 0x0C, t | 0x80); in lgs8gxx_set_mode_auto()
223 lgs8gxx_read_reg(priv, 0x7E, &t); in lgs8gxx_set_mode_auto()
224 lgs8gxx_write_reg(priv, 0x7E, t | 0x01); in lgs8gxx_set_mode_auto()
227 lgs8gxx_read_reg(priv, 0xC5, &t); in lgs8gxx_set_mode_auto()
228 lgs8gxx_write_reg(priv, 0xC5, t & 0xE0); in lgs8gxx_set_mode_auto()
235 lgs8gxx_read_reg(priv, 0x7C, &t); in lgs8gxx_set_mode_auto()
236 t = (t & 0x8C) | 0x03; in lgs8gxx_set_mode_auto()
237 lgs8gxx_write_reg(priv, 0x7C, t); in lgs8gxx_set_mode_auto()
240 lgs8gxx_read_reg(priv, 0xC3, &t); in lgs8gxx_set_mode_auto()
241 t = (t & 0xEF) | 0x10; in lgs8gxx_set_mode_auto()
242 lgs8gxx_write_reg(priv, 0xC3, t); in lgs8gxx_set_mode_auto()
253 u8 t; in lgs8gxx_set_mode_manual() local
257 lgs8gxx_read_reg(priv, 0x0C, &t); in lgs8gxx_set_mode_manual()
258 t &= (~0x80); in lgs8gxx_set_mode_manual()
259 lgs8gxx_write_reg(priv, 0x0C, t); in lgs8gxx_set_mode_manual()
261 lgs8gxx_read_reg(priv, 0x0C, &t); in lgs8gxx_set_mode_manual()
264 if (((t&0x03) == 0x01) && (t2&0x01)) { in lgs8gxx_set_mode_manual()
286 lgs8gxx_read_reg(priv, 0xC5, &t); in lgs8gxx_set_mode_manual()
287 t = (t & 0xE0) | 0x06; in lgs8gxx_set_mode_manual()
288 lgs8gxx_write_reg(priv, 0xC5, t); in lgs8gxx_set_mode_manual()
298 u8 t; in lgs8gxx_is_locked() local
301 ret = lgs8gxx_read_reg(priv, 0x13, &t); in lgs8gxx_is_locked()
303 ret = lgs8gxx_read_reg(priv, 0x4B, &t); in lgs8gxx_is_locked()
308 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked()
310 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked()
443 u8 t; in lgs8gxx_auto_detect() local
446 lgs8gxx_read_reg(priv, 0xA2, &t); in lgs8gxx_auto_detect()
447 *detected_param = t; in lgs8gxx_auto_detect()
449 lgs8gxx_read_reg(priv, 0x1F, &t); in lgs8gxx_auto_detect()
450 *detected_param = t & 0x3F; in lgs8gxx_auto_detect()
490 u8 t; in lgs8gxx_auto_lock() local
491 lgs8gxx_read_reg(priv, 0x19, &t); in lgs8gxx_auto_lock()
492 t &= 0x81; in lgs8gxx_auto_lock()
493 t |= detected_param << 1; in lgs8gxx_auto_lock()
494 lgs8gxx_write_reg(priv, 0x19, t); in lgs8gxx_auto_lock()
521 u8 t, reg_addr; in lgs8gxx_set_mpeg_mode() local
524 ret = lgs8gxx_read_reg(priv, reg_addr, &t); in lgs8gxx_set_mpeg_mode()
528 t &= 0xF8; in lgs8gxx_set_mpeg_mode()
529 t |= serial ? TS_SERIAL : TS_PARALLEL; in lgs8gxx_set_mpeg_mode()
530 t |= clk_pol ? TS_CLK_INVERTED : TS_CLK_NORMAL; in lgs8gxx_set_mpeg_mode()
531 t |= clk_gated ? TS_CLK_GATED : TS_CLK_FREERUN; in lgs8gxx_set_mpeg_mode()
533 ret = lgs8gxx_write_reg(priv, reg_addr, t); in lgs8gxx_set_mpeg_mode()
561 u8 t; in lgs8913_init() local
566 lgs8gxx_read_reg(priv, 0x7c, &t); in lgs8913_init()
567 lgs8gxx_write_reg(priv, 0x7c, (t&0x8c) | 0x3); in lgs8913_init()
570 lgs8gxx_read_reg(priv, 0xc3, &t); in lgs8913_init()
571 lgs8gxx_write_reg(priv, 0xc3, t&0x10); in lgs8913_init()
716 u8 t, locked = 0; in lgs8gxx_read_status() local
730 ret = lgs8gxx_read_reg(priv, 0x4B, &t); in lgs8gxx_read_status()
734 dprintk("Reg 0x4B: 0x%02X\n", t); in lgs8gxx_read_status()
738 if ((t & 0x40) == 0x40) in lgs8gxx_read_status()
740 if ((t & 0x80) == 0x80) in lgs8gxx_read_status()
744 if ((t & 0x80) == 0x80) in lgs8gxx_read_status()
791 u8 t; s8 ret; in lgs8913_read_signal_strength() local
798 ret = lgs8gxx_read_reg(priv, 0x4B, &t); in lgs8913_read_signal_strength()
803 if ((t & 0xC0) == 0xC0) { in lgs8913_read_signal_strength()
826 lgs8gxx_read_reg(priv, 0x95, &t); in lgs8913_read_signal_strength()
827 dprintk("%s: AVG Noise=0x%02X\n", __func__, t); in lgs8913_read_signal_strength()
834 u8 t; in lgs8g75_read_signal_strength() local
839 lgs8gxx_read_reg(priv, 0xB1, &t); in lgs8g75_read_signal_strength()
840 v |= t; in lgs8g75_read_signal_strength()
842 lgs8gxx_read_reg(priv, 0xB0, &t); in lgs8g75_read_signal_strength()
843 v |= t; in lgs8g75_read_signal_strength()
866 u8 t; in lgs8gxx_read_snr() local
870 lgs8gxx_read_reg(priv, 0x34, &t); in lgs8gxx_read_snr()
872 lgs8gxx_read_reg(priv, 0x95, &t); in lgs8gxx_read_snr()
873 dprintk("AVG Noise=0x%02X\n", t); in lgs8gxx_read_snr()
874 *snr = 256 - t; in lgs8gxx_read_snr()
890 u8 orig, t; in packet_counter_start() local
895 t = orig | 0x10; in packet_counter_start()
896 lgs8gxx_write_reg(priv, 0x30, t); in packet_counter_start()
897 t = orig | 0x18; in packet_counter_start()
898 lgs8gxx_write_reg(priv, 0x30, t); in packet_counter_start()
899 t = orig | 0x10; in packet_counter_start()
900 lgs8gxx_write_reg(priv, 0x30, t); in packet_counter_start()
910 u8 t; in packet_counter_stop() local
913 lgs8gxx_read_reg(priv, 0x30, &t); in packet_counter_stop()
914 t &= 0xE7; in packet_counter_stop()
915 lgs8gxx_write_reg(priv, 0x30, t); in packet_counter_stop()
924 u8 reg_err, reg_total, t; in lgs8gxx_read_ber() local
942 lgs8gxx_read_reg(priv, reg_total+3-i, &t); in lgs8gxx_read_ber()
943 total_cnt |= t; in lgs8gxx_read_ber()
947 lgs8gxx_read_reg(priv, reg_err+3-i, &t); in lgs8gxx_read_ber()
948 err_cnt |= t; in lgs8gxx_read_ber()