Lines Matching refs:cpu_to_je32
42 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode()
46 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode()
47 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_new_inode()
51 ri->version = cpu_to_je32(f->highest_version); in jffs2_do_new_inode()
105 ri->version = cpu_to_je32(++f->highest_version); in jffs2_write_dnode()
106 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_dnode()
263 rd->version = cpu_to_je32(++f->highest_version); in jffs2_write_dirent()
265 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_write_dirent()
377 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range()
378 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_inode_range()
380 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_write_inode_range()
381 ri->version = cpu_to_je32(++f->highest_version); in jffs2_write_inode_range()
382 ri->isize = cpu_to_je32(max(je32_to_cpu(ri->isize), offset + datalen)); in jffs2_write_inode_range()
383 ri->offset = cpu_to_je32(offset); in jffs2_write_inode_range()
384 ri->csize = cpu_to_je32(cdatalen); in jffs2_write_inode_range()
385 ri->dsize = cpu_to_je32(datalen); in jffs2_write_inode_range()
388 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_inode_range()
389 ri->data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); in jffs2_write_inode_range()
462 ri->data_crc = cpu_to_je32(0); in jffs2_do_create()
463 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_create()
512 rd->totlen = cpu_to_je32(sizeof(*rd) + qstr->len); in jffs2_do_create()
513 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_create()
515 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_create()
516 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_do_create()
521 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_do_create()
522 rd->name_crc = cpu_to_je32(crc32(0, qstr->name, qstr->len)); in jffs2_do_create()
575 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_unlink()
576 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_unlink()
578 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_unlink()
579 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_do_unlink()
580 rd->ino = cpu_to_je32(0); in jffs2_do_unlink()
581 rd->mctime = cpu_to_je32(time); in jffs2_do_unlink()
584 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_do_unlink()
585 rd->name_crc = cpu_to_je32(crc32(0, name, namelen)); in jffs2_do_unlink()
692 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_link()
693 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_link()
695 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_link()
696 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_do_link()
697 rd->ino = cpu_to_je32(ino); in jffs2_do_link()
698 rd->mctime = cpu_to_je32(time); in jffs2_do_link()
703 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_do_link()
704 rd->name_crc = cpu_to_je32(crc32(0, name, namelen)); in jffs2_do_link()