tcpc 17 arch/s390/include/asm/stp.h unsigned int tcpc : 1; /* Time control parameter change */ tcpc 561 arch/s390/kernel/time.c if (intparm->tsc || intparm->lac || intparm->tcpc) tcpc 32 drivers/usb/typec/tcpm/tcpci.c struct tcpc_dev tcpc; tcpc 41 drivers/usb/typec/tcpm/tcpci.c static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) tcpc 43 drivers/usb/typec/tcpm/tcpci.c return container_of(tcpc, struct tcpci, tcpc); tcpc 56 drivers/usb/typec/tcpm/tcpci.c static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) tcpc 58 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 103 drivers/usb/typec/tcpm/tcpci.c static int tcpci_start_toggling(struct tcpc_dev *tcpc, tcpc 108 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 167 drivers/usb/typec/tcpm/tcpci.c static int tcpci_get_cc(struct tcpc_dev *tcpc, tcpc 170 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 188 drivers/usb/typec/tcpm/tcpci.c static int tcpci_set_polarity(struct tcpc_dev *tcpc, tcpc 191 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 213 drivers/usb/typec/tcpm/tcpci.c static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable) tcpc 215 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 230 drivers/usb/typec/tcpm/tcpci.c static int tcpci_set_roles(struct tcpc_dev *tcpc, bool attached, tcpc 233 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 249 drivers/usb/typec/tcpm/tcpci.c static int tcpci_set_pd_rx(struct tcpc_dev *tcpc, bool enable) tcpc 251 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 264 drivers/usb/typec/tcpm/tcpci.c static int tcpci_get_vbus(struct tcpc_dev *tcpc) tcpc 266 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 277 drivers/usb/typec/tcpm/tcpci.c static int tcpci_set_vbus(struct tcpc_dev *tcpc, bool source, bool sink) tcpc 279 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 315 drivers/usb/typec/tcpm/tcpci.c static int tcpci_pd_transmit(struct tcpc_dev *tcpc, tcpc 319 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 349 drivers/usb/typec/tcpm/tcpci.c static int tcpci_init(struct tcpc_dev *tcpc) tcpc 351 drivers/usb/typec/tcpm/tcpci.c struct tcpci *tcpci = tcpc_to_tcpci(tcpc); tcpc 498 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.fwnode = device_get_named_child_node(tcpci->dev, tcpc 500 drivers/usb/typec/tcpm/tcpci.c if (!tcpci->tcpc.fwnode) { tcpc 521 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.init = tcpci_init; tcpc 522 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.get_vbus = tcpci_get_vbus; tcpc 523 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.set_vbus = tcpci_set_vbus; tcpc 524 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.set_cc = tcpci_set_cc; tcpc 525 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.get_cc = tcpci_get_cc; tcpc 526 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.set_polarity = tcpci_set_polarity; tcpc 527 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.set_vconn = tcpci_set_vconn; tcpc 528 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.start_toggling = tcpci_start_toggling; tcpc 530 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.set_pd_rx = tcpci_set_pd_rx; tcpc 531 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.set_roles = tcpci_set_roles; tcpc 532 drivers/usb/typec/tcpm/tcpci.c tcpci->tcpc.pd_transmit = tcpci_pd_transmit; tcpc 538 drivers/usb/typec/tcpm/tcpci.c tcpci->port = tcpm_register_port(tcpci->dev, &tcpci->tcpc); tcpc 203 drivers/usb/typec/tcpm/tcpm.c struct tcpc_dev *tcpc; tcpc 383 drivers/usb/typec/tcpm/tcpm.c else if (port->tcpc->config && tcpc 384 drivers/usb/typec/tcpm/tcpm.c port->tcpc->config->default_role == TYPEC_SINK) tcpc 624 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->pd_transmit(port->tcpc, type, msg); tcpc 685 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_polarity(port->tcpc, polarity); tcpc 700 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_vconn(port->tcpc, enable); tcpc 724 drivers/usb/typec/tcpm/tcpm.c if (port->tcpc->get_current_limit) tcpc 725 drivers/usb/typec/tcpm/tcpm.c limit = port->tcpc->get_current_limit(port->tcpc); tcpc 743 drivers/usb/typec/tcpm/tcpm.c if (port->tcpc->set_current_limit) tcpc 744 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); tcpc 784 drivers/usb/typec/tcpm/tcpm.c return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, tcpc 809 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_roles(port->tcpc, attached, role, data); tcpc 825 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_roles(port->tcpc, true, role, tcpc 2534 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_vbus(port->tcpc, enable, port->vbus_charge); tcpc 2551 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_vbus(port->tcpc, port->vbus_source, tcpc 2564 drivers/usb/typec/tcpm/tcpm.c if (!port->tcpc->start_toggling) tcpc 2568 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->start_toggling(port->tcpc, port->port_type, cc); tcpc 2576 drivers/usb/typec/tcpm/tcpm.c port->tcpc->set_cc(port->tcpc, cc); tcpc 2583 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_vbus(port->tcpc, false, false); tcpc 2593 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_vconn(port->tcpc, false); tcpc 2634 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_pd_rx(port->tcpc, true); tcpc 2666 drivers/usb/typec/tcpm/tcpm.c port->tcpc->set_pd_rx(port->tcpc, false); tcpc 2709 drivers/usb/typec/tcpm/tcpm.c port->tcpc->set_pd_rx(port->tcpc, false); tcpc 3197 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_pd_rx(port->tcpc, true); tcpc 3292 drivers/usb/typec/tcpm/tcpm.c port->tcpc->set_pd_rx(port->tcpc, false); tcpc 3310 drivers/usb/typec/tcpm/tcpm.c port->tcpc->set_pd_rx(port->tcpc, true); tcpc 3954 drivers/usb/typec/tcpm/tcpm.c vbus = port->tcpc->get_vbus(port->tcpc); tcpc 3963 drivers/usb/typec/tcpm/tcpm.c if (port->tcpc->get_cc(port->tcpc, &cc1, &cc2) == 0) tcpc 4154 drivers/usb/typec/tcpm/tcpm.c struct tcpc_dev *tcpc = port->tcpc; tcpc 4158 drivers/usb/typec/tcpm/tcpm.c if (tcpc->try_role) tcpc 4159 drivers/usb/typec/tcpm/tcpm.c ret = tcpc->try_role(tcpc, role); tcpc 4160 drivers/usb/typec/tcpm/tcpm.c if (!ret && (!tcpc->config || !tcpc->config->try_role_hw)) tcpc 4335 drivers/usb/typec/tcpm/tcpm.c port->tcpc->init(port->tcpc); tcpc 4344 drivers/usb/typec/tcpm/tcpm.c port->vbus_present = port->tcpc->get_vbus(port->tcpc); tcpc 4350 drivers/usb/typec/tcpm/tcpm.c if (port->tcpc->get_cc(port->tcpc, &cc1, &cc2) == 0) tcpc 4752 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc) tcpc 4757 drivers/usb/typec/tcpm/tcpm.c if (!dev || !tcpc || tcpc 4758 drivers/usb/typec/tcpm/tcpm.c !tcpc->get_vbus || !tcpc->set_cc || !tcpc->get_cc || tcpc 4759 drivers/usb/typec/tcpm/tcpm.c !tcpc->set_polarity || !tcpc->set_vconn || !tcpc->set_vbus || tcpc 4760 drivers/usb/typec/tcpm/tcpm.c !tcpc->set_pd_rx || !tcpc->set_roles || !tcpc->pd_transmit) tcpc 4768 drivers/usb/typec/tcpm/tcpm.c port->tcpc = tcpc; tcpc 4787 drivers/usb/typec/tcpm/tcpm.c err = tcpm_fw_get_caps(port, tcpc->fwnode); tcpc 4788 drivers/usb/typec/tcpm/tcpm.c if ((err < 0) && tcpc->config) tcpc 4789 drivers/usb/typec/tcpm/tcpm.c err = tcpm_copy_caps(port, tcpc->config); tcpc 4793 drivers/usb/typec/tcpm/tcpm.c if (!tcpc->config || !tcpc->config->try_role_hw) tcpc 4798 drivers/usb/typec/tcpm/tcpm.c port->typec_caps.fwnode = tcpc->fwnode; tcpc 4826 drivers/usb/typec/tcpm/tcpm.c if (tcpc->config && tcpc->config->alt_modes) { tcpc 4827 drivers/usb/typec/tcpm/tcpm.c const struct typec_altmode_desc *paltmode = tcpc->config->alt_modes; tcpc 154 drivers/usb/typec/tcpm/wcove.c struct tcpc_dev tcpc; tcpc 158 drivers/usb/typec/tcpm/wcove.c #define tcpc_to_wcove(_tcpc_) container_of(_tcpc_, struct wcove_typec, tcpc) tcpc 200 drivers/usb/typec/tcpm/wcove.c static int wcove_init(struct tcpc_dev *tcpc) tcpc 202 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 217 drivers/usb/typec/tcpm/wcove.c static int wcove_get_vbus(struct tcpc_dev *tcpc) tcpc 219 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 232 drivers/usb/typec/tcpm/wcove.c static int wcove_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) tcpc 234 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 239 drivers/usb/typec/tcpm/wcove.c static int wcove_set_vconn(struct tcpc_dev *tcpc, bool on) tcpc 241 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 268 drivers/usb/typec/tcpm/wcove.c static int wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, tcpc 271 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 290 drivers/usb/typec/tcpm/wcove.c static int wcove_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) tcpc 292 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 318 drivers/usb/typec/tcpm/wcove.c static int wcove_set_polarity(struct tcpc_dev *tcpc, enum typec_cc_polarity pol) tcpc 320 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 325 drivers/usb/typec/tcpm/wcove.c static int wcove_set_current_limit(struct tcpc_dev *tcpc, u32 max_ma, u32 mv) tcpc 330 drivers/usb/typec/tcpm/wcove.c static int wcove_set_roles(struct tcpc_dev *tcpc, bool attached, tcpc 333 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 349 drivers/usb/typec/tcpm/wcove.c static int wcove_set_pd_rx(struct tcpc_dev *tcpc, bool on) tcpc 351 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 357 drivers/usb/typec/tcpm/wcove.c static int wcove_pd_transmit(struct tcpc_dev *tcpc, tcpc 361 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 419 drivers/usb/typec/tcpm/wcove.c static int wcove_start_toggling(struct tcpc_dev *tcpc, tcpc 423 drivers/usb/typec/tcpm/wcove.c struct wcove_typec *wcove = tcpc_to_wcove(tcpc); tcpc 636 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.init = wcove_init; tcpc 637 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.get_vbus = wcove_get_vbus; tcpc 638 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_vbus = wcove_set_vbus; tcpc 639 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_cc = wcove_set_cc; tcpc 640 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.get_cc = wcove_get_cc; tcpc 641 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_polarity = wcove_set_polarity; tcpc 642 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_vconn = wcove_set_vconn; tcpc 643 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_current_limit = wcove_set_current_limit; tcpc 644 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.start_toggling = wcove_start_toggling; tcpc 646 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_pd_rx = wcove_set_pd_rx; tcpc 647 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.set_roles = wcove_set_roles; tcpc 648 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.pd_transmit = wcove_pd_transmit; tcpc 650 drivers/usb/typec/tcpm/wcove.c wcove->tcpc.fwnode = fwnode_create_software_node(wcove_props, NULL); tcpc 651 drivers/usb/typec/tcpm/wcove.c if (IS_ERR(wcove->tcpc.fwnode)) tcpc 652 drivers/usb/typec/tcpm/wcove.c return PTR_ERR(wcove->tcpc.fwnode); tcpc 654 drivers/usb/typec/tcpm/wcove.c wcove->tcpm = tcpm_register_port(wcove->dev, &wcove->tcpc); tcpc 656 drivers/usb/typec/tcpm/wcove.c fwnode_remove_software_node(wcove->tcpc.fwnode); tcpc 665 drivers/usb/typec/tcpm/wcove.c fwnode_remove_software_node(wcove->tcpc.fwnode); tcpc 685 drivers/usb/typec/tcpm/wcove.c fwnode_remove_software_node(wcove->tcpc.fwnode); tcpc 151 include/linux/usb/tcpm.h struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);