• Home
  • Raw
  • Download

Lines Matching refs:cfg

53 	struct vpbe_config *cfg = vpbe_dev->cfg;  in vpbe_current_encoder_info()  local
56 return ((index == 0) ? &cfg->venc : in vpbe_current_encoder_info()
57 &cfg->ext_encoders[index-1]); in vpbe_current_encoder_info()
68 static int vpbe_find_encoder_sd_index(struct vpbe_config *cfg, in vpbe_find_encoder_sd_index() argument
71 char *encoder_name = cfg->outputs[index].subdev_name; in vpbe_find_encoder_sd_index()
75 if (!strcmp(encoder_name, cfg->venc.module_name)) in vpbe_find_encoder_sd_index()
78 for (i = 0; i < cfg->num_ext_encoders; i++) { in vpbe_find_encoder_sd_index()
80 cfg->ext_encoders[i].module_name)) in vpbe_find_encoder_sd_index()
98 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_enum_outputs() local
101 if (temp_index >= cfg->num_outputs) in vpbe_enum_outputs()
104 *output = cfg->outputs[temp_index].output; in vpbe_enum_outputs()
113 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_get_mode_info() local
121 for (i = 0; i < cfg->outputs[curr_output].num_modes; i++) { in vpbe_get_mode_info()
122 var = cfg->outputs[curr_output].modes[i]; in vpbe_get_mode_info()
147 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_get_std_info() local
152 for (i = 0; i < vpbe_dev->cfg->outputs[curr_output].num_modes; i++) { in vpbe_get_std_info()
153 var = cfg->outputs[curr_output].modes[i]; in vpbe_get_std_info()
167 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_get_std_info_by_name() local
172 for (i = 0; i < vpbe_dev->cfg->outputs[curr_output].num_modes; i++) { in vpbe_get_std_info_by_name()
173 var = cfg->outputs[curr_output].modes[i]; in vpbe_get_std_info_by_name()
194 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_set_output() local
200 if (index >= cfg->num_outputs) in vpbe_set_output()
206 enc_out_index = cfg->outputs[index].output.index; in vpbe_set_output()
217 cfg->outputs[index].subdev_name)) { in vpbe_set_output()
219 sd_index = vpbe_find_encoder_sd_index(cfg, index); in vpbe_set_output()
225 ret = venc_device->setup_if_config(cfg->outputs[index].if_params); in vpbe_set_output()
245 cfg->outputs[index].default_mode, index); in vpbe_set_output()
263 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_set_default_output() local
266 for (i = 0; i < cfg->num_outputs; i++) { in vpbe_set_default_output()
268 cfg->outputs[i].output.name)) { in vpbe_set_default_output()
299 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_s_dv_timings() local
301 struct vpbe_output *output = &cfg->outputs[out_index]; in vpbe_s_dv_timings()
306 if (!(cfg->outputs[out_index].output.capabilities & in vpbe_s_dv_timings()
351 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_g_dv_timings() local
354 if (!(cfg->outputs[out_index].output.capabilities & in vpbe_g_dv_timings()
376 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_enum_dv_timings() local
378 struct vpbe_output *output = &cfg->outputs[out_index]; in vpbe_enum_dv_timings()
407 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_s_std() local
412 if (!(cfg->outputs[out_index].output.capabilities & in vpbe_s_std()
447 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_g_std() local
450 if (!(cfg->outputs[out_index].output.capabilities & V4L2_OUT_CAP_STD)) in vpbe_g_std()
472 struct vpbe_config *cfg = vpbe_dev->cfg; in vpbe_set_mode() local
481 for (i = 0; i < cfg->outputs[out_index].num_modes; i++) { in vpbe_set_mode()
483 cfg->outputs[out_index].modes[i].name)) { in vpbe_set_mode()
484 preset_mode = &cfg->outputs[out_index].modes[i]; in vpbe_set_mode()
582 if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) { in vpbe_initialize()
616 vpbe_dev->cfg->venc.module_name); in vpbe_initialize()
640 num_encoders = vpbe_dev->cfg->num_ext_encoders + 1; in vpbe_initialize()
649 i2c_adap = i2c_get_adapter(vpbe_dev->cfg->i2c_adapter_id); in vpbe_initialize()
650 for (i = 0; i < (vpbe_dev->cfg->num_ext_encoders + 1); i++) { in vpbe_initialize()
657 enc_info = &vpbe_dev->cfg->ext_encoders[i]; in vpbe_initialize()
677 if ((strcmp(vpbe_dev->cfg->module_name, "dm365-vpbe-display") == 0) && in vpbe_initialize()
678 vpbe_dev->cfg->amp) { in vpbe_initialize()
679 amp_info = vpbe_dev->cfg->amp; in vpbe_initialize()
735 if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) { in vpbe_initialize()
756 if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) { in vpbe_deinitialize()
786 struct vpbe_config *cfg; in vpbe_probe() local
792 cfg = pdev->dev.platform_data; in vpbe_probe()
794 if (!cfg->module_name[0] || in vpbe_probe()
795 !cfg->osd.module_name[0] || in vpbe_probe()
796 !cfg->venc.module_name[0]) { in vpbe_probe()
805 vpbe_dev->cfg = cfg; in vpbe_probe()
809 if (cfg->outputs->num_modes > 0) in vpbe_probe()
810 vpbe_dev->current_timings = vpbe_dev->cfg->outputs[0].modes[0]; in vpbe_probe()