/Linux-v6.1/include/linux/usb/ |
D | typec_altmode.h | 37 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata() argument 40 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata() 43 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata() argument 45 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata() 58 int (*enter)(struct typec_altmode *altmode, u32 *vdo); 59 int (*exit)(struct typec_altmode *altmode); 60 void (*attention)(struct typec_altmode *altmode, u32 vdo); 61 int (*vdm)(struct typec_altmode *altmode, const u32 hdr, 63 int (*notify)(struct typec_altmode *altmode, unsigned long conf, 65 int (*activate)(struct typec_altmode *altmode, int activate); [all …]
|
D | typec.h | 159 void typec_unregister_altmode(struct typec_altmode *altmode);
|
/Linux-v6.1/drivers/usb/typec/ |
D | bus.c | 16 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_mux() 34 struct altmode *port_altmode; in typec_altmode_set_state() 61 struct altmode *altmode; in typec_altmode_notify() local 62 struct altmode *partner; in typec_altmode_notify() 68 altmode = to_altmode(adev); in typec_altmode_notify() 70 if (!altmode->partner) in typec_altmode_notify() 74 partner = altmode->partner; in typec_altmode_notify() 76 ret = typec_altmode_set_mux(is_port ? altmode : partner, conf, data); in typec_altmode_notify() 99 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_enter() 130 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_exit() [all …]
|
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)
|
D | class.c | 236 static void typec_altmode_set_partner(struct altmode *altmode) in typec_altmode_set_partner() argument 238 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 241 struct altmode *partner; in typec_altmode_set_partner() 250 altmode->partner = partner; in typec_altmode_set_partner() 256 partner->plug[plug->index] = altmode; in typec_altmode_set_partner() 258 partner->partner = altmode; in typec_altmode_set_partner() 262 static void typec_altmode_put_partner(struct altmode *altmode) in typec_altmode_put_partner() argument 264 struct altmode *partner = altmode->partner; in typec_altmode_put_partner() 362 struct altmode *altmode = to_altmode(adev); in active_store() local 377 if (altmode->partner && !enter && altmode->partner->adev.active) in active_store() [all …]
|
D | anx7411.c | 566 dev_err(dev, "no altmode space for registering\n"); in anx7411_typec_register_altmode() 573 dev_err(dev, "failed to register altmode\n"); in anx7411_typec_register_altmode() 677 /* Update DP altmode */ in anx7411_parse_cmd() 689 /* Register DP Altmode */ in anx7411_parse_cmd() 693 /* Register other altmode */ in anx7411_parse_cmd() 1033 dev_err(dev, "dp altmode not register\n"); in anx7411_usb_mux_set()
|
/Linux-v6.1/Documentation/devicetree/bindings/usb/ |
D | fcs,fsa4480.yaml | 27 description: Flag the port as possible handle of altmode switching 38 handling altmode muxing and orientation switching.
|
/Linux-v6.1/drivers/usb/typec/ucsi/ |
D | ucsi_ccg.c | 133 /* Altmode offset for NVIDIA Function Test Board (FTB) */ 390 /* Found Non DP altmode */ in ucsi_ccg_update_altmodes() 419 /* Didn't find any duplicate DP altmode */ in ucsi_ccg_update_altmodes() 449 * If CAM is UCSI_MULTI_DP_INDEX then this is DP altmode in ucsi_ccg_update_set_new_cam_cmd() 491 * (Function Test Board) which reports altmode list with vdo=0x3 493 * based on order in altmode list and it causes a mismatch of CON
|
D | ucsi.c | 248 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local 266 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active() 270 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active() 443 * Update the original altmode table as some ppms may report in ucsi_register_altmodes_nvidia()
|
D | ucsi.h | 382 * NVIDIA VirtualLink (svid 0x955) has two altmode. VirtualLink
|
/Linux-v6.1/drivers/usb/typec/tcpm/ |
D | tcpm.c | 1545 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() local 1549 altmode = typec_partner_register_altmode(port->partner, in tcpm_register_partner_altmodes() 1551 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes() 1554 altmode = NULL; in tcpm_register_partner_altmodes() 1556 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes() 2186 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() argument 2188 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); in tcpm_altmode_enter() 2196 header = VDO(altmode->svid, vdo ? 2 : 1, svdm_version, CMD_ENTER_MODE); in tcpm_altmode_enter() 2197 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_enter() 2203 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() argument [all …]
|
/Linux-v6.1/include/trace/events/ |
D | dlm.h | 47 { DLM_SBF_ALTMODE, "ALTMODE" })
|
/Linux-v6.1/drivers/platform/x86/intel/ |
D | chtwc_int33fe.c | 145 .name = "displayport-altmode",
|
/Linux-v6.1/drivers/scsi/aic94xx/ |
D | aic94xx_dump.c | 277 PRINT_CREG_8bit(asd_ha, ALTMODE); in asd_dump_cseq_state() 485 PRINT_LREG_8bit(asd_ha, lseq, ALTMODE); in asd_dump_lseq_state()
|
D | aic94xx_reg_def.h | 361 #define ALTMODE 0x01 macro 508 #define CALTMODE (CSEQ_CIO_REG_BASE_ADR + ALTMODE) 843 #define LmALTMODE(LinkNum) LmSEQ_PHY_REG(0, LinkNum, ALTMODE)
|
/Linux-v6.1/drivers/platform/chrome/ |
D | cros_ec_typec.c | 39 /* Container for altmode pointer nodes. */ 334 /* All PD capable CrOS devices are assumed to support DP altmode. */ in cros_typec_register_port_altmodes()
|
/Linux-v6.1/drivers/gpu/drm/ |
D | drm_connector.c | 2836 * muxes the DisplayPort data and aux-lines but does not pass the altmode HPD
|