Searched refs:PAD (Results 1 – 8 of 8) sorted by relevance
/fs/jffs2/ |
D | scan.c | 312 if ((jeb->used_size + jeb->unchecked_size) == PAD(c->cleanmarker_size) && !jeb->dirty_size in jffs2_scan_classify_jeb() 350 totlen = PAD(sizeof(struct jffs2_raw_xattr) in jffs2_scan_xattr_node() 398 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) in jffs2_scan_xref_node() 403 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) { in jffs2_scan_xref_node() 406 PAD(sizeof(struct jffs2_raw_xref))); in jffs2_scan_xref_node() 433 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref); in jffs2_scan_xref_node() 628 ofs = PAD(ofs); in jffs2_scan_eraseblock() 693 if (buf_ofs == jeb->offset && jeb->used_size == PAD(c->cleanmarker_size) && in jffs2_scan_eraseblock() 793 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock() 795 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock() [all …]
|
D | xattr.c | 161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum() 186 totlen = PAD(ref_totlen(c, jeb, raw)); in do_verify_xattr_datum() 306 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum() 323 jffs2_add_physical_node_ref(c, phys_ofs | REF_OBSOLETE, PAD(totlen), NULL); in save_xattr_datum() 328 jffs2_add_physical_node_ref(c, phys_ofs | REF_PRISTINE, PAD(totlen), (void *)xd); in save_xattr_datum() 474 || je32_to_cpu(rr.totlen) != PAD(sizeof(rr))) { in verify_xattr_ref() 479 je32_to_cpu(rr.totlen), PAD(sizeof(rr))); in verify_xattr_ref() 492 totlen = PAD(ref_totlen(c, jeb, raw)); in verify_xattr_ref() 516 rr.totlen = cpu_to_je32(PAD(sizeof(rr))); in save_xattr_ref() 537 jffs2_add_physical_node_ref(c, phys_ofs | REF_OBSOLETE, PAD(sizeof(rr)), NULL); in save_xattr_ref() [all …]
|
D | nodemgmt.c | 80 minsize = PAD(minsize); in jffs2_reserve_space() 216 minsize = PAD(minsize); in jffs2_reserve_space_gc() 368 reserved_size = PAD(sumsize + c->summary->sum_size + JFFS2_SUMMARY_FRAME_SIZE); in jffs2_do_reserve_space() 377 if (jeb && (PAD(minsize) + PAD(c->summary->sum_size + sumsize + in jffs2_do_reserve_space() 404 reserved_size = PAD(sumsize + c->summary->sum_size + JFFS2_SUMMARY_FRAME_SIZE); in jffs2_do_reserve_space() 769 if (PAD(je32_to_cpu(n.totlen)) != PAD(freed_len)) { in jffs2_mark_node_obsolete()
|
D | summary.c | 425 PAD(je32_to_cpu(spi->totlen)), ic); in jffs2_sum_process_sum_data() 474 PAD(je32_to_cpu(spd->totlen)), ic); in jffs2_sum_process_sum_data() 509 PAD(je32_to_cpu(spx->totlen)), NULL); in jffs2_sum_process_sum_data() 515 PAD(je32_to_cpu(spx->totlen)), (void *)xd); in jffs2_sum_process_sum_data() 530 (uint32_t)PAD(sizeof(struct jffs2_raw_xref))); in jffs2_sum_process_sum_data() 541 PAD(sizeof(struct jffs2_raw_xref)), (void *)ref); in jffs2_sum_process_sum_data() 627 if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr))))) in jffs2_sum_scan_sumnode() 632 if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr))))) in jffs2_sum_scan_sumnode()
|
D | write.c | 46 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode() 123 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); in jffs2_write_dnode() 182 fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); in jffs2_write_dnode() 275 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*rd)+namelen), NULL); in jffs2_write_dirent() 322 PAD(sizeof(*rd)+namelen), f->inocache); in jffs2_write_dirent()
|
D | readinode.c | 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode()
|
D | nodelist.h | 314 #define PAD(x) (((x)+3)&~3) macro
|
D | wbuf.c | 610 c->wbuf_len = PAD(c->wbuf_len); in __jffs2_flush_wbuf() 837 if (to != PAD(c->wbuf_ofs + c->wbuf_len)) { in jffs2_flash_writev()
|