• Home
  • Raw
  • Download

Lines Matching refs:s

63 static int jffs2_sum_add_mem(struct jffs2_summary *s, union jffs2_sum_mem *item)  in jffs2_sum_add_mem()  argument
65 if (!s->sum_list_head) in jffs2_sum_add_mem()
66 s->sum_list_head = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
67 if (s->sum_list_tail) in jffs2_sum_add_mem()
68 s->sum_list_tail->u.next = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
69 s->sum_list_tail = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
73 s->sum_size += JFFS2_SUMMARY_INODE_SIZE; in jffs2_sum_add_mem()
74 s->sum_num++; in jffs2_sum_add_mem()
79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
80 s->sum_num++; in jffs2_sum_add_mem()
86 s->sum_size += JFFS2_SUMMARY_XATTR_SIZE; in jffs2_sum_add_mem()
87 s->sum_num++; in jffs2_sum_add_mem()
92 s->sum_size += JFFS2_SUMMARY_XREF_SIZE; in jffs2_sum_add_mem()
93 s->sum_num++; in jffs2_sum_add_mem()
108 int jffs2_sum_add_padding_mem(struct jffs2_summary *s, uint32_t size) in jffs2_sum_add_padding_mem() argument
111 s->sum_padded += size; in jffs2_sum_add_padding_mem()
115 int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, in jffs2_sum_add_inode_mem() argument
130 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_inode_mem()
133 int jffs2_sum_add_dirent_mem(struct jffs2_summary *s, struct jffs2_raw_dirent *rd, in jffs2_sum_add_dirent_mem() argument
154 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_dirent_mem()
158 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
173 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_xattr_mem()
176 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
188 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_xref_mem()
193 static void jffs2_sum_clean_collected(struct jffs2_summary *s) in jffs2_sum_clean_collected() argument
197 if (!s->sum_list_head) { in jffs2_sum_clean_collected()
200 while (s->sum_list_head) { in jffs2_sum_clean_collected()
201 temp = s->sum_list_head; in jffs2_sum_clean_collected()
202 s->sum_list_head = s->sum_list_head->u.next; in jffs2_sum_clean_collected()
205 s->sum_list_tail = NULL; in jffs2_sum_clean_collected()
206 s->sum_padded = 0; in jffs2_sum_clean_collected()
207 s->sum_num = 0; in jffs2_sum_clean_collected()
210 void jffs2_sum_reset_collected(struct jffs2_summary *s) in jffs2_sum_reset_collected() argument
213 jffs2_sum_clean_collected(s); in jffs2_sum_reset_collected()
214 s->sum_size = 0; in jffs2_sum_reset_collected()
217 void jffs2_sum_disable_collecting(struct jffs2_summary *s) in jffs2_sum_disable_collecting() argument
220 jffs2_sum_clean_collected(s); in jffs2_sum_disable_collecting()
221 s->sum_size = JFFS2_SUMMARY_NOSUM_SIZE; in jffs2_sum_disable_collecting()
224 int jffs2_sum_is_disabled(struct jffs2_summary *s) in jffs2_sum_is_disabled() argument
226 return (s->sum_size == JFFS2_SUMMARY_NOSUM_SIZE); in jffs2_sum_is_disabled()
231 void jffs2_sum_move_collected(struct jffs2_sb_info *c, struct jffs2_summary *s) in jffs2_sum_move_collected() argument
235 s->sum_size, s->sum_num); in jffs2_sum_move_collected()
237 c->summary->sum_size = s->sum_size; in jffs2_sum_move_collected()
238 c->summary->sum_num = s->sum_num; in jffs2_sum_move_collected()
239 c->summary->sum_padded = s->sum_padded; in jffs2_sum_move_collected()
240 c->summary->sum_list_head = s->sum_list_head; in jffs2_sum_move_collected()
241 c->summary->sum_list_tail = s->sum_list_tail; in jffs2_sum_move_collected()
243 s->sum_list_head = s->sum_list_tail = NULL; in jffs2_sum_move_collected()