Lines Matching refs:cpu_to_le32

168 	sup->flags         = cpu_to_le32(sup_flags);  in create_default_filesystem()
169 sup->min_io_size = cpu_to_le32(c->min_io_size); in create_default_filesystem()
170 sup->leb_size = cpu_to_le32(c->leb_size); in create_default_filesystem()
171 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
172 sup->max_leb_cnt = cpu_to_le32(c->max_leb_cnt); in create_default_filesystem()
174 sup->log_lebs = cpu_to_le32(log_lebs); in create_default_filesystem()
175 sup->lpt_lebs = cpu_to_le32(lpt_lebs); in create_default_filesystem()
176 sup->orph_lebs = cpu_to_le32(orph_lebs); in create_default_filesystem()
177 sup->jhead_cnt = cpu_to_le32(DEFAULT_JHEADS_CNT); in create_default_filesystem()
178 sup->fanout = cpu_to_le32(DEFAULT_FANOUT); in create_default_filesystem()
179 sup->lsave_cnt = cpu_to_le32(c->lsave_cnt); in create_default_filesystem()
180 sup->fmt_version = cpu_to_le32(UBIFS_FORMAT_VERSION); in create_default_filesystem()
181 sup->time_gran = cpu_to_le32(DEFAULT_TIME_GRAN); in create_default_filesystem()
194 sup->ro_compat_version = cpu_to_le32(UBIFS_RO_COMPAT_VERSION); in create_default_filesystem()
209 mst->log_lnum = cpu_to_le32(UBIFS_LOG_LNUM); in create_default_filesystem()
212 mst->root_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB); in create_default_filesystem()
215 mst->root_len = cpu_to_le32(tmp); in create_default_filesystem()
216 mst->gc_lnum = cpu_to_le32(main_first + DEFAULT_GC_LEB); in create_default_filesystem()
217 mst->ihead_lnum = cpu_to_le32(main_first + DEFAULT_IDX_LEB); in create_default_filesystem()
218 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
220 mst->lpt_lnum = cpu_to_le32(c->lpt_lnum); in create_default_filesystem()
221 mst->lpt_offs = cpu_to_le32(c->lpt_offs); in create_default_filesystem()
222 mst->nhead_lnum = cpu_to_le32(c->nhead_lnum); in create_default_filesystem()
223 mst->nhead_offs = cpu_to_le32(c->nhead_offs); in create_default_filesystem()
224 mst->ltab_lnum = cpu_to_le32(c->ltab_lnum); in create_default_filesystem()
225 mst->ltab_offs = cpu_to_le32(c->ltab_offs); in create_default_filesystem()
226 mst->lsave_lnum = cpu_to_le32(c->lsave_lnum); in create_default_filesystem()
227 mst->lsave_offs = cpu_to_le32(c->lsave_offs); in create_default_filesystem()
228 mst->lscan_lnum = cpu_to_le32(main_first); in create_default_filesystem()
229 mst->empty_lebs = cpu_to_le32(main_lebs - 2); in create_default_filesystem()
230 mst->idx_lebs = cpu_to_le32(1); in create_default_filesystem()
231 mst->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
279 br->lnum = cpu_to_le32(main_first + DEFAULT_DATA_LEB); in create_default_filesystem()
280 br->len = cpu_to_le32(UBIFS_INO_NODE_SZ); in create_default_filesystem()
298 ino->nlink = cpu_to_le32(2); in create_default_filesystem()
306 ino->mode = cpu_to_le32(S_IFDIR | S_IRUGO | S_IWUSR | S_IXUGO); in create_default_filesystem()
310 ino->flags = cpu_to_le32(UBIFS_COMPR_FL); in create_default_filesystem()
645 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in ubifs_read_superblock()
812 sup->flags &= cpu_to_le32(~UBIFS_FLG_SPACE_FIXUP); in ubifs_fixup_free_space()