/Linux-v5.15/include/linux/usb/ |
D | pd_vdo.h | 12 * VDO : Vendor Defined Message Object 31 #define VDO(vid, type, ver, custom) \ macro 77 #define PD_VDO_VID(vdo) ((vdo) >> 16) argument 78 #define PD_VDO_SVDM(vdo) (((vdo) >> 15) & 1) argument 79 #define PD_VDO_SVDM_VER(vdo) (((vdo) >> 13) & 0x3) argument 80 #define PD_VDO_OPOS(vdo) (((vdo) >> 8) & 0x7) argument 81 #define PD_VDO_CMD(vdo) ((vdo) & 0x1f) argument 82 #define PD_VDO_CMDT(vdo) (((vdo) >> 6) & 0x3) argument 92 * [2] :: Cert Stat VDO 93 * [3] :: (Product | Cable) VDO [all …]
|
D | typec_tbt.h | 16 * @device_mode: Device Discover Mode VDO 17 * @cable_mode: Cable Discover Mode VDO 18 * @enter_vdo: Enter Mode VDO 26 /* TBT3 Device Discover Mode VDO bits */ 37 /* TBT3 Cable Discover Mode VDO bits */ 53 /* TBT3 Device Enter Mode VDO bits */
|
D | typec_altmode.h | 19 * @vdo: VDO returned by Discover Modes USB PD command 28 u32 vdo; member 58 int (*enter)(struct typec_altmode *altmode, u32 *vdo); 60 void (*attention)(struct typec_altmode *altmode, u32 vdo); 62 const u32 *vdo, int cnt); 68 int typec_altmode_enter(struct typec_altmode *altmode, u32 *vdo); 70 void typec_altmode_attention(struct typec_altmode *altmode, u32 vdo); 72 const u32 header, const u32 *vdo, int count);
|
D | typec.h | 92 * @id_header: ID Header VDO 93 * @cert_stat: Cert Stat VDO 94 * @product: Product VDO 95 * @vdo: Product Type Specific VDOs 106 u32 vdo[3]; member 116 * @vdo: VDO returned by Discover Modes USB PD command 125 u32 vdo; member 171 * @type: The plug type from USB PD Cable VDO
|
D | typec_dp.h | 38 * @status: Status Update command VDO content 39 * @conf: Configure command VDO content 65 /* DisplayPort Capabilities VDO bits (returned with Discover Modes) */ 77 /* DisplayPort Status Update VDO bits */ 91 /* DisplayPort Configurations VDO bits */
|
/Linux-v5.15/drivers/usb/typec/altmodes/ |
D | displayport.c | 18 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \ 85 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure() 86 DP_CAP_DFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure() 91 pin_assign = DP_CAP_DFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure() 92 DP_CAP_UFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure() 191 u32 vdo; in dp_altmode_work() local 207 vdo = 1; in dp_altmode_work() 208 ret = typec_altmode_vdm(dp->alt, header, &vdo, 2); in dp_altmode_work() 233 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() argument 241 dp->data.status = vdo; in dp_altmode_attention() [all …]
|
/Linux-v5.15/include/dt-bindings/usb/ |
D | pd.h | 138 * Cert Stat VDO 145 * Product VDO 153 * UFP VDO (PD Revision 3.0+ only) 155 * <31:29> :: UFP VDO version 166 /* UFP VDO Version */ 214 * DFP VDO (PD Revision 3.0+ only) 216 * <31:29> :: DFP VDO version 235 * Cable VDO (for both Passive and Active Cable VDO in PD Rev2.0) 253 * Passive Cable VDO (PD Rev3.0+) 257 * <23:21> :: VDO version [all …]
|
/Linux-v5.15/drivers/usb/typec/ |
D | bus.c | 90 * @vdo: VDO for the Enter Mode command 94 * Enter Mode command. If the alternate mode does not require VDO, @vdo must be 97 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter() argument 118 return pdev->ops->enter(pdev, vdo); in typec_altmode_enter() 153 * @vdo: VDO for the Attention command 157 void typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() argument 162 pdev->ops->attention(pdev, vdo); in typec_altmode_attention() 170 * @vdo: Array of Vendor Defined Data Objects 178 const u32 header, const u32 *vdo, int count) in typec_altmode_vdm() argument 196 return pdev->ops->vdm(pdev, header, vdo, count); in typec_altmode_vdm()
|
D | class.c | 130 return sysfs_emit(buf, "0x%08x\n", id->vdo[0]); in product_type_vdo1_show() 139 return sysfs_emit(buf, "0x%08x\n", id->vdo[1]); in product_type_vdo2_show() 148 return sysfs_emit(buf, "0x%08x\n", id->vdo[2]); in product_type_vdo3_show() 335 return sprintf(buf, "0x%08x\n", alt->vdo); in vdo_show() 337 static DEVICE_ATTR_RO(vdo); 527 alt->adev.vdo = desc->vdo; in typec_register_altmode() 1936 u32 svid, vdo; in typec_port_register_altmodes() local 1951 ret = fwnode_property_read_u32(child, "vdo", &vdo); in typec_port_register_altmodes() 1953 dev_err(&port->dev, "Error reading vdo for altmode %s\n", in typec_port_register_altmodes() 1965 desc.vdo = vdo; in typec_port_register_altmodes()
|
/Linux-v5.15/drivers/usb/typec/ucsi/ |
D | displayport.c | 48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument 93 dp->header = VDO(USB_TYPEC_DP_SID, 1, svdm_version, CMD_ENTER_MODE); in ucsi_displayport_enter() 137 dp->header = VDO(USB_TYPEC_DP_SID, 1, svdm_version, CMD_EXIT_MODE); in ucsi_displayport_exit() 153 * We do not actually have access to the Status Update VDO, so we have to guess 158 u32 cap = dp->alt->vdo; in ucsi_displayport_status_update() 229 dp->header = VDO(USB_TYPEC_DP_SID, 1, svdm_version, cmd); in ucsi_displayport_vdm() 318 desc->vdo |= DP_CAP_DP_SIGNALING | DP_CAP_RECEPTACLE; in ucsi_register_displayport() 321 desc->vdo |= all_assignments << 8; in ucsi_register_displayport() 322 desc->vdo |= all_assignments << 16; in ucsi_register_displayport()
|
D | trace.h | 92 __field(u32, vdo) 98 __entry->vdo = alt->vdo; 100 TP_printk("%s alt mode: svid %04x, mode %d vdo %x", 102 __entry->mode, __entry->vdo)
|
D | ucsi_ccg.c | 465 (pin & DP_CONF_GET_PIN_ASSIGN(alt->vdo))) { in ucsi_ccg_update_set_new_cam_cmd() 485 * Change the order of vdo values of NVIDIA test device FTB 486 * (Function Test Board) which reports altmode list with vdo=0x3 487 * first and then vdo=0x. Current logic to assign mode value is 489 * and SOP altmodes since NVIDIA GPU connector has order of vdo=0x1 490 * first and then vdo=0x3
|
D | ucsi.c | 276 if (desc->vdo == USB_TYPEC_NVIDIA_VLINK_DBG_VDO) in ucsi_register_altmode() 389 desc.vdo = updated[i].mid; in ucsi_register_altmodes_nvidia() 392 desc.vdo = orig[i].mid; in ucsi_register_altmodes_nvidia() 455 desc.vdo = alt[j].mid; in ucsi_register_altmodes() 489 adev[i]->vdo != USB_TYPEC_NVIDIA_VLINK_DBG_VDO))) { in ucsi_unregister_altmodes()
|
D | ucsi.h | 380 * DP mode with vdo=0x1 and NVIDIA test mode with vdo=0x3
|
/Linux-v5.15/Documentation/ABI/testing/ |
D | sysfs-class-typec | 212 directory exists, it will have an attribute file for every VDO 280 directory exists, it will have an attribute file for every VDO 287 ID Header VDO part of Discover Identity command result. The 295 Cert Stat VDO part of Discover Identity command result. The 303 Product VDO part of Discover Identity command result. The value 311 1st Product Type VDO of Discover Identity command result. 313 available and a valid Product Type VDO is returned. 319 2nd Product Type VDO of Discover Identity command result. 321 available and a valid Product Type VDO is returned. 327 3rd Product Type VDO of Discover Identity command result. [all …]
|
D | sysfs-bus-typec | 37 must be done with either mode VDO or the description. 46 What: /sys/bus/typec/devices/.../vdo 50 Shows the VDO in hexadecimal returned by Discover Modes command
|
/Linux-v5.15/Documentation/ABI/obsolete/ |
D | sysfs-class-typec | 17 is the actual index to the mode VDO returned by Discover Modes 27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo 31 Shows the VDO in hexadecimal returned by Discover Modes command
|
/Linux-v5.15/Documentation/devicetree/bindings/connector/ |
D | usb-connector.yaml | 145 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO), 147 definitions and the order of each VDO can be found in 149 chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via 157 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO), 159 definitions and the order of each VDO can be found in 161 Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in
|
/Linux-v5.15/drivers/platform/chrome/ |
D | cros_ec_typec.c | 438 /* Device Discover Mode VDO */ in cros_typec_enable_tbt() 444 /* Cable Discover Mode VDO */ in cros_typec_enable_tbt() 456 /* Enter Mode VDO */ in cros_typec_enable_tbt() 495 /* Status VDO. */ in cros_typec_enable_dp() 502 /* Configuration VDO. */ in cros_typec_enable_dp() 695 desc.vdo = sop_disc->svids[i].mode_vdo[j]; in cros_typec_register_altmodes() 762 id->vdo[i - 3] = disc->discovery_vdo[i]; in cros_typec_parse_pd_identity() 790 cable_plug_type = VDO_TYPEC_CABLE_TYPE(port->c_identity.vdo[0]); in cros_typec_handle_sop_prime_disc()
|
/Linux-v5.15/drivers/usb/typec/tcpm/ |
D | tcpm.c | 436 /* VDO to retry if UFP responder replied busy */ 1425 * VDM/VDO handling functions 1456 u32 vdo = p[VDO_INDEX_IDH]; in svdm_consume_identity() local 1461 port->partner_ident.id_header = vdo; in svdm_consume_identity() 1468 PD_IDH_VID(vdo), in svdm_consume_identity() 1523 paltmode->vdo = p[i]; in svdm_consume_modes() 1525 tcpm_log(port, " Alternate mode %d: SVID 0x%04x, VDO %d: 0x%08x", in svdm_consume_modes() 1527 paltmode->mode, paltmode->vdo); in svdm_consume_modes() 1659 response[0] = VDO(USB_SID_PD, 1, typec_get_negotiated_svdm_version(typec), in tcpm_pd_svdm() 1666 response[0] = VDO(USB_SID_PD, 1, svdm_version, CMD_DISCOVER_SVID); in tcpm_pd_svdm() [all …]
|
/Linux-v5.15/drivers/platform/x86/intel/int33fe/ |
D | intel_cht_int33fe_typec.c | 134 PROPERTY_ENTRY_U32("vdo", 0x0c0086),
|
/Linux-v5.15/drivers/gpu/drm/bridge/ |
D | parade-ps8640.c | 87 DRM_ERROR("failed to %sable VDO: %d\n", in ps8640_bridge_vdo_control()
|
/Linux-v5.15/drivers/gpu/drm/panel/ |
D | panel-truly-nt35597.c | 219 /* CMD mode(10) VDO mode(03) */
|
/Linux-v5.15/include/linux/platform_data/ |
D | cros_ec_commands.h | 5185 uint32_t vdo[6]; /* Mode VDOs */ member 5620 * VDO field sizes are set to the maximum possible number of VDOs a VDM may
|