Searched refs:buf (Results 1 – 3 of 3) sorted by relevance
/init/ |
D | do_mounts_rd.c | 67 unsigned char *buf; in identify_ramdisk_image() local 72 buf = kmalloc(size, GFP_KERNEL); in identify_ramdisk_image() 73 if (!buf) in identify_ramdisk_image() 76 minixsb = (struct minix_super_block *) buf; in identify_ramdisk_image() 77 romfsb = (struct romfs_super_block *) buf; in identify_ramdisk_image() 78 cramfsb = (struct cramfs_super *) buf; in identify_ramdisk_image() 79 squashfsb = (struct squashfs_super_block *) buf; in identify_ramdisk_image() 80 memset(buf, 0xe5, size); in identify_ramdisk_image() 86 kernel_read(file, buf, size, &pos); in identify_ramdisk_image() 88 *decompressor = decompress_method(buf, size, &compress_name); in identify_ramdisk_image() [all …]
|
D | initramfs.c | 160 char buf[9]; in parse_header() local 163 buf[8] = '\0'; in parse_header() 165 memcpy(buf, s, 8); in parse_header() 166 parsed[i] = simple_strtoul(buf, NULL, 16); in parse_header() 209 static void __init read_into(char *buf, unsigned size, enum state next) in read_into() argument 216 collect = collected = buf; in read_into() 414 static long __init write_buffer(char *buf, unsigned long len) in write_buffer() argument 417 victim = buf; in write_buffer() 426 char *buf = (char *) bufv; in flush_buffer() local 431 while ((written = write_buffer(buf, len)) < len && !message) { in flush_buffer() [all …]
|
D | main.c | 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() 339 ret = snprintf(buf, rest(buf, end), "%s ", xbc_namebuf); in xbc_snprint_cmdline() 342 buf += ret; in xbc_snprint_cmdline() 346 ret = snprintf(buf, rest(buf, end), "%s=\"%s\" ", in xbc_snprint_cmdline() 350 buf += ret; in xbc_snprint_cmdline() 354 return buf - (end - size); in xbc_snprint_cmdline() 1058 char *buf; member 1078 entry->buf = memblock_alloc(strlen(str_entry) + 1, in initcall_blacklist() 1080 if (!entry->buf) in initcall_blacklist() [all …]
|