Lines Matching refs:buf
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()
132 kernel_read(file, buf, size, &pos); in identify_ramdisk_image()
146 kernel_read(file, buf, size, &pos); in identify_ramdisk_image()
159 n = ext2_image_size(buf); in identify_ramdisk_image()
173 kfree(buf); in identify_ramdisk_image()
191 char *buf = NULL; in rd_load_image() local
241 buf = kmalloc(BLOCK_SIZE, GFP_KERNEL); in rd_load_image()
242 if (!buf) { in rd_load_image()
256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image()
257 kernel_write(out_file, buf, BLOCK_SIZE, &out_pos); in rd_load_image()
274 kfree(buf); in rd_load_image()
289 static long __init compr_fill(void *buf, unsigned long len) in compr_fill() argument
291 long r = kernel_read(in_file, buf, len, &in_pos); in compr_fill()