Home
last modified time | relevance | path

Searched refs:pnl (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/gadget/
Du_os_desc.h81 static inline int usb_ext_prop_put_name(u8 *buf, const char *name, int pnl) in usb_ext_prop_put_name() argument
85 put_unaligned_le16(pnl, usb_ext_prop_name_len_ptr(buf)); in usb_ext_prop_put_name()
87 (wchar_t *) usb_ext_prop_name_ptr(buf), pnl - 2); in usb_ext_prop_put_name()
91 put_unaligned_le16(0, &buf[USB_EXT_PROP_B_PROPERTY_NAME + pnl - 2]); in usb_ext_prop_put_name()
93 return pnl; in usb_ext_prop_put_name()
96 static inline void usb_ext_prop_put_binary(u8 *buf, int pnl, const u8 *data, in usb_ext_prop_put_binary() argument
99 put_unaligned_le32(data_len, usb_ext_prop_data_len_ptr(buf, pnl)); in usb_ext_prop_put_binary()
100 memcpy(usb_ext_prop_data_ptr(buf, pnl), data, data_len); in usb_ext_prop_put_binary()
103 static inline int usb_ext_prop_put_unicode(u8 *buf, int pnl, const char *string, in usb_ext_prop_put_unicode() argument
107 put_unaligned_le32(data_len, usb_ext_prop_data_len_ptr(buf, pnl)); in usb_ext_prop_put_unicode()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_security.c575 u16 pnl; in rtw_tkip_encrypt() local
619 pnl = (u16)(dot11txpn.val); in rtw_tkip_encrypt()
622 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt()
656 u16 pnl; in rtw_tkip_decrypt() local
694 pnl = (u16)(dot11txpn.val); in rtw_tkip_decrypt()
698 phase2(&rc4key[0], prwskey, (unsigned short *)&ttkey[0], pnl); in rtw_tkip_decrypt()
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Drtl871x_security.c561 u16 pnl; in r8712_tkip_encrypt() local
595 pnl = (u16)(txpn.val); in r8712_tkip_encrypt()
600 pnl); in r8712_tkip_encrypt()
641 u16 pnl; in r8712_tkip_decrypt() local
678 pnl = (u16)(txpn.val); in r8712_tkip_decrypt()
683 &ttkey[0], pnl); in r8712_tkip_decrypt()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_security.c656 u16 pnl; in rtw_tkip_encrypt() local
695 pnl = (u16)(dot11txpn.val); in rtw_tkip_encrypt()
700 phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl); in rtw_tkip_encrypt()
733 u16 pnl; in rtw_tkip_decrypt() local
801 pnl = (u16)(dot11txpn.val); in rtw_tkip_decrypt()
805 phase2(&rc4key[0], prwskey, (unsigned short *)&ttkey[0], pnl); in rtw_tkip_decrypt()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_fs.c2426 u16 pnl; in __ffs_data_do_os_desc() local
2440 pnl = le16_to_cpu(d->wPropertyNameLength); in __ffs_data_do_os_desc()
2441 if (length < 14 + pnl) { in __ffs_data_do_os_desc()
2443 length, pnl, type); in __ffs_data_do_os_desc()
2446 pdl = le32_to_cpu(*(__le32 *)((u8 *)data + 10 + pnl)); in __ffs_data_do_os_desc()
2447 if (length != 14 + pnl + pdl) { in __ffs_data_do_os_desc()
2449 length, pnl, pdl, type); in __ffs_data_do_os_desc()
2454 ffs->ms_os_descs_ext_prop_name_len += pnl * 2; in __ffs_data_do_os_desc()
Df_generic.c2278 u16 pnl; in __ffs_data_do_os_desc() local
2292 pnl = le16_to_cpu(d->wPropertyNameLength); in __ffs_data_do_os_desc()
2293 if (length < 14 + pnl) { in __ffs_data_do_os_desc()
2295 length, pnl, type); in __ffs_data_do_os_desc()
2298 pdl = le32_to_cpu(*(__le32 *)((u8 *)data + 10 + pnl)); in __ffs_data_do_os_desc()
2299 if (length != 14 + pnl + pdl) { in __ffs_data_do_os_desc()
2301 length, pnl, pdl, type); in __ffs_data_do_os_desc()
2306 ffs->ms_os_descs_ext_prop_name_len += pnl * 2; in __ffs_data_do_os_desc()
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/
Dprism2sta.c1153 chinforesult->pnl = result->pnl; in prism2sta_inf_chinforesults()
1160 chinforesult->anl, chinforesult->pnl, in prism2sta_inf_chinforesults()
Dhfa384x.h672 u16 pnl; member
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch17384 - u16 pnl;
17398 - pnl = le16_to_cpu(d->wPropertyNameLength);
17399 - if (length < 14 + pnl) {
17400 - pr_vdebug("invalid os descriptor length: %d pnl:%d (descriptor %d)\n",
17401 - length, pnl, type);
17404 - pdl = le32_to_cpu(*(__le32 *)((u8 *)data + 10 + pnl));
17405 - if (length != 14 + pnl + pdl) {
17406 - pr_vdebug("invalid os descriptor length: %d pnl:%d pdl:%d (descriptor %d)\n",
17407 - length, pnl, pdl, type);
17412 - ffs->ms_os_descs_ext_prop_name_len += pnl * 2;