/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpci.c | 45 struct tcpci *tcpci; argument 72 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc() local 183 ret = tcpci->data->start_drp_toggling(tcpci, tcpci->data, cc); in tcpci_start_toggling() 309 tcpci->data->set_partner_usb_comm_capable(tcpci, tcpci->data, capable); in tcpci_set_partner_usb_comm_capable() 319 ret = tcpci->data->set_vconn(tcpci, tcpci->data, enable); in tcpci_set_vconn() 404 tcpci->data->frs_sourcing_vbus(tcpci, tcpci->data); in tcpci_frs_sourcing_vbus() 412 tcpci->data->check_contaminant(tcpci, tcpci->data); in tcpci_check_contaminant() 489 ret = tcpci->data->set_vbus(tcpci, tcpci->data, source, sink); in tcpci_set_vbus() 611 ret = tcpci->data->init(tcpci, tcpci->data); in tcpci_init() 768 struct tcpci *tcpci; in tcpci_register_port() local [all …]
|
H A D | tcpci_mt6370.c | 31 struct tcpci *tcpci; member 51 static int mt6370_tcpc_init(struct tcpci *tcpci, struct tcpci_data *data) in mt6370_tcpc_init() argument 71 static int mt6370_tcpc_set_vconn(struct tcpci *tcpci, struct tcpci_data *data, in mt6370_tcpc_set_vconn() argument 79 static int mt6370_tcpc_set_vbus(struct tcpci *tcpci, struct tcpci_data *data, in mt6370_tcpc_set_vbus() argument 103 return tcpci_irq(priv->tcpci); in mt6370_irq_handler() 123 static void mt6370_unregister_tcpci_port(void *tcpci) in mt6370_unregister_tcpci_port() argument 125 tcpci_unregister_port(tcpci); in mt6370_unregister_tcpci_port() 161 priv->tcpci = tcpci_register_port(dev, &priv->tcpci_data); in mt6370_tcpc_probe() 162 if (IS_ERR(priv->tcpci)) in mt6370_tcpc_probe() 163 return dev_err_probe(dev, PTR_ERR(priv->tcpci), in mt6370_tcpc_probe() [all …]
|
H A D | tcpci_maxim_core.c | 184 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument 229 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument 254 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 402 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument 412 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument 421 static void max_tcpci_check_contaminant(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_check_contaminant() argument 466 if (IS_ERR(chip->tcpci)) { in max_tcpci_probe() 468 return PTR_ERR(chip->tcpci); in max_tcpci_probe() 479 tcpci_unregister_port(chip->tcpci); in max_tcpci_probe() 488 if (!IS_ERR_OR_NULL(chip->tcpci)) in max_tcpci_remove() [all …]
|
H A D | tcpci_mt6360.c | 41 struct tcpci *tcpci; member 52 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument 136 return tcpci_irq(mti->tcpci); in mt6360_irq() 161 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe() 162 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe() 164 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe() 171 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe() 186 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
|
H A D | tcpci_rt1711h.c | 56 struct tcpci *tcpci; member 95 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument 146 static int rt1711h_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vbus() argument 165 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument 221 static int rt1711h_start_drp_toggling(struct tcpci *tcpci, in rt1711h_start_drp_toggling() argument 267 if (!chip->tcpci) in rt1711h_irq() 286 return tcpci_irq(chip->tcpci); in rt1711h_irq() 372 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe() 373 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe() 374 return PTR_ERR(chip->tcpci); in rt1711h_probe() [all …]
|
H A D | tcpci_maxim.h | 60 struct tcpci *tcpci; member
|
H A D | Makefile | 6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
|
/openbmc/linux/include/linux/usb/ |
H A D | tcpci.h | 176 struct tcpci; 205 int (*init)(struct tcpci *tcpci, struct tcpci_data *data); 206 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data, 208 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data, 210 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink); 211 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data); 212 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data, 214 void (*check_contaminant)(struct tcpci *tcpci, struct tcpci_data *data); 218 void tcpci_unregister_port(struct tcpci *tcpci); 219 irqreturn_t tcpci_irq(struct tcpci *tcpci); [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | richtek,rt1711h.txt | 10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
|
H A D | nxp,ptn5110.yaml | 43 tcpci@50 {
|