Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/power/power_delivery/
H A Dtcpci.c29 struct tcpci { struct
44 struct tcpci *tcpci; argument
48 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
50 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
53 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
58 ret = dm_i2c_read(tcpci->dev, reg, buffer, 2); in tcpci_read16()
70 static int tcpci_block_read(struct tcpci *tcpci, unsigned int reg, in tcpci_block_read() argument
75 ret = dm_i2c_read(tcpci->dev, reg, data, length); in tcpci_block_read()
83 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
90 ret = dm_i2c_write(tcpci->dev, reg, buffer, 2); in tcpci_write16()
[all …]
H A Dtcpci.h133 struct tcpci;
136 int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
137 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
139 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
143 struct tcpci *tcpci_register_port(struct udevice *dev, struct tcpci_data *data);
144 void tcpci_unregister_port(struct tcpci *tcpci);
145 int tcpci_get_voltage_fun(struct tcpci *tcpci);
146 int tcpci_get_current_fun(struct tcpci *tcpci);
147 int tcpci_get_online_fun(struct tcpci *tcpci);
148 irqreturn_t tcpci_irq(struct tcpci *tcpci);
H A Dtcpci_husb311.c28 struct tcpci *tcpci; member
93 static int husb311_init(struct tcpci *tcpci, struct tcpci_data *tdata) in husb311_init() argument
162 chip->tcpci = tcpci_register_port(chip->udev, &chip->data); in husb311_probe()
163 if (IS_ERR(chip->tcpci)) in husb311_probe()
164 return PTR_ERR(chip->tcpci); in husb311_probe()
180 tcpci_unregister_port(chip->tcpci); in husb311_remove()
189 return tcpci_get_voltage_fun(chip->tcpci); in husb311_get_voltage()
196 return tcpci_get_current_fun(chip->tcpci); in husb311_get_current()
203 return tcpci_get_online_fun(chip->tcpci); in husb311_get_online()
H A DMakefile6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
/OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/
H A Dtcpci.c46 struct tcpci { struct
60 struct tcpci *tcpci; argument
64 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument
66 return tcpci->port; in tcpci_get_tcpm_port()
70 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
72 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
75 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
77 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16()
80 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
82 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16()
[all …]
H A Dtcpci.h169 struct tcpci;
192 int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
193 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
195 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
197 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink);
198 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data);
199 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data,
203 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data);
204 void tcpci_unregister_port(struct tcpci *tcpci);
205 irqreturn_t tcpci_irq(struct tcpci *tcpci);
[all …]
H A 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()
H A Dtcpci_et7303.c33 struct tcpci *tcpci; member
70 static int et7303_init(struct tcpci *tcpci, struct tcpci_data *tdata) in et7303_init() argument
91 static int et7303_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in et7303_set_vbus() argument
118 static int et7303_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in et7303_set_vconn() argument
127 static int et7303_start_drp_toggling(struct tcpci *tcpci, in et7303_start_drp_toggling() argument
187 return tcpci_irq(chip->tcpci); in et7303_irq()
277 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in et7303_probe()
278 if (IS_ERR(chip->tcpci)) in et7303_probe()
279 return PTR_ERR(chip->tcpci); in et7303_probe()
296 tcpci_unregister_port(chip->tcpci); in et7303_remove()
H A Dtcpci_maxim.c48 struct tcpci *tcpci; member
214 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument
259 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument
266 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus()
284 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
426 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument
436 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument
480 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in max_tcpci_probe()
481 if (IS_ERR(chip->tcpci)) { in max_tcpci_probe()
483 ret = PTR_ERR(chip->tcpci); in max_tcpci_probe()
[all …]
H A Dtcpci_husb311.c29 struct tcpci *tcpci; member
67 static int husb311_init(struct tcpci *tcpci, struct tcpci_data *tdata) in husb311_init() argument
85 static int husb311_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in husb311_set_vbus() argument
116 return tcpci_irq(chip->tcpci); in husb311_irq()
189 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in husb311_probe()
190 if (IS_ERR(chip->tcpci)) in husb311_probe()
191 return PTR_ERR(chip->tcpci); in husb311_probe()
198 tcpci_unregister_port(chip->tcpci); in husb311_probe()
211 tcpci_unregister_port(chip->tcpci); in husb311_remove()
256 tcpm_tcpc_reset(tcpci_get_tcpm_port(chip->tcpci)); in husb311_pm_resume()
H A Dtcpci_mt6360.c42 struct tcpci *tcpci; member
59 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument
143 return tcpci_irq(mti->tcpci); in mt6360_irq()
168 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe()
169 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe()
171 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe()
178 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe()
193 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
H A DMakefile6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
/OK3568_Linux_fs/kernel/include/trace/hooks/
H A Dtypec.h21 struct tcpci;
35 TP_PROTO(struct tcpci *tcpci, struct tcpci_data *data, int *override_toggling),
36 TP_ARGS(tcpci, data, override_toggling));
39 TP_PROTO(struct tcpci *tcpci, struct tcpci_data *data, int *ret),
40 TP_ARGS(tcpci, data, ret), 1);
50 TP_PROTO(struct tcpci *tcpci, struct tcpci_data *data, int *vbus, int *bypass),
51 TP_ARGS(tcpci, data, vbus, bypass), 1);
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/
H A Dtypec-tcpci.txt11 - interrupts: interrupt specification for tcpci alert.
14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
H A Drichtek,rt1711h.txt10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
/OK3568_Linux_fs/buildroot/output/OK3568/target/usr/lib/modules/5.10.160/
H A Dmodules.builtin
H A Dmodules.builtin.modinfo
/OK3568_Linux_fs/output/sessions/2025-06-06_01-57-56/
H A D10-kernel-build_2025-06-06_01-57-58.log
H A Dbuild_2025-06-06_01-57-58.log
H A D10-kernel-build.log
H A Dbuild.log