tcpci_data
struct tcpci_data *data;
struct tcpci_data data;
struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data)
struct tcpci_data data;
static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink)
static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata)
static void max_tcpci_set_partner_usb_comm_capable(struct tcpci *tcpci, struct tcpci_data *data,
static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata,
static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data)
static void max_tcpci_check_contaminant(struct tcpci *tcpci, struct tcpci_data *tdata)
static bool max_tcpci_attempt_vconn_swap_discovery(struct tcpci *tcpci, struct tcpci_data *tdata)
static struct max_tcpci_chip *tdata_to_max_tcpci(struct tcpci_data *tdata)
struct tcpci_data tdata;
static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata)
struct regmap *regmap = priv->tcpci_data.regmap;
priv->tcpci_data.regmap = dev_get_regmap(dev->parent, NULL);
if (!priv->tcpci_data.regmap)
priv->tcpci_data.auto_discharge_disconnect = 1;
priv->tcpci_data.init = mt6370_tcpc_init;
priv->tcpci_data.set_vconn = mt6370_tcpc_set_vconn;
priv->tcpci_data.set_vbus = mt6370_tcpc_set_vbus;
priv->tcpci = tcpci_register_port(dev, &priv->tcpci_data);
struct tcpci_data tcpci_data;
static int mt6370_tcpc_init(struct tcpci *tcpci, struct tcpci_data *data)
static int mt6370_tcpc_set_vconn(struct tcpci *tcpci, struct tcpci_data *data,
static int mt6370_tcpc_set_vbus(struct tcpci *tcpci, struct tcpci_data *data,
tcpci_data);
static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata)
static int rt1711h_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata,
static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata,
struct tcpci_data *tdata,
struct tcpci_data data;
static struct rt1711h_chip *tdata_to_rt1711h(struct tcpci_data *tdata)
int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink);
void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data);
void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data,
void (*check_contaminant)(struct tcpci *tcpci, struct tcpci_data *data);
bool (*attempt_vconn_swap_discovery)(struct tcpci *tcpci, struct tcpci_data *data);
struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data);