Searched refs:ustr (Results 1 – 3 of 3) sorted by relevance
48 static void create_unistr(struct hfsplus_unistr *ustr, const char *ascii_str) in create_unistr() argument53 memset(ustr->unicode, 0, sizeof(ustr->unicode)); in create_unistr()55 ustr->length = cpu_to_be16(len); in create_unistr()57 ustr->unicode[i] = cpu_to_be16((u16)ascii_str[i]); in create_unistr()60 static void corrupt_unistr(struct hfsplus_unistr *ustr) in corrupt_unistr() argument62 ustr->length = cpu_to_be16(U16_MAX); in corrupt_unistr()684 struct hfsplus_unistr *ustr, in check_unistr_content() argument688 int actual_len = be16_to_cpu(ustr->length); in check_unistr_content()695 u16 actual_char = be16_to_cpu(ustr->unicode[i]); in check_unistr_content()851 struct hfsplus_unistr ustr; in hfsplus_asc2uni_edge_cases_test() local[all …]
451 const __le16 *ustr = (const __le16 *)str; in cifs_unicode_bytelen() local454 if (ustr[len] == 0) in cifs_unicode_bytelen()
819 char __user *ustr; in test_ustring() local829 ustr = (char __user *)str; in test_ustring()830 if (strncpy_from_user_nofault(kstr, ustr, USTRING_BUF_SIZE) < 0) in test_ustring()