Lines Matching refs:cfg

61 				!((j + 1) % (dev->cfg->i2c_wr_max - 1))) {  in m88ds3103_wr_reg_val_tab()
380 switch (dev->cfg->ts_mode) { in m88ds3103_set_frontend()
383 target_mclk = dev->cfg->ts_clk; in m88ds3103_set_frontend()
490 switch (dev->cfg->ts_mode) { in m88ds3103_set_frontend()
511 if (dev->cfg->ts_clk_pol) in m88ds3103_set_frontend()
519 switch (dev->cfg->ts_mode) { in m88ds3103_set_frontend()
529 if (dev->cfg->ts_clk) { in m88ds3103_set_frontend()
530 divide_ratio = DIV_ROUND_UP(target_mclk, dev->cfg->ts_clk); in m88ds3103_set_frontend()
538 target_mclk, dev->cfg->ts_clk, divide_ratio); in m88ds3103_set_frontend()
591 ret = m88ds3103_update_bits(dev, 0x4d, 0x02, dev->cfg->spec_inv << 1); in m88ds3103_set_frontend()
595 ret = m88ds3103_update_bits(dev, 0x30, 0x10, dev->cfg->agc_inv << 4); in m88ds3103_set_frontend()
599 ret = regmap_write(dev->regmap, 0x33, dev->cfg->agc); in m88ds3103_set_frontend()
700 remaining -= (dev->cfg->i2c_wr_max - 1)) { in m88ds3103_init()
702 if (len > (dev->cfg->i2c_wr_max - 1)) in m88ds3103_init()
703 len = (dev->cfg->i2c_wr_max - 1); in m88ds3103_init()
1015 utmp = tone << 7 | dev->cfg->envelope_mode << 5; in m88ds3103_set_tone()
1067 voltage_sel ^= dev->cfg->lnb_hv_pol; in m88ds3103_set_voltage()
1068 voltage_dis ^= dev->cfg->lnb_en_pol; in m88ds3103_set_voltage()
1103 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_master_cmd()
1175 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_burst()
1283 struct dvb_frontend *m88ds3103_attach(const struct m88ds3103_config *cfg, in m88ds3103_attach() argument
1290 pdata.clk = cfg->clock; in m88ds3103_attach()
1291 pdata.i2c_wr_max = cfg->i2c_wr_max; in m88ds3103_attach()
1292 pdata.ts_mode = cfg->ts_mode; in m88ds3103_attach()
1293 pdata.ts_clk = cfg->ts_clk; in m88ds3103_attach()
1294 pdata.ts_clk_pol = cfg->ts_clk_pol; in m88ds3103_attach()
1295 pdata.spec_inv = cfg->spec_inv; in m88ds3103_attach()
1296 pdata.agc = cfg->agc; in m88ds3103_attach()
1297 pdata.agc_inv = cfg->agc_inv; in m88ds3103_attach()
1298 pdata.clk_out = cfg->clock_out; in m88ds3103_attach()
1299 pdata.envelope_mode = cfg->envelope_mode; in m88ds3103_attach()
1300 pdata.lnb_hv_pol = cfg->lnb_hv_pol; in m88ds3103_attach()
1301 pdata.lnb_en_pol = cfg->lnb_en_pol; in m88ds3103_attach()
1306 board_info.addr = cfg->i2c_addr; in m88ds3103_attach()
1407 dev->cfg = &dev->config; in m88ds3103_probe()
1434 switch (dev->cfg->clock_out) { in m88ds3103_probe()