Lines Matching refs:size
269 u32 size, csum; in get_boot_config_from_initrd() local
291 size = le32_to_cpu(hdr[0]); in get_boot_config_from_initrd()
294 data = ((void *)hdr) - size; in get_boot_config_from_initrd()
297 size, initrd_end - initrd_start); in get_boot_config_from_initrd()
304 *_size = size; in get_boot_config_from_initrd()
323 static int __init xbc_snprint_cmdline(char *buf, size_t size, in xbc_snprint_cmdline() argument
327 char *end = buf + size; in xbc_snprint_cmdline()
354 return buf - (end - size); in xbc_snprint_cmdline()
404 u32 size, csum; in setup_boot_config() local
409 data = get_boot_config_from_initrd(&size, &csum); in setup_boot_config()
427 if (size >= XBC_DATA_MAX) { in setup_boot_config()
429 size, XBC_DATA_MAX); in setup_boot_config()
433 if (xbc_calc_checksum(data, size) != csum) { in setup_boot_config()
438 copy = memblock_alloc(size + 1, SMP_CACHE_BYTES); in setup_boot_config()
444 memcpy(copy, data, size); in setup_boot_config()
445 copy[size] = '\0'; in setup_boot_config()
455 pr_info("Load bootconfig: %d bytes %d nodes\n", size, ret); in setup_boot_config()