Home
last modified time | relevance | path

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

/linux/drivers/usb/typec/tcpm/
H A Dtcpci.c31 struct tcpci { struct
46 struct tcpci *tcpci; member
50 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument
52 return tcpci->port; in tcpci_get_tcpm_port()
56 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
58 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
61 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
63 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16()
66 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
68 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16()
[all …]
H A Dtcpci_maxim_core.c204 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument
249 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument
256 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus()
274 static void max_tcpci_set_partner_usb_comm_capable(struct tcpci *tcpci, struct tcpci_data *data, in max_tcpci_set_partner_usb_comm_capable() argument
438 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument
448 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument
457 static void max_tcpci_check_contaminant(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_check_contaminant() argument
466 static bool max_tcpci_attempt_vconn_swap_discovery(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_attempt_vconn_swap_discovery() argument
478 static void max_tcpci_unregister_tcpci_port(void *tcpci) in max_tcpci_unregister_tcpci_port() argument
480 tcpci_unregister_port(tcpci); in max_tcpci_unregister_tcpci_port()
[all …]
H A Dtcpci_rt1711h.c64 struct tcpci *tcpci; member
103 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument
154 static int rt1711h_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vbus() argument
173 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument
224 static int rt1711h_start_drp_toggling(struct tcpci *tcpci, in rt1711h_start_drp_toggling() argument
270 if (!chip->tcpci) in rt1711h_irq()
289 return tcpci_irq(chip->tcpci); in rt1711h_irq()
375 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe()
376 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe()
377 return PTR_ERR(chip->tcpci); in rt1711h_probe()
[all …]
H A Dtcpci_maxim.h56 struct tcpci *tcpci; member
H A DMakefile6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
/linux/include/linux/usb/
H A Dtcpci.h175 struct tcpci;
219 int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
220 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
222 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
224 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink);
225 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data);
226 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data,
228 void (*check_contaminant)(struct tcpci *tcpci, struct tcpci_data *data);
229 bool (*attempt_vconn_swap_discovery)(struct tcpci *tcpci, struct tcpci_data *data);
232 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data);
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Drichtek,rt1711h.txt10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mq-hummingboard-pulse.dts45 compatible = "nxp,ptn5110", "tcpci";
H A Dimx93-11x11-evk.dts413 compatible = "nxp,ptn5110", "tcpci";
446 compatible = "nxp,ptn5110", "tcpci";
H A Dimx8mn-evk.dtsi256 compatible = "nxp,ptn5110", "tcpci";
H A Dimx93-9x9-qsb.dts225 compatible = "nxp,ptn5110", "tcpci";
H A Dimx8mp-beacon-kit.dts385 compatible = "nxp,ptn5110", "tcpci";
H A Dimx8mm-evk.dtsi407 compatible = "nxp,ptn5110", "tcpci";
H A Dimx93-tqma9352-mba93xxca.dts358 compatible = "nxp,ptn5110", "tcpci";
H A Dimx93-tqma9352-mba93xxla.dts312 compatible = "nxp,ptn5110", "tcpci";
H A Dimx8qm-mek.dts380 compatible = "nxp,ptn5110", "tcpci";
H A Dimx8mq-librem5-devkit.dts432 compatible = "nxp,ptn5110", "tcpci";