Lines Matching refs:pnl
84 static inline int usb_ext_prop_put_name(u8 *buf, const char *name, int pnl) in usb_ext_prop_put_name() argument
88 put_unaligned_le16(pnl, usb_ext_prop_name_len_ptr(buf)); in usb_ext_prop_put_name()
90 (wchar_t *) usb_ext_prop_name_ptr(buf), pnl - 2); in usb_ext_prop_put_name()
94 put_unaligned_le16(0, &buf[USB_EXT_PROP_B_PROPERTY_NAME + pnl - 2]); in usb_ext_prop_put_name()
96 return pnl; in usb_ext_prop_put_name()
99 static inline void usb_ext_prop_put_binary(u8 *buf, int pnl, const u8 *data, in usb_ext_prop_put_binary() argument
102 put_unaligned_le32(data_len, usb_ext_prop_data_len_ptr(buf, pnl)); in usb_ext_prop_put_binary()
103 memcpy(usb_ext_prop_data_ptr(buf, pnl), data, data_len); in usb_ext_prop_put_binary()
106 static inline int usb_ext_prop_put_unicode(u8 *buf, int pnl, const char *string, in usb_ext_prop_put_unicode() argument
110 put_unaligned_le32(data_len, usb_ext_prop_data_len_ptr(buf, pnl)); in usb_ext_prop_put_unicode()
112 (wchar_t *) usb_ext_prop_data_ptr(buf, pnl), in usb_ext_prop_put_unicode()
118 &buf[USB_EXT_PROP_B_PROPERTY_DATA + pnl + data_len - 2]); in usb_ext_prop_put_unicode()