Lines Matching refs:nsize
1080 if (raw_inode.nsize > JFFS_MAX_NAME_LEN) { in jffs_scan_flash()
1114 if (raw_inode.nsize) { in jffs_scan_flash()
1115 flash_safe_read(fmc->mtd, pos, name, raw_inode.nsize); in jffs_scan_flash()
1116 name[raw_inode.nsize] = '\0'; in jffs_scan_flash()
1117 pos += raw_inode.nsize in jffs_scan_flash()
1118 + JFFS_GET_PAD_BYTES(raw_inode.nsize); in jffs_scan_flash()
1120 checksum = jffs_checksum(name, raw_inode.nsize); in jffs_scan_flash()
1182 + raw_inode.nsize in jffs_scan_flash()
1183 + JFFS_GET_PAD_BYTES(raw_inode.nsize); in jffs_scan_flash()
1308 node->fm_offset = sizeof(struct jffs_raw_inode) + raw_inode->nsize in jffs_insert_node()
1309 + JFFS_GET_PAD_BYTES(raw_inode->nsize); in jffs_insert_node()
1310 node->name_size = raw_inode->nsize; in jffs_insert_node()
1385 if (raw_inode->nsize && update_name && name && *name && (name != f->name)) { in jffs_insert_node()
1390 if (!(f->name = (char *) kmalloc(raw_inode->nsize + 1, in jffs_insert_node()
1395 memcpy(f->name, name, raw_inode->nsize); in jffs_insert_node()
1396 f->name[raw_inode->nsize] = '\0'; in jffs_insert_node()
1397 f->nsize = raw_inode->nsize; in jffs_insert_node()
1753 __u32 total_name_size = raw_inode->nsize in jffs_write_node()
1754 + JFFS_GET_PAD_BYTES(raw_inode->nsize); in jffs_write_node()
1774 ASSERT(if (raw_inode && raw_inode->nsize && !name) { in jffs_write_node()
1776 raw_inode->nsize); in jffs_write_node()
1867 raw_inode->nchksum = jffs_checksum(name, raw_inode->nsize); in jffs_write_node()
1887 if (raw_inode->nsize) { in jffs_write_node()
1889 node_iovec[iovec_cnt].iov_len = (size_t) raw_inode->nsize; in jffs_write_node()
1892 if (JFFS_GET_PAD_BYTES(raw_inode->nsize)) { in jffs_write_node()
1897 JFFS_GET_PAD_BYTES(raw_inode->nsize); in jffs_write_node()
2531 D(printk(" 0x%02x, /* nsize */\n", raw_inode->nsize)); in jffs_print_raw_inode()
2563 D(printk(" 0x%02x, /* nsize */\n", f->nsize)); in jffs_print_file()
2690 total_name_size = JFFS_PAD(f->nsize); in jffs_rewrite_data()
2741 raw_inode.nsize = f->nsize; in jffs_rewrite_data()
2774 if (f->nsize) { in jffs_rewrite_data()
2779 f->nsize)) < 0) { in jffs_rewrite_data()
2789 raw_inode.nchksum = jffs_checksum(f->name, f->nsize); in jffs_rewrite_data()
2916 total_name_size = JFFS_PAD(f->nsize); in jffs_garbage_collect_next()
3015 D2(printk(" f->nsize: %u\n", f->nsize)); in jffs_garbage_collect_next()