Lines Matching refs:mt352_read_register

68 static int mt352_read_register(struct mt352_state* state, u8 reg)  in mt352_read_register()  function
320 if ( (mt352_read_register(state,0x00) & 0xC0) != 0xC0 ) in mt352_get_parameters()
326 …tps = (mt352_read_register(state, TPS_RECEIVED_1) << 8) | mt352_read_register(state, TPS_RECEIVED_… in mt352_get_parameters()
327 div = (mt352_read_register(state, CHAN_START_1) << 8) | mt352_read_register(state, CHAN_START_0); in mt352_get_parameters()
328 trl = mt352_read_register(state, TRL_NOMINAL_RATE_1); in mt352_get_parameters()
399 if (mt352_read_register(state, STATUS_2) & 0x02) in mt352_get_parameters()
424 if ((s0 = mt352_read_register(state, STATUS_0)) < 0) in mt352_read_status()
426 if ((s1 = mt352_read_register(state, STATUS_1)) < 0) in mt352_read_status()
428 if ((s3 = mt352_read_register(state, STATUS_3)) < 0) in mt352_read_status()
454 *ber = (mt352_read_register (state, RS_ERR_CNT_2) << 16) | in mt352_read_ber()
455 (mt352_read_register (state, RS_ERR_CNT_1) << 8) | in mt352_read_ber()
456 (mt352_read_register (state, RS_ERR_CNT_0)); in mt352_read_ber()
466 u16 signal = ((mt352_read_register(state, AGC_GAIN_1) & 0x0f) << 12) | in mt352_read_signal_strength()
467 (mt352_read_register(state, AGC_GAIN_0) << 4); in mt352_read_signal_strength()
478 u8 _snr = mt352_read_register (state, SNR); in mt352_read_snr()
488 *ucblocks = (mt352_read_register (state, RS_UBC_1) << 8) | in mt352_read_ucblocks()
489 (mt352_read_register (state, RS_UBC_0)); in mt352_read_ucblocks()
511 if ((mt352_read_register(state, CLOCK_CTL) & 0x10) == 0 || in mt352_init()
512 (mt352_read_register(state, CONFIG) & 0x20) == 0) { in mt352_init()
544 if (mt352_read_register(state, CHIP_ID) != ID_MT352) goto error; in mt352_attach()