Home
last modified time | relevance | path

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

/linux-6.1.9/fs/jffs2/
Dwrite.c42 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()
[all …]
Ddir.c333 ri->isize = ri->dsize = ri->csize = cpu_to_je32(inode->i_size); in jffs2_symlink()
334 ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); in jffs2_symlink()
335 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
338 ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); in jffs2_symlink()
339 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_symlink()
401 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink()
402 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink()
404 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_symlink()
405 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_symlink()
406 rd->ino = cpu_to_je32(inode->i_ino); in jffs2_symlink()
[all …]
Dgc.c815 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
816 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata()
818 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata()
819 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata()
823 ri.isize = cpu_to_je32(ilen); in jffs2_garbage_collect_metadata()
824 ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); in jffs2_garbage_collect_metadata()
825 ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); in jffs2_garbage_collect_metadata()
826 ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); in jffs2_garbage_collect_metadata()
827 ri.offset = cpu_to_je32(0); in jffs2_garbage_collect_metadata()
828 ri.csize = cpu_to_je32(mdatalen); in jffs2_garbage_collect_metadata()
[all …]
Dfile.c164 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin()
165 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
167 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin()
168 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin()
172 ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); in jffs2_write_begin()
173 ri.atime = ri.ctime = ri.mtime = cpu_to_je32(JFFS2_NOW()); in jffs2_write_begin()
174 ri.offset = cpu_to_je32(inode->i_size); in jffs2_write_begin()
175 ri.dsize = cpu_to_je32(pageofs - inode->i_size); in jffs2_write_begin()
176 ri.csize = cpu_to_je32(0); in jffs2_write_begin()
178 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_write_begin()
[all …]
Dfs.c98 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
99 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
101 ri->ino = cpu_to_je32(inode->i_ino); in jffs2_do_setattr()
102 ri->version = cpu_to_je32(++f->highest_version); in jffs2_do_setattr()
115 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr()
116 ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); in jffs2_do_setattr()
117 ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); in jffs2_do_setattr()
118 ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); in jffs2_do_setattr()
120 ri->offset = cpu_to_je32(0); in jffs2_do_setattr()
121 ri->csize = ri->dsize = cpu_to_je32(mdatalen); in jffs2_do_setattr()
[all …]
Dsummary.c126 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 …]
Dxattr.c306 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum()
307 rx.hdr_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_datum()
309 rx.xid = cpu_to_je32(xd->xid); in save_xattr_datum()
310 rx.version = cpu_to_je32(++xd->version); in save_xattr_datum()
314 rx.data_crc = cpu_to_je32(crc32(0, vecs[1].iov_base, vecs[1].iov_len)); in save_xattr_datum()
315 rx.node_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_raw_xattr) - 4)); in save_xattr_datum()
516 rr.totlen = cpu_to_je32(PAD(sizeof(rr))); in save_xattr_ref()
517 rr.hdr_crc = cpu_to_je32(crc32(0, &rr, sizeof(struct jffs2_unknown_node) - 4)); in save_xattr_ref()
522 rr.ino = cpu_to_je32(ref->ino); in save_xattr_ref()
523 rr.xid = cpu_to_je32(ref->xid); in save_xattr_ref()
[all …]
Dacl.c140 header->a_version = cpu_to_je32(JFFS2_ACL_VERSION); in jffs2_acl_to_medium()
149 entry->e_id = cpu_to_je32( in jffs2_acl_to_medium()
154 entry->e_id = cpu_to_je32( in jffs2_acl_to_medium()
Dnodelist.h37 #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
322 jdev->new_id = cpu_to_je32(new_encode_dev(rdev)); in jffs2_encode_dev()
Derase.c426 .totlen = cpu_to_je32(c->cleanmarker_size) in jffs2_mark_erased_block()
431 marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4)); in jffs2_mark_erased_block()
Dreadinode.c1211 latest_node->version = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1212 latest_node->atime = latest_node->ctime = latest_node->mtime = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1213 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1241 latest_node->ctime = latest_node->mtime = cpu_to_je32(rii.latest_mctime); in jffs2_do_read_inode_internal()
1252 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal()
Dread.c68 ri->csize = cpu_to_je32(0); in jffs2_read_dnode()
Dwbuf.c620 padnode->totlen = cpu_to_je32(c->wbuf_pagesize - c->wbuf_len); in __jffs2_flush_wbuf()
621 padnode->hdr_crc = cpu_to_je32(crc32(0, padnode, sizeof(*padnode)-4)); in __jffs2_flush_wbuf()