Lines Matching refs:cfg

57 	const struct dib0070_config *cfg;  member
97 state->msg[0].addr = state->cfg->i2c_address; in dib0070_read_reg()
101 state->msg[1].addr = state->cfg->i2c_address; in dib0070_read_reg()
130 state->msg[0].addr = state->cfg->i2c_address; in dib0070_write_reg()
146 state->cfg->sleep(state->fe, 0); \
147 if (state->cfg->reset) { \
148 state->cfg->reset(state->fe,1); msleep(10); \
149 state->cfg->reset(state->fe,0); msleep(10); \
260 if (state->cfg->vga_filter != 0) { in dib0070_ctrl_agc_filter()
261 dib0070_write_reg(state, 0x1a, state->cfg->vga_filter); in dib0070_ctrl_agc_filter()
262 dprintk("vga filter register is set to %x", state->cfg->vga_filter); in dib0070_ctrl_agc_filter()
349 …roperty_cache.frequency/1000 + (band == BAND_VHF ? state->cfg->freq_offset_khz_vhf : state->cfg->f… in dib0070_tune_digital()
370 if (state->cfg->flip_chip) in dib0070_tune_digital()
403 REFDIV = (u8) ((state->cfg->clock_khz + 9999) / 10000); in dib0070_tune_digital()
406 REFDIV = (u8) ((state->cfg->clock_khz) / 1000); in dib0070_tune_digital()
409 REFDIV = (u8) (state->cfg->clock_khz / 10000); in dib0070_tune_digital()
412 FREF = state->cfg->clock_khz / REFDIV; in dib0070_tune_digital()
481 const struct dib0070_wbd_gain_cfg *tmp = state->cfg->wbd_gain; in dib0070_tune_digital()
540 if (state->cfg->sleep) in dib0070_wakeup()
541 state->cfg->sleep(fe, 0); in dib0070_wakeup()
548 if (state->cfg->sleep) in dib0070_sleep()
549 state->cfg->sleep(fe, 1); in dib0070_sleep()
637 const struct dib0070_wbd_gain_cfg *tmp = state->cfg->wbd_gain; in dib0070_wbd_offset()
688 if (state->cfg->force_crystal_mode != 0) in dib0070_reset()
689 r = state->cfg->force_crystal_mode; in dib0070_reset()
690 else if (state->cfg->clock_khz >= 24000) in dib0070_reset()
696 r |= state->cfg->osc_buffer_state << 3; in dib0070_reset()
699 dib0070_write_reg(state, 0x1f, (1 << 8) | ((state->cfg->clock_pad_drive & 0xf) << 5)); in dib0070_reset()
701 if (state->cfg->invert_iq) { in dib0070_reset()
709 dib0070_set_ctrl_lo5(fe, 5, 4, state->cfg->charge_pump, state->cfg->enable_third_order_filter); in dib0070_reset()
750 …ntend *dib0070_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dib0070_config *cfg) in dib0070_attach() argument
756 state->cfg = cfg; in dib0070_attach()