Home
last modified time | relevance | path

Searched refs:cpu_to_je32 (Results 1 – 13 of 13) sorted by relevance

/fs/jffs2/
Dwrite.c41 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode()
45 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode()
46 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_new_inode()
50 ri->version = cpu_to_je32(f->highest_version); in jffs2_do_new_inode()
102 ri->version = cpu_to_je32(++f->highest_version); in jffs2_write_dnode()
103 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_dnode()
256 rd->version = cpu_to_je32(++f->highest_version); in jffs2_write_dirent()
258 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_write_dirent()
365 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range()
366 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_inode_range()
[all …]
Ddir.c347 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()
420 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink()
421 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
423 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_symlink()
424 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_symlink()
425 rd->ino = cpu_to_je32(inode->i_ino); in jffs2_symlink()
[all …]
Dgc.c749 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
750 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata()
752 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata()
753 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata()
757 ri.isize = cpu_to_je32(ilen); in jffs2_garbage_collect_metadata()
758 ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); in jffs2_garbage_collect_metadata()
759 ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); in jffs2_garbage_collect_metadata()
760 ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_metadata()
761 ri.offset = cpu_to_je32(0); in jffs2_garbage_collect_metadata()
762 ri.csize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
[all …]
Dfile.c162 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin()
163 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
165 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin()
166 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin()
170 ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); in jffs2_write_begin()
171 ri.atime = ri.ctime = ri.mtime = cpu_to_je32(get_seconds()); in jffs2_write_begin()
172 ri.offset = cpu_to_je32(inode->i_size); in jffs2_write_begin()
173 ri.dsize = cpu_to_je32(pageofs - inode->i_size); in jffs2_write_begin()
174 ri.csize = cpu_to_je32(0); in jffs2_write_begin()
176 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_write_begin()
[all …]
Dfs.c91 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
92 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
94 ri->ino = cpu_to_je32(inode->i_ino); in jffs2_do_setattr()
95 ri->version = cpu_to_je32(++f->highest_version); in jffs2_do_setattr()
106 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr()
107 ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); in jffs2_do_setattr()
108 ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); in jffs2_do_setattr()
109 ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); in jffs2_do_setattr()
111 ri->offset = cpu_to_je32(0); in jffs2_do_setattr()
112 ri->csize = ri->dsize = cpu_to_je32(mdatalen); in jffs2_do_setattr()
[all …]
Dsummary.c124 temp->offset = cpu_to_je32(ofs); /* relative offset from the begining of the jeb */ in jffs2_sum_add_inode_mem()
142 temp->offset = cpu_to_je32(ofs); /* relative from the begining of the jeb */ in jffs2_sum_add_dirent_mem()
167 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_xattr_mem()
183 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_xref_mem()
272 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
288 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
323 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
334 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
706 isum.totlen = cpu_to_je32(infosize); in jffs2_sum_write_data()
707 isum.hdr_crc = cpu_to_je32(crc32(0, &isum, sizeof(struct jffs2_unknown_node) - 4)); in jffs2_sum_write_data()
[all …]
Dxattr.c301 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum()
302 rx.hdr_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_datum()
304 rx.xid = cpu_to_je32(xd->xid); in save_xattr_datum()
305 rx.version = cpu_to_je32(++xd->version); in save_xattr_datum()
309 rx.data_crc = cpu_to_je32(crc32(0, vecs[1].iov_base, vecs[1].iov_len)); in save_xattr_datum()
310 rx.node_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_raw_xattr) - 4)); in save_xattr_datum()
509 rr.totlen = cpu_to_je32(PAD(sizeof(rr))); in save_xattr_ref()
510 rr.hdr_crc = cpu_to_je32(crc32(0, &rr, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_ref()
515 rr.ino = cpu_to_je32(ref->ino); in save_xattr_ref()
516 rr.xid = cpu_to_je32(ref->xid); in save_xattr_ref()
[all …]
Dnodelist.h38 #define cpu_to_je32(x) ((jint32_t){x}) macro
49 #define cpu_to_je32(x) ((jint32_t){cpu_to_be32(x)}) macro
60 #define cpu_to_je32(x) ((jint32_t){cpu_to_le32(x)}) macro
318 jdev->new = cpu_to_je32(new_encode_dev(rdev)); in jffs2_encode_dev()
Dreadinode.c1208 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()
Dacl.c129 header->a_version = cpu_to_je32(JFFS2_ACL_VERSION); in jffs2_acl_to_medium()
138 entry->e_id = cpu_to_je32(acl->a_entries[i].e_id); in jffs2_acl_to_medium()
Derase.c435 .totlen = cpu_to_je32(c->cleanmarker_size) in jffs2_mark_erased_block()
440 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
Dread.c65 ri->csize = cpu_to_je32(0); in jffs2_read_dnode()
Dwbuf.c611 padnode->totlen = cpu_to_je32(c->wbuf_pagesize - c->wbuf_len); in __jffs2_flush_wbuf()
612 padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4)); in __jffs2_flush_wbuf()