Home
last modified time | relevance | path

Searched refs:vdo (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/include/linux/usb/
Dpd_vdo.h77 #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
148 #define PD_IDH_PTYPE(vdo) (((vdo) >> 27) & 0x7) argument
149 #define PD_IDH_VID(vdo) ((vdo) & 0xffff) argument
150 #define PD_IDH_MODAL_SUPP(vdo) ((vdo) & (1 << 26)) argument
151 #define PD_IDH_DFP_PTYPE(vdo) (((vdo) >> 23) & 0x7) argument
[all …]
Dtypec_altmode.h28 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.h119 u32 vdo[3]; member
138 u32 vdo; member
/linux-6.6.21/drivers/usb/typec/altmodes/
Ddisplayport.c97 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()
282 const u32 hdr, const u32 *vdo, int count) in dp_altmode_vdm() argument
[all …]
/linux-6.6.21/drivers/usb/typec/ucsi/
Dtrace.h92 __field(u32, vdo)
98 __entry->vdo = alt->vdo;
102 __entry->mode, __entry->vdo)
Ddisplayport.c48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument
158 u32 cap = dp->alt->vdo; in ucsi_displayport_status_update()
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()
Ducsi.c349 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()
Ducsi_ccg.c470 (pin & DP_CONF_GET_PIN_ASSIGN(alt->vdo))) { in ucsi_ccg_update_set_new_cam_cmd()
/linux-6.6.21/drivers/usb/typec/
Dbus.c126 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()
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()
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()
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);
531 alt->adev.vdo = desc->vdo; in typec_register_altmode()
2146 u32 svid, vdo; in typec_port_register_altmodes() local
2161 ret = fwnode_property_read_u32(child, "vdo", &vdo); in typec_port_register_altmodes()
2175 desc.vdo = vdo; in typec_port_register_altmodes()
Danx7411.c549 int svid, int vdo) in anx7411_typec_register_altmode() argument
557 desc.vdo = vdo; in anx7411_typec_register_altmode()
/linux-6.6.21/drivers/platform/chrome/
Dcros_typec_vdm.c95 static int cros_typec_port_amode_enter(struct typec_altmode *amode, u32 *vdo) in cros_typec_port_amode_enter() argument
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()
Dcros_ec_typec.c276 desc.vdo = DP_PORT_VDO, in cros_typec_register_port_altmodes()
424 return node->amode->vdo; in cros_typec_get_cable_vdo()
724 desc.vdo = sop_disc->svids[i].mode_vdo[j]; in cros_typec_register_altmodes()
791 id->vdo[i - 3] = disc->discovery_vdo[i]; in cros_typec_parse_pd_identity()
819 cable_plug_type = VDO_TYPEC_CABLE_TYPE(port->c_identity.vdo[0]); in cros_typec_handle_sop_prime_disc()
/linux-6.6.21/include/dt-bindings/usb/
Dpd.h431 #define PD_VDO_AMA_VCONN_REQ(vdo) (((vdo) >> 4) & 1) argument
432 #define PD_VDO_AMA_VBUS_REQ(vdo) (((vdo) >> 3) & 1) argument
/linux-6.6.21/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
/linux-6.6.21/Documentation/devicetree/bindings/memory-controllers/
Dmediatek,smi-common.yaml40 - mediatek,mt8188-smi-common-vdo
43 - mediatek,mt8195-smi-common-vdo
135 - mediatek,mt8195-smi-common-vdo
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-typec46 What: /sys/bus/typec/devices/.../vdo
/linux-6.6.21/Documentation/ABI/obsolete/
Dsysfs-class-typec27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo
/linux-6.6.21/drivers/usb/typec/tcpm/
Dtcpm.c1482 u32 vdo = p[VDO_INDEX_IDH]; in svdm_consume_identity() local
1487 port->partner_ident.id_header = vdo; in svdm_consume_identity()
1494 PD_IDH_VID(vdo), in svdm_consume_identity()
1563 paltmode->vdo = p[i]; in svdm_consume_modes()
1567 paltmode->mode, paltmode->vdo); in svdm_consume_modes()
2221 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() argument
2231 header = VDO(altmode->svid, vdo ? 2 : 1, svdm_version, CMD_ENTER_MODE); in tcpm_altmode_enter()
2234 tcpm_queue_vdm_unlocked(port, header, vdo, vdo ? 1 : 0); in tcpm_altmode_enter()
/linux-6.6.21/include/linux/platform_data/
Dcros_ec_commands.h5207 uint32_t vdo[6]; /* Mode VDOs */ member
/linux-6.6.21/arch/arm64/boot/dts/mediatek/
Dmt8195.dtsi2816 compatible = "mediatek,mt8195-smi-common-vdo";
2828 compatible = "mediatek,mt8195-iommu-vdo";