Home
last modified time | relevance | path

Searched full:tcpm (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.12.1/drivers/usb/typec/tcpm/qcom/
Dqcom_pmic_typec.c18 #include <linux/usb/tcpm.h>
39 struct pmic_typec *tcpm; in qcom_pmic_typec_probe() local
52 tcpm = devm_kzalloc(dev, sizeof(*tcpm), GFP_KERNEL); in qcom_pmic_typec_probe()
53 if (!tcpm) in qcom_pmic_typec_probe()
56 tcpm->dev = dev; in qcom_pmic_typec_probe()
57 tcpm->tcpc.init = qcom_pmic_typec_init; in qcom_pmic_typec_probe()
69 ret = qcom_pmic_typec_port_probe(pdev, tcpm, in qcom_pmic_typec_probe()
79 ret = qcom_pmic_typec_pdphy_probe(pdev, tcpm, in qcom_pmic_typec_probe()
84 ret = qcom_pmic_typec_pdphy_stub_probe(pdev, tcpm); in qcom_pmic_typec_probe()
89 platform_set_drvdata(pdev, tcpm); in qcom_pmic_typec_probe()
[all …]
Dqcom_pmic_typec_pdphy_stub.c16 #include <linux/usb/tcpm.h>
25 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_pd_transmit() local
26 struct device *dev = tcpm->dev; in qcom_pmic_typec_pdphy_stub_pd_transmit()
30 tcpm_pd_transmit_complete(tcpm->tcpm_port, in qcom_pmic_typec_pdphy_stub_pd_transmit()
38 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_set_pd_rx() local
39 struct device *dev = tcpm->dev; in qcom_pmic_typec_pdphy_stub_set_pd_rx()
50 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_stub_set_roles() local
51 struct device *dev = tcpm->dev; in qcom_pmic_typec_pdphy_stub_set_roles()
59 static int qcom_pmic_typec_pdphy_stub_start(struct pmic_typec *tcpm, in qcom_pmic_typec_pdphy_stub_start() argument
65 static void qcom_pmic_typec_pdphy_stub_stop(struct pmic_typec *tcpm) in qcom_pmic_typec_pdphy_stub_stop() argument
[all …]
Dqcom_pmic_typec_port.c16 #include <linux/usb/tcpm.h>
325 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_get_vbus() local
326 struct pmic_typec_port *pmic_typec_port = tcpm->pmic_typec_port; in qcom_pmic_typec_port_get_vbus()
338 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_vbus() local
339 struct pmic_typec_port *pmic_typec_port = tcpm->pmic_typec_port; in qcom_pmic_typec_port_set_vbus()
351 tcpm_vbus_change(tcpm->tcpm_port); in qcom_pmic_typec_port_set_vbus()
354 dev_dbg(tcpm->dev, "set_vbus set: %d result %d\n", on, ret); in qcom_pmic_typec_port_set_vbus()
364 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_get_cc() local
365 struct pmic_typec_port *pmic_typec_port = tcpm->pmic_typec_port; in qcom_pmic_typec_port_get_cc()
460 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_port_set_cc() local
[all …]
Dqcom_pmic_typec_pdphy.c16 #include <linux/usb/tcpm.h>
305 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_pd_transmit() local
306 struct pmic_typec_pdphy *pmic_typec_pdphy = tcpm->pmic_typec_pdphy; in qcom_pmic_typec_pdphy_pd_transmit()
369 dev_vdbg(dev, "pd_receive: handing %d bytes to tcpm\n", size); in qcom_pmic_typec_pdphy_pd_receive()
409 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_set_pd_rx() local
410 struct pmic_typec_pdphy *pmic_typec_pdphy = tcpm->pmic_typec_pdphy; in qcom_pmic_typec_pdphy_set_pd_rx()
430 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_pdphy_set_roles() local
431 struct pmic_typec_pdphy *pmic_typec_pdphy = tcpm->pmic_typec_pdphy; in qcom_pmic_typec_pdphy_set_roles()
510 static int qcom_pmic_typec_pdphy_start(struct pmic_typec *tcpm, in qcom_pmic_typec_pdphy_start() argument
513 struct pmic_typec_pdphy *pmic_typec_pdphy = tcpm->pmic_typec_pdphy; in qcom_pmic_typec_pdphy_start()
[all …]
Dqcom_pmic_typec.h16 int (*pdphy_start)(struct pmic_typec *tcpm,
18 void (*pdphy_stop)(struct pmic_typec *tcpm);
20 int (*port_start)(struct pmic_typec *tcpm,
22 void (*port_stop)(struct pmic_typec *tcpm);
Dqcom_pmic_typec_port.h10 #include <linux/usb/tcpm.h>
30 struct pmic_typec *tcpm,
Dqcom_pmic_typec_pdphy.h30 struct pmic_typec *tcpm,
35 struct pmic_typec *tcpm);
/linux-6.12.1/drivers/usb/typec/tcpm/
Dwcove.c11 #include <linux/usb/tcpm.h>
155 struct tcpm_port *tcpm; member
492 if (!wcove->tcpm) in wcove_typec_irq()
509 tcpm_vbus_change(wcove->tcpm); in wcove_typec_irq()
511 /* REVISIT: See if tcpm code can be made to consider Type-C HW FSMs */ in wcove_typec_irq()
513 tcpm_cc_change(wcove->tcpm); in wcove_typec_irq()
538 tcpm_pd_receive(wcove->tcpm, &msg, TCPC_TX_SOP); in wcove_typec_irq()
548 tcpm_pd_hard_reset(wcove->tcpm); in wcove_typec_irq()
553 tcpm_pd_transmit_complete(wcove->tcpm, TCPC_TX_SUCCESS); in wcove_typec_irq()
556 tcpm_pd_transmit_complete(wcove->tcpm, TCPC_TX_FAILED); in wcove_typec_irq()
[all …]
Dtcpci_maxim.h51 * Last returned result to tcpm indicating whether the TCPM port
DMakefile2 obj-$(CONFIG_TYPEC_TCPM) += tcpm.o
Dfusb302.c30 #include <linux/usb/tcpm.h>
1210 /* update tcpm with the new cc value */ in fusb302_handle_togdone_snk()
1358 /* update tcpm with the new cc value */ in fusb302_handle_togdone_src()
1459 * TCPM that the previous transmission has completed. Otherwise we pass in fusb302_pd_read_message()
1460 * the received message over to TCPM for processing. in fusb302_pd_read_message()
1465 * to check the message type to ensure correct reporting to TCPM. in fusb302_pd_read_message()
1746 "cannot register tcpm port\n"); in fusb302_probe()
Dtcpci_mt6360.c15 #include <linux/usb/tcpm.h>
Dtcpci_mt6370.c19 #include <linux/usb/tcpm.h>
Dtcpm.c31 #include <linux/usb/tcpm.h>
316 struct mutex lock; /* tcpm state machine lock */
516 * of contaminant in the connector pins based on the tcpm state machine
823 snprintf(name, NAME_MAX, "tcpm-%s", dev_name(port->dev)); in tcpm_debugfs_init()
1939 * the message should the TCPM port try to process it. in tcpm_pd_svdm()
2301 * 1. tcpm_pd_rx_handler take the tcpm port lock in tcpm_handle_vdm_request()
2307 * tcpm port lock in tcpm_handle_vdm_request()
4949 * TCPM stays in this state indefinitely until VBUS in run_state_machine()
5254 * If tcpc fails to notify vbus off, TCPM will wait for PD_T_SAFE_0V + in run_state_machine()
6073 /* Do nothing, as TCPM is still waiting for vbus to reaach VSAFE5V to connect */ in _tcpm_pd_vbus_off()
[all …]
Dmaxim_contaminant.c14 #include <linux/usb/tcpm.h>
Dtcpci_rt1711h.c17 #include <linux/usb/tcpm.h>
/linux-6.12.1/include/linux/usb/
Dtcpm.h63 * Optional; called by the tcpm core when configured as a snk
64 * and cc=Rp-def. This allows the tcpm to provide a fallback
98 * as sink or source. TCPM signals TCPC to enable the mechanism upon
101 * Mandatory when enable_auto_vbus_discharge is implemented. TCPM
110 * is supported by TCPC, set this callback for TCPM to query
126 * Optional; The callback is called by the TCPM when the result of
131 * Return true when the TCPM is allowed to request a Vconn swap
Dtcpci.h12 #include <linux/usb/tcpm.h>
200 * Optional; The callback is called by the TCPM when the result of
205 * Return true when the TCPM is allowed to request a Vconn swap
/linux-6.12.1/drivers/usb/typec/
DMakefile6 obj-$(CONFIG_TYPEC_TCPM) += tcpm/
DKconfig49 source "drivers/usb/typec/tcpm/Kconfig"
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dstericsson,db8500-prcmu.yaml35 - description: PRCMU TCPM register area
41 - const: prcmu-tcpm
/linux-6.12.1/net/ipv4/
Dtcp_recovery.c38 /* RACK loss detection (IETF draft draft-ietf-tcpm-rack-01):
116 * draft-cheng-tcpm-rack-00.txt
/linux-6.12.1/Documentation/networking/
Ddctcp.rst48 http://tools.ietf.org/html/draft-bensley-tcpm-dctcp-00
/linux-6.12.1/Documentation/devicetree/bindings/usb/
Dgpio-sbu-mux.yaml67 tcpm {
/linux-6.12.1/drivers/usb/typec/mux/
Dit5205.c19 #include <linux/usb/tcpm.h>

12