Home
last modified time | relevance | path

Searched refs:tcpci (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/usb/typec/tcpm/
Dtcpci.c23 struct tcpci { struct
37 struct tcpci *tcpci; member
41 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument
43 return tcpci->port; in tcpci_get_tcpm_port()
47 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
49 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
52 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
54 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16()
57 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
59 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16()
[all …]
Dtcpci.h147 struct tcpci;
151 int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
152 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
154 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
156 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink);
159 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data);
160 void tcpci_unregister_port(struct tcpci *tcpci);
161 irqreturn_t tcpci_irq(struct tcpci *tcpci);
164 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci);
Dtcpci_rt1711h.c40 struct tcpci *tcpci; member
76 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument
107 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument
116 static int rt1711h_start_drp_toggling(struct tcpci *tcpci, in rt1711h_start_drp_toggling() argument
162 if (!chip->tcpci) in rt1711h_irq()
179 return tcpci_irq(chip->tcpci); in rt1711h_irq()
251 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe()
252 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe()
253 return PTR_ERR(chip->tcpci); in rt1711h_probe()
270 tcpci_unregister_port(chip->tcpci); in rt1711h_remove()
Dtcpci_mt6360.c37 struct tcpci *tcpci; member
54 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument
117 return tcpci_irq(mti->tcpci); in mt6360_irq()
142 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe()
143 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe()
145 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe()
152 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe()
167 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
Dtcpci_maxim.c45 struct tcpci *tcpci; member
204 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument
254 max_tcpci_set_vbus(chip->tcpci, &chip->data, true, false); in process_power_status()
396 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument
406 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument
446 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in max_tcpci_probe()
447 if (IS_ERR_OR_NULL(chip->tcpci)) { in max_tcpci_probe()
449 ret = PTR_ERR(chip->tcpci); in max_tcpci_probe()
450 return PTR_ERR(chip->tcpci); in max_tcpci_probe()
452 chip->port = tcpci_get_tcpm_port(chip->tcpci); in max_tcpci_probe()
[all …]
DMakefile6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
/Linux-v5.10/Documentation/devicetree/bindings/usb/
Dtypec-tcpci.txt11 - interrupts: interrupt specification for tcpci alert.
14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
Drichtek,rt1711h.txt10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings