| H A D | tcpm.c | 288 * @min_volt: Actual min voltage at the local port 289 * @req_min_volt: Requested min voltage to the port partner 290 * @max_volt: Actual max voltage at the local port 291 * @req_max_volt: Requested max voltage to the port partner 292 * @max_curr: Actual max current at the local port 293 * @req_max_curr: Requested max current of the port partner 294 * @req_out_volt: Requested output voltage to the port partner 295 * @req_op_curr: Requested operating current to the port partner 330 * @req_op_curr_ma: Requested operating current to the port partner acting as source 331 * @req_out_volt_mv: Requested output voltage to the port partne 697 struct tcpm_port *port; global() member 704 struct tcpm_port *port; global() member 722 tcpm_port_is_sink(port) global() argument 729 tcpm_port_is_source(port) global() argument 735 tcpm_port_is_debug_source(port) global() argument 738 tcpm_port_is_debug_sink(port) global() argument 741 tcpm_port_is_debug(port) global() argument 744 tcpm_port_is_audio(port) global() argument 747 tcpm_port_is_audio_detached(port) global() argument 751 tcpm_try_snk(port) global() argument 755 tcpm_try_src(port) global() argument 759 tcpm_data_role_for_source(port) global() argument 763 tcpm_data_role_for_sink(port) global() argument 767 tcpm_sink_tx_ok(port) global() argument 771 tcpm_wait_for_discharge(port) global() argument 774 tcpm_default_state(struct tcpm_port * port) tcpm_default_state() argument 788 tcpm_port_is_disconnected(struct tcpm_port * port) tcpm_port_is_disconnected() argument 804 tcpm_log_full(struct tcpm_port * port) tcpm_log_full() argument 811 _tcpm_log(struct tcpm_port * port,const char * fmt,va_list args) _tcpm_log() argument 859 tcpm_log(struct tcpm_port * port,const char * fmt,...) tcpm_log() argument 875 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument 884 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument 960 struct tcpm_port *port = s->private; tcpm_debug_show() local 977 tcpm_debugfs_init(struct tcpm_port * port) tcpm_debugfs_init() argument 988 tcpm_debugfs_exit(struct tcpm_port * port) tcpm_debugfs_exit() argument 1005 tcpm_log(const struct tcpm_port * port,const char * fmt,...) tcpm_log() argument 1007 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument 1008 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument 1009 tcpm_debugfs_init(const struct tcpm_port * port) tcpm_debugfs_init() argument 1010 tcpm_debugfs_exit(const struct tcpm_port * port) tcpm_debugfs_exit() argument 1014 tcpm_set_cc(struct tcpm_port * port,enum typec_cc_status cc) tcpm_set_cc() argument 1021 tcpm_enable_auto_vbus_discharge(struct tcpm_port * port,bool enable) tcpm_enable_auto_vbus_discharge() argument 1036 tcpm_apply_rc(struct tcpm_port * port) tcpm_apply_rc() argument 1054 tcpm_rp_cc(struct tcpm_port * port) tcpm_rp_cc() argument 1085 tcpm_ams_finish(struct tcpm_port * port) tcpm_ams_finish() argument 1102 tcpm_pd_transmit(struct tcpm_port * port,enum tcpm_transmit_type tx_sop_type,const struct pd_message * msg) tcpm_pd_transmit() argument 1176 tcpm_pd_transmit_complete(struct tcpm_port * port,enum tcpm_transmit_status status) tcpm_pd_transmit_complete() argument 1185 tcpm_mux_set(struct tcpm_port * port,int state,enum usb_role usb_role,enum typec_orientation orientation) tcpm_mux_set() argument 1207 tcpm_set_polarity(struct tcpm_port * port,enum typec_cc_polarity polarity) tcpm_set_polarity() argument 1223 tcpm_set_vconn(struct tcpm_port * port,bool enable) tcpm_set_vconn() argument 1238 tcpm_get_current_limit(struct tcpm_port * port) tcpm_get_current_limit() argument 1263 tcpm_set_current_limit(struct tcpm_port * port,u32 max_ma,u32 mv) tcpm_set_current_limit() argument 1279 tcpm_set_attached_state(struct tcpm_port * port,bool attached) tcpm_set_attached_state() argument 1285 tcpm_set_roles(struct tcpm_port * port,bool attached,int state,enum typec_role role,enum typec_data_role data) tcpm_set_roles() argument 1344 tcpm_set_pwr_role(struct tcpm_port * port,enum typec_role role) tcpm_set_pwr_role() argument 1364 tcpm_forge_legacy_pdo(struct tcpm_port * port,u32 pdo,enum typec_role role) tcpm_forge_legacy_pdo() argument 1381 tcpm_pd_send_revision(struct tcpm_port * port) tcpm_pd_send_revision() argument 1399 tcpm_pd_send_source_caps(struct tcpm_port * port) tcpm_pd_send_source_caps() argument 1436 tcpm_pd_send_sink_caps(struct tcpm_port * port) tcpm_pd_send_sink_caps() argument 1473 tcpm_pd_send_sink_cap_ext(struct tcpm_port * port) tcpm_pd_send_sink_cap_ext() argument 1531 mod_tcpm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_tcpm_delayed_work() argument 1541 mod_vdm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_vdm_delayed_work() argument 1552 mod_enable_frs_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_enable_frs_delayed_work() argument 1562 mod_send_discover_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_send_discover_delayed_work() argument 1572 tcpm_set_state(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state() argument 1601 tcpm_set_state_cond(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state_cond() argument 1615 tcpm_queue_message(struct tcpm_port * port,enum pd_msg_request message) tcpm_queue_message() argument 1622 tcpm_vdm_ams(struct tcpm_port * port) tcpm_vdm_ams() argument 1644 tcpm_ams_interruptible(struct tcpm_port * port) tcpm_ams_interruptible() argument 1674 tcpm_ams_start(struct tcpm_port * port,enum tcpm_ams ams) tcpm_ams_start() argument 1768 tcpm_queue_vdm(struct tcpm_port * port,const u32 header,const u32 * data,int cnt,enum tcpm_transmit_type tx_sop_type) tcpm_queue_vdm() argument 1805 struct tcpm_port *port = event->port; tcpm_queue_vdm_work() local 1821 tcpm_queue_vdm_unlocked(struct tcpm_port * port,const u32 header,const u32 * data,int cnt,enum tcpm_transmit_type tx_sop_type) tcpm_queue_vdm_unlocked() argument 1853 svdm_consume_identity(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity() argument 1872 svdm_consume_identity_sop_prime(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity_sop_prime() argument 1929 svdm_consume_svids(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_svids() argument 1979 svdm_consume_modes(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_modes() argument 2021 tcpm_register_partner_altmodes(struct tcpm_port * port) tcpm_register_partner_altmodes() argument 2042 tcpm_register_plug_altmodes(struct tcpm_port * port) tcpm_register_plug_altmodes() argument 2062 supports_modal(port) global() argument 2063 supports_modal_cable(port) global() argument 2064 supports_host(port) global() argument 2070 tcpm_can_communicate_sop_prime(struct tcpm_port * port) tcpm_can_communicate_sop_prime() argument 2117 tcpm_attempt_vconn_swap_discovery(struct tcpm_port * port) tcpm_attempt_vconn_swap_discovery() argument 2142 tcpm_cable_vdm_supported(struct tcpm_port * port) tcpm_cable_vdm_supported() argument 2150 tcpm_pd_svdm(struct tcpm_port * port,struct typec_altmode * adev,const u32 * p,int cnt,u32 * response,enum adev_actions * adev_action,enum tcpm_transmit_type rx_sop_type,enum tcpm_transmit_type * response_tx_sop_type) tcpm_pd_svdm() argument 2517 tcpm_handle_vdm_request(struct tcpm_port * port,const __le32 * payload,int cnt,enum tcpm_transmit_type rx_sop_type) tcpm_handle_vdm_request() argument 2657 tcpm_send_vdm(struct tcpm_port * port,u32 vid,int cmd,const u32 * data,int count,enum tcpm_transmit_type tx_sop_type) tcpm_send_vdm() argument 2721 vdm_run_state_machine(struct tcpm_port * port) vdm_run_state_machine() argument 2912 struct tcpm_port *port = container_of(work, struct tcpm_port, vdm_state_machine); vdm_state_machine_work() local 2965 tcpm_caps_err(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_caps_err() argument 3041 tcpm_validate_caps(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_validate_caps() argument 3056 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_enter() local 3072 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_exit() local 3089 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_vdm() local 3104 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_enter() local 3120 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_exit() local 3137 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_vdm() local 3151 ready_state(struct tcpm_port * port) ready_state() argument 3163 tcpm_handle_alert(struct tcpm_port * port,const __le32 * payload,int cnt) tcpm_handle_alert() argument 3193 tcpm_set_auto_vbus_discharge_threshold(struct tcpm_port * port,enum typec_pwr_opmode mode,bool pps_active,u32 requested_vbus_voltage) tcpm_set_auto_vbus_discharge_threshold() argument 3213 tcpm_pd_handle_state(struct tcpm_port * port,enum tcpm_state state,enum tcpm_ams ams,unsigned int delay_ms) tcpm_pd_handle_state() argument 3246 tcpm_pd_handle_msg(struct tcpm_port * port,enum pd_msg_request message,enum tcpm_ams ams) tcpm_pd_handle_msg() argument 3278 tcpm_register_source_caps(struct tcpm_port * port) tcpm_register_source_caps() argument 3306 tcpm_register_sink_caps(struct tcpm_port * port) tcpm_register_sink_caps() argument 3329 tcpm_pd_data_request(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_data_request() argument 3521 tcpm_aug_supply_req_complete(struct tcpm_port * port,int result) tcpm_aug_supply_req_complete() argument 3530 tcpm_pd_ctrl_request(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_ctrl_request() argument 3857 tcpm_pd_ext_msg_request(struct tcpm_port * port,const struct pd_message * msg) tcpm_pd_ext_msg_request() argument 3922 struct tcpm_port *port = event->port; tcpm_pd_rx_handler() local 3989 tcpm_pd_receive(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_receive() argument 4006 tcpm_pd_send_control(struct tcpm_port * port,enum pd_ctrl_msg_type type,enum tcpm_transmit_type tx_sop_type) tcpm_pd_send_control() argument 4048 tcpm_send_queued_message(struct tcpm_port * port) tcpm_send_queued_message() argument 4124 tcpm_pd_check_request(struct tcpm_port * port) tcpm_pd_check_request() argument 4184 tcpm_pd_select_pdo(struct tcpm_port * port,int * sink_pdo,int * src_pdo) tcpm_pd_select_pdo() argument 4302 tcpm_pd_select_pps_apdo(struct tcpm_port * port) tcpm_pd_select_pps_apdo() argument 4349 tcpm_pd_select_spr_avs_apdo(struct tcpm_port * port) tcpm_pd_select_spr_avs_apdo() argument 4431 tcpm_pd_build_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_request() argument 4511 tcpm_pd_send_request(struct tcpm_port * port) tcpm_pd_send_request() argument 4538 tcpm_pd_build_pps_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_pps_request() argument 4598 tcpm_pd_build_spr_avs_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_spr_avs_request() argument 4651 tcpm_pd_send_aug_supply_request(struct tcpm_port * port,enum aug_req_type type) tcpm_pd_send_aug_supply_request() argument 4683 tcpm_set_vbus(struct tcpm_port * port,bool enable) tcpm_set_vbus() argument 4700 tcpm_set_charge(struct tcpm_port * port,bool charge) tcpm_set_charge() argument 4719 tcpm_start_toggling(struct tcpm_port * port,enum typec_cc_status cc) tcpm_start_toggling() argument 4731 tcpm_init_vbus(struct tcpm_port * port) tcpm_init_vbus() argument 4741 tcpm_init_vconn(struct tcpm_port * port) tcpm_init_vconn() argument 4750 tcpm_typec_connect(struct tcpm_port * port) tcpm_typec_connect() argument 4776 tcpm_src_attach(struct tcpm_port * port) tcpm_src_attach() argument 4840 tcpm_typec_disconnect(struct tcpm_port * port) tcpm_typec_disconnect() argument 4861 tcpm_unregister_altmodes(struct tcpm_port * port) tcpm_unregister_altmodes() argument 4880 tcpm_set_partner_usb_comm_capable(struct tcpm_port * port,bool capable) tcpm_set_partner_usb_comm_capable() argument 4888 tcpm_partner_source_caps_reset(struct tcpm_port * port) tcpm_partner_source_caps_reset() argument 4896 tcpm_reset_port(struct tcpm_port * port) tcpm_reset_port() argument 4940 tcpm_detach(struct tcpm_port * port) tcpm_detach() argument 4956 tcpm_src_detach(struct tcpm_port * port) tcpm_src_detach() argument 4961 tcpm_snk_attach(struct tcpm_port * port) tcpm_snk_attach() argument 4991 tcpm_snk_detach(struct tcpm_port * port) tcpm_snk_detach() argument 4996 tcpm_acc_attach(struct tcpm_port * port) tcpm_acc_attach() argument 5029 tcpm_acc_detach(struct tcpm_port * port) tcpm_acc_detach() argument 5034 hard_reset_state(struct tcpm_port * port) hard_reset_state() argument 5048 unattached_state(struct tcpm_port * port) unattached_state() argument 5062 tcpm_swap_complete(struct tcpm_port * port,int result) tcpm_swap_complete() argument 5099 tcpm_set_initial_svdm_version(struct tcpm_port * port) tcpm_set_initial_svdm_version() argument 5125 tcpm_set_initial_negotiated_rev(struct tcpm_port * port) tcpm_set_initial_negotiated_rev() argument 5144 run_state_machine(struct tcpm_port * port) run_state_machine() argument 6315 struct tcpm_port *port = container_of(work, struct tcpm_port, state_machine); tcpm_state_machine_work() local 6350 _tcpm_cc_change(struct tcpm_port * port,enum typec_cc_status cc1,enum typec_cc_status cc2) _tcpm_cc_change() argument 6567 _tcpm_pd_vbus_on(struct tcpm_port * port) _tcpm_pd_vbus_on() argument 6657 _tcpm_pd_vbus_off(struct tcpm_port * port) _tcpm_pd_vbus_off() argument 6761 _tcpm_pd_vbus_vsafe0v(struct tcpm_port * port) _tcpm_pd_vbus_vsafe0v() argument 6810 _tcpm_pd_hard_reset(struct tcpm_port * port) _tcpm_pd_hard_reset() argument 6842 struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_pd_event_handler() local 6923 tcpm_cc_change(struct tcpm_port * port) tcpm_cc_change() argument 6932 tcpm_vbus_change(struct tcpm_port * port) tcpm_vbus_change() argument 6941 tcpm_pd_hard_reset(struct tcpm_port * port) tcpm_pd_hard_reset() argument 6950 tcpm_sink_frs(struct tcpm_port * port) tcpm_sink_frs() argument 6959 tcpm_sourcing_vbus(struct tcpm_port * port) tcpm_sourcing_vbus() argument 6968 tcpm_port_clean(struct tcpm_port * port) tcpm_port_clean() argument 6977 tcpm_port_is_toggling(struct tcpm_port * port) tcpm_port_is_toggling() argument 6983 tcpm_port_error_recovery(struct tcpm_port * port) tcpm_port_error_recovery() argument 6994 struct tcpm_port *port = container_of(work, struct tcpm_port, enable_frs); tcpm_enable_frs_work() local 7027 struct tcpm_port *port = container_of(work, struct tcpm_port, send_discover_work); tcpm_send_discover_work() local 7055 struct tcpm_port *port = typec_get_drvdata(p); tcpm_dr_set() local 7127 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pr_set() local 7176 struct tcpm_port *port = typec_get_drvdata(p); tcpm_vconn_set() local 7221 struct tcpm_port *port = typec_get_drvdata(p); tcpm_try_role() local 7237 tcpm_aug_set_op_curr(struct tcpm_port * port,u16 req_op_curr_ma) tcpm_aug_set_op_curr() argument 7303 tcpm_aug_set_out_volt(struct tcpm_port * port,u16 req_out_volt_mv) tcpm_aug_set_out_volt() argument 7366 tcpm_pps_activate(struct tcpm_port * port,bool activate) tcpm_pps_activate() argument 7424 tcpm_spr_avs_activate(struct tcpm_port * port,bool activate) tcpm_spr_avs_activate() argument 7488 tcpm_init(struct tcpm_port * port) tcpm_init() argument 7537 struct tcpm_port *port = typec_get_drvdata(p); tcpm_port_type_set() local 7562 tcpm_find_pd_data(struct tcpm_port * port,struct usb_power_delivery * pd) tcpm_find_pd_data() argument 7576 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_get() local 7583 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_set() local 7684 tcpm_tcpc_reset(struct tcpm_port * port) tcpm_tcpc_reset() argument 7693 tcpm_port_unregister_pd(struct tcpm_port * port) tcpm_port_unregister_pd() argument 7709 tcpm_port_register_pd(struct tcpm_port * port) tcpm_port_register_pd() argument 7760 tcpm_fw_get_timings(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_timings() argument 7788 tcpm_fw_get_pd_ident(struct tcpm_port * port) tcpm_fw_get_pd_ident() argument 7808 tcpm_parse_snk_pdos(struct tcpm_port * port) tcpm_parse_snk_pdos() argument 7864 tcpm_fw_get_sink_caps_ext(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_sink_caps_ext() argument 7911 tcpm_fw_get_caps(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_caps() argument 8095 tcpm_fw_get_snk_vdos(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_snk_vdos() argument 8134 tcpm_fw_get_pd_revision(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_pd_revision() argument 8175 tcpm_psy_get_online(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_online() argument 8192 tcpm_psy_get_voltage_min(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_min() argument 8205 tcpm_psy_get_voltage_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_max() argument 8218 tcpm_psy_get_voltage_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_now() argument 8226 tcpm_psy_get_current_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_max() argument 8239 tcpm_psy_get_current_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_now() argument 8247 tcpm_psy_get_input_power_limit(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_input_power_limit() argument 8272 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_get_prop() local 8308 tcpm_disable_pps_avs(struct tcpm_port * port) tcpm_disable_pps_avs() argument 8320 tcpm_psy_set_online(struct tcpm_port * port,const union power_supply_propval * val) tcpm_psy_set_online() argument 8356 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_set_prop() local 8399 devm_tcpm_psy_register(struct tcpm_port * port) devm_tcpm_psy_register() argument 8438 struct tcpm_port *port = container_of(timer, struct tcpm_port, state_machine_timer); state_machine_timer_handler() local 8447 struct tcpm_port *port = container_of(timer, struct tcpm_port, vdm_state_machine_timer); vdm_state_machine_timer_handler() local 8456 struct tcpm_port *port = container_of(timer, struct tcpm_port, enable_frs_timer); enable_frs_timer_handler() local 8465 struct tcpm_port *port = container_of(timer, struct tcpm_port, send_discover_timer); send_discover_timer_handler() local 8474 struct tcpm_port *port; tcpm_register_port() local 8597 tcpm_unregister_port(struct tcpm_port * port) tcpm_unregister_port() argument [all...] |