Searched refs:altmode (Results 1 – 25 of 25) sorted by relevance
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | typec_altmode.h | 38 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata() argument 41 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata() 44 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata() argument 46 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata() 59 int (*enter)(struct typec_altmode *altmode, u32 *vdo); 60 int (*exit)(struct typec_altmode *altmode); 61 void (*attention)(struct typec_altmode *altmode, u32 vdo); 62 int (*vdm)(struct typec_altmode *altmode, const u32 hdr, 64 int (*notify)(struct typec_altmode *altmode, unsigned long conf, 66 int (*activate)(struct typec_altmode *altmode, int activate); [all …]
|
| H A D | typec.h | 156 void typec_unregister_altmode(struct typec_altmode *altmode);
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/ |
| H A D | bus.c | 14 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_mux() 32 struct altmode *port_altmode; in typec_altmode_set_state() 59 struct altmode *altmode; in typec_altmode_notify() local 60 struct altmode *partner; in typec_altmode_notify() 66 altmode = to_altmode(adev); in typec_altmode_notify() 68 if (!altmode->partner) in typec_altmode_notify() 72 partner = altmode->partner; in typec_altmode_notify() 74 ret = typec_altmode_set_mux(is_port ? altmode : partner, conf, data); in typec_altmode_notify() 97 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_enter() 128 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_exit() [all …]
|
| H A D | bus.h | 11 struct altmode { struct 23 struct altmode *partner; argument 24 struct altmode *plug[2]; argument 27 #define to_altmode(d) container_of(d, struct altmode, adev)
|
| H A D | class.c | 294 static void typec_altmode_set_partner(struct altmode *altmode) in typec_altmode_set_partner() argument 296 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 299 struct altmode *partner; in typec_altmode_set_partner() 308 altmode->partner = partner; in typec_altmode_set_partner() 314 partner->plug[plug->index] = altmode; in typec_altmode_set_partner() 316 partner->partner = altmode; in typec_altmode_set_partner() 320 static void typec_altmode_put_partner(struct altmode *altmode) in typec_altmode_put_partner() argument 322 struct altmode *partner = altmode->partner; in typec_altmode_put_partner() 420 struct altmode *altmode = to_altmode(adev); in active_store() local 435 if (altmode->partner && !enter && altmode->partner->adev.active) in active_store() [all …]
|
| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | typec.h | 155 void typec_unregister_altmode(struct typec_altmode *altmode);
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-nvr-demo1-v21.dtsi | 127 altmode@0 {
|
| H A D | rk3588s-evb3-lp4x.dtsi | 200 altmode@0 {
|
| H A D | rk3588-evb4-lp4.dtsi | 316 altmode@0 {
|
| H A D | rk3588-evb6-lp4.dtsi | 291 altmode@0 {
|
| H A D | rk3588-pcie-ep-demo.dtsi | 339 altmode@0 {
|
| H A D | rk3588-evb1-lp4.dtsi | 442 altmode@0 {
|
| H A D | rk3588-toybrick-edp-x0.dtsi | 444 altmode@0 {
|
| H A D | rk3588-toybrick-x0.dtsi | 451 altmode@0 {
|
| H A D | rk3399-sapphire.dtsi | 534 altmode@0 {
|
| H A D | rk3588s-evb8-lp4x.dtsi | 481 altmode@0 {
|
| H A D | rk3588s-evb1-lp4x.dtsi | 506 altmode@0 {
|
| H A D | rk3588-evb7-v11.dtsi | 604 altmode@0 {
|
| H A D | rk3588-evb3-lp5.dtsi | 930 altmode@0 {
|
| H A D | rk3588s-evb4-lp4x.dtsi | 593 altmode@0 {
|
| H A D | rk3588s-tablet.dtsi | 796 altmode@0 {
|
| H A D | rk3588s-tablet-single.dtsi | 783 altmode@0 {
|
| H A D | rk3399-evb-ind.dtsi | 885 altmode@0 {
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 1579 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() local 1583 altmode = typec_partner_register_altmode(port->partner, in tcpm_register_partner_altmodes() 1585 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes() 1588 altmode = NULL; in tcpm_register_partner_altmodes() 1590 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes() 2238 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() argument 2240 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); in tcpm_altmode_enter() 2248 header = VDO(altmode->svid, vdo ? 2 : 1, svdm_version, CMD_ENTER_MODE); in tcpm_altmode_enter() 2249 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_enter() 2255 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/ucsi/ |
| H A D | ucsi.c | 198 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local 216 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active() 220 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active()
|