Lines Matching refs:device

121 typedef int (*tcpc_vconn_control_cb_t)(const struct device *dev, enum tc_cc_polarity pol,
123 typedef int (*tcpc_vconn_discharge_cb_t)(const struct device *dev, enum tc_cc_polarity pol,
125 typedef void (*tcpc_alert_handler_cb_t)(const struct device *dev, void *data,
129 int (*init)(const struct device *dev);
130 int (*get_cc)(const struct device *dev, enum tc_cc_voltage_state *cc1,
132 int (*select_rp_value)(const struct device *dev, enum tc_rp_value rp);
133 int (*get_rp_value)(const struct device *dev, enum tc_rp_value *rp);
134 int (*set_cc)(const struct device *dev, enum tc_cc_pull pull);
135 void (*set_vconn_discharge_cb)(const struct device *dev, tcpc_vconn_discharge_cb_t cb);
136 void (*set_vconn_cb)(const struct device *dev, tcpc_vconn_control_cb_t vconn_cb);
137 int (*vconn_discharge)(const struct device *dev, bool enable);
138 int (*set_vconn)(const struct device *dev, bool enable);
139 int (*set_roles)(const struct device *dev, enum tc_power_role power_role,
141 int (*get_rx_pending_msg)(const struct device *dev, struct pd_msg *msg);
142 int (*set_rx_enable)(const struct device *dev, bool enable);
143 int (*set_cc_polarity)(const struct device *dev, enum tc_cc_polarity polarity);
144 int (*transmit_data)(const struct device *dev, struct pd_msg *msg);
145 int (*dump_std_reg)(const struct device *dev);
146 void (*alert_handler_cb)(const struct device *dev, void *data, enum tcpc_alert alert);
147 int (*get_status_register)(const struct device *dev, enum tcpc_status_reg reg,
149 int (*clear_status_register)(const struct device *dev, enum tcpc_status_reg reg,
151 int (*mask_status_register)(const struct device *dev, enum tcpc_status_reg reg,
153 int (*set_debug_accessory)(const struct device *dev, bool enable);
154 int (*set_debug_detach)(const struct device *dev);
155 int (*set_drp_toggle)(const struct device *dev, bool enable);
156 int (*get_snk_ctrl)(const struct device *dev);
157 int (*set_snk_ctrl)(const struct device *dev, bool enable);
158 int (*get_src_ctrl)(const struct device *dev);
159 int (*set_src_ctrl)(const struct device *dev, bool enable);
160 int (*get_chip_info)(const struct device *dev, struct tcpc_chip_info *chip_info);
161 int (*set_low_power_mode)(const struct device *dev, bool enable);
162 int (*sop_prime_enable)(const struct device *dev, bool enable);
163 int (*set_bist_test_mode)(const struct device *dev, bool enable);
164 int (*set_alert_handler_cb)(const struct device *dev, tcpc_alert_handler_cb_t handler,
234 static inline int tcpc_init(const struct device *dev) in tcpc_init()
254 static inline int tcpc_get_cc(const struct device *dev, enum tc_cc_voltage_state *cc1, in tcpc_get_cc()
276 static inline int tcpc_select_rp_value(const struct device *dev, enum tc_rp_value rp) in tcpc_select_rp_value()
297 static inline int tcpc_get_rp_value(const struct device *dev, enum tc_rp_value *rp) in tcpc_get_rp_value()
317 static inline int tcpc_set_cc(const struct device *dev, enum tc_cc_pull pull) in tcpc_set_cc()
336 static inline void tcpc_set_vconn_cb(const struct device *dev, tcpc_vconn_control_cb_t vconn_cb) in tcpc_set_vconn_cb()
355 static inline void tcpc_set_vconn_discharge_cb(const struct device *dev, in tcpc_set_vconn_discharge_cb()
378 static inline int tcpc_vconn_discharge(const struct device *dev, bool enable) in tcpc_vconn_discharge()
402 static inline int tcpc_set_vconn(const struct device *dev, bool enable) in tcpc_set_vconn()
426 static inline int tcpc_set_roles(const struct device *dev, enum tc_power_role power_role, in tcpc_set_roles()
451 static inline int tcpc_get_rx_pending_msg(const struct device *dev, struct pd_msg *buf) in tcpc_get_rx_pending_msg()
471 static inline int tcpc_set_rx_enable(const struct device *dev, bool enable) in tcpc_set_rx_enable()
491 static inline int tcpc_set_cc_polarity(const struct device *dev, enum tc_cc_polarity polarity) in tcpc_set_cc_polarity()
510 static inline int tcpc_transmit_data(const struct device *dev, struct pd_msg *msg) in tcpc_transmit_data()
530 static inline int tcpc_dump_std_reg(const struct device *dev) in tcpc_dump_std_reg()
554 static inline int tcpc_set_alert_handler_cb(const struct device *dev, in tcpc_set_alert_handler_cb()
575 static inline int tcpc_get_status_register(const struct device *dev, enum tcpc_status_reg reg, in tcpc_get_status_register()
599 static inline int tcpc_clear_status_register(const struct device *dev, enum tcpc_status_reg reg, in tcpc_clear_status_register()
623 static inline int tcpc_mask_status_register(const struct device *dev, enum tcpc_status_reg reg, in tcpc_mask_status_register()
645 static inline int tcpc_set_debug_accessory(const struct device *dev, bool enable) in tcpc_set_debug_accessory()
665 static inline int tcpc_set_debug_detach(const struct device *dev) in tcpc_set_debug_detach()
686 static inline int tcpc_set_drp_toggle(const struct device *dev, bool enable) in tcpc_set_drp_toggle()
706 static inline int tcpc_get_snk_ctrl(const struct device *dev) in tcpc_get_snk_ctrl()
725 static inline int tcpc_set_snk_ctrl(const struct device *dev, bool enable) in tcpc_set_snk_ctrl()
745 static inline int tcpc_get_src_ctrl(const struct device *dev) in tcpc_get_src_ctrl()
764 static inline int tcpc_set_src_ctrl(const struct device *dev, bool enable) in tcpc_set_src_ctrl()
786 static inline int tcpc_set_bist_test_mode(const struct device *dev, bool enable) in tcpc_set_bist_test_mode()
807 static inline int tcpc_get_chip_info(const struct device *dev, struct tcpc_chip_info *chip_info) in tcpc_get_chip_info()
828 static inline int tcpc_set_low_power_mode(const struct device *dev, bool enable) in tcpc_set_low_power_mode()
849 static inline int tcpc_sop_prime_enable(const struct device *dev, bool enable) in tcpc_sop_prime_enable()