Home
last modified time | relevance | path

Searched full:svid (Results 1 – 25 of 96) sorted by relevance

1234

/linux-6.12.1/drivers/platform/chrome/
Dcros_typec_vdm.c18 * based on SVID.
27 u16 svid; in cros_typec_handle_vdm_attention() local
40 svid = PD_VDO_VID(hdr); in cros_typec_handle_vdm_attention()
44 CROS_EC_ALTMODE_MAX, svid, PD_VDO_OPOS(hdr)); in cros_typec_handle_vdm_attention()
47 "Received VDM for unregistered altmode (SVID:%x), port: %d\n", in cros_typec_handle_vdm_attention()
48 svid, port_num); in cros_typec_handle_vdm_attention()
57 * Retrieves a VDM response from the EC and forwards it to the altmode driver based on SVID.
66 u16 svid; in cros_typec_handle_vdm_response() local
78 svid = PD_VDO_VID(hdr); in cros_typec_handle_vdm_response()
82 svid, PD_VDO_OPOS(hdr)); in cros_typec_handle_vdm_response()
[all …]
/linux-6.12.1/drivers/hwmon/pmbus/
Dtda38640.c92 int ret, svid; in svid_mode() local
118 * If bit is set then it is SVID mode. in svid_mode()
120 svid = !!(read_buf[1] & BIT(7)); in svid_mode()
123 * Determine EN pin level for use in SVID mode. in svid_mode()
126 if (svid) { in svid_mode()
139 return svid; in svid_mode()
165 int svid; in tda38640_probe() local
174 svid = svid_mode(client, data); in tda38640_probe()
175 if (svid < 0) { in tda38640_probe()
176 dev_err_probe(&client->dev, svid, "Could not determine operating mode."); in tda38640_probe()
[all …]
/linux-6.12.1/Documentation/driver-api/usb/
Dtypec_bus.rst10 The communication is SVID (Standard or Vendor ID) specific, i.e. specific for
14 modes by using the SVID and the mode number.
24 matching SVID and mode. Communication between the port driver and alternate mode
28 alternate mode drivers, so the port drivers are only expected to pass the SVID
30 partners to the alternate mode drivers. No direct SVID specific communication is
47 will be used to deliver all the SVID specific commands from the partner to the
49 the SVID specific commands to each other using :c:func:`typec_altmode_vdm()`.
51 If the communication with the partner using the SVID specific commands results
54 passes the negotiated SVID specific pin configuration value to the function as
58 NOTE: The SVID specific pin configuration values must always start from
[all …]
Dtypec.rst47 Alternate Mode SVID will have their own device describing them. Note that the
146 Alternate Mode will have identifier called SVID, which is either a Standard ID
147 given by USB-IF or vendor ID, and each supported SVID can have 1 - 6 modes. The
148 class provides struct typec_mode_desc for describing individual mode of a SVID,
151 Ports that support Alternate Modes need to register each SVID they support with
158 Delivery Structured VDM Discover SVIDs message, each SVID needs to be
/linux-6.12.1/include/linux/usb/
Dtypec_altmode.h17 * @svid: Standard or Vendor ID (SVID) of the alternate mode
27 u16 svid; member
55 * @vdm: Callback for SVID specific commands
84 * @vdm: Callback for SVID specific commands
110 * Specification. SVID specific connector states are expected to follow and
153 size_t n, u16 svid, u8 mode);
183 * handle all SVID specific communication.
201 * handle all SVID specific communication.
213 * handle all SVID specific communication.
/linux-6.12.1/drivers/usb/typec/
Dbus.c84 * communication will be specific for every SVID.
210 * The alternate mode drivers use this function for SVID specific communication
317 * The alternate mode drivers use this function for SVID specific communication
408 * typec_match_altmode - Match SVID and mode to an array of alternate modes
411 * @svid: Standard or Vendor ID to match with
414 * Return pointer to an alternate mode with SVID matching @svid, or NULL when no
418 size_t n, u16 svid, u8 mode) in typec_match_altmode() argument
425 if (altmodes[i]->svid == svid && altmodes[i]->mode == mode) in typec_match_altmode()
456 for (id = drv->id_table; id->svid; id++) in typec_match()
457 if (id->svid == altmode->svid && in typec_match()
[all …]
Danx7411.c550 int svid, int vdo) in anx7411_typec_register_altmode() argument
557 desc.svid = svid; in anx7411_typec_register_altmode()
591 static int anx7411_update_altmode(struct anx7411_data *ctx, int svid) in anx7411_update_altmode() argument
595 if (svid == DP_SVID) in anx7411_update_altmode()
604 if (ctx->typec.amode[i]->svid == svid) { in anx7411_update_altmode()
620 int svid; in anx7411_register_altmode() local
626 svid = DP_SVID; in anx7411_register_altmode()
630 return anx7411_typec_register_altmode(ctx, svid, mid); in anx7411_register_altmode()
633 svid = (buf[3] << 8) | buf[2]; in anx7411_register_altmode()
635 return anx7411_update_altmode(ctx, svid); in anx7411_register_altmode()
[all …]
/linux-6.12.1/drivers/soc/qcom/
Dpmic_glink_altmode.c82 u16 svid; member
225 if (alt_port->svid == USB_TYPEC_DP_SID && alt_port->mode == 0xff) in pmic_glink_altmode_worker()
227 else if (alt_port->svid == USB_TYPEC_DP_SID) in pmic_glink_altmode_worker()
267 u16 svid; in pmic_glink_altmode_sc8180xp_notify() local
286 svid = mux == 2 ? USB_TYPEC_DP_SID : 0; in pmic_glink_altmode_sc8180xp_notify()
295 alt_port->svid = svid; in pmic_glink_altmode_sc8180xp_notify()
307 u16 svid, const void *data, size_t len) in pmic_glink_altmode_sc8280xp_notify() argument
338 alt_port->svid = svid; in pmic_glink_altmode_sc8280xp_notify()
350 u16 svid; in pmic_glink_altmode_callback() local
353 svid = le32_to_cpu(hdr->opcode) >> 16; in pmic_glink_altmode_callback()
[all …]
/linux-6.12.1/fs/lockd/
Dtrace.h60 __field(u32, svid)
70 __entry->svid = lock->svid;
79 "addr=%pISpc oh=0x%08x svid=0x%08x fh=0x%08x start=%llu len=%llu status=%s",
80 __get_sockaddr(addr), __entry->oh, __entry->svid,
Dclnt4xdr.c233 * int32 svid;
247 encode_int32(xdr, lock->svid); in encode_nlm4_holder()
272 lock->svid = be32_to_cpup(p); in decode_nlm4_holder()
273 fl->c.flc_pid = (pid_t)lock->svid; in decode_nlm4_holder()
313 * int32 svid;
329 *p++ = cpu_to_be32(lock->svid); in encode_nlm4_lock()
/linux-6.12.1/drivers/usb/typec/ucsi/
Dtrace.h90 __field(u16, svid)
96 __entry->svid = alt->svid;
100 TP_printk("%s alt mode: svid %04x, mode %d vdo %x",
101 ucsi_recipient_str(__entry->recipient), __entry->svid,
Ducsi_ccg.c187 u16 svid; member
416 alt[i].svid = orig[i].svid; in ucsi_ccg_update_altmodes()
418 if (!alt[i].svid) in ucsi_ccg_update_altmodes()
423 if (!alt[i].svid) in ucsi_ccg_update_altmodes()
432 new_alt[k].svid = alt[i].svid; in ucsi_ccg_update_altmodes()
436 updated[k].svid = new_alt[k].svid; in ucsi_ccg_update_altmodes()
443 if (alt[i].svid != alt[j].svid || in ucsi_ccg_update_altmodes()
448 new_alt[k].svid = alt[i].svid; in ucsi_ccg_update_altmodes()
461 new_alt[k].svid = alt[i].svid; in ucsi_ccg_update_altmodes()
466 updated[k].svid = new_alt[k].svid; in ucsi_ccg_update_altmodes()
[all …]
Ducsi.c335 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() argument
344 if (alt[i]->svid == svid) in ucsi_altmode_next_mode()
392 ret = ucsi_altmode_next_mode(con->port_altmode, desc->svid); in ucsi_register_altmode()
398 switch (desc->svid) { in ucsi_register_altmode()
429 ret = ucsi_altmode_next_mode(con->partner_altmode, desc->svid); in ucsi_register_altmode()
450 ret = ucsi_altmode_next_mode(con->plug_altmode, desc->svid); in ucsi_register_altmode()
473 dev_err(con->ucsi->dev, "failed to registers svid 0x%04x mode %d\n", in ucsi_register_altmode()
474 desc->svid, desc->mode); in ucsi_register_altmode()
518 if (!len || !alt.svid) in ucsi_register_altmodes_nvidia()
522 orig[k].svid = alt.svid; in ucsi_register_altmodes_nvidia()
[all …]
/linux-6.12.1/drivers/usb/typec/mux/
Dfsa4480.c64 unsigned int svid; member
89 (!fsa->svid && (fsa->mode == TYPEC_MODE_USB2 || in fsa4480_set()
93 } else if (fsa->svid) { in fsa4480_set()
178 fsa->svid = state->alt->svid; in fsa4480_mux_set()
180 fsa->svid = 0; // No SVID in fsa4480_mux_set()
Dptn36502.c76 unsigned int svid; member
119 if (ptn->svid != USB_TYPEC_DP_SID) in ptn36502_set()
248 ptn->svid = state->alt->svid; in ptn36502_retimer_set()
250 ptn->svid = 0; // No SVID in ptn36502_retimer_set()
Dnb7vpq904m.c78 unsigned int svid; member
168 if (nb7->svid != USB_TYPEC_DP_SID) in nb7vpq904m_set()
288 nb7->svid = state->alt->svid; in nb7vpq904m_retimer_set()
290 nb7->svid = 0; // No SVID in nb7vpq904m_retimer_set()
Dwcd939x-usbss.c199 unsigned int svid; member
250 (!usbss->svid && (usbss->mode == TYPEC_MODE_USB2 || in wcd939x_usbss_set()
253 } else if (usbss->svid) { in wcd939x_usbss_set()
569 usbss->svid = state->alt->svid; in wcd939x_usbss_mux_set()
571 usbss->svid = 0; // No SVID in wcd939x_usbss_mux_set()
/linux-6.12.1/arch/powerpc/platforms/85xx/
Dppa8548.c46 uint32_t svid, phid1; in ppa8548_show_cpuinfo() local
48 svid = mfspr(SPRN_SVR); in ppa8548_show_cpuinfo()
51 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in ppa8548_show_cpuinfo()
Dstx_gp3.c70 uint pvid, svid, phid1; in stx_gp3_show_cpuinfo() local
73 svid = mfspr(SPRN_SVR); in stx_gp3_show_cpuinfo()
77 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in stx_gp3_show_cpuinfo()
Dtqm85xx.c69 uint pvid, svid, phid1; in tqm85xx_show_cpuinfo() local
72 svid = mfspr(SPRN_SVR); in tqm85xx_show_cpuinfo()
76 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in tqm85xx_show_cpuinfo()
Dksi8560.c150 uint pvid, svid, phid1; in ksi8560_show_cpuinfo() local
153 svid = mfspr(SPRN_SVR); in ksi8560_show_cpuinfo()
167 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in ksi8560_show_cpuinfo()
/linux-6.12.1/drivers/usb/typec/altmodes/
Dnvidia.c14 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_probe()
22 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_remove()
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/pmbus/
Dinfineon,tda38640.yaml8 title: Infineon TDA38640 Synchronous Buck Regulator with SVID and I2C
15 Regulator with SVID and I2C designed for Industrial use.
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-bus-typec39 What: /sys/bus/typec/devices/.../svid
43 The Standard or Vendor ID (SVID) assigned by USB-IF for this
/linux-6.12.1/arch/powerpc/platforms/83xx/
Dkm83xx.c47 uint svid = mfspr(SPRN_SVR); in quirk_mpc8360e_qe_enet10() local
89 if (SVR_REV(svid) == 0x0021) { in quirk_mpc8360e_qe_enet10()
95 } else if (SVR_REV(svid) == 0x0020) { in quirk_mpc8360e_qe_enet10()

1234