Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/linux/usb/
Dpd_vdo.h12 * VDO : Vendor Defined Message Object
31 #define VDO(vid, type, custom) \ macro
75 #define PD_VDO_VID(vdo) ((vdo) >> 16) argument
76 #define PD_VDO_SVDM(vdo) (((vdo) >> 15) & 1) argument
77 #define PD_VDO_OPOS(vdo) (((vdo) >> 8) & 0x7) argument
78 #define PD_VDO_CMD(vdo) ((vdo) & 0x1f) argument
79 #define PD_VDO_CMDT(vdo) (((vdo) >> 6) & 0x3) argument
89 * [2] :: Cert Stat VDO
90 * [3] :: (Product | Cable) VDO
91 * [4] :: AMA VDO
[all …]
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 */
49 /* TBT3 Device Enter Mode VDO bits */
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);
Dtypec.h91 * @id_header: ID Header VDO
92 * @cert_stat: Cert Stat VDO
93 * @product: Product VDO
94 * @vdo: Product Type Specific VDOs
105 u32 vdo[3]; member
115 * @vdo: VDO returned by Discover Modes USB PD command
124 u32 vdo; member
162 * @type: The plug type from USB PD Cable VDO
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 */
/kernel/linux/linux-6.6/include/linux/usb/
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 …]
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 */
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);
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
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 */
/kernel/linux/linux-5.10/drivers/usb/typec/altmodes/
Ddisplayport.c20 #define DP_HEADER(_dp, cmd) (VDO((_dp)->alt->svid, 1, cmd) | \
89 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure()
90 DP_CAP_DFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure()
95 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure()
96 DP_CAP_PIN_ASSIGN_DFP_D(dp->port->vdo); in dp_altmode_configure()
199 u32 vdo; in dp_altmode_work() local
212 vdo = 1; in dp_altmode_work()
213 ret = typec_altmode_vdm(dp->alt, header, &vdo, 2); in dp_altmode_work()
238 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() argument
246 dp->data.status = vdo; in dp_altmode_attention()
[all …]
/kernel/linux/linux-6.6/drivers/usb/typec/altmodes/
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 …]
/kernel/linux/linux-6.6/include/dt-bindings/usb/
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 …]
/kernel/linux/linux-5.10/drivers/usb/typec/
Dbus.c88 * @vdo: VDO for the Enter Mode command
92 * Enter Mode command. If the alternate mode does not require VDO, @vdo must be
95 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter() argument
116 return pdev->ops->enter(pdev, vdo); in typec_altmode_enter()
151 * @vdo: VDO for the Attention command
155 int typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() argument
166 pdev->ops->attention(pdev, vdo); in typec_altmode_attention()
176 * @vdo: Array of Vendor Defined Data Objects
184 const u32 header, const u32 *vdo, int count) in typec_altmode_vdm() argument
202 return pdev->ops->vdm(pdev, header, vdo, count); in typec_altmode_vdm()
/kernel/linux/linux-6.6/drivers/usb/typec/
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()
/kernel/linux/linux-5.10/drivers/usb/typec/ucsi/
Ddisplayport.c48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument
86 dp->header = VDO(USB_TYPEC_DP_SID, 1, CMD_ENTER_MODE); in ucsi_displayport_enter()
123 dp->header = VDO(USB_TYPEC_DP_SID, 1, CMD_EXIT_MODE); in ucsi_displayport_exit()
139 * We do not actually have access to the Status Update VDO, so we have to guess
144 u32 cap = dp->alt->vdo; in ucsi_displayport_status_update()
203 dp->header = VDO(USB_TYPEC_DP_SID, 1, cmd); in ucsi_displayport_vdm()
292 desc->vdo |= DP_CAP_DP_SIGNALING | DP_CAP_RECEPTACLE; in ucsi_register_displayport()
295 desc->vdo |= all_assignments << 8; in ucsi_register_displayport()
296 desc->vdo |= all_assignments << 16; in ucsi_register_displayport()
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)
/kernel/linux/linux-6.6/drivers/usb/typec/ucsi/
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()
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()
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)
/kernel/linux/linux-6.6/Documentation/ABI/testing/
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 …]
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
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-typec151 directory exists, it will have an attribute file for every VDO
158 ID Header VDO part of Discover Identity command result. The
166 Cert Stat VDO part of Discover Identity command result. The
174 Product VDO part of Discover Identity command result. The value
213 attribute for every VDO returned by Discover Identity command.
219 ID Header VDO part of Discover Identity command result. The
227 Cert Stat VDO part of Discover Identity command result. The
235 Product VDO part of Discover Identity command result. The value
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
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iommu/
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
/kernel/linux/linux-6.6/Documentation/ABI/obsolete/
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

123