Lines Matching defs:obj
43 u32 obj;
47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
48 if (obj >= alloc->max) {
50 obj = find_first_zero_bit(alloc->table, alloc->max);
53 if (obj < alloc->max) {
54 __set_bit(obj, alloc->table);
55 obj |= alloc->top;
57 obj = -1;
61 return obj;
64 void mthca_free(struct mthca_alloc *alloc, u32 obj)
68 obj &= alloc->max - 1;
72 __clear_bit(obj, alloc->table);
73 alloc->last = min(alloc->last, obj);