tcpc_dev
static int tcpm_pd_transmit(struct tcpc_dev *dev, enum tcpm_transmit_type type,
tcpc_dev);
static void init_tcpc_dev(struct tcpc_dev *fusb302_tcpc_dev)
init_tcpc_dev(&chip->tcpc_dev);
chip->tcpc_dev.fwnode = fusb302_fwnode_get(dev);
if (IS_ERR(chip->tcpc_dev.fwnode)) {
ret = PTR_ERR(chip->tcpc_dev.fwnode);
chip->tcpm_port = tcpm_register_port(&client->dev, &chip->tcpc_dev);
fwnode_handle_put(chip->tcpc_dev.fwnode);
fwnode_handle_put(chip->tcpc_dev.fwnode);
fwnode_handle_put(chip->tcpc_dev.fwnode);
static int tcpm_init(struct tcpc_dev *dev)
tcpc_dev);
static int tcpm_get_vbus(struct tcpc_dev *dev)
tcpc_dev);
static int tcpm_get_current_limit(struct tcpc_dev *dev)
tcpc_dev);
static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc)
tcpc_dev);
static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1,
tcpc_dev);
static int tcpm_set_polarity(struct tcpc_dev *dev,
static int tcpm_set_vconn(struct tcpc_dev *dev, bool on)
tcpc_dev);
static int tcpm_set_vbus(struct tcpc_dev *dev, bool on, bool charge)
tcpc_dev);
struct tcpc_dev tcpc_dev;
static int tcpm_set_pd_rx(struct tcpc_dev *dev, bool on)
tcpc_dev);
static int tcpm_set_roles(struct tcpc_dev *dev, bool attached,
tcpc_dev);
static int tcpm_start_toggling(struct tcpc_dev *dev,
tcpc_dev);
static int qcom_pmic_typec_init(struct tcpc_dev *tcpc)
struct tcpc_dev tcpc;
static int qcom_pmic_typec_pdphy_pd_transmit(struct tcpc_dev *tcpc,
static int qcom_pmic_typec_pdphy_set_pd_rx(struct tcpc_dev *tcpc, bool on)
static int qcom_pmic_typec_pdphy_set_roles(struct tcpc_dev *tcpc, bool attached,
static int qcom_pmic_typec_pdphy_stub_pd_transmit(struct tcpc_dev *tcpc,
static int qcom_pmic_typec_pdphy_stub_set_pd_rx(struct tcpc_dev *tcpc, bool on)
static int qcom_pmic_typec_pdphy_stub_set_roles(struct tcpc_dev *tcpc, bool attached,
static int qcom_pmic_typec_port_get_vbus(struct tcpc_dev *tcpc)
static int qcom_pmic_typec_port_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink)
static int qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc,
static int qcom_pmic_typec_port_set_cc(struct tcpc_dev *tcpc,
static int qcom_pmic_typec_port_set_polarity(struct tcpc_dev *tcpc,
static int qcom_pmic_typec_port_set_vconn(struct tcpc_dev *tcpc, bool on)
static int qcom_pmic_typec_port_start_toggling(struct tcpc_dev *tcpc,
static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc,
static int tcpci_start_toggling(struct tcpc_dev *tcpc,
static int tcpci_get_cc(struct tcpc_dev *tcpc,
static int tcpci_set_polarity(struct tcpc_dev *tcpc,
static int tcpci_set_orientation(struct tcpc_dev *tcpc,
static void tcpci_set_partner_usb_comm_capable(struct tcpc_dev *tcpc, bool capable)
static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable)
static int tcpci_enable_auto_vbus_discharge(struct tcpc_dev *dev, bool enable)
static int tcpci_set_auto_vbus_discharge_threshold(struct tcpc_dev *dev, enum typec_pwr_opmode mode,
static int tcpci_enable_frs(struct tcpc_dev *dev, bool enable)
struct tcpc_dev tcpc;
static void tcpci_frs_sourcing_vbus(struct tcpc_dev *dev)
static void tcpci_check_contaminant(struct tcpc_dev *dev)
static int tcpci_set_bist_data(struct tcpc_dev *tcpc, bool enable)
static int tcpci_set_roles(struct tcpc_dev *tcpc, bool attached,
static int tcpci_set_pd_rx(struct tcpc_dev *tcpc, bool enable)
static int tcpci_get_vbus(struct tcpc_dev *tcpc)
static bool tcpci_is_vbus_vsafe0v(struct tcpc_dev *tcpc)
static int tcpci_set_vbus(struct tcpc_dev *tcpc, bool source, bool sink)
static int tcpci_pd_transmit(struct tcpc_dev *tcpc, enum tcpm_transmit_type type,
static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc)
static bool tcpci_cable_comm_capable(struct tcpc_dev *tcpc)
static bool tcpci_attempt_vconn_swap_discovery(struct tcpc_dev *tcpc)
static int tcpci_init(struct tcpc_dev *tcpc)
static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc)
struct tcpc_dev *tcpc;
struct tcpc_dev *tcpc = port->tcpc;
struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc)
struct tcpc_dev tcpc;
static int wcove_init(struct tcpc_dev *tcpc)
static int wcove_get_vbus(struct tcpc_dev *tcpc)
static int wcove_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink)
static int wcove_set_vconn(struct tcpc_dev *tcpc, bool on)
static int wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1,
static int wcove_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc)
static int wcove_set_polarity(struct tcpc_dev *tcpc, enum typec_cc_polarity pol)
static int wcove_set_current_limit(struct tcpc_dev *tcpc, u32 max_ma, u32 mv)
static int wcove_set_roles(struct tcpc_dev *tcpc, bool attached,
static int wcove_set_pd_rx(struct tcpc_dev *tcpc, bool on)
static int wcove_pd_transmit(struct tcpc_dev *tcpc,
static int wcove_start_toggling(struct tcpc_dev *tcpc,
int (*init)(struct tcpc_dev *dev);
int (*get_vbus)(struct tcpc_dev *dev);
int (*get_current_limit)(struct tcpc_dev *dev);
int (*set_cc)(struct tcpc_dev *dev, enum typec_cc_status cc);
int (*apply_rc)(struct tcpc_dev *dev, enum typec_cc_status cc,
int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1,
int (*set_polarity)(struct tcpc_dev *dev,
int (*set_orientation)(struct tcpc_dev *dev,
int (*set_vconn)(struct tcpc_dev *dev, bool on);
int (*set_vbus)(struct tcpc_dev *dev, bool on, bool charge);
int (*set_current_limit)(struct tcpc_dev *dev, u32 max_ma, u32 mv);
int (*set_pd_rx)(struct tcpc_dev *dev, bool on);
int (*set_roles)(struct tcpc_dev *dev, bool attached,
int (*start_toggling)(struct tcpc_dev *dev,
int (*try_role)(struct tcpc_dev *dev, int role);
int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type,
int (*set_bist_data)(struct tcpc_dev *dev, bool on);
int (*enable_frs)(struct tcpc_dev *dev, bool enable);
void (*frs_sourcing_vbus)(struct tcpc_dev *dev);
int (*enable_auto_vbus_discharge)(struct tcpc_dev *dev, bool enable);
int (*set_auto_vbus_discharge_threshold)(struct tcpc_dev *dev, enum typec_pwr_opmode mode,
bool (*is_vbus_vsafe0v)(struct tcpc_dev *dev);
void (*set_partner_usb_comm_capable)(struct tcpc_dev *dev, bool enable);
void (*check_contaminant)(struct tcpc_dev *dev);
bool (*cable_comm_capable)(struct tcpc_dev *dev);
bool (*attempt_vconn_swap_discovery)(struct tcpc_dev *dev);
struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);