Lines Matching refs:r

123 	int       r;  in ba_alloc_helper()  local
131 r = ba_alloc_helper(pool, in ba_alloc_helper()
138 r = index * 32 + loc; in ba_alloc_helper()
148 return r; in ba_alloc_helper()
196 int r; in ba_alloc_reverse_helper() local
204 r = ba_alloc_reverse_helper(pool, in ba_alloc_reverse_helper()
211 r = index * 32 + loc; in ba_alloc_reverse_helper()
221 return r; in ba_alloc_reverse_helper()
242 int r; in ba_alloc_index_helper() local
245 r = ba_alloc_index_helper(pool, in ba_alloc_index_helper()
252 r = 1; /* Check if already allocated */ in ba_alloc_index_helper()
257 if (r == 1) { in ba_alloc_index_helper()
258 r = (storage[*index] & (1 << loc)) ? 0 : -1; in ba_alloc_index_helper()
259 if (r == 0) { in ba_alloc_index_helper()
270 return r; in ba_alloc_index_helper()
297 int r; in ba_inuse_helper() local
300 r = ba_inuse_helper(pool, in ba_inuse_helper()
306 r = 1; /* Check if in use */ in ba_inuse_helper()
311 if (r == 1) in ba_inuse_helper()
312 r = (storage[*index] & (1 << loc)) ? -1 : 0; in ba_inuse_helper()
314 return r; in ba_inuse_helper()
335 int r; in ba_free_helper() local
338 r = ba_free_helper(pool, in ba_free_helper()
344 r = 1; /* Check if already free */ in ba_free_helper()
349 if (r == 1) { in ba_free_helper()
350 r = (storage[*index] & (1 << loc)) ? -1 : 0; in ba_free_helper()
351 if (r == 0) in ba_free_helper()
355 if (r == 0) in ba_free_helper()
358 return r; in ba_free_helper()
399 int loc, r, bottom = 0; in ba_find_next_helper() local
402 r = ba_find_next_helper(pool, in ba_find_next_helper()
420 r = (bit_index + loc); in ba_find_next_helper()
421 if (r >= (int)pool->size) in ba_find_next_helper()
422 r = -1; in ba_find_next_helper()
425 r = -1; in ba_find_next_helper()
433 r = (bit_index + loc); in ba_find_next_helper()
434 if (r >= (int)pool->size) in ba_find_next_helper()
435 r = -1; in ba_find_next_helper()
444 if (r >= 0 && (free)) { in ba_find_next_helper()
450 return r; in ba_find_next_helper()