Lines Matching refs:options

430             const char *options, *bootargs = fdt_getprop(_fdt, offset, "bootargs", &len);  in fdt_scan_initrd()  local
434 if (bootargs && (options = rt_strstr(bootargs, tmp_name))) in fdt_scan_initrd()
438 options += rt_strlen(tmp_name) + sizeof("0x") - 1; in fdt_scan_initrd()
445 while (*options && *options != ',' && *options != ' ') in fdt_scan_initrd()
448 char ch = *options | ' '; in fdt_scan_initrd()
466 ++options; in fdt_scan_initrd()
470 options += sizeof(",0x") - 1; in fdt_scan_initrd()
594 const char *options = RT_NULL, *con_type = RT_NULL; in rt_fdt_scan_chosen_stdout() local
606 if (bootargs && (options = rt_strstr(bootargs, "earlycon"))) in rt_fdt_scan_chosen_stdout()
608 options += sizeof("earlycon") - 1; in rt_fdt_scan_chosen_stdout()
610 if (*options == '\0' || *options == ' ') in rt_fdt_scan_chosen_stdout()
620 options = path_split + 1; in rt_fdt_scan_chosen_stdout()
637 else if (*options == '=') in rt_fdt_scan_chosen_stdout()
639 ++options; in rt_fdt_scan_chosen_stdout()
644 options = RT_NULL; in rt_fdt_scan_chosen_stdout()
650 options = RT_NULL; in rt_fdt_scan_chosen_stdout()
658 if (options) in rt_fdt_scan_chosen_stdout()
672 options = RT_NULL; in rt_fdt_scan_chosen_stdout()
688 while (*options && (*options == '=' || *options == ' ')) in rt_fdt_scan_chosen_stdout()
690 ++options; in rt_fdt_scan_chosen_stdout()
693 if (*options) in rt_fdt_scan_chosen_stdout()
695 type_len = strchrnul(options, ',') - options; in rt_fdt_scan_chosen_stdout()
699 if (options && *options && *options != ' ') in rt_fdt_scan_chosen_stdout()
701 options_len = strchrnul(options, ' ') - options; in rt_fdt_scan_chosen_stdout()
703 rt_strncpy(fdt_earlycon.options, options, options_len); in rt_fdt_scan_chosen_stdout()
713 if (!rt_strncmp(earlycon_id->type, options, type_len)) in rt_fdt_scan_chosen_stdout()
750 options = &fdt_earlycon.options[options_len + 1]; in rt_fdt_scan_chosen_stdout()
751 rt_strncpy((void *)options, earlycon_magic, RT_ARRAY_SIZE(earlycon_magic)); in rt_fdt_scan_chosen_stdout()
753 err = best_earlycon_id->setup(&fdt_earlycon, fdt_earlycon.options); in rt_fdt_scan_chosen_stdout()
755 if (rt_strncmp(options, earlycon_magic, RT_ARRAY_SIZE(earlycon_magic))) in rt_fdt_scan_chosen_stdout()
757 const char *option_start = options - 1; in rt_fdt_scan_chosen_stdout()
764 rt_memmove(fdt_earlycon.options, option_start, options - option_start); in rt_fdt_scan_chosen_stdout()
768 fdt_earlycon.options[0] = '\0'; in rt_fdt_scan_chosen_stdout()
796 con_type, fdt_earlycon.mmio, fdt_earlycon.options); in rt_fdt_scan_chosen_stdout()