Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/typec/
Dtcpci.c32 struct tcpc_dev tcpc; member
41 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument
43 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
56 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument
58 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc()
103 static int tcpci_start_drp_toggling(struct tcpc_dev *tcpc, in tcpci_start_drp_toggling() argument
107 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_drp_toggling()
163 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() argument
166 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_get_cc()
184 static int tcpci_set_polarity(struct tcpc_dev *tcpc, in tcpci_set_polarity() argument
[all …]
Dtypec_wcove.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.c201 struct tcpc_dev *tcpc; member
378 else if (port->tcpc->config->default_role == TYPEC_SINK) in tcpm_default_state()
613 ret = port->tcpc->pd_transmit(port->tcpc, type, msg); in tcpm_pd_transmit()
674 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity()
689 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn()
713 if (port->tcpc->get_current_limit) in tcpm_get_current_limit()
714 limit = port->tcpc->get_current_limit(port->tcpc); in tcpm_get_current_limit()
732 if (port->tcpc->set_current_limit) in tcpm_set_current_limit()
733 ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); in tcpm_set_current_limit()
773 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
[all …]
/Linux-v4.19/arch/s390/include/asm/
Dstp.h17 unsigned int tcpc : 1; /* Time control parameter change */ member
/Linux-v4.19/include/linux/usb/
Dtcpm.h158 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
/Linux-v4.19/arch/s390/kernel/
Dtime.c561 if (intparm->tsc || intparm->lac || intparm->tcpc) in stp_timing_alert()