Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/usb/typec/tcpm/
H A Dtcpci.c42 struct tcpc_dev tcpc; member
59 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
86 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc()
265 ret = tcpci_get_cc(tcpc, &cc1, &cc2); in tcpci_set_polarity()
823 if (!tcpci->tcpc.fwnode) { in tcpci_parse_config()
844 tcpci->tcpc.init = tcpci_init; in tcpci_register_port()
845 tcpci->tcpc.get_vbus = tcpci_get_vbus; in tcpci_register_port()
846 tcpci->tcpc.set_vbus = tcpci_set_vbus; in tcpci_register_port()
847 tcpci->tcpc.set_cc = tcpci_set_cc; in tcpci_register_port()
848 tcpci->tcpc.apply_rc = tcpci_apply_rc; in tcpci_register_port()
[all …]
H A Dwcove.c154 struct tcpc_dev tcpc; member
633 wcove->tcpc.init = wcove_init; in wcove_typec_probe()
634 wcove->tcpc.get_vbus = wcove_get_vbus; in wcove_typec_probe()
635 wcove->tcpc.set_vbus = wcove_set_vbus; in wcove_typec_probe()
636 wcove->tcpc.set_cc = wcove_set_cc; in wcove_typec_probe()
637 wcove->tcpc.get_cc = wcove_get_cc; in wcove_typec_probe()
639 wcove->tcpc.set_vconn = wcove_set_vconn; in wcove_typec_probe()
643 wcove->tcpc.set_pd_rx = wcove_set_pd_rx; in wcove_typec_probe()
644 wcove->tcpc.set_roles = wcove_set_roles; in wcove_typec_probe()
648 if (IS_ERR(wcove->tcpc.fwnode)) in wcove_typec_probe()
[all …]
H A Dtcpm.c887 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc()
4396 port->tcpc->set_pd_rx(port->tcpc, false); in tcpm_src_attach()
4471 port->tcpc->set_pd_rx(port->tcpc, false); in tcpm_reset_port()
5309 port->tcpc->set_pd_rx(port->tcpc, false); in run_state_machine()
6687 struct tcpc_dev *tcpc = port->tcpc; in tcpm_try_role() local
6692 ret = tcpc->try_role(tcpc, role); in tcpm_try_role()
6881 port->tcpc->init(port->tcpc); in tcpm_init()
7699 !tcpc->get_vbus || !tcpc->set_cc || !tcpc->get_cc || in tcpm_register_port()
7700 !tcpc->set_polarity || !tcpc->set_vconn || !tcpc->set_vbus || in tcpm_register_port()
7701 !tcpc->set_pd_rx || !tcpc->set_roles || !tcpc->pd_transmit) in tcpm_register_port()
[all …]
/linux-6.15/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec_pdphy_stub.c21 static int qcom_pmic_typec_pdphy_stub_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pdphy_stub_pd_transmit() argument
26 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_pd_transmit()
37 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
39 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_set_pd_rx()
47 static int qcom_pmic_typec_pdphy_stub_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_pdphy_stub_set_roles() argument
51 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_set_roles()
73 tcpm->tcpc.set_pd_rx = qcom_pmic_typec_pdphy_stub_set_pd_rx; in qcom_pmic_typec_pdphy_stub_probe()
74 tcpm->tcpc.set_roles = qcom_pmic_typec_pdphy_stub_set_roles; in qcom_pmic_typec_pdphy_stub_probe()
75 tcpm->tcpc.pd_transmit = qcom_pmic_typec_pdphy_stub_pd_transmit; in qcom_pmic_typec_pdphy_stub_probe()
H A Dqcom_pmic_typec.c32 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 Dqcom_pmic_typec_port.c326 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_get_vbus()
339 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_vbus()
365 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_get_cc()
461 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_cc()
535 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_vconn()
576 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_start_toggling()
759 tcpm->tcpc.get_vbus = qcom_pmic_typec_port_get_vbus; in qcom_pmic_typec_port_probe()
760 tcpm->tcpc.set_vbus = qcom_pmic_typec_port_set_vbus; in qcom_pmic_typec_port_probe()
761 tcpm->tcpc.set_cc = qcom_pmic_typec_port_set_cc; in qcom_pmic_typec_port_probe()
762 tcpm->tcpc.get_cc = qcom_pmic_typec_port_get_cc; in qcom_pmic_typec_port_probe()
[all …]
H A Dqcom_pmic_typec_pdphy.c301 static int qcom_pmic_typec_pdphy_pd_transmit(struct tcpc_dev *tcpc, in qcom_pmic_typec_pdphy_pd_transmit() argument
306 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_pd_transmit()
408 static int qcom_pmic_typec_pdphy_set_pd_rx(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_pdphy_set_pd_rx() argument
410 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_set_pd_rx()
427 static int qcom_pmic_typec_pdphy_set_roles(struct tcpc_dev *tcpc, bool attached, in qcom_pmic_typec_pdphy_set_roles() argument
431 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_set_roles()
607 tcpm->tcpc.set_pd_rx = qcom_pmic_typec_pdphy_set_pd_rx; in qcom_pmic_typec_pdphy_probe()
608 tcpm->tcpc.set_roles = qcom_pmic_typec_pdphy_set_roles; in qcom_pmic_typec_pdphy_probe()
609 tcpm->tcpc.pd_transmit = qcom_pmic_typec_pdphy_pd_transmit; in qcom_pmic_typec_pdphy_probe()
H A Dqcom_pmic_typec.h12 struct tcpc_dev tcpc; member
25 #define tcpc_to_tcpm(_tcpc_) container_of(_tcpc_, struct pmic_typec, tcpc)
/linux-6.15/Documentation/devicetree/bindings/usb/
H A 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";
H A Dmediatek,mt6370-tcpc.yaml4 $id: http://devicetree.org/schemas/usb/mediatek,mt6370-tcpc.yaml#
22 - mediatek,mt6370-tcpc
H A Dwillsemi,wusb3801.yaml59 tcpc@60 {
/linux-6.15/Documentation/devicetree/bindings/mfd/
H A Dmediatek,mt6370.yaml63 tcpc:
65 $ref: /schemas/usb/mediatek,mt6370-tcpc.yaml#
108 - tcpc
216 tcpc {
217 compatible = "mediatek,mt6370-tcpc";
H A Dmediatek,mt6360.yaml46 tcpc:
47 $ref: /schemas/usb/mediatek,mt6360-tcpc.yaml#
206 tcpc {
207 compatible = "mediatek,mt6360-tcpc";
/linux-6.15/arch/arm64/boot/dts/freescale/
H A Dimx93-9x9-qsb-i3c.dtso27 tcpc@50 {
H A Dimx93-11x11-evk.dts412 ptn5110: tcpc@50 {
445 ptn5110_2: tcpc@51 {
H A Dimx8mn-evk.dtsi255 ptn5110: tcpc@50 {
H A Dimx93-9x9-qsb.dts229 ptn5110: tcpc@50 {
H A Dimx95-19x19-evk.dts322 ptn5110: tcpc@50 {
H A Dimx8mm-evk.dtsi406 ptn5110: tcpc@50 {
/linux-6.15/arch/s390/include/asm/
H A Dstp.h19 u32 tcpc : 1; /* Time control parameter change */ member
/linux-6.15/include/linux/usb/
H A Dtcpm.h177 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
/linux-6.15/arch/arm64/boot/dts/rockchip/
H A Drk3566-pinenote.dtsi470 wusb3801: tcpc@60 {
608 tcpc {
609 tcpc_int_l: tcpc-int-l {
/linux-6.15/arch/arm64/boot/dts/mediatek/
H A Dmt8395-genio-1200-evk.dts354 tcpc {
355 compatible = "mediatek,mt6360-tcpc";
H A Dmt8395-radxa-nio-12l.dts374 compatible = "mediatek,mt6360-tcpc";
/linux-6.15/arch/s390/kernel/
H A Dtime.c501 if (intparm->tsc || intparm->lac || intparm->tcpc) in stp_timing_alert()

12