/linux-6.8/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 */ 54 /* 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 int typec_altmode_attention(struct typec_altmode *altmode, u32 vdo); 72 const u32 header, const u32 *vdo, int count);
|
D | typec.h | 105 * @id_header: ID Header VDO 106 * @cert_stat: Cert Stat VDO 107 * @product: Product VDO 108 * @vdo: Product Type Specific VDOs 119 u32 vdo[3]; member 129 * @vdo: VDO returned by Discover Modes USB PD command 138 u32 vdo; member 184 * @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) */ 91 /* DisplayPort Status Update VDO bits */ 105 /* DisplayPort Configurations VDO bits */
|
/linux-6.8/drivers/usb/typec/altmodes/ |
D | displayport.c | 20 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \ 100 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure() 101 DP_CAP_DFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure() 106 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure() 107 DP_CAP_PIN_ASSIGN_DFP_D(dp->port->vdo); in dp_altmode_configure() 217 u32 vdo; in dp_altmode_work() local 233 vdo = 1; in dp_altmode_work() 234 ret = typec_altmode_vdm(dp->alt, header, &vdo, 2); in dp_altmode_work() 259 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() argument 267 dp->data.status = vdo; in dp_altmode_attention() [all …]
|
/linux-6.8/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-6.8/drivers/usb/typec/ |
D | bus.c | 119 * @vdo: VDO for the Enter Mode command 123 * Enter Mode command. If the alternate mode does not require VDO, @vdo must be 126 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter() argument 147 return pdev->ops->enter(pdev, vdo); in typec_altmode_enter() 182 * @vdo: VDO for the Attention command 186 int typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() argument 197 pdev->ops->attention(pdev, vdo); in typec_altmode_attention() 207 * @vdo: Array of Vendor Defined Data Objects 215 const u32 header, const u32 *vdo, int count) in typec_altmode_vdm() argument 233 return pdev->ops->vdm(pdev, header, vdo, count); in typec_altmode_vdm()
|
D | class.c | 132 return sysfs_emit(buf, "0x%08x\n", id->vdo[0]); in product_type_vdo1_show() 141 return sysfs_emit(buf, "0x%08x\n", id->vdo[1]); in product_type_vdo2_show() 150 return sysfs_emit(buf, "0x%08x\n", id->vdo[2]); in product_type_vdo3_show() 339 return sprintf(buf, "0x%08x\n", alt->vdo); in vdo_show() 341 static DEVICE_ATTR_RO(vdo); 532 alt->adev.vdo = desc->vdo; in typec_register_altmode() 2237 u32 vdo; in typec_port_register_altmodes() local 2252 ret = fwnode_property_read_u32(child, "vdo", &vdo); in typec_port_register_altmodes() 2254 dev_err(&port->dev, "Error reading vdo for altmode %s\n", in typec_port_register_altmodes() 2266 desc.vdo = vdo; in typec_port_register_altmodes()
|
D | anx7411.c | 549 int svid, int vdo) in anx7411_typec_register_altmode() argument 557 desc.vdo = vdo; in anx7411_typec_register_altmode()
|
/linux-6.8/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_SIGNALLING(0) | 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 | 470 (pin & DP_CONF_GET_PIN_ASSIGN(alt->vdo))) { in ucsi_ccg_update_set_new_cam_cmd() 490 * Change the order of vdo values of NVIDIA test device FTB 491 * (Function Test Board) which reports altmode list with vdo=0x3 492 * first and then vdo=0x. Current logic to assign mode value is 494 * and SOP altmodes since NVIDIA GPU connector has order of vdo=0x1 495 * first and then vdo=0x3
|
D | ucsi.h | 420 * DP mode with vdo=0x1 and NVIDIA test mode with vdo=0x3
|
D | ucsi.c | 349 if (desc->vdo == USB_TYPEC_NVIDIA_VLINK_DBG_VDO) in ucsi_register_altmode() 462 desc.vdo = updated[i].mid; in ucsi_register_altmodes_nvidia() 465 desc.vdo = orig[i].mid; in ucsi_register_altmodes_nvidia() 530 desc.vdo = alt[j].mid; in ucsi_register_altmodes() 564 adev[i]->vdo != USB_TYPEC_NVIDIA_VLINK_DBG_VDO))) { in ucsi_unregister_altmodes()
|
/linux-6.8/Documentation/ABI/testing/ |
D | sysfs-class-typec | 220 directory exists, it will have an attribute file for every VDO 288 directory exists, it will have an attribute file for every VDO 295 ID Header VDO part of Discover Identity command result. The 303 Cert Stat VDO part of Discover Identity command result. The 311 Product VDO part of Discover Identity command result. The value 319 1st Product Type VDO of Discover Identity command result. 321 available and a valid Product Type VDO is returned. 327 2nd Product Type VDO of Discover Identity command result. 329 available and a valid Product Type VDO is returned. 335 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-6.8/Documentation/devicetree/bindings/iommu/ |
D | mediatek,iommu.yaml | 81 - mediatek,mt8188-iommu-vdo # generation two 85 - mediatek,mt8195-iommu-vdo # generation two 162 - mediatek,mt8188-iommu-vdo 165 - mediatek,mt8195-iommu-vdo 177 - mediatek,mt8188-iommu-vdo 180 - mediatek,mt8195-iommu-vdo
|
/linux-6.8/Documentation/devicetree/bindings/connector/ |
D | usb-connector.yaml | 122 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO), 124 definitions and the order of each VDO can be found in 126 chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via 134 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO), 136 definitions and the order of each VDO can be found in 138 Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in 178 vdo: 180 description: VDO returned by Discover Modes USB PD command. 352 vdo = <0x00001c46>;
|
/linux-6.8/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-6.8/drivers/platform/chrome/ |
D | cros_typec_vdm.c | 95 static int cros_typec_port_amode_enter(struct typec_altmode *amode, u32 *vdo) in cros_typec_port_amode_enter() argument 105 hdr = VDO(amode->svid, 1, SVDM_VER_2_0, CMD_ENTER_MODE); in cros_typec_port_amode_enter() 121 const u32 *vdo, int cnt) in cros_typec_port_amode_vdm() argument 134 vdm_req.vdm_data[i] = vdo[i-1]; in cros_typec_port_amode_vdm()
|
D | cros_ec_typec.c | 276 desc.vdo = DP_PORT_VDO; in cros_typec_register_port_altmodes() 410 * cros_typec_get_cable_vdo() - Get Cable VDO of the connected cable 414 * Returns the Cable VDO if match is found and returns 0 if match is not found. 424 return node->amode->vdo; in cros_typec_get_cable_vdo() 448 /* Device Discover Mode VDO */ in cros_typec_enable_tbt() 454 /* Cable Discover Mode VDO */ in cros_typec_enable_tbt() 469 /* Enter Mode VDO */ in cros_typec_enable_tbt() 510 /* Status VDO. */ in cros_typec_enable_dp() 517 /* Configuration VDO. */ in cros_typec_enable_dp() 529 /* Get cable VDO for cables with DPSID to check DPAM2.1 is supported */ in cros_typec_enable_dp() [all …]
|
/linux-6.8/Documentation/devicetree/bindings/memory-controllers/ |
D | mediatek,smi-common.yaml | 40 - mediatek,mt8188-smi-common-vdo 43 - mediatek,mt8195-smi-common-vdo 135 - mediatek,mt8195-smi-common-vdo
|
/linux-6.8/include/dt-bindings/memory/ |
D | mediatek,mt8188-memory-port.h | 62 * iommu-vdo: larb0/2/5/9/10/11A/11C/13/16B/17B/19/21 69 /* LARB 0 -- VDO-0 */ 87 /* LARB 2 -- VDO-1 */ 94 /* LARB 3 -- VDO-1 */
|
/linux-6.8/drivers/usb/typec/tcpm/ |
D | tcpm.c | 460 /* VDO to retry if UFP responder replied busy */ 1456 * VDM/VDO handling functions 1495 u32 vdo = p[VDO_INDEX_IDH]; in svdm_consume_identity() local 1500 port->partner_ident.id_header = vdo; in svdm_consume_identity() 1507 PD_IDH_VID(vdo), in svdm_consume_identity() 1541 * PD3.0 Spec 6.4.4.3.2: The SVIDs are returned 2 per VDO (see Table in svdm_consume_svids() 1545 * SVIDs VDO is returned ending either with a SVID value of 0x0000 in in svdm_consume_svids() 1546 * the last part of the last VDO or with a VDO containing two SVIDs in svdm_consume_svids() 1550 * 0x0000 in the last VDO, so we need to break the Discover SVIDs in svdm_consume_svids() 1576 paltmode->vdo = p[i]; in svdm_consume_modes() [all …]
|