Lines Matching refs:pnl
81 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()
109 (wchar_t *) usb_ext_prop_data_ptr(buf, pnl), in usb_ext_prop_put_unicode()
115 &buf[USB_EXT_PROP_B_PROPERTY_DATA + pnl + data_len - 2]); in usb_ext_prop_put_unicode()