• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ubifs/

Lines Matching defs:cat

36  * @cat: LEB category
38 static int get_heap_comp_val(struct ubifs_lprops *lprops, int cat)
40 switch (cat) {
55 * @cat: LEB category
63 struct ubifs_lprops *lprops, int cat)
70 val1 = get_heap_comp_val(lprops, cat);
75 val2 = get_heap_comp_val(heap->arr[ppos], cat);
93 * @cat: LEB category
100 struct ubifs_lprops *lprops, int hpos, int cat)
104 val1 = get_heap_comp_val(lprops, cat);
109 val2 = get_heap_comp_val(heap->arr[ppos], cat);
121 val2 = get_heap_comp_val(heap->arr[ppos], cat);
135 val2 = get_heap_comp_val(heap->arr[cpos], cat);
140 cat);
155 val3 = get_heap_comp_val(heap->arr[cpos], cat);
173 * @cat: LEB category
176 * @cat, otherwise %0 is returned because the heap is full.
179 int cat)
181 struct ubifs_lpt_heap *heap = &c->lpt_heap[cat - 1];
194 val1 = get_heap_comp_val(lprops, cat);
195 val2 = get_heap_comp_val(heap->arr[cpos], cat);
205 move_up_lpt_heap(c, heap, lprops, cat);
206 dbg_check_heap(c, heap, cat, lprops->hpos);
209 dbg_check_heap(c, heap, cat, -1);
214 move_up_lpt_heap(c, heap, lprops, cat);
215 dbg_check_heap(c, heap, cat, lprops->hpos);
224 * @cat: LEB category
227 struct ubifs_lprops *lprops, int cat)
232 heap = &c->lpt_heap[cat - 1];
239 adjust_lpt_heap(c, heap, heap->arr[hpos], hpos, cat);
241 dbg_check_heap(c, heap, cat, -1);
249 * @cat: LEB category
258 struct ubifs_lprops *new_lprops, int cat)
263 heap = &c->lpt_heap[cat - 1];
271 * @cat: LEB category to which to add
276 int cat)
278 switch (cat) {
282 if (add_to_lpt_heap(c, lprops, cat))
285 cat = LPROPS_UNCAT;
304 lprops->flags |= cat;
311 * @cat: LEB category from which to remove
316 struct ubifs_lprops *lprops, int cat)
318 switch (cat) {
322 remove_from_lpt_heap(c, lprops, cat);
352 int cat;
354 cat = new_lprops->flags & LPROPS_CAT_MASK;
355 switch (cat) {
359 lpt_heap_replace(c, old_lprops, new_lprops, cat);
383 int cat = lprops->flags & LPROPS_CAT_MASK;
385 if (cat != LPROPS_UNCAT)
387 cat = ubifs_categorize_lprops(c, lprops);
388 if (cat == LPROPS_UNCAT)
391 ubifs_add_to_cat(c, lprops, cat);
861 int i, cat;
933 for (cat = 1; cat <= LPROPS_HEAP_CNT; cat++) {
934 struct ubifs_lpt_heap *heap = &c->lpt_heap[cat - 1];
939 ubifs_err("null ptr in LPT heap cat %d", cat);
943 ubifs_err("bad ptr in LPT heap cat %d", cat);
947 ubifs_err("taken LEB in LPT heap cat %d", cat);
956 void dbg_check_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat,
969 if ((lprops->flags & LPROPS_CAT_MASK) != cat) {
1003 dbg_msg("failed cat %d hpos %d err %d", cat, i, err);
1005 dbg_dump_heap(c, heap, cat);
1038 int cat, lnum = lp->lnum, is_idx = 0, used = 0, free, dirty;
1040 cat = lp->flags & LPROPS_CAT_MASK;
1041 if (cat != LPROPS_UNCAT) {
1042 cat = ubifs_categorize_lprops(c, lp);
1043 if (cat != (lp->flags & LPROPS_CAT_MASK)) {
1045 (lp->flags & LPROPS_CAT_MASK), cat);
1054 switch (cat) {
1079 ubifs_err("bad LPT list (category %d)", cat);
1086 if (in_tree && cat > 0 && cat <= LPROPS_HEAP_CNT) {
1087 struct ubifs_lpt_heap *heap = &c->lpt_heap[cat - 1];
1091 ubifs_err("bad LPT heap (category %d)", cat);