Lines Matching defs:buf
790 unsigned char *buf;
792 /* 'buf' will point to the start of data */
793 buf = (unsigned char *)rd + sizeof(*rd);
796 tn->partial_crc = crc32(0, buf, len);
941 int needed_len, int *rdlen, unsigned char *buf)
959 err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen);
985 unsigned char *buf = NULL;
997 buf = kmalloc(len, GFP_KERNEL);
998 if (!buf)
1045 err = jffs2_flash_read(c, ref_offset(ref), len, &retlen, buf);
1057 node = (union jffs2_node_union *)buf;
1084 err = read_more(c, ref, sizeof(struct jffs2_raw_dirent), &len, buf);
1099 err = read_more(c, ref, sizeof(struct jffs2_raw_inode), &len, buf);
1113 err = read_more(c, ref, sizeof(struct jffs2_unknown_node), &len, buf);
1128 kfree(buf);
1141 kfree(buf);