| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpci.c | 55 struct tcpc_dev tcpc; member 70 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument 72 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 85 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument 87 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc() 158 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc() argument 161 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_apply_rc() 185 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument 190 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling() 252 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() argument [all …]
|
| H A D | wcove.c | 154 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 …]
|
| H A D | tcpm.c | 307 struct tcpc_dev *tcpc; member 788 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc() 795 if (port->tcpc->enable_auto_vbus_discharge) { in tcpm_enable_auto_vbus_discharge() 796 ret = port->tcpc->enable_auto_vbus_discharge(port->tcpc, enable); in tcpm_enable_auto_vbus_discharge() 812 if (port->tcpc->enable_auto_vbus_discharge && port->tcpc->apply_rc) { in tcpm_apply_rc() 814 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc() 882 ret = port->tcpc->pd_transmit(port->tcpc, type, msg, port->negotiated_rev); in tcpm_pd_transmit() 960 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity() 975 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn() 1014 if (port->tcpc->get_current_limit) in tcpm_get_current_limit() [all …]
|
| H A D | tcpci.h | 178 * Optional; Enables TCPC to autonously discharge vbus on disconnect. 180 * optional; Set when TCPC can detect whether vbus is at VSAFE0V.
|
| H A D | tcpci_mt6360.c | 220 { .compatible = "mediatek,mt6360-tcpc", }, 227 .name = "mt6360-tcpc",
|
| H A D | tcpci_maxim.c | 5 * MAXIM TCPCI based TCPC driver
|
| /OK3568_Linux_fs/u-boot/drivers/power/power_delivery/ |
| H A D | tcpci.c | 37 struct tcpc_dev tcpc; member 48 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument 50 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 111 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument 113 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc() 158 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument 163 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling() 222 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() argument 225 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_get_cc() 248 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity() argument [all …]
|
| H A D | tcpm.c | 287 struct tcpc_dev *tcpc; member 539 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc() 588 ret = port->tcpc->pd_transmit(port->tcpc, type, msg, port->negotiated_rev); in tcpm_pd_transmit() 593 port->tcpc->poll_event(port->tcpc); in tcpm_pd_transmit() 636 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity() 651 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn() 673 if (port->tcpc->get_current_limit) in tcpm_get_current_limit() 674 limit = port->tcpc->get_current_limit(port->tcpc); in tcpm_get_current_limit() 692 if (port->tcpc->set_current_limit) in tcpm_set_current_limit() 693 ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); in tcpm_set_current_limit() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A D | mediatek,mt6360-tcpc.yaml | 4 $id: "http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#" 20 - mediatek,mt6360-tcpc 53 tcpc { 54 compatible = "mediatek,mt6360-tcpc";
|
| H A D | typec-tcpci.txt | 6 - "nxp,ptn5110" for NXP USB PD TCPC PHY IC ptn5110.
|
| H A D | hynetek,husb311.yaml | 28 description: TCPC connected to USB controller to support dual-role switch.
|
| H A D | etek,et7303.yaml | 27 description: TCPC connected to USB controller to support dual-role switch.
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | tcpm.h | 31 /* 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 164 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
|
| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | tcpm.h | 31 /* 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 170 struct tcpm_port *tcpm_port_init(struct udevice *dev, struct tcpc_dev *tcpc);
|
| /OK3568_Linux_fs/kernel/arch/s390/include/asm/ |
| H A D | stp.h | 19 u32 tcpc : 1; /* Time control parameter change */ member
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/freescale/ |
| H A D | imx8mn-evk.dtsi | 75 ptn5110: tcpc@50 {
|
| H A D | imx8mm-evk.dtsi | 240 ptn5110: tcpc@50 {
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/skylake/ |
| H A D | skl-debug.c | 86 "Resources:\n\tCPC %#x\n\tIBS %#x\n\tOBS %#x\t\n", in module_read()
|
| /OK3568_Linux_fs/kernel/arch/mips/kernel/ |
| H A D | vpe-mt.c | 78 * Write the address we want it to start running from in the TCPC in vpe_run()
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/ |
| H A D | time.c | 506 if (intparm->tsc || intparm->lac || intparm->tcpc) in stp_timing_alert()
|
| /OK3568_Linux_fs/kernel/include/linux/platform_data/ |
| H A D | cros_ec_commands.h | 4823 #define PD_STATUS_TCPC_ALERT_0 BIT(3) /* Alert active in port 0 TCPC */ 4824 #define PD_STATUS_TCPC_ALERT_1 BIT(4) /* Alert active in port 1 TCPC */ 4825 #define PD_STATUS_TCPC_ALERT_2 BIT(5) /* Alert active in port 2 TCPC */ 4826 #define PD_STATUS_TCPC_ALERT_3 BIT(6) /* Alert active in port 3 TCPC */
|
| /OK3568_Linux_fs/kernel/android/ |
| H A D | abi_gki_aarch64.xml | 41980 …<var-decl name='tcpc' type-id='3a8363f1' visibility='default' filepath='drivers/usb/typec/tcpm/tcp… 65298 …<var-decl name='tcpc' type-id='15b1f129' visibility='default' filepath='drivers/usb/typec/tcpm/tcp… 145610 …<parameter type-id='15b1f129' name='tcpc' filepath='drivers/usb/typec/tcpm/tcpm.c' line='6443' col…
|