Home
last modified time | relevance | path

Searched refs:cec_adapter (Results 1 – 25 of 46) sorted by relevance

12

/linux-5.19.10/include/media/
Dcec.h59 struct cec_adapter;
67 struct cec_adapter *adap;
93 struct cec_adapter *adap;
117 int (*adap_enable)(struct cec_adapter *adap, bool enable);
118 int (*adap_monitor_all_enable)(struct cec_adapter *adap, bool enable);
119 int (*adap_monitor_pin_enable)(struct cec_adapter *adap, bool enable);
120 int (*adap_log_addr)(struct cec_adapter *adap, u8 logical_addr);
121 void (*adap_configured)(struct cec_adapter *adap, bool configured);
122 int (*adap_transmit)(struct cec_adapter *adap, u8 attempts,
124 void (*adap_status)(struct cec_adapter *adap, struct seq_file *file);
[all …]
Dcec-pin.h37 int (*read)(struct cec_adapter *adap);
38 void (*low)(struct cec_adapter *adap);
39 void (*high)(struct cec_adapter *adap);
40 bool (*enable_irq)(struct cec_adapter *adap);
41 void (*disable_irq)(struct cec_adapter *adap);
42 void (*free)(struct cec_adapter *adap);
43 void (*status)(struct cec_adapter *adap, struct seq_file *file);
44 int (*read_hpd)(struct cec_adapter *adap);
45 int (*read_5v)(struct cec_adapter *adap);
48 int (*received)(struct cec_adapter *adap, struct cec_msg *msg);
[all …]
Dcec-notifier.h17 struct cec_adapter;
67 struct cec_adapter *adap);
76 struct cec_adapter *adap);
126 struct cec_adapter *adap) in cec_notifier_cec_adap_register()
133 struct cec_adapter *adap) in cec_notifier_cec_adap_unregister()
/linux-5.19.10/drivers/media/cec/core/
Dcec-priv.h31 #define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode)
44 int cec_monitor_all_cnt_inc(struct cec_adapter *adap);
45 void cec_monitor_all_cnt_dec(struct cec_adapter *adap);
46 int cec_monitor_pin_cnt_inc(struct cec_adapter *adap);
47 void cec_monitor_pin_cnt_dec(struct cec_adapter *adap);
50 void __cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, bool block);
51 int __cec_s_log_addrs(struct cec_adapter *adap,
53 int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg,
Dcec-adap.c26 static void cec_fill_msg_report_features(struct cec_adapter *adap,
30 static int cec_log_addr2idx(const struct cec_adapter *adap, u8 log_addr) in cec_log_addr2idx()
40 static unsigned int cec_log_addr2dev(const struct cec_adapter *adap, u8 log_addr) in cec_log_addr2dev()
137 static void cec_queue_event(struct cec_adapter *adap, in cec_queue_event()
150 void cec_queue_pin_cec_event(struct cec_adapter *adap, bool is_high, in cec_queue_pin_cec_event()
170 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts) in cec_queue_pin_hpd_event()
186 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts) in cec_queue_pin_5v_event()
261 static void cec_queue_msg_monitor(struct cec_adapter *adap, in cec_queue_msg_monitor()
280 static void cec_queue_msg_followers(struct cec_adapter *adap, in cec_queue_msg_followers()
294 static void cec_post_state_event(struct cec_adapter *adap) in cec_post_state_event()
[all …]
Dcec-api.c38 struct cec_adapter *adap = fh->adap; in cec_poll()
56 static bool cec_is_busy(const struct cec_adapter *adap, in cec_is_busy()
75 static long cec_adap_g_caps(struct cec_adapter *adap, in cec_adap_g_caps()
91 static long cec_adap_g_phys_addr(struct cec_adapter *adap, in cec_adap_g_phys_addr()
121 static long cec_adap_s_phys_addr(struct cec_adapter *adap, struct cec_fh *fh, in cec_adap_s_phys_addr()
144 static long cec_adap_g_log_addrs(struct cec_adapter *adap, in cec_adap_g_log_addrs()
167 static long cec_adap_s_log_addrs(struct cec_adapter *adap, struct cec_fh *fh, in cec_adap_s_log_addrs()
196 static long cec_adap_g_connector_info(struct cec_adapter *adap, in cec_adap_g_connector_info()
211 static long cec_transmit(struct cec_adapter *adap, struct cec_fh *fh, in cec_transmit()
290 static long cec_receive(struct cec_adapter *adap, struct cec_fh *fh, in cec_receive()
[all …]
Dcec-core.c169 static void cec_devnode_unregister(struct cec_adapter *adap) in cec_devnode_unregister()
205 struct cec_adapter *adap = sf->private; in cec_error_inj_write()
230 struct cec_adapter *adap = sf->private; in cec_error_inj_show()
249 struct cec_adapter *cec_allocate_adapter(const struct cec_adap_ops *ops, in cec_allocate_adapter()
253 struct cec_adapter *adap; in cec_allocate_adapter()
333 int cec_register_adapter(struct cec_adapter *adap, in cec_register_adapter()
394 void cec_unregister_adapter(struct cec_adapter *adap) in cec_unregister_adapter()
412 void cec_delete_adapter(struct cec_adapter *adap) in cec_delete_adapter()
Dcec-pin-priv.h176 struct cec_adapter *adap;
244 bool cec_pin_error_inj_parse_line(struct cec_adapter *adap, char *line);
245 int cec_pin_error_inj_show(struct cec_adapter *adap, struct seq_file *sf);
Dcec-pin.c845 struct cec_adapter *adap = pin->adap; in cec_pin_timer()
1034 struct cec_adapter *adap = _adap; in cec_pin_thread_func()
1121 static int cec_pin_adap_enable(struct cec_adapter *adap, bool enable) in cec_pin_adap_enable()
1156 static int cec_pin_adap_log_addr(struct cec_adapter *adap, u8 log_addr) in cec_pin_adap_log_addr()
1176 static int cec_pin_adap_transmit(struct cec_adapter *adap, u8 attempts, in cec_pin_adap_transmit()
1207 static void cec_pin_adap_status(struct cec_adapter *adap, in cec_pin_adap_status()
1271 static int cec_pin_adap_monitor_all_enable(struct cec_adapter *adap, in cec_pin_adap_monitor_all_enable()
1280 static void cec_pin_adap_free(struct cec_adapter *adap) in cec_pin_adap_free()
1293 static int cec_pin_received(struct cec_adapter *adap, struct cec_msg *msg) in cec_pin_received()
1302 void cec_pin_changed(struct cec_adapter *adap, bool value) in cec_pin_changed()
[all …]
Dcec-notifier.c28 struct cec_adapter *cec_adap;
149 struct cec_adapter *adap) in cec_notifier_cec_adap_register()
172 struct cec_adapter *adap) in cec_notifier_cec_adap_unregister()
/linux-5.19.10/drivers/media/cec/platform/cec-gpio/
Dcec-gpio.c15 struct cec_adapter *adap;
34 static int cec_gpio_read(struct cec_adapter *adap) in cec_gpio_read()
43 static void cec_gpio_high(struct cec_adapter *adap) in cec_gpio_high()
53 static void cec_gpio_low(struct cec_adapter *adap) in cec_gpio_low()
115 static bool cec_gpio_enable_irq(struct cec_adapter *adap) in cec_gpio_enable_irq()
123 static void cec_gpio_disable_irq(struct cec_adapter *adap) in cec_gpio_disable_irq()
130 static void cec_gpio_status(struct cec_adapter *adap, struct seq_file *file) in cec_gpio_status()
144 static int cec_gpio_read_hpd(struct cec_adapter *adap) in cec_gpio_read_hpd()
153 static int cec_gpio_read_5v(struct cec_adapter *adap) in cec_gpio_read_5v()
162 static void cec_gpio_free(struct cec_adapter *adap) in cec_gpio_free()
/linux-5.19.10/Documentation/driver-api/media/
Dcec-core.rst35 The struct cec_adapter represents the CEC adapter hardware. It is created by
39 struct cec_adapter *cec_allocate_adapter(const struct cec_adap_ops *ops, \
44 void cec_delete_adapter(struct cec_adapter *adap);
72 void *cec_get_drvdata(const struct cec_adapter *adap);
78 int cec_register_adapter(struct cec_adapter *adap, \
86 void cec_unregister_adapter(struct cec_adapter *adap);
108 int (*adap_enable)(struct cec_adapter *adap, bool enable);
109 int (*adap_monitor_all_enable)(struct cec_adapter *adap, bool enable);
110 int (*adap_monitor_pin_enable)(struct cec_adapter *adap, bool enable);
111 int (*adap_log_addr)(struct cec_adapter *adap, u8 logical_addr);
[all …]
/linux-5.19.10/drivers/media/test-drivers/vivid/
Dvivid-cec.c19 struct cec_adapter *adap;
24 struct cec_adapter *adap, u8 dest) in find_dest_adap()
230 static int vivid_cec_adap_enable(struct cec_adapter *adap, bool enable) in vivid_cec_adap_enable()
236 static int vivid_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr) in vivid_cec_adap_log_addr()
241 static int vivid_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in vivid_cec_adap_transmit()
264 static int vivid_received(struct cec_adapter *adap, struct cec_msg *msg) in vivid_received()
314 struct cec_adapter *vivid_cec_alloc_adap(struct vivid_dev *dev, in vivid_cec_alloc_adap()
Dvivid-cec.h9 struct cec_adapter *vivid_cec_alloc_adap(struct vivid_dev *dev,
/linux-5.19.10/drivers/gpu/drm/display/
Ddrm_dp_cec.c92 static int drm_dp_cec_adap_enable(struct cec_adapter *adap, bool enable) in drm_dp_cec_adap_enable()
102 static int drm_dp_cec_adap_log_addr(struct cec_adapter *adap, u8 addr) in drm_dp_cec_adap_log_addr()
118 static int drm_dp_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in drm_dp_cec_adap_transmit()
136 static int drm_dp_cec_adap_monitor_all_enable(struct cec_adapter *adap, in drm_dp_cec_adap_monitor_all_enable()
157 static void drm_dp_cec_adap_status(struct cec_adapter *adap, in drm_dp_cec_adap_status()
191 struct cec_adapter *adap = aux->cec.adap; in drm_dp_cec_received()
214 struct cec_adapter *adap = aux->cec.adap; in drm_dp_cec_handle_irq()
/linux-5.19.10/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-cec.c58 struct cec_adapter *adap;
77 static int dw_hdmi_cec_log_addr(struct cec_adapter *adap, u8 logical_addr) in dw_hdmi_cec_log_addr()
92 static int dw_hdmi_cec_transmit(struct cec_adapter *adap, u8 attempts, in dw_hdmi_cec_transmit()
122 struct cec_adapter *adap = data; in dw_hdmi_cec_hardirq()
171 struct cec_adapter *adap = data; in dw_hdmi_cec_thread()
186 static int dw_hdmi_cec_enable(struct cec_adapter *adap, bool enable) in dw_hdmi_cec_enable()
/linux-5.19.10/drivers/gpu/drm/omapdrm/dss/
Dhdmi4_cec.c122 static bool hdmi_cec_clear_tx_fifo(struct cec_adapter *adap) in hdmi_cec_clear_tx_fifo()
138 static bool hdmi_cec_clear_rx_fifo(struct cec_adapter *adap) in hdmi_cec_clear_rx_fifo()
155 static int hdmi_cec_adap_enable(struct cec_adapter *adap, bool enable) in hdmi_cec_adap_enable()
244 static int hdmi_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr) in hdmi_cec_adap_log_addr()
266 static int hdmi_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in hdmi_cec_adap_transmit()
/linux-5.19.10/drivers/media/cec/platform/tegra/
Dtegra_cec.c36 struct cec_adapter *adap;
187 static int tegra_cec_adap_enable(struct cec_adapter *adap, bool enable) in tegra_cec_adap_enable()
250 static int tegra_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr) in tegra_cec_adap_log_addr()
264 static int tegra_cec_adap_monitor_all_enable(struct cec_adapter *adap, in tegra_cec_adap_monitor_all_enable()
278 static int tegra_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in tegra_cec_adap_transmit()
/linux-5.19.10/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c36 struct cec_adapter *adap;
92 static int cros_ec_cec_set_log_addr(struct cec_adapter *adap, u8 logical_addr) in cros_ec_cec_set_log_addr()
117 static int cros_ec_cec_transmit(struct cec_adapter *adap, u8 attempts, in cros_ec_cec_transmit()
142 static int cros_ec_cec_adap_enable(struct cec_adapter *adap, bool enable) in cros_ec_cec_adap_enable()
/linux-5.19.10/drivers/media/cec/platform/sti/
Dstih-cec.c123 struct cec_adapter *adap;
132 static int stih_cec_adap_enable(struct cec_adapter *adap, bool enable) in stih_cec_adap_enable()
188 static int stih_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr) in stih_cec_adap_log_addr()
203 static int stih_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in stih_cec_adap_transmit()
/linux-5.19.10/drivers/media/cec/usb/rainshadow/
Drainshadow-cec.c43 struct cec_adapter *adap;
258 static int rain_cec_adap_enable(struct cec_adapter *adap, bool enable) in rain_cec_adap_enable()
263 static int rain_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr) in rain_cec_adap_log_addr()
274 static int rain_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in rain_cec_adap_transmit()
/linux-5.19.10/drivers/media/cec/platform/stm32/
Dstm32-cec.c67 struct cec_adapter *adap;
173 static int stm32_cec_adap_enable(struct cec_adapter *adap, bool enable) in stm32_cec_adap_enable()
194 static int stm32_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr) in stm32_cec_adap_log_addr()
215 static int stm32_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in stm32_cec_adap_transmit()
/linux-5.19.10/drivers/media/cec/platform/s5p/
Ds5p_cec.c36 static int s5p_cec_adap_enable(struct cec_adapter *adap, bool enable) in s5p_cec_adap_enable()
63 static int s5p_cec_adap_log_addr(struct cec_adapter *adap, u8 addr) in s5p_cec_adap_log_addr()
71 static int s5p_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, in s5p_cec_adap_transmit()
/linux-5.19.10/drivers/media/cec/platform/seco/
Dseco-cec.c27 struct cec_adapter *cec_adap;
92 static int secocec_adap_enable(struct cec_adapter *adap, bool enable) in secocec_adap_enable()
139 static int secocec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr) in secocec_adap_log_addr()
170 static int secocec_adap_transmit(struct cec_adapter *adap, u8 attempts, in secocec_adap_transmit()
223 static void secocec_tx_done(struct cec_adapter *adap, u16 status_val) in secocec_tx_done()
241 static void secocec_rx_done(struct cec_adapter *adap, u16 status_val) in secocec_rx_done()
/linux-5.19.10/drivers/gpu/drm/i2c/
Dtda9950.c65 struct cec_adapter *adap;
215 static int tda9950_cec_transmit(struct cec_adapter *adap, u8 attempts, in tda9950_cec_transmit()
233 static int tda9950_cec_adap_log_addr(struct cec_adapter *adap, u8 addr) in tda9950_cec_adap_log_addr()
324 static int tda9950_cec_adap_enable(struct cec_adapter *adap, bool enable) in tda9950_cec_adap_enable()

12