Home
last modified time | relevance | path

Searched full:ddc (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/Linux-v6.6/drivers/gpu/drm/mediatek/
Dmtk_hdmi_ddc.c65 static inline void sif_set_bit(struct mtk_hdmi_ddc *ddc, unsigned int offset, in sif_set_bit() argument
68 writel(readl(ddc->regs + offset) | val, ddc->regs + offset); in sif_set_bit()
71 static inline void sif_clr_bit(struct mtk_hdmi_ddc *ddc, unsigned int offset, in sif_clr_bit() argument
74 writel(readl(ddc->regs + offset) & ~val, ddc->regs + offset); in sif_clr_bit()
77 static inline bool sif_bit_is_set(struct mtk_hdmi_ddc *ddc, unsigned int offset, in sif_bit_is_set() argument
80 return (readl(ddc->regs + offset) & val) == val; in sif_bit_is_set()
83 static inline void sif_write_mask(struct mtk_hdmi_ddc *ddc, unsigned int offset, in sif_write_mask() argument
89 tmp = readl(ddc->regs + offset); in sif_write_mask()
92 writel(tmp, ddc->regs + offset); in sif_write_mask()
95 static inline unsigned int sif_read_mask(struct mtk_hdmi_ddc *ddc, in sif_read_mask() argument
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/gpio/
Dgpio_service.c466 struct ddc *dal_gpio_create_ddc( in dal_gpio_create_ddc()
474 struct ddc *ddc; in dal_gpio_create_ddc() local
479 ddc = kzalloc(sizeof(struct ddc), GFP_KERNEL); in dal_gpio_create_ddc()
481 if (!ddc) { in dal_gpio_create_ddc()
486 ddc->pin_data = dal_gpio_create( in dal_gpio_create_ddc()
489 if (!ddc->pin_data) { in dal_gpio_create_ddc()
494 ddc->pin_clock = dal_gpio_create( in dal_gpio_create_ddc()
497 if (!ddc->pin_clock) { in dal_gpio_create_ddc()
502 ddc->hw_info = *info; in dal_gpio_create_ddc()
504 ddc->ctx = service->ctx; in dal_gpio_create_ddc()
[all …]
Dhw_ddc.c39 ddc->shifts->field_name, ddc->masks->field_name
42 ddc->base.base.ctx
44 (ddc->regs->reg)
70 struct hw_ddc *ddc = HW_DDC_FROM_BASE(ptr); in set_config() local
77 hw_gpio = &ddc->base; in set_config()
89 switch (config_data->config.ddc.type) { in set_config()
139 if (config_data->config.ddc.data_en_bit_present || in set_config()
140 config_data->config.ddc.clock_en_bit_present) in set_config()
152 if (ddc->regs->dc_gpio_aux_ctrl_5 != 0) { in set_config()
156 if (ddc->regs->phy_aux_cntl != 0) { in set_config()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_ddc.c170 static void ddc_service_destruct(struct ddc_service *ddc) in ddc_service_destruct() argument
172 if (ddc->ddc_pin) in ddc_service_destruct()
173 dal_gpio_destroy_ddc(&ddc->ddc_pin); in ddc_service_destruct()
176 void link_destroy_ddc_service(struct ddc_service **ddc) in link_destroy_ddc_service() argument
178 if (!ddc || !*ddc) { in link_destroy_ddc_service()
182 ddc_service_destruct(*ddc); in link_destroy_ddc_service()
183 kfree(*ddc); in link_destroy_ddc_service()
184 *ddc = NULL; in link_destroy_ddc_service()
188 struct ddc_service *ddc, in set_ddc_transaction_type() argument
191 ddc->transaction_type = type; in set_ddc_transaction_type()
[all …]
Dlink_ddc.h43 void link_destroy_ddc_service(struct ddc_service **ddc);
46 struct ddc_service *ddc,
49 uint32_t link_get_aux_defer_delay(struct ddc_service *ddc);
51 bool link_is_in_aux_transaction_mode(struct ddc_service *ddc);
53 bool try_to_configure_aux_timeout(struct ddc_service *ddc,
57 struct ddc_service *ddc,
72 bool link_aux_transfer_with_retries_no_mutex(struct ddc_service *ddc,
76 struct ddc_service *ddc,
81 struct ddc_service *ddc,
97 void set_dongle_type(struct ddc_service *ddc,
[all …]
Dlink_dp_training_fixed_vs_pe_retimer.c55 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_fixed_vs_pe_read_lane_adjust()
58 link_query_fixed_vs_pe_retimer(link->ddc, &dprx_vs, 1); in dp_fixed_vs_pe_read_lane_adjust()
60 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_fixed_vs_pe_read_lane_adjust()
63 link_query_fixed_vs_pe_retimer(link->ddc, &dprx_pe, 1); in dp_fixed_vs_pe_read_lane_adjust()
90 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_fixed_vs_pe_set_retimer_lane_settings()
93 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_fixed_vs_pe_set_retimer_lane_settings()
96 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_fixed_vs_pe_set_retimer_lane_settings()
235 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_perform_fixed_vs_pe_training_sequence_legacy()
237 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_perform_fixed_vs_pe_training_sequence_legacy()
239 link_configure_fixed_vs_pe_retimer(link->ddc, in dp_perform_fixed_vs_pe_training_sequence_legacy()
[all …]
/Linux-v6.6/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_ddc_clk.c65 struct sun4i_ddc *ddc = hw_to_ddc(hw); in sun4i_ddc_round_rate() local
67 return sun4i_ddc_calc_divider(rate, *prate, ddc->pre_div, in sun4i_ddc_round_rate()
68 ddc->m_offset, NULL, NULL); in sun4i_ddc_round_rate()
74 struct sun4i_ddc *ddc = hw_to_ddc(hw); in sun4i_ddc_recalc_rate() local
78 regmap_field_read(ddc->reg, &reg); in sun4i_ddc_recalc_rate()
82 return (((parent_rate / ddc->pre_div) / 10) >> n) / in sun4i_ddc_recalc_rate()
83 (m + ddc->m_offset); in sun4i_ddc_recalc_rate()
89 struct sun4i_ddc *ddc = hw_to_ddc(hw); in sun4i_ddc_set_rate() local
92 sun4i_ddc_calc_divider(rate, parent_rate, ddc->pre_div, in sun4i_ddc_set_rate()
93 ddc->m_offset, &div_m, &div_n); in sun4i_ddc_set_rate()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dce/
Ddce_i2c_sw.c40 struct ddc *ddc, in read_bit_from_ddc() argument
46 dal_gpio_get_value(ddc->pin_data, &value); in read_bit_from_ddc()
48 dal_gpio_get_value(ddc->pin_clock, &value); in read_bit_from_ddc()
54 struct ddc *ddc, in write_bit_to_ddc() argument
61 dal_gpio_set_value(ddc->pin_data, value); in write_bit_to_ddc()
63 dal_gpio_set_value(ddc->pin_clock, value); in write_bit_to_ddc()
70 dal_ddc_close(dce_i2c_sw->ddc); in release_engine_dce_sw()
71 dce_i2c_sw->ddc = NULL; in release_engine_dce_sw()
76 struct ddc *ddc, in wait_for_scl_high_sw() argument
85 if (read_bit_from_ddc(ddc, SCL)) in wait_for_scl_high_sw()
[all …]
Ddce_i2c.c30 struct ddc_service *ddc, in dce_i2c_oem_device_present() argument
34 struct dc *dc = ddc->ctx->dc; in dce_i2c_oem_device_present()
56 struct ddc *ddc, in dce_i2c_submit_command() argument
62 if (!ddc) { in dce_i2c_submit_command()
72 dce_i2c_hw = acquire_i2c_hw_engine(pool, ddc); in dce_i2c_submit_command()
75 return dce_i2c_submit_command_hw(pool, ddc, cmd, dce_i2c_hw); in dce_i2c_submit_command()
77 dce_i2c_sw.ctx = ddc->ctx; in dce_i2c_submit_command()
78 if (dce_i2c_engine_acquire_sw(&dce_i2c_sw, ddc)) { in dce_i2c_submit_command()
79 return dce_i2c_submit_command_sw(pool, ddc, cmd, &dce_i2c_sw); in dce_i2c_submit_command()
Ddce_aux.c83 dal_ddc_close(engine->ddc); in release_engine()
85 engine->ddc = NULL; in release_engine()
277 EVENT_LOG_AUX_REQ(engine->ddc->pin_data->en, EVENT_LOG_AUX_ORIGIN_NATIVE, in submit_channel_request()
400 struct ddc *ddc) in acquire() argument
407 result = dal_ddc_open(ddc, GPIO_MODE_HARDWARE, in acquire()
414 engine->ddc = ddc; in acquire()
419 engine->ddc = ddc; in acquire()
434 static uint32_t dce_aux_configure_timeout(struct ddc_service *ddc, in dce_aux_configure_timeout() argument
442 struct ddc *ddc_pin = ddc->ddc_pin; in dce_aux_configure_timeout()
443 struct dce_aux *aux_engine = ddc->ctx->dc->res_pool->engines[ddc_pin->pin_data->en]; in dce_aux_configure_timeout()
[all …]
Ddce_i2c_sw.h36 struct ddc *ddc; member
48 struct ddc *ddc,
54 struct ddc *ddc_handle);
/Linux-v6.6/drivers/gpu/drm/amd/display/include/
Dgpio_service_interface.h71 struct ddc *dal_gpio_create_ddc(
78 struct ddc **ddc);
103 struct ddc *ddc,
108 struct ddc *ddc,
112 const struct ddc *ddc);
115 struct ddc *ddc,
119 struct ddc *ddc);
/Linux-v6.6/Documentation/devicetree/bindings/display/mediatek/
Dmediatek,hdmi-ddc.yaml4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,hdmi-ddc.yaml#
7 title: Mediatek HDMI DDC
14 The HDMI DDC i2c controller is used to interface with the HDMI DDC pins.
19 - mediatek,mt7623-hdmi-ddc
20 - mediatek,mt8167-hdmi-ddc
21 - mediatek,mt8173-hdmi-ddc
34 - const: ddc-i2c
51 compatible = "mediatek,mt8173-hdmi-ddc";
55 clock-names = "ddc-i2c";
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/link/hwss/
Dlink_hwss_dio_fixed_vs_pe_retimer.c52 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
54 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
56 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
58 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
60 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
62 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
64 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
66 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
68 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
70 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
[all …]
Dlink_hwss_hpo_fixed_vs_pe_retimer_dp.c62 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
64 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
66 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
68 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
70 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
89 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern()
91 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern()
93 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern()
95 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern()
97 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern()
[all …]
/Linux-v6.6/drivers/gpu/drm/tegra/
Doutput.c38 else if (output->ddc) in tegra_output_connector_get_modes()
39 edid = drm_get_edid(connector, output->ddc); in tegra_output_connector_get_modes()
99 struct device_node *ddc, *panel; in tegra_output_probe() local
128 ddc = of_parse_phandle(output->of_node, "nvidia,ddc-i2c-bus", 0); in tegra_output_probe()
129 if (ddc) { in tegra_output_probe()
130 output->ddc = of_get_i2c_adapter_by_node(ddc); in tegra_output_probe()
131 of_node_put(ddc); in tegra_output_probe()
133 if (!output->ddc) { in tegra_output_probe()
189 if (output->ddc) in tegra_output_remove()
190 i2c_put_adapter(output->ddc); in tegra_output_remove()
/Linux-v6.6/drivers/gpu/drm/bridge/
Ddisplay-connector.c54 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect()
64 * For DVI and HDMI connectors a DDC probe failure indicates in display_connector_detect()
77 * if drm_probe_ddc fails, as some cables don't wire the DDC in display_connector_detect()
89 return drm_get_edid(connector, conn->bridge.ddc); in display_connector_get_edid()
308 /* Retrieve the DDC I2C adapter for DVI, HDMI and VGA connectors. */ in display_connector_probe()
314 phandle = of_parse_phandle(pdev->dev.of_node, "ddc-i2c-bus", 0); in display_connector_probe()
316 conn->bridge.ddc = of_get_i2c_adapter_by_node(phandle); in display_connector_probe()
318 if (!conn->bridge.ddc) in display_connector_probe()
335 /* enable DDC */ in display_connector_probe()
339 conn->ddc_en = devm_gpiod_get_optional(&pdev->dev, "ddc-en", in display_connector_probe()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/display/
Dallwinner,sun4i-a10-hdmi.yaml44 - description: The HDMI DDC clock
59 - const: ddc
68 - description: DDC Transmission DMA Channel
69 - description: DDC Reception DMA Channel
74 - const: ddc-tx
75 - const: ddc-rx
142 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
/Linux-v6.6/drivers/gpu/drm/radeon/
Dradeon_connectors.c290 &radeon_connector->ddc_bus->aux.ddc); in radeon_connector_get_edid()
299 &radeon_connector->ddc_bus->aux.ddc); in radeon_connector_get_edid()
314 /* don't fetch the edid from the vbios if ddc fails and runpm is in radeon_connector_get_edid()
875 /* don't fetch the edid from the vbios if ddc fails and runpm is in radeon_lvds_detect()
1036 * with a shared ddc line (often vga + hdmi) in radeon_vga_detect()
1213 * Do a DDC probe, if DDC probe passes, get the full EDID so
1215 * If the monitor is an analog monitor or we got no DDC,
1217 * If we got no DDC, we do load detection on the DAC encoder object.
1218 * If we got analog DDC or load detection passes on the DAC encoder
1255 /* Sometimes the pins required for the DDC probe on DVI in radeon_dvi_detect()
[all …]
/Linux-v6.6/drivers/gpu/drm/loongson/
Dlsdc_output_7a1000.c46 if (conn->ddc) { in ls7a1000_dpi_connector_get_modes()
47 edid = drm_get_edid(conn, conn->ddc); in ls7a1000_dpi_connector_get_modes()
82 struct i2c_adapter *ddc = connector->ddc; in ls7a1000_dpi_connector_detect() local
84 if (ddc) { in ls7a1000_dpi_connector_detect()
85 if (drm_probe_ddc(ddc)) in ls7a1000_dpi_connector_detect()
144 struct i2c_adapter *ddc, in ls7a1000_output_init() argument
161 DRM_MODE_CONNECTOR_DPI, ddc); in ls7a1000_output_init()
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_connectors.c298 &amdgpu_connector->ddc_bus->aux.ddc); in amdgpu_connector_get_edid()
307 &amdgpu_connector->ddc_bus->aux.ddc); in amdgpu_connector_get_edid()
914 * with a shared ddc line (often vga + hdmi) in amdgpu_connector_vga_detect()
991 * Do a DDC probe, if DDC probe passes, get the full EDID so
993 * If the monitor is an analog monitor or we got no DDC,
995 * If we got no DDC, we do load detection on the DAC encoder object.
996 * If we got analog DDC or load detection passes on the DAC encoder
1032 /* Sometimes the pins required for the DDC probe on DVI in amdgpu_connector_dvi_detect()
1034 * for HPD do. If the DDC probe fails even though we had an HPD in amdgpu_connector_dvi_detect()
1039 DRM_DEBUG_KMS("hpd detected without ddc, retrying in 1 second\n"); in amdgpu_connector_dvi_detect()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/gpio/dce60/
Dhw_factory_dce60.c120 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); in define_ddc_registers() local
124 ddc->regs = &ddc_data_regs[en]; in define_ddc_registers()
125 ddc->base.regs = &ddc_data_regs[en].gpio; in define_ddc_registers()
128 ddc->regs = &ddc_clk_regs[en]; in define_ddc_registers()
129 ddc->base.regs = &ddc_clk_regs[en].gpio; in define_ddc_registers()
136 ddc->shifts = &ddc_shift; in define_ddc_registers()
137 ddc->masks = &ddc_mask; in define_ddc_registers()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/gpio/dce80/
Dhw_factory_dce80.c120 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); in define_ddc_registers() local
124 ddc->regs = &ddc_data_regs[en]; in define_ddc_registers()
125 ddc->base.regs = &ddc_data_regs[en].gpio; in define_ddc_registers()
128 ddc->regs = &ddc_clk_regs[en]; in define_ddc_registers()
129 ddc->base.regs = &ddc_clk_regs[en].gpio; in define_ddc_registers()
136 ddc->shifts = &ddc_shift; in define_ddc_registers()
137 ddc->masks = &ddc_mask; in define_ddc_registers()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/gpio/dce110/
Dhw_factory_dce110.c116 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); in define_ddc_registers() local
120 ddc->regs = &ddc_data_regs[en]; in define_ddc_registers()
121 ddc->base.regs = &ddc_data_regs[en].gpio; in define_ddc_registers()
124 ddc->regs = &ddc_clk_regs[en]; in define_ddc_registers()
125 ddc->base.regs = &ddc_clk_regs[en].gpio; in define_ddc_registers()
132 ddc->shifts = &ddc_shift; in define_ddc_registers()
133 ddc->masks = &ddc_mask; in define_ddc_registers()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/gpio/dce120/
Dhw_factory_dce120.c133 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); in define_ddc_registers() local
137 ddc->regs = &ddc_data_regs[en]; in define_ddc_registers()
138 ddc->base.regs = &ddc_data_regs[en].gpio; in define_ddc_registers()
141 ddc->regs = &ddc_clk_regs[en]; in define_ddc_registers()
142 ddc->base.regs = &ddc_clk_regs[en].gpio; in define_ddc_registers()
149 ddc->shifts = &ddc_shift; in define_ddc_registers()
150 ddc->masks = &ddc_mask; in define_ddc_registers()

12345678910>>...20