Searched refs:tcpc_dev (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/include/linux/usb/ |
H A D | tcpm.h | 123 struct tcpc_dev { struct 126 int (*init)(struct tcpc_dev *dev); argument 127 int (*get_vbus)(struct tcpc_dev *dev); argument 128 int (*get_current_limit)(struct tcpc_dev *dev); argument 134 int (*set_polarity)(struct tcpc_dev *dev, argument 136 int (*set_vconn)(struct tcpc_dev *dev, bool on); argument 139 int (*set_pd_rx)(struct tcpc_dev *dev, bool on); argument 142 int (*start_toggling)(struct tcpc_dev *dev, argument 145 int (*try_role)(struct tcpc_dev *dev, int role); argument 150 void (*frs_sourcing_vbus)(struct tcpc_dev *dev); argument [all …]
|
/openbmc/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec.c | 34 struct tcpc_dev tcpc; 44 static int qcom_pmic_typec_get_vbus(struct tcpc_dev *tcpc) in qcom_pmic_typec_get_vbus() 79 static int qcom_pmic_typec_set_vconn(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_set_vconn() 86 static int qcom_pmic_typec_get_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_get_cc() 95 static int qcom_pmic_typec_set_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_set_cc() 103 static int qcom_pmic_typec_set_polarity(struct tcpc_dev *tcpc, in qcom_pmic_typec_set_polarity() 110 static int qcom_pmic_typec_start_toggling(struct tcpc_dev *tcpc, in qcom_pmic_typec_start_toggling() 120 static int qcom_pmic_typec_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_set_roles() 130 static int qcom_pmic_typec_set_pd_rx(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_set_pd_rx() 137 static int qcom_pmic_typec_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pd_transmit() [all …]
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpci.c | 40 struct tcpc_dev tcpc; 55 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 170 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() 217 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() 244 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity() 312 static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable) in tcpci_set_vconn() 399 static void tcpci_frs_sourcing_vbus(struct tcpc_dev *dev) in tcpci_frs_sourcing_vbus() 407 static void tcpci_check_contaminant(struct tcpc_dev *dev) in tcpci_check_contaminant() 457 static int tcpci_get_vbus(struct tcpc_dev *tcpc) in tcpci_get_vbus() 470 static bool tcpci_is_vbus_vsafe0v(struct tcpc_dev *tcpc) in tcpci_is_vbus_vsafe0v() [all …]
|
H A D | fusb302.c | 77 struct tcpc_dev tcpc_dev; member 395 tcpc_dev); in tcpm_init() 426 tcpc_dev); in tcpm_get_vbus() 439 tcpc_dev); in tcpm_get_current_limit() 600 tcpc_dev); in tcpm_set_cc() 707 tcpc_dev); in tcpm_get_cc() 728 tcpc_dev); in tcpm_set_vconn() 759 tcpc_dev); in tcpm_set_vbus() 840 tcpc_dev); in tcpm_set_pd_rx() 887 tcpc_dev); in tcpm_set_roles() [all …]
|
H A D | wcove.c | 154 struct tcpc_dev tcpc; 200 static int wcove_init(struct tcpc_dev *tcpc) in wcove_init() 217 static int wcove_get_vbus(struct tcpc_dev *tcpc) in wcove_get_vbus() 232 static int wcove_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in wcove_set_vbus() 239 static int wcove_set_vconn(struct tcpc_dev *tcpc, bool on) in wcove_set_vconn() 268 static int wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, in wcove_get_cc() 290 static int wcove_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in wcove_set_cc() 330 static int wcove_set_roles(struct tcpc_dev *tcpc, bool attached, in wcove_set_roles() 349 static int wcove_set_pd_rx(struct tcpc_dev *tcpc, bool on) in wcove_set_pd_rx() 357 static int wcove_pd_transmit(struct tcpc_dev *tcpc, in wcove_pd_transmit() [all …]
|
H A D | tcpm.c | 308 struct tcpc_dev *tcpc; 5806 struct tcpc_dev *tcpc = port->tcpc; in tcpm_try_role() 6559 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc) in tcpm_register_port()
|