Searched refs:cpu_to_je32 (Results 1 – 13 of 13) sorted by relevance
/linux-3.4.99/fs/jffs2/ |
D | write.c | 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() 376 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range() 377 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_inode_range() [all …]
|
D | dir.c | 347 ri->isize = ri->dsize = ri->csize = cpu_to_je32(inode->i_size); in jffs2_symlink() 348 ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); in jffs2_symlink() 349 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink() 352 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink() 353 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_symlink() 414 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink() 415 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink() 417 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_symlink() 418 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_symlink() 419 rd->ino = cpu_to_je32(inode->i_ino); in jffs2_symlink() [all …]
|
D | gc.c | 795 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata() 796 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata() 798 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata() 799 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata() 803 ri.isize = cpu_to_je32(ilen); in jffs2_garbage_collect_metadata() 804 ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); in jffs2_garbage_collect_metadata() 805 ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); in jffs2_garbage_collect_metadata() 806 ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_metadata() 807 ri.offset = cpu_to_je32(0); in jffs2_garbage_collect_metadata() 808 ri.csize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata() [all …]
|
D | file.c | 178 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin() 179 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin() 181 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin() 182 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin() 186 ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); in jffs2_write_begin() 187 ri.atime = ri.ctime = ri.mtime = cpu_to_je32(get_seconds()); in jffs2_write_begin() 188 ri.offset = cpu_to_je32(inode->i_size); in jffs2_write_begin() 189 ri.dsize = cpu_to_je32(pageofs - inode->i_size); in jffs2_write_begin() 190 ri.csize = cpu_to_je32(0); in jffs2_write_begin() 192 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_write_begin() [all …]
|
D | fs.c | 96 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr() 97 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr() 99 ri->ino = cpu_to_je32(inode->i_ino); in jffs2_do_setattr() 100 ri->version = cpu_to_je32(++f->highest_version); in jffs2_do_setattr() 111 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr() 112 ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); in jffs2_do_setattr() 113 ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); in jffs2_do_setattr() 114 ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); in jffs2_do_setattr() 116 ri->offset = cpu_to_je32(0); in jffs2_do_setattr() 117 ri->csize = ri->dsize = cpu_to_je32(mdatalen); in jffs2_do_setattr() [all …]
|
D | summary.c | 126 temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ in jffs2_sum_add_inode_mem() 144 temp->offset = cpu_to_je32(ofs); /* relative from the beginning of the jeb */ in jffs2_sum_add_dirent_mem() 169 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_xattr_mem() 185 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_xref_mem() 274 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec() 290 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec() 325 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec() 336 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec() 711 isum.totlen = cpu_to_je32(infosize); in jffs2_sum_write_data() 712 isum.hdr_crc = cpu_to_je32(crc32(0, &isum, sizeof(struct jffs2_unknown_node) - 4)); in jffs2_sum_write_data() [all …]
|
D | xattr.c | 303 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum() 304 rx.hdr_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_datum() 306 rx.xid = cpu_to_je32(xd->xid); in save_xattr_datum() 307 rx.version = cpu_to_je32(++xd->version); in save_xattr_datum() 311 rx.data_crc = cpu_to_je32(crc32(0, vecs[1].iov_base, vecs[1].iov_len)); in save_xattr_datum() 312 rx.node_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_raw_xattr) - 4)); in save_xattr_datum() 511 rr.totlen = cpu_to_je32(PAD(sizeof(rr))); in save_xattr_ref() 512 rr.hdr_crc = cpu_to_je32(crc32(0, &rr, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_ref() 517 rr.ino = cpu_to_je32(ref->ino); in save_xattr_ref() 518 rr.xid = cpu_to_je32(ref->xid); in save_xattr_ref() [all …]
|
D | nodelist.h | 37 #define cpu_to_je32(x) ((jint32_t){x}) macro 48 #define cpu_to_je32(x) ((jint32_t){cpu_to_be32(x)}) macro 59 #define cpu_to_je32(x) ((jint32_t){cpu_to_le32(x)}) macro 318 jdev->new_id = cpu_to_je32(new_encode_dev(rdev)); in jffs2_encode_dev()
|
D | acl.c | 131 header->a_version = cpu_to_je32(JFFS2_ACL_VERSION); in jffs2_acl_to_medium() 140 entry->e_id = cpu_to_je32(acl->a_entries[i].e_id); in jffs2_acl_to_medium()
|
D | readinode.c | 1208 latest_node->version = cpu_to_je32(0); in jffs2_do_read_inode_internal() 1209 latest_node->atime = latest_node->ctime = latest_node->mtime = cpu_to_je32(0); in jffs2_do_read_inode_internal() 1210 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal() 1242 latest_node->ctime = latest_node->mtime = cpu_to_je32(rii.latest_mctime); in jffs2_do_read_inode_internal() 1253 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal()
|
D | erase.c | 455 .totlen = cpu_to_je32(c->cleanmarker_size) in jffs2_mark_erased_block() 460 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
|
D | read.c | 68 ri->csize = cpu_to_je32(0); in jffs2_read_dnode()
|
D | wbuf.c | 619 padnode->totlen = cpu_to_je32(c->wbuf_pagesize - c->wbuf_len); in __jffs2_flush_wbuf() 620 padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4)); in __jffs2_flush_wbuf()
|