tcpm_port 77 drivers/usb/typec/tcpm/fusb302.c struct tcpm_port *tcpm_port; tcpm_port 1093 drivers/usb/typec/tcpm/fusb302.c tcpm_cc_change(chip->tcpm_port); tcpm_port 1101 drivers/usb/typec/tcpm/fusb302.c tcpm_cc_change(chip->tcpm_port); tcpm_port 1209 drivers/usb/typec/tcpm/fusb302.c tcpm_cc_change(chip->tcpm_port); tcpm_port 1353 drivers/usb/typec/tcpm/fusb302.c tcpm_cc_change(chip->tcpm_port); tcpm_port 1459 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_transmit_complete(chip->tcpm_port, TCPC_TX_SUCCESS); tcpm_port 1461 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_receive(chip->tcpm_port, msg); tcpm_port 1528 drivers/usb/typec/tcpm/fusb302.c tcpm_vbus_change(chip->tcpm_port); tcpm_port 1561 drivers/usb/typec/tcpm/fusb302.c tcpm_cc_change(chip->tcpm_port); tcpm_port 1567 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_transmit_complete(chip->tcpm_port, TCPC_TX_FAILED); tcpm_port 1572 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_transmit_complete(chip->tcpm_port, TCPC_TX_FAILED); tcpm_port 1582 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_transmit_complete(chip->tcpm_port, TCPC_TX_SUCCESS); tcpm_port 1602 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_hard_reset(chip->tcpm_port); tcpm_port 1747 drivers/usb/typec/tcpm/fusb302.c chip->tcpm_port = tcpm_register_port(&client->dev, &chip->tcpc_dev); tcpm_port 1748 drivers/usb/typec/tcpm/fusb302.c if (IS_ERR(chip->tcpm_port)) { tcpm_port 1750 drivers/usb/typec/tcpm/fusb302.c ret = PTR_ERR(chip->tcpm_port); tcpm_port 1769 drivers/usb/typec/tcpm/fusb302.c tcpm_unregister_port(chip->tcpm_port); tcpm_port 1786 drivers/usb/typec/tcpm/fusb302.c tcpm_unregister_port(chip->tcpm_port); tcpm_port 26 drivers/usb/typec/tcpm/tcpci.c struct tcpm_port *port; tcpm_port 336 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port; tcpm_port 376 drivers/usb/typec/tcpm/tcpm.c static enum tcpm_state tcpm_default_state(struct tcpm_port *port) tcpm_port 394 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *typec_cap_to_tcpm(const struct typec_capability *cap) tcpm_port 396 drivers/usb/typec/tcpm/tcpm.c return container_of(cap, struct tcpm_port, typec_caps); tcpm_port 399 drivers/usb/typec/tcpm/tcpm.c static bool tcpm_port_is_disconnected(struct tcpm_port *port) tcpm_port 415 drivers/usb/typec/tcpm/tcpm.c static bool tcpm_log_full(struct tcpm_port *port) tcpm_port 422 drivers/usb/typec/tcpm/tcpm.c static void _tcpm_log(struct tcpm_port *port, const char *fmt, va_list args) tcpm_port 470 drivers/usb/typec/tcpm/tcpm.c static void tcpm_log(struct tcpm_port *port, const char *fmt, ...) tcpm_port 486 drivers/usb/typec/tcpm/tcpm.c static void tcpm_log_force(struct tcpm_port *port, const char *fmt, ...) tcpm_port 495 drivers/usb/typec/tcpm/tcpm.c static void tcpm_log_source_caps(struct tcpm_port *port) tcpm_port 558 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = (struct tcpm_port *)s->private; tcpm_port 575 drivers/usb/typec/tcpm/tcpm.c static void tcpm_debugfs_init(struct tcpm_port *port) tcpm_port 585 drivers/usb/typec/tcpm/tcpm.c static void tcpm_debugfs_exit(struct tcpm_port *port) tcpm_port 602 drivers/usb/typec/tcpm/tcpm.c static void tcpm_log(const struct tcpm_port *port, const char *fmt, ...) { } tcpm_port 604 drivers/usb/typec/tcpm/tcpm.c static void tcpm_log_force(struct tcpm_port *port, const char *fmt, ...) { } tcpm_port 605 drivers/usb/typec/tcpm/tcpm.c static void tcpm_log_source_caps(struct tcpm_port *port) { } tcpm_port 606 drivers/usb/typec/tcpm/tcpm.c static void tcpm_debugfs_init(const struct tcpm_port *port) { } tcpm_port 607 drivers/usb/typec/tcpm/tcpm.c static void tcpm_debugfs_exit(const struct tcpm_port *port) { } tcpm_port 611 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_transmit(struct tcpm_port *port, tcpm_port 647 drivers/usb/typec/tcpm/tcpm.c void tcpm_pd_transmit_complete(struct tcpm_port *port, tcpm_port 656 drivers/usb/typec/tcpm/tcpm.c static int tcpm_mux_set(struct tcpm_port *port, int state, tcpm_port 678 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_polarity(struct tcpm_port *port, tcpm_port 694 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_vconn(struct tcpm_port *port, bool enable) tcpm_port 709 drivers/usb/typec/tcpm/tcpm.c static u32 tcpm_get_current_limit(struct tcpm_port *port) tcpm_port 734 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_current_limit(struct tcpm_port *port, u32 max_ma, u32 mv) tcpm_port 754 drivers/usb/typec/tcpm/tcpm.c static enum typec_cc_status tcpm_rp_cc(struct tcpm_port *port) tcpm_port 782 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_attached_state(struct tcpm_port *port, bool attached) tcpm_port 788 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_roles(struct tcpm_port *port, bool attached, tcpm_port 821 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_pwr_role(struct tcpm_port *port, enum typec_role role) tcpm_port 836 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_send_source_caps(struct tcpm_port *port) tcpm_port 863 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_send_sink_caps(struct tcpm_port *port) tcpm_port 890 drivers/usb/typec/tcpm/tcpm.c static void tcpm_set_state(struct tcpm_port *port, enum tcpm_state state, tcpm_port 919 drivers/usb/typec/tcpm/tcpm.c static void tcpm_set_state_cond(struct tcpm_port *port, enum tcpm_state state, tcpm_port 932 drivers/usb/typec/tcpm/tcpm.c static void tcpm_queue_message(struct tcpm_port *port, tcpm_port 942 drivers/usb/typec/tcpm/tcpm.c static void tcpm_queue_vdm(struct tcpm_port *port, const u32 header, tcpm_port 953 drivers/usb/typec/tcpm/tcpm.c static void svdm_consume_identity(struct tcpm_port *port, const __le32 *payload, tcpm_port 972 drivers/usb/typec/tcpm/tcpm.c static bool svdm_consume_svids(struct tcpm_port *port, const __le32 *payload, tcpm_port 1008 drivers/usb/typec/tcpm/tcpm.c static void svdm_consume_modes(struct tcpm_port *port, const __le32 *payload, tcpm_port 1036 drivers/usb/typec/tcpm/tcpm.c static void tcpm_register_partner_altmodes(struct tcpm_port *port) tcpm_port 1054 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_svdm(struct tcpm_port *port, const __le32 *payload, int cnt, tcpm_port 1207 drivers/usb/typec/tcpm/tcpm.c static void tcpm_handle_vdm_request(struct tcpm_port *port, tcpm_port 1236 drivers/usb/typec/tcpm/tcpm.c static void tcpm_send_vdm(struct tcpm_port *port, u32 vid, int cmd, tcpm_port 1278 drivers/usb/typec/tcpm/tcpm.c static void vdm_run_state_machine(struct tcpm_port *port) tcpm_port 1348 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_port 1398 drivers/usb/typec/tcpm/tcpm.c static enum pdo_err tcpm_caps_err(struct tcpm_port *port, const u32 *pdo, tcpm_port 1474 drivers/usb/typec/tcpm/tcpm.c static int tcpm_validate_caps(struct tcpm_port *port, const u32 *pdo, tcpm_port 1489 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_port 1505 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_port 1522 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_port 1541 drivers/usb/typec/tcpm/tcpm.c static inline enum tcpm_state ready_state(struct tcpm_port *port) tcpm_port 1549 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_send_control(struct tcpm_port *port, tcpm_port 1552 drivers/usb/typec/tcpm/tcpm.c static void tcpm_handle_alert(struct tcpm_port *port, const __le32 *payload, tcpm_port 1577 drivers/usb/typec/tcpm/tcpm.c static void tcpm_pd_data_request(struct tcpm_port *port, tcpm_port 1678 drivers/usb/typec/tcpm/tcpm.c static void tcpm_pps_complete(struct tcpm_port *port, int result) tcpm_port 1687 drivers/usb/typec/tcpm/tcpm.c static void tcpm_pd_ctrl_request(struct tcpm_port *port, tcpm_port 1888 drivers/usb/typec/tcpm/tcpm.c static void tcpm_pd_ext_msg_request(struct tcpm_port *port, tcpm_port 1949 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = event->port; tcpm_port 1997 drivers/usb/typec/tcpm/tcpm.c void tcpm_pd_receive(struct tcpm_port *port, const struct pd_message *msg) tcpm_port 2012 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_send_control(struct tcpm_port *port, tcpm_port 2031 drivers/usb/typec/tcpm/tcpm.c static bool tcpm_send_queued_message(struct tcpm_port *port) tcpm_port 2071 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_check_request(struct tcpm_port *port) tcpm_port 2131 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_select_pdo(struct tcpm_port *port, int *sink_pdo, tcpm_port 2229 drivers/usb/typec/tcpm/tcpm.c static unsigned int tcpm_pd_select_pps_apdo(struct tcpm_port *port) tcpm_port 2327 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) tcpm_port 2407 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_send_request(struct tcpm_port *port) tcpm_port 2428 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_build_pps_request(struct tcpm_port *port, u32 *rdo) tcpm_port 2504 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_send_pps_request(struct tcpm_port *port) tcpm_port 2525 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_vbus(struct tcpm_port *port, bool enable) tcpm_port 2542 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_charge(struct tcpm_port *port, bool charge) tcpm_port 2560 drivers/usb/typec/tcpm/tcpm.c static bool tcpm_start_toggling(struct tcpm_port *port, enum typec_cc_status cc) tcpm_port 2572 drivers/usb/typec/tcpm/tcpm.c static void tcpm_set_cc(struct tcpm_port *port, enum typec_cc_status cc) tcpm_port 2579 drivers/usb/typec/tcpm/tcpm.c static int tcpm_init_vbus(struct tcpm_port *port) tcpm_port 2589 drivers/usb/typec/tcpm/tcpm.c static int tcpm_init_vconn(struct tcpm_port *port) tcpm_port 2598 drivers/usb/typec/tcpm/tcpm.c static void tcpm_typec_connect(struct tcpm_port *port) tcpm_port 2616 drivers/usb/typec/tcpm/tcpm.c static int tcpm_src_attach(struct tcpm_port *port) tcpm_port 2673 drivers/usb/typec/tcpm/tcpm.c static void tcpm_typec_disconnect(struct tcpm_port *port) tcpm_port 2682 drivers/usb/typec/tcpm/tcpm.c static void tcpm_unregister_altmodes(struct tcpm_port *port) tcpm_port 2695 drivers/usb/typec/tcpm/tcpm.c static void tcpm_reset_port(struct tcpm_port *port) tcpm_port 2724 drivers/usb/typec/tcpm/tcpm.c static void tcpm_detach(struct tcpm_port *port) tcpm_port 2735 drivers/usb/typec/tcpm/tcpm.c static void tcpm_src_detach(struct tcpm_port *port) tcpm_port 2740 drivers/usb/typec/tcpm/tcpm.c static int tcpm_snk_attach(struct tcpm_port *port) tcpm_port 2766 drivers/usb/typec/tcpm/tcpm.c static void tcpm_snk_detach(struct tcpm_port *port) tcpm_port 2771 drivers/usb/typec/tcpm/tcpm.c static int tcpm_acc_attach(struct tcpm_port *port) tcpm_port 2791 drivers/usb/typec/tcpm/tcpm.c static void tcpm_acc_detach(struct tcpm_port *port) tcpm_port 2796 drivers/usb/typec/tcpm/tcpm.c static inline enum tcpm_state hard_reset_state(struct tcpm_port *port) tcpm_port 2809 drivers/usb/typec/tcpm/tcpm.c static inline enum tcpm_state unattached_state(struct tcpm_port *port) tcpm_port 2823 drivers/usb/typec/tcpm/tcpm.c static void tcpm_check_send_discover(struct tcpm_port *port) tcpm_port 2832 drivers/usb/typec/tcpm/tcpm.c static void tcpm_swap_complete(struct tcpm_port *port, int result) tcpm_port 2855 drivers/usb/typec/tcpm/tcpm.c static void run_state_machine(struct tcpm_port *port) tcpm_port 3582 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_port 3618 drivers/usb/typec/tcpm/tcpm.c static void _tcpm_cc_change(struct tcpm_port *port, enum typec_cc_status cc1, tcpm_port 3786 drivers/usb/typec/tcpm/tcpm.c static void _tcpm_pd_vbus_on(struct tcpm_port *port) tcpm_port 3854 drivers/usb/typec/tcpm/tcpm.c static void _tcpm_pd_vbus_off(struct tcpm_port *port) tcpm_port 3923 drivers/usb/typec/tcpm/tcpm.c static void _tcpm_pd_hard_reset(struct tcpm_port *port) tcpm_port 3938 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_port 3972 drivers/usb/typec/tcpm/tcpm.c void tcpm_cc_change(struct tcpm_port *port) tcpm_port 3981 drivers/usb/typec/tcpm/tcpm.c void tcpm_vbus_change(struct tcpm_port *port) tcpm_port 3990 drivers/usb/typec/tcpm/tcpm.c void tcpm_pd_hard_reset(struct tcpm_port *port) tcpm_port 4002 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); tcpm_port 4070 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); tcpm_port 4114 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); tcpm_port 4153 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); tcpm_port 4169 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pps_set_op_curr(struct tcpm_port *port, u16 op_curr) tcpm_port 4224 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pps_set_out_volt(struct tcpm_port *port, u16 out_volt) tcpm_port 4280 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pps_activate(struct tcpm_port *port, bool activate) tcpm_port 4331 drivers/usb/typec/tcpm/tcpm.c static void tcpm_init(struct tcpm_port *port) tcpm_port 4363 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); tcpm_port 4388 drivers/usb/typec/tcpm/tcpm.c void tcpm_tcpc_reset(struct tcpm_port *port) tcpm_port 4425 drivers/usb/typec/tcpm/tcpm.c static int tcpm_fw_get_caps(struct tcpm_port *port, tcpm_port 4519 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_online(struct tcpm_port *port, tcpm_port 4534 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_voltage_min(struct tcpm_port *port, tcpm_port 4545 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_voltage_max(struct tcpm_port *port, tcpm_port 4556 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_voltage_now(struct tcpm_port *port, tcpm_port 4564 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_current_max(struct tcpm_port *port, tcpm_port 4575 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_current_now(struct tcpm_port *port, tcpm_port 4587 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_port 4620 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_set_online(struct tcpm_port *port, tcpm_port 4644 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_port 4693 drivers/usb/typec/tcpm/tcpm.c static int devm_tcpm_psy_register(struct tcpm_port *port) tcpm_port 4727 drivers/usb/typec/tcpm/tcpm.c static int tcpm_copy_caps(struct tcpm_port *port, tcpm_port 4752 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc) tcpm_port 4754 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port; tcpm_port 4865 drivers/usb/typec/tcpm/tcpm.c void tcpm_unregister_port(struct tcpm_port *port) tcpm_port 155 drivers/usb/typec/tcpm/wcove.c struct tcpm_port *tcpm; tcpm_port 149 include/linux/usb/tcpm.h struct tcpm_port; tcpm_port 151 include/linux/usb/tcpm.h struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc); tcpm_port 152 include/linux/usb/tcpm.h void tcpm_unregister_port(struct tcpm_port *port); tcpm_port 154 include/linux/usb/tcpm.h void tcpm_vbus_change(struct tcpm_port *port); tcpm_port 155 include/linux/usb/tcpm.h void tcpm_cc_change(struct tcpm_port *port); tcpm_port 156 include/linux/usb/tcpm.h void tcpm_pd_receive(struct tcpm_port *port, tcpm_port 158 include/linux/usb/tcpm.h void tcpm_pd_transmit_complete(struct tcpm_port *port, tcpm_port 160 include/linux/usb/tcpm.h void tcpm_pd_hard_reset(struct tcpm_port *port); tcpm_port 161 include/linux/usb/tcpm.h void tcpm_tcpc_reset(struct tcpm_port *port);