Home
last modified time | relevance | path

Searched refs:svid (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.6.21/drivers/platform/chrome/
Dcros_typec_vdm.c27 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()
48 svid, port_num); in cros_typec_handle_vdm_attention()
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()
85 svid, port_num); in cros_typec_handle_vdm_response()
92 svid, port_num); in cros_typec_handle_vdm_response()
105 hdr = VDO(amode->svid, 1, SVDM_VER_2_0, CMD_ENTER_MODE); in cros_typec_port_amode_enter()
/linux-6.6.21/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.6.21/arch/powerpc/platforms/85xx/
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()
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()
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.6.21/drivers/usb/typec/ucsi/
Ducsi_ccg.c187 u16 svid; member
375 alt[i].svid = orig[i].svid; in ucsi_ccg_update_altmodes()
377 if (!alt[i].svid) in ucsi_ccg_update_altmodes()
382 if (!alt[i].svid) in ucsi_ccg_update_altmodes()
391 new_alt[k].svid = alt[i].svid; in ucsi_ccg_update_altmodes()
395 updated[k].svid = new_alt[k].svid; in ucsi_ccg_update_altmodes()
402 if (alt[i].svid != alt[j].svid || in ucsi_ccg_update_altmodes()
407 new_alt[k].svid = alt[i].svid; in ucsi_ccg_update_altmodes()
420 new_alt[k].svid = alt[i].svid; in ucsi_ccg_update_altmodes()
425 updated[k].svid = new_alt[k].svid; in ucsi_ccg_update_altmodes()
[all …]
Dtrace.h90 __field(u16, svid)
96 __entry->svid = alt->svid;
101 ucsi_recipient_str(__entry->recipient), __entry->svid,
Ducsi.c281 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() argument
290 if (alt[i]->svid == svid) in ucsi_altmode_next_mode()
338 ret = ucsi_altmode_next_mode(con->port_altmode, desc->svid); in ucsi_register_altmode()
344 switch (desc->svid) { in ucsi_register_altmode()
375 ret = ucsi_altmode_next_mode(con->partner_altmode, desc->svid); in ucsi_register_altmode()
399 desc->svid, desc->mode); in ucsi_register_altmode()
443 if (!len || !alt.svid) in ucsi_register_altmodes_nvidia()
447 orig[k].svid = alt.svid; in ucsi_register_altmodes_nvidia()
461 desc.svid = updated[i].svid; in ucsi_register_altmodes_nvidia()
464 desc.svid = orig[i].svid; in ucsi_register_altmodes_nvidia()
[all …]
/linux-6.6.21/drivers/usb/typec/mux/
Dfsa4480.c60 unsigned int svid; member
81 (!fsa->svid && (fsa->mode == TYPEC_MODE_USB2 || in fsa4480_set()
85 } else if (fsa->svid) { in fsa4480_set()
170 fsa->svid = state->alt->svid; in fsa4480_mux_set()
172 fsa->svid = 0; // No SVID in fsa4480_mux_set()
Dnb7vpq904m.c79 unsigned int svid; member
169 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()
/linux-6.6.21/fs/lockd/
Dtrace.h60 __field(u32, svid)
70 __entry->svid = lock->svid;
80 __get_sockaddr(addr), __entry->oh, __entry->svid,
Dxdr.c83 if (xdr_stream_decode_u32(xdr, &lock->svid) < 0) in svcxdr_decode_lock()
112 if (xdr_stream_encode_u32(xdr, lock->svid) < 0) in svcxdr_encode_holder()
278 lock->svid = ~(u32)0; in nlmsvc_decode_shareargs()
Dxdr4.c84 if (xdr_stream_decode_u32(xdr, &lock->svid) < 0) in svcxdr_decode_lock()
107 if (xdr_stream_encode_u32(xdr, lock->svid) < 0) in svcxdr_encode_holder()
273 lock->svid = ~(u32)0; in nlm4svc_decode_shareargs()
Dclnt4xdr.c247 encode_int32(xdr, lock->svid); in encode_nlm4_holder()
272 lock->svid = be32_to_cpup(p); in decode_nlm4_holder()
273 fl->fl_pid = (pid_t)lock->svid; in decode_nlm4_holder()
329 *p++ = cpu_to_be32(lock->svid); in encode_nlm4_lock()
Dclntxdr.c242 encode_int32(xdr, lock->svid); in encode_nlm_holder()
267 lock->svid = be32_to_cpup(p); in decode_nlm_holder()
268 fl->fl_pid = (pid_t)lock->svid; in decode_nlm_holder()
330 *p++ = cpu_to_be32(lock->svid); in encode_nlm_lock()
/linux-6.6.21/drivers/usb/typec/
Dbus.c316 size_t n, u16 svid, u8 mode) in typec_match_altmode() argument
323 if (altmodes[i]->svid == svid && altmodes[i]->mode == mode) in typec_match_altmode()
354 for (id = drv->id_table; id->svid; id++) in typec_match()
355 if (id->svid == altmode->svid && in typec_match()
365 if (add_uevent_var(env, "SVID=%04X", altmode->svid)) in typec_uevent()
372 altmode->svid, altmode->mode); in typec_uevent()
Danx7411.c549 int svid, int vdo) in anx7411_typec_register_altmode() argument
556 desc.svid = svid; in anx7411_typec_register_altmode()
590 static int anx7411_update_altmode(struct anx7411_data *ctx, int svid) in anx7411_update_altmode() argument
594 if (svid == DP_SVID) in anx7411_update_altmode()
603 if (ctx->typec.amode[i]->svid == svid) { in anx7411_update_altmode()
619 int svid; in anx7411_register_altmode() local
625 svid = DP_SVID; in anx7411_register_altmode()
629 return anx7411_typec_register_altmode(ctx, svid, mid); in anx7411_register_altmode()
632 svid = (buf[3] << 8) | buf[2]; in anx7411_register_altmode()
634 return anx7411_update_altmode(ctx, svid); in anx7411_register_altmode()
[all …]
Dclass.c232 return ((adev->svid == id->svid) && (adev->mode == id->mode)); in altmode_match()
238 struct typec_device_id id = { adev->svid, adev->mode, }; in typec_altmode_set_partner()
435 return sprintf(buf, "%04x\n", adev->svid); in svid_show()
437 static DEVICE_ATTR_RO(svid);
529 alt->adev.svid = desc->svid; in typec_register_altmode()
2146 u32 svid, vdo; in typec_port_register_altmodes() local
2154 ret = fwnode_property_read_u32(child, "svid", &svid); in typec_port_register_altmodes()
2174 desc.svid = svid; in typec_port_register_altmodes()
/linux-6.6.21/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()
/linux-6.6.21/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.6.21/arch/powerpc/platforms/86xx/
Dgef_sbc610.c124 uint svid = mfspr(SPRN_SVR); in gef_sbc610_show_cpuinfo() local
132 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in gef_sbc610_show_cpuinfo()
Dgef_sbc310.c132 uint svid = mfspr(SPRN_SVR); in gef_sbc310_show_cpuinfo() local
141 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in gef_sbc310_show_cpuinfo()
Dgef_ppc9a.c142 uint svid = mfspr(SPRN_SVR); in gef_ppc9a_show_cpuinfo() local
150 seq_printf(m, "SVR\t\t: 0x%x\n", svid); in gef_ppc9a_show_cpuinfo()
/linux-6.6.21/include/linux/usb/
Dtypec_altmode.h26 u16 svid; member
123 size_t n, u16 svid, u8 mode);

12