Lines Matching +full:0 +full:xd800

54 	 * The position of the most-significant 0 bit gives us the length of  in utf8_to_utf32()
57 for (clen = 0; cx & 0x80; ++clen) in utf8_to_utf32()
60 * If the 0 bit is in position 8, this is a valid single-octet in utf8_to_utf32()
61 * encoding. If the 0 bit is in position 7 or positions 1-3, the in utf8_to_utf32()
69 for (i = 0; i < clen; ++i) { in utf8_to_utf32()
71 cx = (*s8)[i] ^ 0x80; in utf8_to_utf32()
72 if (cx & 0xc0) in utf8_to_utf32()
82 if (c32 > 0x10ffff || in utf8_to_utf32()
83 (c32 & 0xf800) == 0xd800 || in utf8_to_utf32()
84 clen != (c32 >= 0x80) + (c32 >= 0x800) + (c32 >= 0x10000)) in utf8_to_utf32()
97 size_t pos = 0, lim = ARRAY_SIZE(buf); in efi_puts()
105 if (c32 < 0x10000) { in efi_puts()
106 /* Characters in plane 0 use a single word. */ in efi_puts()
113 buf[pos++] = (0xd800 - (0x10000 >> 10)) + (c32 >> 10); in efi_puts()
114 buf[pos++] = 0xdc00 + (c32 & 0x3ff); in efi_puts()
116 if (*s8 == '\0' || pos >= lim - 2) { in efi_puts()
117 buf[pos] = L'\0'; in efi_puts()
119 pos = 0; in efi_puts()
142 case '0' ... '9': in efi_printk()
143 loglevel -= '0'; in efi_printk()
155 return 0; in efi_printk()
157 if (loglevel >= 0) in efi_printk()
203 buf[len - 1] = '\0'; in efi_parse_options()
266 if ((src->attributes & ~EFI_LOAD_OPTION_MASK) != 0) in efi_load_option_unpack()
277 } while (c != L'\0'); in efi_load_option_unpack()
324 if ((load_option->attributes & ~EFI_LOAD_OPTION_BOOT_MASK) != 0) in efi_apply_loadoptions_quirk()
345 unsigned long cmdline_addr = 0; in efi_convert_cmdline()
348 int options_bytes = 0, safe_options_bytes = 0; /* UTF-8 bytes */ in efi_convert_cmdline()
360 if (c < 0x80) { in efi_convert_cmdline()
361 if (c == L'\0' || c == L'\n') in efi_convert_cmdline()
377 options_bytes += 2 + (c >= 0x800); in efi_convert_cmdline()
380 * surrogates will be replaced with 0xfffd and take up in efi_convert_cmdline()
383 if ((c & 0xfc00) == 0xd800) { in efi_convert_cmdline()
391 } else if ((*s2 & 0xfc00) == 0xdc00) { in efi_convert_cmdline()
513 for (i = 0; i < nr_tables; i++) { in get_efi_config_table()
516 if (efi_guidcmp(t->guid, guid) == 0) in get_efi_config_table()
619 *load_addr = *load_size = 0; in efi_load_initrd_cmdline()
655 if (status == EFI_SUCCESS && *load_size > 0) in efi_load_initrd()
681 efi_set_event_at(events, 0, efi_table_attr(con_in, wait_for_key)); in efi_wait_for_key()
683 status = efi_bs_call(create_event, EFI_EVT_TIMER, 0, NULL, NULL, &timer); in efi_wait_for_key()
695 if (index == 0) in efi_wait_for_key()