• Home
  • Raw
  • Download

Lines Matching refs:s

61 static int jffs2_sum_add_mem(struct jffs2_summary *s, union jffs2_sum_mem *item)  in jffs2_sum_add_mem()  argument
63 if (!s->sum_list_head) in jffs2_sum_add_mem()
64 s->sum_list_head = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
65 if (s->sum_list_tail) in jffs2_sum_add_mem()
66 s->sum_list_tail->u.next = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
67 s->sum_list_tail = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
71 s->sum_size += JFFS2_SUMMARY_INODE_SIZE; in jffs2_sum_add_mem()
72 s->sum_num++; in jffs2_sum_add_mem()
77 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
78 s->sum_num++; in jffs2_sum_add_mem()
84 s->sum_size += JFFS2_SUMMARY_XATTR_SIZE; in jffs2_sum_add_mem()
85 s->sum_num++; in jffs2_sum_add_mem()
90 s->sum_size += JFFS2_SUMMARY_XREF_SIZE; in jffs2_sum_add_mem()
91 s->sum_num++; in jffs2_sum_add_mem()
106 int jffs2_sum_add_padding_mem(struct jffs2_summary *s, uint32_t size) in jffs2_sum_add_padding_mem() argument
109 s->sum_padded += size; in jffs2_sum_add_padding_mem()
113 int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, in jffs2_sum_add_inode_mem() argument
128 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_inode_mem()
131 int jffs2_sum_add_dirent_mem(struct jffs2_summary *s, struct jffs2_raw_dirent *rd, in jffs2_sum_add_dirent_mem() argument
152 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_dirent_mem()
156 int jffs2_sum_add_xattr_mem(struct jffs2_summary *s, struct jffs2_raw_xattr *rx, uint32_t ofs) in jffs2_sum_add_xattr_mem() argument
171 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_xattr_mem()
174 int jffs2_sum_add_xref_mem(struct jffs2_summary *s, struct jffs2_raw_xref *rr, uint32_t ofs) in jffs2_sum_add_xref_mem() argument
186 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_xref_mem()
191 static void jffs2_sum_clean_collected(struct jffs2_summary *s) in jffs2_sum_clean_collected() argument
195 if (!s->sum_list_head) { in jffs2_sum_clean_collected()
198 while (s->sum_list_head) { in jffs2_sum_clean_collected()
199 temp = s->sum_list_head; in jffs2_sum_clean_collected()
200 s->sum_list_head = s->sum_list_head->u.next; in jffs2_sum_clean_collected()
203 s->sum_list_tail = NULL; in jffs2_sum_clean_collected()
204 s->sum_padded = 0; in jffs2_sum_clean_collected()
205 s->sum_num = 0; in jffs2_sum_clean_collected()
208 void jffs2_sum_reset_collected(struct jffs2_summary *s) in jffs2_sum_reset_collected() argument
211 jffs2_sum_clean_collected(s); in jffs2_sum_reset_collected()
212 s->sum_size = 0; in jffs2_sum_reset_collected()
215 void jffs2_sum_disable_collecting(struct jffs2_summary *s) in jffs2_sum_disable_collecting() argument
218 jffs2_sum_clean_collected(s); in jffs2_sum_disable_collecting()
219 s->sum_size = JFFS2_SUMMARY_NOSUM_SIZE; in jffs2_sum_disable_collecting()
222 int jffs2_sum_is_disabled(struct jffs2_summary *s) in jffs2_sum_is_disabled() argument
224 return (s->sum_size == JFFS2_SUMMARY_NOSUM_SIZE); in jffs2_sum_is_disabled()
229 void jffs2_sum_move_collected(struct jffs2_sb_info *c, struct jffs2_summary *s) in jffs2_sum_move_collected() argument
233 s->sum_size, s->sum_num); in jffs2_sum_move_collected()
235 c->summary->sum_size = s->sum_size; in jffs2_sum_move_collected()
236 c->summary->sum_num = s->sum_num; in jffs2_sum_move_collected()
237 c->summary->sum_padded = s->sum_padded; in jffs2_sum_move_collected()
238 c->summary->sum_list_head = s->sum_list_head; in jffs2_sum_move_collected()
239 c->summary->sum_list_tail = s->sum_list_tail; in jffs2_sum_move_collected()
241 s->sum_list_head = s->sum_list_tail = NULL; in jffs2_sum_move_collected()