Searched refs:tcpci (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/usb/typec/ |
D | tcpci.c | 23 struct tcpci { struct 37 struct tcpci *tcpci; member 41 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 43 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 46 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument 48 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16() 51 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument 53 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16() 58 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc() local 96 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_set_cc() [all …]
|
D | tcpci.h | 125 struct tcpci; 128 int (*init)(struct tcpci *tcpci, struct tcpci_data *data); 129 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data, 131 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data, 135 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data); 136 void tcpci_unregister_port(struct tcpci *tcpci); 137 irqreturn_t tcpci_irq(struct tcpci *tcpci);
|
D | tcpci_rt1711h.c | 40 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() 270 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe() 271 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe() 272 return PTR_ERR(chip->tcpci); in rt1711h_probe() 281 tcpci_unregister_port(chip->tcpci); in rt1711h_remove()
|
D | Makefile | 11 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
|
/Linux-v4.19/Documentation/devicetree/bindings/usb/ |
D | typec-tcpci.txt | 11 - interrupts: interrupt specification for tcpci alert. 14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
|