• Home
  • Raw
  • Download

Lines Matching refs:temp

118 	struct jffs2_sum_inode_mem *temp = kmalloc(sizeof(struct jffs2_sum_inode_mem), GFP_KERNEL);  in jffs2_sum_add_inode_mem()  local
120 if (!temp) in jffs2_sum_add_inode_mem()
123 temp->nodetype = ri->nodetype; in jffs2_sum_add_inode_mem()
124 temp->inode = ri->ino; in jffs2_sum_add_inode_mem()
125 temp->version = ri->version; in jffs2_sum_add_inode_mem()
126 temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ in jffs2_sum_add_inode_mem()
127 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem()
128 temp->next = NULL; in jffs2_sum_add_inode_mem()
130 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_inode_mem()
136 struct jffs2_sum_dirent_mem *temp = in jffs2_sum_add_dirent_mem() local
139 if (!temp) in jffs2_sum_add_dirent_mem()
142 temp->nodetype = rd->nodetype; in jffs2_sum_add_dirent_mem()
143 temp->totlen = rd->totlen; in jffs2_sum_add_dirent_mem()
144 temp->offset = cpu_to_je32(ofs); /* relative from the beginning of the jeb */ in jffs2_sum_add_dirent_mem()
145 temp->pino = rd->pino; in jffs2_sum_add_dirent_mem()
146 temp->version = rd->version; in jffs2_sum_add_dirent_mem()
147 temp->ino = rd->ino; in jffs2_sum_add_dirent_mem()
148 temp->nsize = rd->nsize; in jffs2_sum_add_dirent_mem()
149 temp->type = rd->type; in jffs2_sum_add_dirent_mem()
150 temp->next = NULL; in jffs2_sum_add_dirent_mem()
152 memcpy(temp->name, rd->name, rd->nsize); in jffs2_sum_add_dirent_mem()
154 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_dirent_mem()
160 struct jffs2_sum_xattr_mem *temp; in jffs2_sum_add_xattr_mem() local
162 temp = kmalloc(sizeof(struct jffs2_sum_xattr_mem), GFP_KERNEL); in jffs2_sum_add_xattr_mem()
163 if (!temp) in jffs2_sum_add_xattr_mem()
166 temp->nodetype = rx->nodetype; in jffs2_sum_add_xattr_mem()
167 temp->xid = rx->xid; in jffs2_sum_add_xattr_mem()
168 temp->version = rx->version; in jffs2_sum_add_xattr_mem()
169 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_xattr_mem()
170 temp->totlen = rx->totlen; in jffs2_sum_add_xattr_mem()
171 temp->next = NULL; in jffs2_sum_add_xattr_mem()
173 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_xattr_mem()
178 struct jffs2_sum_xref_mem *temp; in jffs2_sum_add_xref_mem() local
180 temp = kmalloc(sizeof(struct jffs2_sum_xref_mem), GFP_KERNEL); in jffs2_sum_add_xref_mem()
181 if (!temp) in jffs2_sum_add_xref_mem()
184 temp->nodetype = rr->nodetype; in jffs2_sum_add_xref_mem()
185 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_xref_mem()
186 temp->next = NULL; in jffs2_sum_add_xref_mem()
188 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_xref_mem()
195 union jffs2_sum_mem *temp; in jffs2_sum_clean_collected() local
201 temp = s->sum_list_head; in jffs2_sum_clean_collected()
203 kfree(temp); in jffs2_sum_clean_collected()
265 struct jffs2_sum_inode_mem *temp = in jffs2_sum_add_kvec() local
268 if (!temp) in jffs2_sum_add_kvec()
271 temp->nodetype = node->i.nodetype; in jffs2_sum_add_kvec()
272 temp->inode = node->i.ino; in jffs2_sum_add_kvec()
273 temp->version = node->i.version; in jffs2_sum_add_kvec()
274 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
275 temp->totlen = node->i.totlen; in jffs2_sum_add_kvec()
276 temp->next = NULL; in jffs2_sum_add_kvec()
278 return jffs2_sum_add_mem(c->summary, (union jffs2_sum_mem *)temp); in jffs2_sum_add_kvec()
282 struct jffs2_sum_dirent_mem *temp = in jffs2_sum_add_kvec() local
285 if (!temp) in jffs2_sum_add_kvec()
288 temp->nodetype = node->d.nodetype; in jffs2_sum_add_kvec()
289 temp->totlen = node->d.totlen; in jffs2_sum_add_kvec()
290 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
291 temp->pino = node->d.pino; in jffs2_sum_add_kvec()
292 temp->version = node->d.version; in jffs2_sum_add_kvec()
293 temp->ino = node->d.ino; in jffs2_sum_add_kvec()
294 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec()
295 temp->type = node->d.type; in jffs2_sum_add_kvec()
296 temp->next = NULL; in jffs2_sum_add_kvec()
300 memcpy(temp->name,node->d.name,node->d.nsize); in jffs2_sum_add_kvec()
304 memcpy(temp->name,invecs[1].iov_base,node->d.nsize); in jffs2_sum_add_kvec()
312 return jffs2_sum_add_mem(c->summary, (union jffs2_sum_mem *)temp); in jffs2_sum_add_kvec()
316 struct jffs2_sum_xattr_mem *temp; in jffs2_sum_add_kvec() local
317 temp = kmalloc(sizeof(struct jffs2_sum_xattr_mem), GFP_KERNEL); in jffs2_sum_add_kvec()
318 if (!temp) in jffs2_sum_add_kvec()
321 temp->nodetype = node->x.nodetype; in jffs2_sum_add_kvec()
322 temp->xid = node->x.xid; in jffs2_sum_add_kvec()
323 temp->version = node->x.version; in jffs2_sum_add_kvec()
324 temp->totlen = node->x.totlen; in jffs2_sum_add_kvec()
325 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
326 temp->next = NULL; in jffs2_sum_add_kvec()
328 return jffs2_sum_add_mem(c->summary, (union jffs2_sum_mem *)temp); in jffs2_sum_add_kvec()
331 struct jffs2_sum_xref_mem *temp; in jffs2_sum_add_kvec() local
332 temp = kmalloc(sizeof(struct jffs2_sum_xref_mem), GFP_KERNEL); in jffs2_sum_add_kvec()
333 if (!temp) in jffs2_sum_add_kvec()
335 temp->nodetype = node->r.nodetype; in jffs2_sum_add_kvec()
336 temp->offset = cpu_to_je32(ofs); in jffs2_sum_add_kvec()
337 temp->next = NULL; in jffs2_sum_add_kvec()
339 return jffs2_sum_add_mem(c->summary, (union jffs2_sum_mem *)temp); in jffs2_sum_add_kvec()
678 union jffs2_sum_mem *temp; in jffs2_sum_write_data() local
719 temp = c->summary->sum_list_head; in jffs2_sum_write_data()
721 switch (je16_to_cpu(temp->u.nodetype)) { in jffs2_sum_write_data()
725 sino_ptr->nodetype = temp->i.nodetype; in jffs2_sum_write_data()
726 sino_ptr->inode = temp->i.inode; in jffs2_sum_write_data()
727 sino_ptr->version = temp->i.version; in jffs2_sum_write_data()
728 sino_ptr->offset = temp->i.offset; in jffs2_sum_write_data()
729 sino_ptr->totlen = temp->i.totlen; in jffs2_sum_write_data()
739 sdrnt_ptr->nodetype = temp->d.nodetype; in jffs2_sum_write_data()
740 sdrnt_ptr->totlen = temp->d.totlen; in jffs2_sum_write_data()
741 sdrnt_ptr->offset = temp->d.offset; in jffs2_sum_write_data()
742 sdrnt_ptr->pino = temp->d.pino; in jffs2_sum_write_data()
743 sdrnt_ptr->version = temp->d.version; in jffs2_sum_write_data()
744 sdrnt_ptr->ino = temp->d.ino; in jffs2_sum_write_data()
745 sdrnt_ptr->nsize = temp->d.nsize; in jffs2_sum_write_data()
746 sdrnt_ptr->type = temp->d.type; in jffs2_sum_write_data()
748 memcpy(sdrnt_ptr->name, temp->d.name, in jffs2_sum_write_data()
749 temp->d.nsize); in jffs2_sum_write_data()
751 wpage += JFFS2_SUMMARY_DIRENT_SIZE(temp->d.nsize); in jffs2_sum_write_data()
759 temp = c->summary->sum_list_head; in jffs2_sum_write_data()
760 sxattr_ptr->nodetype = temp->x.nodetype; in jffs2_sum_write_data()
761 sxattr_ptr->xid = temp->x.xid; in jffs2_sum_write_data()
762 sxattr_ptr->version = temp->x.version; in jffs2_sum_write_data()
763 sxattr_ptr->offset = temp->x.offset; in jffs2_sum_write_data()
764 sxattr_ptr->totlen = temp->x.totlen; in jffs2_sum_write_data()
772 temp = c->summary->sum_list_head; in jffs2_sum_write_data()
773 sxref_ptr->nodetype = temp->r.nodetype; in jffs2_sum_write_data()
774 sxref_ptr->offset = temp->r.offset; in jffs2_sum_write_data()
781 if ((je16_to_cpu(temp->u.nodetype) & JFFS2_COMPAT_MASK) in jffs2_sum_write_data()
784 je16_to_cpu(temp->u.nodetype)); in jffs2_sum_write_data()
794 c->summary->sum_list_head = temp->u.next; in jffs2_sum_write_data()
795 kfree(temp); in jffs2_sum_write_data()