Lines Matching refs:options_bytes
334 int options_bytes = 0, safe_options_bytes = 0; /* UTF-8 bytes */ in efi_convert_cmdline() local
350 while (options_bytes < COMMAND_LINE_SIZE && options_chars--) { in efi_convert_cmdline()
359 safe_options_bytes = options_bytes; in efi_convert_cmdline()
361 options_bytes++; in efi_convert_cmdline()
370 options_bytes += 2 + (c >= 0x800); in efi_convert_cmdline()
383 options_bytes -= 3; in efi_convert_cmdline()
385 options_bytes++; in efi_convert_cmdline()
391 if (options_bytes >= COMMAND_LINE_SIZE) { in efi_convert_cmdline()
392 options_bytes = safe_options_bytes; in efi_convert_cmdline()
394 options_bytes); in efi_convert_cmdline()
398 options_bytes++; /* NUL termination */ in efi_convert_cmdline()
400 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, options_bytes, in efi_convert_cmdline()
405 snprintf((char *)cmdline_addr, options_bytes, "%.*ls", in efi_convert_cmdline()
406 options_bytes - 1, options); in efi_convert_cmdline()
408 *cmd_line_len = options_bytes; in efi_convert_cmdline()