Home | History | Annotate | Download | only in chfs

Lines Matching refs:htole32

129 	ebhdr.ec_hdr.magic = htole32(CHFS_MAGIC_BITMASK);
130 ebhdr.ec_hdr.erase_cnt = htole32(1);
131 ebhdr.ec_hdr.crc_ec = htole32(crc32(0,
143 ebhdr.u.nand_hdr.lid = htole32(lebnumber++);
145 ebhdr.u.nand_hdr.crc = htole32(crc32(0,
150 ebhdr.u.nor_hdr.lid = htole32(lebnumber++);
151 ebhdr.u.nor_hdr.crc = htole32(crc32(0,
169 fvnode.length = htole32(CHFS_PAD(sizeof(fvnode)));
170 fvnode.hdr_crc = htole32(crc32(0, (uint8_t *)&fvnode,
174 fvnode.mode = htole32(node->inode->st.st_mode);
175 fvnode.dn_size = htole32(node->inode->st.st_size);
176 fvnode.atime = htole32(node->inode->st.st_atime);
177 fvnode.ctime = htole32(node->inode->st.st_ctime);
178 fvnode.mtime = htole32(node->inode->st.st_mtime);
179 fvnode.gid = htole32(node->inode->st.st_uid);
180 fvnode.uid = htole32(node->inode->st.st_gid);
181 fvnode.node_crc = htole32(crc32(0, (uint8_t *)&fvnode,
201 fdirent.length = htole32(CHFS_PAD(sizeof(fdirent) + strlen(name)));
202 fdirent.hdr_crc = htole32(crc32(0, (uint8_t *)&fdirent,
213 fdirent.nsize = htole32(strlen(name));
214 fdirent.dtype = htole32(IFTOCHT(node->type & S_IFMT));
215 fdirent.name_crc = htole32(crc32(0, (uint8_t *)name, fdirent.nsize));
216 fdirent.node_crc = htole32(crc32(0, (uint8_t *)&fdirent,
292 fdata.length = htole32(CHFS_PAD(sizeof(fdata) + len));
293 fdata.hdr_crc = htole32(crc32(0, (uint8_t *)&fdata,
296 fdata.data_length = htole32(len);
297 fdata.offset = htole32(ofs);
298 fdata.data_crc = htole32(crc32(0, (uint8_t *)buf, len));
299 fdata.node_crc = htole32(crc32(0,