Lines Matching refs:tail
82 fmc->tail = 0; in jffs_build_begin()
99 fmc->tail = fmc->tail_extra; in jffs_build_end()
139 __u32 tail; in jffs_free_size1() local
149 tail = fmc->tail->offset + fmc->tail->size; in jffs_free_size1()
150 if (tail == end) { in jffs_free_size1()
151 tail = 0; in jffs_free_size1()
153 ASSERT(else if (tail > end) { in jffs_free_size1()
155 tail = 0; in jffs_free_size1()
158 if (head <= tail) { in jffs_free_size1()
159 return end - tail; in jffs_free_size1()
162 return head - tail; in jffs_free_size1()
182 __u32 tail = fmc->tail->offset + fmc->tail->size; in jffs_free_size2() local
183 if (tail == fmc->flash_size) { in jffs_free_size2()
184 tail = 0; in jffs_free_size2()
187 if (tail >= head) { in jffs_free_size2()
239 if (fmc->tail) { in jffs_fmalloc()
240 fm->offset = fmc->tail->offset + fmc->tail->size; in jffs_fmalloc()
266 fm->offset = fmc->tail->offset + fmc->tail->size; in jffs_fmalloc()
281 fmc->tail = fm; in jffs_fmalloc()
284 fm->prev = fmc->tail; in jffs_fmalloc()
285 fmc->tail->next = fm; in jffs_fmalloc()
286 fmc->tail = fm; in jffs_fmalloc()
408 fmc->tail = fm; in jffs_fmalloced()
410 else if (fmc->tail->offset + fmc->tail->size < offset) { in jffs_fmalloced()
415 fm->prev = fmc->tail; in jffs_fmalloced()
416 fmc->tail->next = fm; in jffs_fmalloced()
417 fmc->tail = fm; in jffs_fmalloced()
461 if (fm == fmc->tail) { in jffs_fmfree_partly()
763 fmc->tail, in jffs_print_fmcontrol()
764 (fmc->tail ? fmc->tail->offset + fmc->tail->size : 0))); in jffs_print_fmcontrol()