Lines Matching refs:adap
67 struct cec_adapter *adap; member
93 struct cec_adapter *adap; member
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 int (*adap_transmit)(struct cec_adapter *adap, u8 attempts,
123 void (*adap_status)(struct cec_adapter *adap, struct seq_file *file);
124 void (*adap_free)(struct cec_adapter *adap);
127 int (*error_inj_show)(struct cec_adapter *adap, struct seq_file *sf);
128 bool (*error_inj_parse_line)(struct cec_adapter *adap, char *line);
131 int (*received)(struct cec_adapter *adap, struct cec_msg *msg);
264 static inline void *cec_get_drvdata(const struct cec_adapter *adap) in cec_get_drvdata() argument
266 return adap->priv; in cec_get_drvdata()
269 static inline bool cec_has_log_addr(const struct cec_adapter *adap, u8 log_addr) in cec_has_log_addr() argument
271 return adap->log_addrs.log_addr_mask & (1 << log_addr); in cec_has_log_addr()
274 static inline bool cec_is_sink(const struct cec_adapter *adap) in cec_is_sink() argument
276 return adap->phys_addr == 0; in cec_is_sink()
286 static inline bool cec_is_registered(const struct cec_adapter *adap) in cec_is_registered() argument
288 return adap && adap->devnode.registered; in cec_is_registered()
300 int cec_register_adapter(struct cec_adapter *adap, struct device *parent);
301 void cec_unregister_adapter(struct cec_adapter *adap);
302 void cec_delete_adapter(struct cec_adapter *adap);
304 int cec_s_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *log_addrs,
306 void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr,
308 void cec_s_phys_addr_from_edid(struct cec_adapter *adap,
310 void cec_s_conn_info(struct cec_adapter *adap,
312 int cec_transmit_msg(struct cec_adapter *adap, struct cec_msg *msg,
316 void cec_transmit_done_ts(struct cec_adapter *adap, u8 status,
320 static inline void cec_transmit_done(struct cec_adapter *adap, u8 status, in cec_transmit_done() argument
324 cec_transmit_done_ts(adap, status, arb_lost_cnt, nack_cnt, in cec_transmit_done()
332 void cec_transmit_attempt_done_ts(struct cec_adapter *adap,
335 static inline void cec_transmit_attempt_done(struct cec_adapter *adap, in cec_transmit_attempt_done() argument
338 cec_transmit_attempt_done_ts(adap, status, ktime_get()); in cec_transmit_attempt_done()
341 void cec_received_msg_ts(struct cec_adapter *adap,
344 static inline void cec_received_msg(struct cec_adapter *adap, in cec_received_msg() argument
347 cec_received_msg_ts(adap, msg, ktime_get()); in cec_received_msg()
359 void cec_queue_pin_cec_event(struct cec_adapter *adap, bool is_high,
370 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
380 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
401 static inline int cec_register_adapter(struct cec_adapter *adap, in cec_register_adapter() argument
407 static inline void cec_unregister_adapter(struct cec_adapter *adap) in cec_unregister_adapter() argument
411 static inline void cec_delete_adapter(struct cec_adapter *adap) in cec_delete_adapter() argument
415 static inline void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, in cec_s_phys_addr() argument
420 static inline void cec_s_phys_addr_from_edid(struct cec_adapter *adap, in cec_s_phys_addr_from_edid() argument
433 static inline void cec_s_conn_info(struct cec_adapter *adap, in cec_s_conn_info() argument
455 static inline void cec_phys_addr_invalidate(struct cec_adapter *adap) in cec_phys_addr_invalidate() argument
457 cec_s_phys_addr(adap, CEC_PHYS_ADDR_INVALID, false); in cec_phys_addr_invalidate()