Lines Matching refs:res_idx
295 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument
303 res_idx = idx;\
304 ioc->res_hint = res_idx + (size >> 3); \
309 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \ argument
312 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
314 CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
343 unsigned int res_idx; in ccio_alloc_range() local
375 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
377 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
380 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xffff, 16); in ccio_alloc_range()
382 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~(unsigned int)0, 32); in ccio_alloc_range()
385 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~0UL, 64); in ccio_alloc_range()
398 __func__, res_idx, ioc->res_hint); in ccio_alloc_range()
414 return res_idx << 3; in ccio_alloc_range()
417 #define CCIO_FREE_MAPPINGS(ioc, res_idx, mask, size) \ argument
418 u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
435 unsigned int res_idx = PDIR_INDEX(iovp) >> 3; in ccio_free_range() local
442 __func__, res_idx, pages_mapped); in ccio_free_range()
452 CCIO_FREE_MAPPINGS(ioc, res_idx, mask, 8); in ccio_free_range()
454 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffUL, 8); in ccio_free_range()
457 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffffUL, 16); in ccio_free_range()
459 CCIO_FREE_MAPPINGS(ioc, res_idx, ~(unsigned int)0, 32); in ccio_free_range()
462 CCIO_FREE_MAPPINGS(ioc, res_idx, ~0UL, 64); in ccio_free_range()