Lines Matching defs:obj
42 u32 obj;
46 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
47 if (obj >= alloc->max) {
49 obj = find_first_zero_bit(alloc->table, alloc->max);
52 if (obj < alloc->max) {
53 set_bit(obj, alloc->table);
54 obj |= alloc->top;
56 obj = -1;
60 return obj;
63 void mthca_free(struct mthca_alloc *alloc, u32 obj)
67 obj &= alloc->max - 1;
71 clear_bit(obj, alloc->table);
72 alloc->last = min(alloc->last, obj);