/linux/drivers/usb/typec/tcpm/ |
H A D | tcpci.c | 41 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() 83 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument 85 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc() 156 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc() argument 159 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_apply_rc() 179 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument 184 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling() 226 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 | 322 struct tcpc_dev *tcpc; member 859 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc() 866 if (port->tcpc->enable_auto_vbus_discharge) { in tcpm_enable_auto_vbus_discharge() 867 ret = port->tcpc->enable_auto_vbus_discharge(port->tcpc, enable); in tcpm_enable_auto_vbus_discharge() 883 if (port->tcpc->enable_auto_vbus_discharge && port->tcpc->apply_rc) { in tcpm_apply_rc() 885 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc() 967 ret = port->tcpc->pd_transmit(port->tcpc, tx_sop_type, msg, negotiated_rev); in tcpm_pd_transmit() 1055 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity() 1070 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn() 1094 if (port->tcpc->get_current_limit) in tcpm_get_current_limit() [all …]
|
/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec_pdphy_stub.c | 20 static int qcom_pmic_typec_pdphy_stub_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pdphy_stub_pd_transmit() argument 25 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_pd_transmit() 36 static int qcom_pmic_typec_pdphy_stub_set_pd_rx(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_pdphy_stub_set_pd_rx() argument 38 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_set_pd_rx() 46 static int qcom_pmic_typec_pdphy_stub_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_pdphy_stub_set_roles() argument 50 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_set_roles() 72 tcpm->tcpc.set_pd_rx = qcom_pmic_typec_pdphy_stub_set_pd_rx; in qcom_pmic_typec_pdphy_stub_probe() 73 tcpm->tcpc.set_roles = qcom_pmic_typec_pdphy_stub_set_roles; in qcom_pmic_typec_pdphy_stub_probe() 74 tcpm->tcpc.pd_transmit = qcom_pmic_typec_pdphy_stub_pd_transmit; in qcom_pmic_typec_pdphy_stub_probe()
|
H A D | qcom_pmic_typec.c | 32 static int qcom_pmic_typec_init(struct tcpc_dev *tcpc) in qcom_pmic_typec_init() argument 57 tcpm->tcpc.init = qcom_pmic_typec_init; in qcom_pmic_typec_probe() 91 tcpm->tcpc.fwnode = device_get_named_child_node(tcpm->dev, "connector"); in qcom_pmic_typec_probe() 92 if (!tcpm->tcpc.fwnode) in qcom_pmic_typec_probe() 95 bridge_dev = devm_drm_dp_hpd_bridge_alloc(tcpm->dev, to_of_node(tcpm->tcpc.fwnode)); in qcom_pmic_typec_probe() 101 tcpm->tcpm_port = tcpm_register_port(tcpm->dev, &tcpm->tcpc); in qcom_pmic_typec_probe() 128 fwnode_handle_put(tcpm->tcpc.fwnode); in qcom_pmic_typec_probe() 140 fwnode_handle_put(tcpm->tcpc.fwnode); in qcom_pmic_typec_remove()
|
H A D | qcom_pmic_typec_port.c | 323 static int qcom_pmic_typec_port_get_vbus(struct tcpc_dev *tcpc) in qcom_pmic_typec_port_get_vbus() argument 325 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_get_vbus() 336 static int qcom_pmic_typec_port_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in qcom_pmic_typec_port_set_vbus() argument 338 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_vbus() 360 static int qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_get_cc() argument 364 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_get_cc() 457 static int qcom_pmic_typec_port_set_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_set_cc() argument 460 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_cc() 525 static int qcom_pmic_typec_port_set_polarity(struct tcpc_dev *tcpc, in qcom_pmic_typec_port_set_polarity() argument 532 static int qcom_pmic_typec_port_set_vconn(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_port_set_vconn() argument [all …]
|
H A D | qcom_pmic_typec_pdphy.c | 300 static int qcom_pmic_typec_pdphy_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pdphy_pd_transmit() argument 305 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_pd_transmit() 407 static int qcom_pmic_typec_pdphy_set_pd_rx(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_pdphy_set_pd_rx() argument 409 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_set_pd_rx() 426 static int qcom_pmic_typec_pdphy_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_pdphy_set_roles() argument 430 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_set_roles() 606 tcpm->tcpc.set_pd_rx = qcom_pmic_typec_pdphy_set_pd_rx; in qcom_pmic_typec_pdphy_probe() 607 tcpm->tcpc.set_roles = qcom_pmic_typec_pdphy_set_roles; in qcom_pmic_typec_pdphy_probe() 608 tcpm->tcpc.pd_transmit = qcom_pmic_typec_pdphy_pd_transmit; in qcom_pmic_typec_pdphy_probe()
|
H A D | qcom_pmic_typec.h | 12 struct tcpc_dev tcpc; member 25 #define tcpc_to_tcpm(_tcpc_) container_of(_tcpc_, struct pmic_typec, tcpc)
|
/linux/arch/s390/include/asm/ |
H A D | stp.h | 19 u32 tcpc : 1; /* Time control parameter change */ member
|
/linux/include/linux/usb/ |
H A D | tcpm.h | 176 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3566-pinenote.dtsi | 468 wusb3801: tcpc@60 { 606 tcpc { 607 tcpc_int_l: tcpc-int-l {
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx93-11x11-evk.dts | 343 ptn5110: tcpc@50 { 376 ptn5110_2: tcpc@51 {
|
H A D | imx8qxp-mek.dts | 168 ptn5110: tcpc@50 {
|
H A D | imx93-9x9-qsb.dts | 139 ptn5110: tcpc@50 {
|
H A D | imx8mn-evk.dtsi | 255 ptn5110: tcpc@50 {
|
H A D | imx8qm-mek.dts | 341 ptn5110: tcpc@51 {
|
H A D | imx8mm-evk.dtsi | 406 ptn5110: tcpc@50 {
|
H A D | imx93-tqma9352-mba93xxca.dts | 296 tcpc-irq-hog {
|
/linux/arch/s390/kernel/ |
H A D | time.c | 500 if (intparm->tsc || intparm->lac || intparm->tcpc) in stp_timing_alert()
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8395-radxa-nio-12l.dts | 336 compatible = "mediatek,mt6360-tcpc";
|