Lines Matching defs:port
457 struct tcpm_port *port; member
471 #define tcpm_port_is_sink(port) \ argument
479 #define tcpm_port_is_source(port) \ argument
485 #define tcpm_port_is_debug(port) \ argument
488 #define tcpm_port_is_audio(port) \ argument
491 #define tcpm_port_is_audio_detached(port) \ argument
495 #define tcpm_try_snk(port) \ argument
499 #define tcpm_try_src(port) \ argument
503 #define tcpm_data_role_for_source(port) \ argument
507 #define tcpm_data_role_for_sink(port) \ argument
511 static enum tcpm_state tcpm_default_state(struct tcpm_port *port) in tcpm_default_state()
525 static bool tcpm_port_is_disconnected(struct tcpm_port *port) in tcpm_port_is_disconnected()
535 static void tcpm_set_cc(struct tcpm_port *port, enum typec_cc_status cc) in tcpm_set_cc()
547 static enum typec_cc_status tcpm_rp_cc(struct tcpm_port *port) in tcpm_rp_cc()
575 static int tcpm_pd_transmit(struct tcpm_port *port, in tcpm_pd_transmit()
619 void tcpm_pd_transmit_complete(struct tcpm_port *port, in tcpm_pd_transmit_complete()
629 static int tcpm_set_polarity(struct tcpm_port *port, in tcpm_set_polarity()
645 static int tcpm_set_vconn(struct tcpm_port *port, bool enable) in tcpm_set_vconn()
658 static u32 tcpm_get_current_limit(struct tcpm_port *port) in tcpm_get_current_limit()
683 static int tcpm_set_current_limit(struct tcpm_port *port, u32 max_ma, u32 mv) in tcpm_set_current_limit()
698 static int tcpm_set_attached_state(struct tcpm_port *port, bool attached) in tcpm_set_attached_state()
704 static int tcpm_set_roles(struct tcpm_port *port, bool attached, in tcpm_set_roles()
743 static int tcpm_pd_send_source_caps(struct tcpm_port *port) in tcpm_pd_send_source_caps()
772 static int tcpm_pd_send_sink_caps(struct tcpm_port *port) in tcpm_pd_send_sink_caps()
805 struct tcpm_port *port = data; in tcpm_timer_irq() local
812 static void tcpm_timer_init(struct tcpm_port *port, uint32_t ms) in tcpm_timer_init()
831 static void tcpm_timer_uninit(struct tcpm_port *port) in tcpm_timer_uninit()
839 static void mod_tcpm_delayed_work(struct tcpm_port *port, unsigned int delay_ms) in mod_tcpm_delayed_work()
849 static void tcpm_set_state(struct tcpm_port *port, enum tcpm_state state, in tcpm_set_state()
879 static void tcpm_set_state_cond(struct tcpm_port *port, enum tcpm_state state, in tcpm_set_state_cond()
892 static void tcpm_queue_message(struct tcpm_port *port, in tcpm_queue_message()
936 static enum pdo_err tcpm_caps_err(struct tcpm_port *port, const u32 *pdo, in tcpm_caps_err()
1012 static int tcpm_validate_caps(struct tcpm_port *port, const u32 *pdo, in tcpm_validate_caps()
1028 static inline enum tcpm_state ready_state(struct tcpm_port *port) in ready_state()
1073 static void tcpm_pd_data_request(struct tcpm_port *port, in tcpm_pd_data_request()
1158 static void tcpm_pd_ctrl_request(struct tcpm_port *port, in tcpm_pd_ctrl_request()
1361 static void tcpm_pd_rx_handler(struct tcpm_port *port, in tcpm_pd_rx_handler()
1407 void tcpm_pd_receive(struct tcpm_port *port, const struct pd_message *msg) in tcpm_pd_receive()
1422 static int tcpm_pd_send_control(struct tcpm_port *port, in tcpm_pd_send_control()
1441 static bool tcpm_send_queued_message(struct tcpm_port *port) in tcpm_send_queued_message()
1484 static int tcpm_pd_check_request(struct tcpm_port *port) in tcpm_pd_check_request()
1541 static int tcpm_pd_select_pdo(struct tcpm_port *port, int *sink_pdo, in tcpm_pd_select_pdo()
1639 static unsigned int tcpm_pd_select_pps_apdo(struct tcpm_port *port) in tcpm_pd_select_pps_apdo()
1735 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request()
1815 static int tcpm_pd_send_request(struct tcpm_port *port) in tcpm_pd_send_request()
1836 static int tcpm_pd_build_pps_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_pps_request()
1912 static int tcpm_pd_send_pps_request(struct tcpm_port *port) in tcpm_pd_send_pps_request()
1933 static int tcpm_set_vbus(struct tcpm_port *port, bool enable) in tcpm_set_vbus()
1950 static int tcpm_set_charge(struct tcpm_port *port, bool charge) in tcpm_set_charge()
1968 static bool tcpm_start_toggling(struct tcpm_port *port, enum typec_cc_status cc) in tcpm_start_toggling()
1980 static int tcpm_init_vbus(struct tcpm_port *port) in tcpm_init_vbus()
1990 static int tcpm_init_vconn(struct tcpm_port *port) in tcpm_init_vconn()
1999 static void tcpm_typec_connect(struct tcpm_port *port) in tcpm_typec_connect()
2006 static int tcpm_src_attach(struct tcpm_port *port) in tcpm_src_attach()
2064 static void tcpm_typec_disconnect(struct tcpm_port *port) in tcpm_typec_disconnect()
2072 static void tcpm_reset_port(struct tcpm_port *port) in tcpm_reset_port()
2099 static void tcpm_detach(struct tcpm_port *port) in tcpm_detach()
2110 static void tcpm_src_detach(struct tcpm_port *port) in tcpm_src_detach()
2115 static int tcpm_snk_attach(struct tcpm_port *port) in tcpm_snk_attach()
2143 static void tcpm_snk_detach(struct tcpm_port *port) in tcpm_snk_detach()
2148 static int tcpm_acc_attach(struct tcpm_port *port) in tcpm_acc_attach()
2170 static void tcpm_acc_detach(struct tcpm_port *port) in tcpm_acc_detach()
2175 static inline enum tcpm_state hard_reset_state(struct tcpm_port *port) in hard_reset_state()
2188 static inline enum tcpm_state unattached_state(struct tcpm_port *port) in unattached_state()
2202 bool tcpm_is_toggling(struct tcpm_port *port) in tcpm_is_toggling()
2212 static void run_state_machine(struct tcpm_port *port) in run_state_machine()
2785 static void tcpm_state_machine(struct tcpm_port *port) in tcpm_state_machine()
2821 static void _tcpm_cc_change(struct tcpm_port *port, enum typec_cc_status cc1, in _tcpm_cc_change()
2990 static void _tcpm_pd_vbus_on(struct tcpm_port *port) in _tcpm_pd_vbus_on()
3061 static void _tcpm_pd_vbus_off(struct tcpm_port *port) in _tcpm_pd_vbus_off()
3134 static void _tcpm_pd_hard_reset(struct tcpm_port *port) in _tcpm_pd_hard_reset()
3217 void tcpm_cc_change(struct tcpm_port *port) in tcpm_cc_change()
3227 void tcpm_vbus_change(struct tcpm_port *port) in tcpm_vbus_change()
3240 void tcpm_pd_hard_reset(struct tcpm_port *port) in tcpm_pd_hard_reset()
3247 static void tcpm_init(struct tcpm_port *port) in tcpm_init()
3288 void tcpm_tcpc_reset(struct tcpm_port *port) in tcpm_tcpc_reset()
3297 static int tcpm_fw_get_caps(struct tcpm_port *port) in tcpm_fw_get_caps()
3425 struct tcpm_port *port; in tcpm_port_init() local
3466 void tcpm_poll_event(struct tcpm_port *port) in tcpm_poll_event()
3507 int tcpm_get_voltage(struct tcpm_port *port) in tcpm_get_voltage()
3513 int tcpm_get_current(struct tcpm_port *port) in tcpm_get_current()
3519 int tcpm_get_online(struct tcpm_port *port) in tcpm_get_online()
3528 void tcpm_uninit_port(struct tcpm_port *port) in tcpm_uninit_port()