Lines Matching refs:cfg

1201 					struct tda18271_config *cfg)  in tda18271_setup_configuration()  argument
1205 priv->gate = (cfg) ? cfg->gate : TDA18271_GATE_AUTO; in tda18271_setup_configuration()
1206 priv->role = (cfg) ? cfg->role : TDA18271_MASTER; in tda18271_setup_configuration()
1207 priv->config = (cfg) ? cfg->config : 0; in tda18271_setup_configuration()
1208 priv->small_i2c = (cfg) ? in tda18271_setup_configuration()
1209 cfg->small_i2c : TDA18271_39_BYTE_CHUNK_INIT; in tda18271_setup_configuration()
1210 priv->output_opt = (cfg) ? in tda18271_setup_configuration()
1211 cfg->output_opt : TDA18271_OUTPUT_LT_XT_ON; in tda18271_setup_configuration()
1216 static inline int tda18271_need_cal_on_startup(struct tda18271_config *cfg) in tda18271_need_cal_on_startup() argument
1221 ((cfg) && (cfg->rf_cal_on_startup)) : in tda18271_need_cal_on_startup()
1228 struct tda18271_config *cfg = (struct tda18271_config *) priv_cfg; in tda18271_set_config() local
1230 tda18271_setup_configuration(fe, cfg); in tda18271_set_config()
1232 if (tda18271_need_cal_on_startup(cfg)) in tda18271_set_config()
1236 if ((cfg) && (cfg->std_map)) in tda18271_set_config()
1237 tda18271_update_std_map(fe, cfg->std_map); in tda18271_set_config()
1262 struct tda18271_config *cfg) in tda18271_attach() argument
1279 tda18271_setup_configuration(fe, cfg); in tda18271_attach()
1294 if ((cfg->delay_cal) && (!tda18271_need_cal_on_startup(cfg))) in tda18271_attach()
1300 if ((tda18271_need_cal_on_startup(cfg)) && in tda18271_attach()
1315 if (cfg) { in tda18271_attach()
1316 if (cfg->gate != TDA18271_GATE_ANALOG) in tda18271_attach()
1317 priv->gate = cfg->gate; in tda18271_attach()
1318 if (cfg->role) in tda18271_attach()
1319 priv->role = cfg->role; in tda18271_attach()
1320 if (cfg->config) in tda18271_attach()
1321 priv->config = cfg->config; in tda18271_attach()
1322 if (cfg->small_i2c) in tda18271_attach()
1323 priv->small_i2c = cfg->small_i2c; in tda18271_attach()
1324 if (cfg->output_opt) in tda18271_attach()
1325 priv->output_opt = cfg->output_opt; in tda18271_attach()
1326 if (cfg->std_map) in tda18271_attach()
1327 tda18271_update_std_map(fe, cfg->std_map); in tda18271_attach()
1329 if (tda18271_need_cal_on_startup(cfg)) in tda18271_attach()
1335 if ((cfg) && (cfg->std_map)) in tda18271_attach()
1336 tda18271_update_std_map(fe, cfg->std_map); in tda18271_attach()