Lines Matching defs:obj
52 u32 obj;
56 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
57 if (obj >= alloc->max)
58 obj = find_first_zero_bit(alloc->table, alloc->max);
60 if (obj < alloc->max) {
64 alloc->last = obj + 1;
67 set_bit(obj, alloc->table);
68 obj += alloc->start;
70 obj = -1;
73 return obj;
76 void c4iw_id_free(struct c4iw_id_table *alloc, u32 obj)
80 obj -= alloc->start;
81 BUG_ON((int)obj < 0);
84 clear_bit(obj, alloc->table);