Lines Matching refs:settings
217 struct ext_hdmi_settings *settings) in get_ext_hdmi_settings() argument
237 settings->slv_addr = integrated_info->dp0_ext_hdmi_slv_addr; in get_ext_hdmi_settings()
238 settings->reg_num = integrated_info->dp0_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
239 settings->reg_num_6g = integrated_info->dp0_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
240 memmove(settings->reg_settings, in get_ext_hdmi_settings()
243 memmove(settings->reg_settings_6g, in get_ext_hdmi_settings()
249 settings->slv_addr = integrated_info->dp1_ext_hdmi_slv_addr; in get_ext_hdmi_settings()
250 settings->reg_num = integrated_info->dp1_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
251 settings->reg_num_6g = integrated_info->dp1_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
252 memmove(settings->reg_settings, in get_ext_hdmi_settings()
255 memmove(settings->reg_settings_6g, in get_ext_hdmi_settings()
261 settings->slv_addr = integrated_info->dp2_ext_hdmi_slv_addr; in get_ext_hdmi_settings()
262 settings->reg_num = integrated_info->dp2_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
263 settings->reg_num_6g = integrated_info->dp2_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
264 memmove(settings->reg_settings, in get_ext_hdmi_settings()
267 memmove(settings->reg_settings_6g, in get_ext_hdmi_settings()
273 settings->slv_addr = integrated_info->dp3_ext_hdmi_slv_addr; in get_ext_hdmi_settings()
274 settings->reg_num = integrated_info->dp3_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
275 settings->reg_num_6g = integrated_info->dp3_ext_hdmi_6g_reg_num; in get_ext_hdmi_settings()
276 memmove(settings->reg_settings, in get_ext_hdmi_settings()
279 memmove(settings->reg_settings_6g, in get_ext_hdmi_settings()
290 if (settings->slv_addr == 0) in get_ext_hdmi_settings()
292 if (settings->reg_num > 9) in get_ext_hdmi_settings()
294 if (settings->reg_num_6g > 3) in get_ext_hdmi_settings()
297 for (i = 0; i < settings->reg_num; i++) { in get_ext_hdmi_settings()
298 if (settings->reg_settings[i].i2c_reg_index > 0x20) in get_ext_hdmi_settings()
302 for (i = 0; i < settings->reg_num_6g; i++) { in get_ext_hdmi_settings()
303 if (settings->reg_settings_6g[i].i2c_reg_index > 0x20) in get_ext_hdmi_settings()
342 struct ext_hdmi_settings *settings) in write_i2c_retimer_setting() argument
344 uint8_t slave_address = (settings->slv_addr >> 1); in write_i2c_retimer_setting()
357 for (i = 0; i < settings->reg_num; i++) { in write_i2c_retimer_setting()
359 if (settings->reg_settings[i].i2c_reg_index <= 0x20) { in write_i2c_retimer_setting()
361 buffer[0] = settings->reg_settings[i].i2c_reg_index; in write_i2c_retimer_setting()
362 buffer[1] = settings->reg_settings[i].i2c_reg_val; in write_i2c_retimer_setting()
375 if (settings->reg_settings[i].i2c_reg_index == 0xA || in write_i2c_retimer_setting()
376 settings->reg_settings[i].i2c_reg_index == 0xB || in write_i2c_retimer_setting()
377 settings->reg_settings[i].i2c_reg_index == 0xC) { in write_i2c_retimer_setting()
380 if (settings->reg_settings[i].i2c_reg_index == 0xA) in write_i2c_retimer_setting()
381 value = settings->reg_settings[i].i2c_reg_val; in write_i2c_retimer_setting()
407 for (i = 0; i < settings->reg_num_6g; i++) { in write_i2c_retimer_setting()
409 if (settings->reg_settings[i].i2c_reg_index <= 0x20) { in write_i2c_retimer_setting()
411 buffer[0] = settings->reg_settings_6g[i].i2c_reg_index; in write_i2c_retimer_setting()
412 buffer[1] = settings->reg_settings_6g[i].i2c_reg_val; in write_i2c_retimer_setting()
425 if (settings->reg_settings_6g[i].i2c_reg_index == 0xA || in write_i2c_retimer_setting()
426 settings->reg_settings_6g[i].i2c_reg_index == 0xB || in write_i2c_retimer_setting()
427 settings->reg_settings_6g[i].i2c_reg_index == 0xC) { in write_i2c_retimer_setting()
430 if (settings->reg_settings_6g[i].i2c_reg_index == 0xA) in write_i2c_retimer_setting()
431 value = settings->reg_settings_6g[i].i2c_reg_val; in write_i2c_retimer_setting()
1944 struct ext_hdmi_settings settings = {0}; in enable_link_hdmi() local
1963 if (get_ext_hdmi_settings(pipe_ctx, eng_id, &settings)) { in enable_link_hdmi()
1965 is_vga_mode, is_over_340mhz, &settings); in enable_link_hdmi()
2366 struct ext_hdmi_settings settings = {0}; in link_set_dpms_off() local
2378 if (get_ext_hdmi_settings(pipe_ctx, eng_id, &settings)) in link_set_dpms_off()
2380 false, false, &settings); in link_set_dpms_off()