Home
last modified time | relevance | path

Searched full:tcpc (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/drivers/usb/typec/tcpm/
Dtcpci.c41 struct tcpc_dev tcpc; member
56 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument
58 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
71 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument
73 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc()
144 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc() argument
147 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_apply_rc()
171 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument
176 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling()
218 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.c308 struct tcpc_dev *tcpc; member
798 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc()
805 if (port->tcpc->enable_auto_vbus_discharge) { in tcpm_enable_auto_vbus_discharge()
806 ret = port->tcpc->enable_auto_vbus_discharge(port->tcpc, enable); in tcpm_enable_auto_vbus_discharge()
822 if (port->tcpc->enable_auto_vbus_discharge && port->tcpc->apply_rc) { in tcpm_apply_rc()
824 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc()
895 ret = port->tcpc->pd_transmit(port->tcpc, type, msg, port->negotiated_rev); in tcpm_pd_transmit()
973 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity()
988 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn()
1012 if (port->tcpc->get_current_limit) in tcpm_get_current_limit()
[all …]
Dtcpci_mt6370.c188 { .compatible = "mediatek,mt6370-tcpc" },
195 .name = "mt6370-tcpc",
Dtcpci_mt6360.c212 { .compatible = "mediatek,mt6360-tcpc", },
219 .name = "mt6360-tcpc",
Dtcpci_maxim.h5 * MAXIM TCPC header file.
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
Dtcpci.c41 struct tcpc_dev tcpc; member
56 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument
58 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
71 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument
73 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc()
118 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument
123 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling()
182 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() argument
185 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_get_cc()
209 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity() 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.c255 struct tcpc_dev *tcpc; member
688 ret = port->tcpc->pd_transmit(port->tcpc, type, msg); in tcpm_pd_transmit()
749 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity()
764 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn()
788 if (port->tcpc->get_current_limit) in tcpm_get_current_limit()
789 limit = port->tcpc->get_current_limit(port->tcpc); in tcpm_get_current_limit()
808 if (port->tcpc->set_current_limit) in tcpm_set_current_limit()
809 ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); in tcpm_set_current_limit()
849 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
894 ret = port->tcpc->set_roles(port->tcpc, attached, role, data); in tcpm_set_roles()
[all …]
Dtcpci_mt6360.c220 { .compatible = "mediatek,mt6360-tcpc", },
227 .name = "mt6360-tcpc",
Dtcpci_maxim.c5 * MAXIM TCPCI based TCPC driver
248 * have instructed to TCPC to enable boost, so the call is a in process_power_status()
484 { .compatible = "maxim,tcpc", },
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
Dmediatek,mt6360-tcpc.yaml4 $id: "http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#"
20 - mediatek,mt6360-tcpc
53 tcpc {
54 compatible = "mediatek,mt6360-tcpc";
Dtypec-tcpci.txt6 - "nxp,ptn5110" for NXP USB PD TCPC PHY IC ptn5110.
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/
Dmediatek,mt6360-tcpc.yaml4 $id: http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#
20 - mediatek,mt6360-tcpc
58 tcpc {
59 compatible = "mediatek,mt6360-tcpc";
Dmediatek,mt6370-tcpc.yaml4 $id: http://devicetree.org/schemas/usb/mediatek,mt6370-tcpc.yaml#
22 - mediatek,mt6370-tcpc
Dwillsemi,wusb3801.yaml59 tcpc@60 {
/kernel/linux/linux-6.6/include/linux/usb/
Dtcpm.h31 /* Time to wait for TCPC to complete transmit */
96 * Optional; TCPCI spec based TCPC implementations can optionally
98 * as sink or source. TCPM signals TCPC to enable the mechanism upon
108 * Optional; TCPCI spec based TCPC implementations are expected to
110 * is supported by TCPC, set this callback for TCPM to query
162 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
Dtcpci.h185 * Optional; Enables TCPC to autonously discharge vbus on disconnect.
187 * optional; Set when TCPC can detect whether vbus is at VSAFE0V.
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dmediatek,mt6370.yaml63 tcpc:
65 $ref: /schemas/usb/mediatek,mt6370-tcpc.yaml#
108 - tcpc
216 tcpc {
217 compatible = "mediatek,mt6370-tcpc";
Dmediatek,mt6360.yaml46 tcpc:
47 $ref: /schemas/usb/mediatek,mt6360-tcpc.yaml#
206 tcpc {
207 compatible = "mediatek,mt6360-tcpc";
/kernel/linux/linux-5.10/include/linux/usb/
Dtcpm.h27 /* Time to wait for TCPC to complete transmit */
116 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
/kernel/linux/linux-6.6/drivers/mfd/
Dmt6370.c142 MFD_CELL_OF("mt6370-tcpc",
143 NULL, NULL, 0, 0, "mediatek,mt6370-tcpc"),
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dstp.h19 u32 tcpc : 1; /* Time control parameter change */ member
/kernel/linux/linux-6.6/arch/s390/include/asm/
Dstp.h19 u32 tcpc : 1; /* Time control parameter change */ member

12