Home
last modified time | relevance | path

Searched full:vdo (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/include/linux/usb/
H A Dpd_vdo.h12 * 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 …]
H A Dtypec_tbt.h16 * @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 */
H A Dtypec_altmode.h19 * @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);
H A Dtypec.h105 * @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
H A Dtypec_dp.h38 * @status: Status Update command VDO content
39 * @conf: Configure command VDO content
65 /* DisplayPort Capabilities VDO bits (returned with Discover Modes) */
82 /* DisplayPort Status Update VDO bits */
96 /* DisplayPort Configurations VDO bits */
/openbmc/linux/drivers/usb/typec/altmodes/
H A Ddisplayport.c20 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \
97 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure()
98 DP_CAP_DFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure()
103 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure()
104 DP_CAP_PIN_ASSIGN_DFP_D(dp->port->vdo); in dp_altmode_configure()
213 u32 vdo; in dp_altmode_work() local
229 vdo = 1; in dp_altmode_work()
230 ret = typec_altmode_vdm(dp->alt, header, &vdo, 2); in dp_altmode_work()
255 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() argument
263 dp->data.status = vdo; in dp_altmode_attention()
[all …]
/openbmc/linux/include/dt-bindings/usb/
H A Dpd.h138 * 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 …]
/openbmc/linux/drivers/usb/typec/
H A Dbus.c119 * @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()
H A Dclass.c131 return sysfs_emit(buf, "0x%08x\n", id->vdo[0]); in product_type_vdo1_show()
140 return sysfs_emit(buf, "0x%08x\n", id->vdo[1]); in product_type_vdo2_show()
149 return sysfs_emit(buf, "0x%08x\n", id->vdo[2]); in product_type_vdo3_show()
338 return sprintf(buf, "0x%08x\n", alt->vdo); in vdo_show()
340 static DEVICE_ATTR_RO(vdo);
532 alt->adev.vdo = desc->vdo; in typec_register_altmode()
2154 u32 svid, vdo; in typec_port_register_altmodes() local
2171 ret = fwnode_property_read_u32(child, "vdo", &vdo); in typec_port_register_altmodes()
2173 dev_err(&port->dev, "Error reading vdo for altmode %s\n", in typec_port_register_altmodes()
2185 desc.vdo = vdo; in typec_port_register_altmodes()
H A Danx7411.c551 int svid, int vdo) in anx7411_typec_register_altmode() argument
559 desc.vdo = vdo; in anx7411_typec_register_altmode()
/openbmc/linux/drivers/usb/typec/ucsi/
H A Ddisplayport.c48 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()
314 desc->vdo |= DP_CAP_DP_SIGNALING | DP_CAP_RECEPTACLE; in ucsi_register_displayport()
317 desc->vdo |= all_assignments << 8; in ucsi_register_displayport()
318 desc->vdo |= all_assignments << 16; in ucsi_register_displayport()
H A Dtrace.h92 __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)
H A Ducsi_ccg.c472 (pin & DP_CONF_GET_PIN_ASSIGN(alt->vdo))) { in ucsi_ccg_update_set_new_cam_cmd()
492 * Change the order of vdo values of NVIDIA test device FTB
493 * (Function Test Board) which reports altmode list with vdo=0x3
494 * first and then vdo=0x. Current logic to assign mode value is
496 * and SOP altmodes since NVIDIA GPU connector has order of vdo=0x1
497 * first and then vdo=0x3
H A Ducsi.h433 * DP mode with vdo=0x1 and NVIDIA test mode with vdo=0x3
H A Ducsi.c371 if (desc->vdo == USB_TYPEC_NVIDIA_VLINK_DBG_VDO) in ucsi_register_altmode()
484 desc.vdo = updated[i].mid; in ucsi_register_altmodes_nvidia()
487 desc.vdo = orig[i].mid; in ucsi_register_altmodes_nvidia()
552 desc.vdo = alt[j].mid; in ucsi_register_altmodes()
586 adev[i]->vdo != USB_TYPEC_NVIDIA_VLINK_DBG_VDO))) { in ucsi_unregister_altmodes()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-typec220 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 …]
H A Dsysfs-bus-typec37 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
/openbmc/linux/Documentation/devicetree/bindings/iommu/
H A Dmediatek,iommu.yaml81 - 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
/openbmc/linux/Documentation/ABI/obsolete/
H A Dsysfs-class-typec17 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
/openbmc/linux/drivers/platform/chrome/
H A Dcros_typec_vdm.c95 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()
H A Dcros_ec_typec.c276 desc.vdo = DP_PORT_VDO, in cros_typec_register_port_altmodes()
411 * cros_typec_get_cable_vdo() - Get Cable VDO of the connected cable
415 * Returns the Cable VDO if match is found and returns 0 if match is not found.
425 return node->amode->vdo; in cros_typec_get_cable_vdo()
449 /* Device Discover Mode VDO */ in cros_typec_enable_tbt()
455 /* Cable Discover Mode VDO */ in cros_typec_enable_tbt()
470 /* Enter Mode VDO */ in cros_typec_enable_tbt()
509 /* Status VDO. */ in cros_typec_enable_dp()
516 /* Configuration VDO. */ in cros_typec_enable_dp()
725 desc.vdo = sop_disc->svids[i].mode_vdo[j]; in cros_typec_register_altmodes()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/connector/
H A Dusb-connector.yaml147 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO),
149 definitions and the order of each VDO can be found in
151 chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via
159 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO),
161 definitions and the order of each VDO can be found in
163 Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/
H A Dmediatek,smi-common.yaml40 - mediatek,mt8188-smi-common-vdo
43 - mediatek,mt8195-smi-common-vdo
135 - mediatek,mt8195-smi-common-vdo
/openbmc/linux/include/dt-bindings/memory/
H A Dmediatek,mt8188-memory-port.h62 * 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 */
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c447 /* VDO to retry if UFP responder replied busy */
1443 * VDM/VDO handling functions
1482 u32 vdo = p[VDO_INDEX_IDH]; in svdm_consume_identity() local
1487 port->partner_ident.id_header = vdo; in svdm_consume_identity()
1495 PD_IDH_VID(vdo), in svdm_consume_identity()
1529 * PD3.0 Spec 6.4.4.3.2: The SVIDs are returned 2 per VDO (see Table in svdm_consume_svids()
1533 * SVIDs VDO is returned ending either with a SVID value of 0x0000 in in svdm_consume_svids()
1534 * the last part of the last VDO or with a VDO containing two SVIDs in svdm_consume_svids()
1538 * 0x0000 in the last VDO, so we need to break the Discover SVIDs in svdm_consume_svids()
1564 paltmode->vdo = p[i]; in svdm_consume_modes()
[all …]

12