• Home
  • Raw
  • Download

Lines Matching refs:len

363 	int ret, len = 0;  in xbc_make_cmdline()  local
370 len = xbc_snprint_cmdline(NULL, 0, root); in xbc_make_cmdline()
371 if (len <= 0) in xbc_make_cmdline()
374 new_cmdline = memblock_alloc(len + 1, SMP_CACHE_BYTES); in xbc_make_cmdline()
380 ret = xbc_snprint_cmdline(new_cmdline, len + 1, root); in xbc_make_cmdline()
381 if (ret < 0 || ret > len) { in xbc_make_cmdline()
383 memblock_free(__pa(new_cmdline), len + 1); in xbc_make_cmdline()
525 size_t len = strlen(param); in unknown_bootoption() local
534 if (strnchr(param, len, '.')) in unknown_bootoption()
548 if (!strncmp(param, envp_init[i], len+1)) in unknown_bootoption()
609 size_t len, xlen = 0, ilen = 0; in setup_command_line() local
616 len = xlen + strlen(boot_command_line) + 1; in setup_command_line()
618 saved_command_line = memblock_alloc(len + ilen, SMP_CACHE_BYTES); in setup_command_line()
620 panic("%s: Failed to allocate %zu bytes\n", __func__, len + ilen); in setup_command_line()
622 static_command_line = memblock_alloc(len, SMP_CACHE_BYTES); in setup_command_line()
624 panic("%s: Failed to allocate %zu bytes\n", __func__, len); in setup_command_line()
644 len = strlen(saved_command_line); in setup_command_line()
646 saved_command_line[len++] = ' '; in setup_command_line()
648 strcpy(saved_command_line + len, " -- "); in setup_command_line()
649 len += 4; in setup_command_line()
652 strcpy(saved_command_line + len, extra_init_args); in setup_command_line()
1274 size_t len = strlen(saved_command_line) + 1; in do_initcalls() local
1277 command_line = kzalloc(len, GFP_KERNEL); in do_initcalls()
1279 panic("%s: Failed to allocate %zu bytes\n", __func__, len); in do_initcalls()