Home
last modified time | relevance | path

Searched refs:tcpc (Results 1 – 4 of 4) sorted by relevance

/drivers/usb/typec/tcpm/qcom/
Dqcom_pmic_typec.c34 struct tcpc_dev tcpc; member
42 #define tcpc_to_tcpm(_tcpc_) container_of(_tcpc_, struct pmic_typec, tcpc)
44 static int qcom_pmic_typec_get_vbus(struct tcpc_dev *tcpc) in qcom_pmic_typec_get_vbus() argument
46 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_get_vbus()
56 static int qcom_pmic_typec_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in qcom_pmic_typec_set_vbus() argument
58 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_set_vbus()
79 static int qcom_pmic_typec_set_vconn(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_set_vconn() argument
81 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_set_vconn()
86 static int qcom_pmic_typec_get_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_get_cc() argument
90 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_get_cc()
[all …]
/drivers/usb/typec/tcpm/
Dtcpci.c40 struct tcpc_dev tcpc; member
55 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument
57 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
70 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument
72 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc()
143 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc() argument
146 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_apply_rc()
170 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument
175 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling()
217 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() argument
[all …]
Dwcove.c154 struct tcpc_dev tcpc; member
158 #define tcpc_to_wcove(_tcpc_) container_of(_tcpc_, struct wcove_typec, tcpc)
200 static int wcove_init(struct tcpc_dev *tcpc) in wcove_init() argument
202 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_init()
217 static int wcove_get_vbus(struct tcpc_dev *tcpc) in wcove_get_vbus() argument
219 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_get_vbus()
232 static int wcove_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in wcove_set_vbus() argument
234 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_set_vbus()
239 static int wcove_set_vconn(struct tcpc_dev *tcpc, bool on) in wcove_set_vconn() argument
241 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_set_vconn()
[all …]
Dtcpm.c317 struct tcpc_dev *tcpc; member
810 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc()
817 if (port->tcpc->enable_auto_vbus_discharge) { in tcpm_enable_auto_vbus_discharge()
818 ret = port->tcpc->enable_auto_vbus_discharge(port->tcpc, enable); in tcpm_enable_auto_vbus_discharge()
834 if (port->tcpc->enable_auto_vbus_discharge && port->tcpc->apply_rc) { in tcpm_apply_rc()
836 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc()
907 ret = port->tcpc->pd_transmit(port->tcpc, type, msg, port->negotiated_rev); in tcpm_pd_transmit()
985 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity()
1000 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn()
1024 if (port->tcpc->get_current_limit) in tcpm_get_current_limit()
[all …]