Lines Matching refs:res_idx
284 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument
292 res_idx = idx;\
293 ioc->res_hint = res_idx + (size >> 3); \
298 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \ argument
301 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
303 CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
333 unsigned int res_idx; in ccio_alloc_range() local
364 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
366 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
369 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xffff, 16); in ccio_alloc_range()
371 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~(unsigned int)0, 32); in ccio_alloc_range()
374 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~0UL, 64); in ccio_alloc_range()
387 __func__, res_idx, ioc->res_hint); in ccio_alloc_range()
403 return res_idx << 3; in ccio_alloc_range()
406 #define CCIO_FREE_MAPPINGS(ioc, res_idx, mask, size) \ argument
407 u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
424 unsigned int res_idx = PDIR_INDEX(iovp) >> 3; in ccio_free_range() local
431 __func__, res_idx, pages_mapped); in ccio_free_range()
441 CCIO_FREE_MAPPINGS(ioc, res_idx, mask, 8); in ccio_free_range()
443 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffUL, 8); in ccio_free_range()
446 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffffUL, 16); in ccio_free_range()
448 CCIO_FREE_MAPPINGS(ioc, res_idx, ~(unsigned int)0, 32); in ccio_free_range()
451 CCIO_FREE_MAPPINGS(ioc, res_idx, ~0UL, 64); in ccio_free_range()