Home
last modified time | relevance | path

Searched refs:cec (Results 1 – 25 of 205) sorted by relevance

123456789

/openbmc/linux/drivers/media/cec/platform/cec-gpio/
H A Dcec-gpio.c67 cec_queue_pin_hpd_event(cec->adap, cec->hpd_is_high, cec->hpd_ts); in cec_hpd_gpio_irq_handler_thread()
88 cec_queue_pin_5v_event(cec->adap, cec->v5_is_high, cec->v5_ts); in cec_5v_gpio_irq_handler_thread()
187 cec = devm_kzalloc(dev, sizeof(*cec), GFP_KERNEL); in cec_gpio_probe()
188 if (!cec) in cec_gpio_probe()
191 cec->dev = dev; in cec_gpio_probe()
196 cec->cec_irq = gpiod_to_irq(cec->cec_gpio); in cec_gpio_probe()
213 cec->adap->name, cec); in cec_gpio_probe()
218 cec->hpd_irq = gpiod_to_irq(cec->hpd_gpio); in cec_gpio_probe()
230 cec->v5_irq = gpiod_to_irq(cec->v5_gpio); in cec_gpio_probe()
258 cec_notifier_cec_adap_unregister(cec->notifier, cec->adap); in cec_gpio_probe()
[all …]
/openbmc/linux/drivers/media/cec/platform/s5p/
H A Ds5p_cec.c46 s5p_cec_reset(cec); in s5p_cec_adap_enable()
121 s5p_cec_get_rx_buf(cec, cec->msg.len, in s5p_cec_irq_handler()
122 cec->msg.msg); in s5p_cec_irq_handler()
163 cec_received_msg(cec->adap, &cec->msg); in s5p_cec_irq_handler_thread()
192 cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL); in s5p_cec_probe()
193 if (!cec) in s5p_cec_probe()
196 cec->dev = dev; in s5p_cec_probe()
199 if (cec->irq < 0) in s5p_cec_probe()
200 return cec->irq; in s5p_cec_probe()
245 cec_notifier_cec_adap_unregister(cec->notifier, cec->adap); in s5p_cec_probe()
[all …]
H A Dexynos_hdmi_cecctrl.c54 reg = readb(cec->reg + S5P_CEC_RX_CTRL); in s5p_cec_enable_rx()
56 writeb(reg, cec->reg + S5P_CEC_RX_CTRL); in s5p_cec_enable_rx()
63 reg = readb(cec->reg + S5P_CEC_IRQ_MASK); in s5p_cec_mask_rx_interrupts()
106 reg = readb(cec->reg + 0xc4); in s5p_cec_reset()
108 writeb(reg, cec->reg + 0xc4); in s5p_cec_reset()
122 reg = readb(cec->reg + 0xc4); in s5p_cec_rx_reset()
124 writeb(reg, cec->reg + 0xc4); in s5p_cec_rx_reset()
151 dev_dbg(cec->dev, "Broadcast"); in s5p_cec_copy_packet()
154 dev_dbg(cec->dev, "No Broadcast"); in s5p_cec_copy_packet()
186 cec->reg + S5P_CEC_IRQ_CLEAR); in s5p_clr_pending_tx()
[all …]
H A Dexynos_hdmi_cec.h16 void s5p_cec_set_divider(struct s5p_cec_dev *cec);
17 void s5p_cec_enable_rx(struct s5p_cec_dev *cec);
18 void s5p_cec_mask_rx_interrupts(struct s5p_cec_dev *cec);
20 void s5p_cec_mask_tx_interrupts(struct s5p_cec_dev *cec);
22 void s5p_cec_reset(struct s5p_cec_dev *cec);
23 void s5p_cec_tx_reset(struct s5p_cec_dev *cec);
24 void s5p_cec_rx_reset(struct s5p_cec_dev *cec);
25 void s5p_cec_threshold(struct s5p_cec_dev *cec);
29 u32 s5p_cec_get_status(struct s5p_cec_dev *cec);
30 void s5p_clr_pending_tx(struct s5p_cec_dev *cec);
[all …]
/openbmc/linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-cec.c73 cec->ops->write(cec->hdmi, val, offset); in dw_hdmi_write()
78 return cec->ops->read(cec->hdmi, offset); in dw_hdmi_read()
90 dw_hdmi_write(cec, cec->addresses & 255, HDMI_CEC_ADDR_L); in dw_hdmi_cec_log_addr()
91 dw_hdmi_write(cec, cec->addresses >> 8, HDMI_CEC_ADDR_H); in dw_hdmi_cec_log_addr()
199 cec->ops->disable(cec->hdmi); in dw_hdmi_cec_enable()
209 cec->ops->enable(cec->hdmi); in dw_hdmi_cec_enable()
247 cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL); in dw_hdmi_cec_probe()
248 if (!cec) in dw_hdmi_cec_probe()
307 cec_notifier_cec_adap_unregister(cec->notify, cec->adap); in dw_hdmi_cec_remove()
321 dw_hdmi_write(cec, cec->regs_mask, HDMI_CEC_MASK); in dw_hdmi_cec_resume()
[all …]
/openbmc/linux/drivers/media/cec/platform/tegra/
H A Dtegra_cec.c77 if (cec->tx_done) { in tegra_cec_irq_thread_handler()
78 cec_transmit_attempt_done(cec->adap, cec->tx_status); in tegra_cec_irq_thread_handler()
81 if (cec->rx_done) { in tegra_cec_irq_thread_handler()
88 cec->rx_buf_cnt = 0; in tegra_cec_irq_thread_handler()
114 cec->tx_done = true; in tegra_cec_irq_handler()
153 if (cec->tx_buf_cur == cec->tx_buf_cnt) { in tegra_cec_irq_handler()
158 cec->tx_buf[cec->tx_buf_cur++]); in tegra_cec_irq_handler()
177 cec->rx_buf[cec->rx_buf_cnt++] = v & 0xff; in tegra_cec_irq_handler()
331 if (!cec) in tegra_cec_probe()
416 cec_notifier_cec_adap_unregister(cec->notifier, cec->adap); in tegra_cec_probe()
[all …]
/openbmc/linux/drivers/media/cec/platform/stm32/
H A Dstm32-cec.c111 if (cec->tx_cnt < cec->tx_msg.len) in stm32_tx_done()
113 cec->tx_msg.msg[cec->tx_cnt++]); in stm32_tx_done()
116 if (cec->tx_cnt == cec->tx_msg.len) in stm32_tx_done()
135 cec->rx_msg.msg[cec->rx_msg.len++] = val & 0xFF; in stm32_rx_done()
139 cec_received_msg(cec->adap, &cec->rx_msg); in stm32_rx_done()
149 stm32_tx_done(cec, cec->irq_status); in stm32_cec_irq_thread()
152 stm32_rx_done(cec, cec->irq_status); in stm32_cec_irq_thread()
163 regmap_read(cec->regmap, CEC_ISR, &cec->irq_status); in stm32_cec_irq_handler()
234 regmap_write(cec->regmap, CEC_TXDR, cec->tx_msg.msg[0]); in stm32_cec_adap_transmit()
261 cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL); in stm32_cec_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_cec.c101 cec->hdmi_dev = hdmi_dev; in mtk_cec_set_hpd_event()
175 if (cec->hpd != hpd) { in mtk_cec_htplg_isr_thread()
177 cec->hpd, hpd); in mtk_cec_htplg_isr_thread()
178 cec->hpd = hpd; in mtk_cec_htplg_isr_thread()
187 struct mtk_cec *cec; in mtk_cec_probe() local
191 cec = devm_kzalloc(dev, sizeof(*cec), GFP_KERNEL); in mtk_cec_probe()
192 if (!cec) in mtk_cec_probe()
200 if (IS_ERR(cec->regs)) { in mtk_cec_probe()
207 if (IS_ERR(cec->clk)) { in mtk_cec_probe()
214 if (cec->irq < 0) in mtk_cec_probe()
[all …]
/openbmc/linux/drivers/media/cec/platform/sti/
H A Dstih-cec.c273 stih_tx_done(cec, cec->irq_status); in stih_cec_irq_handler_thread()
276 stih_rx_done(cec, cec->irq_status); in stih_cec_irq_handler_thread()
287 cec->irq_status = readl(cec->regs + CEC_STATUS); in stih_cec_irq_handler()
288 writel(cec->irq_status, cec->regs + CEC_STATUS); in stih_cec_irq_handler()
311 cec = devm_kzalloc(dev, sizeof(*cec), GFP_KERNEL); in stih_cec_probe()
312 if (!cec) in stih_cec_probe()
315 cec->dev = dev; in stih_cec_probe()
322 if (cec->irq < 0) in stih_cec_probe()
323 return cec->irq; in stih_cec_probe()
360 cec_notifier_cec_adap_unregister(cec->notifier, cec->adap); in stih_cec_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/display/
H A Ddrm_dp_cec.c251 mutex_lock(&aux->cec.lock); in drm_dp_cec_irq()
252 if (!aux->cec.adap) in drm_dp_cec_irq()
290 aux->cec.adap = NULL; in drm_dp_cec_unregister_work()
329 aux->cec.adap = NULL; in drm_dp_cec_set_edid()
338 if (aux->cec.adap) { in drm_dp_cec_set_edid()
357 aux->cec.adap = NULL; in drm_dp_cec_set_edid()
366 aux->cec.adap = NULL; in drm_dp_cec_set_edid()
392 if (!aux->cec.adap) in drm_dp_cec_unset_edid()
430 WARN_ON(aux->cec.adap); in drm_dp_cec_register_connector()
445 if (!aux->cec.adap) in drm_dp_cec_unregister_connector()
[all …]
/openbmc/linux/drivers/media/cec/core/
H A DMakefile2 cec-objs := cec-core.o cec-adap.o cec-api.o
5 cec-objs += cec-notifier.o
9 cec-objs += cec-pin.o
13 cec-objs += cec-pin-error-inj.o
16 obj-$(CONFIG_CEC_CORE) += cec.o
/openbmc/linux/Documentation/userspace-api/media/cec/
H A Dcec-funcs.rst13 cec-func-open
14 cec-func-close
15 cec-func-ioctl
16 cec-func-poll
17 cec-ioc-adap-g-caps
18 cec-ioc-adap-g-log-addrs
19 cec-ioc-adap-g-phys-addr
20 cec-ioc-adap-g-conn-info
21 cec-ioc-dqevent
22 cec-ioc-g-mode
[all …]
H A Dcec-func-ioctl.rst7 cec ioctl()
13 cec-ioctl - Control a cec device
31 CEC ioctl request code as defined in the cec.h header file, for
40 The :c:func:`ioctl()` function manipulates cec device parameters. The
43 The ioctl ``request`` code specifies the cec function to be called. It
47 Macros and structures definitions specifying cec ioctl requests and
48 their parameters are located in the cec.h header file. All cec ioctl
50 :ref:`cec-user-func`.
/openbmc/linux/Documentation/devicetree/bindings/media/cec/
H A Dnvidia,tegra114-cec.yaml4 $id: http://devicetree.org/schemas/media/cec/nvidia,tegra114-cec.yaml#
13 - $ref: cec-common.yaml#
18 - nvidia,tegra114-cec
19 - nvidia,tegra124-cec
20 - nvidia,tegra210-cec
27 - const: cec
50 cec@70015000 {
51 compatible = "nvidia,tegra124-cec";
55 clock-names = "cec";
H A Dst,stm32-cec.yaml4 $id: http://devicetree.org/schemas/media/cec/st,stm32-cec.yaml#
14 const: st,stm32-cec
29 - const: cec
30 - const: hdmi-cec
45 cec: cec@40006c00 {
46 compatible = "st,stm32-cec";
50 clock-names = "cec", "hdmi-cec";
H A Dst,stih-cec.yaml4 $id: http://devicetree.org/schemas/media/cec/st,stih-cec.yaml#
13 - $ref: cec-common.yaml#
17 const: st,stih-cec
24 - const: cec-clk
31 - const: cec-irq
54 cec@94a087c {
55 compatible = "st,stih-cec";
59 clock-names = "cec-clk";
62 interrupt-names = "cec-irq";
H A Damlogic,meson-gx-ao-cec.yaml5 $id: http://devicetree.org/schemas/media/cec/amlogic,meson-gx-ao-cec.yaml#
20 - amlogic,meson-gx-ao-cec # GXBB, GXL, GXM, G12A and SM1 AO_CEC_A module
21 - amlogic,meson-g12a-ao-cec # G12A AO_CEC_B module
22 - amlogic,meson-sm1-ao-cec # SM1 AO_CEC_B module
37 - $ref: cec-common.yaml#
43 - amlogic,meson-gx-ao-cec
60 - amlogic,meson-g12a-ao-cec
61 - amlogic,meson-sm1-ao-cec
85 cec_AO: cec@100 {
86 compatible = "amlogic,meson-gx-ao-cec";
H A Dcec-gpio.yaml4 $id: http://devicetree.org/schemas/media/cec/cec-gpio.yaml#
23 const: cec-gpio
25 cec-gpios:
45 - cec-gpios
48 - $ref: cec-common.yaml#
69 cec {
70 compatible = "cec-gpio";
71 cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
H A Dsamsung,s5p-cec.yaml4 $id: http://devicetree.org/schemas/media/cec/samsung,s5p-cec.yaml#
14 - $ref: cec-common.yaml#
18 const: samsung,s5p-cec
54 cec@101b0000 {
55 compatible = "samsung,s5p-cec";
/openbmc/linux/drivers/media/cec/platform/seco/
H A Dseco-cec.c95 struct device *dev = cec->dev; in secocec_adap_enable()
244 struct device *dev = cec->dev; in secocec_rx_done()
337 struct device *dev = cec->dev; in secocec_ir_probe()
343 if (!cec->ir) in secocec_ir_probe()
346 snprintf(cec->ir_input_phys, sizeof(cec->ir_input_phys), in secocec_ir_probe()
350 cec->ir->input_phys = cec->ir_input_phys; in secocec_ir_probe()
352 cec->ir->input_id.vendor = 0; in secocec_ir_probe()
357 cec->ir->priv = cec; in secocec_ir_probe()
386 cec->ir = NULL; in secocec_ir_probe()
408 if (!cec->ir) in secocec_ir_rx()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/display/mediatek/
H A Dmediatek,cec.yaml4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,cec.yaml#
19 - mediatek,mt7623-cec
20 - mediatek,mt8167-cec
21 - mediatek,mt8173-cec
45 cec: cec@10013000 {
46 compatible = "mediatek,mt8173-cec";
/openbmc/linux/Documentation/admin-guide/media/
H A Dcec.rst20 - amlogic (meson ao-cec and ao-cec-g12a)
108 cec-ctl -S # Show the CEC topology
249 cec-ctl -p0.0.0.0 --tv
253 sudo cec-ctl -M
257 cec-ctl --playback
262 cec-ctl -t0 --image-view-on
345 cec@6 {
346 compatible = "cec-gpio";
352 cec@7 {
353 compatible = "cec-gpio";
[all …]
/openbmc/linux/Documentation/devicetree/bindings/media/i2c/
H A Dadv7604.yaml36 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
37 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
38 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
39 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
40 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
41 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
42 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
43 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
44 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
45 - enum: [ avlink, cec, infoframe, esdp, dpp, afe, rep, edid, hdmi, test, cp, vdp ]
[all …]
H A Dadv748x.yaml38 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
39 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
40 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
41 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
42 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
43 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
44 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
45 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
46 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
47 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libcec/libcec/
H A D0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch22 … DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}/cec)
23 …N ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}/cec)
24 install(FILES ${CMAKE_BINARY_DIR}/src/libcec/cec.py
28 - DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/cec)
29 + DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/cec)
34 install(FILES ${CMAKE_BINARY_DIR}/src/libcec/cec.py

123456789