Lines Matching refs:res_idx
297 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument
305 res_idx = idx;\
306 ioc->res_hint = res_idx + (size >> 3); \
311 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \ argument
314 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
316 CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
345 unsigned int res_idx; in ccio_alloc_range() local
377 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
379 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
382 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xffff, 16); in ccio_alloc_range()
384 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~(unsigned int)0, 32); in ccio_alloc_range()
387 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~0UL, 64); in ccio_alloc_range()
400 __func__, res_idx, ioc->res_hint); in ccio_alloc_range()
416 return res_idx << 3; in ccio_alloc_range()
419 #define CCIO_FREE_MAPPINGS(ioc, res_idx, mask, size) \ argument
420 u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
437 unsigned int res_idx = PDIR_INDEX(iovp) >> 3; in ccio_free_range() local
444 __func__, res_idx, pages_mapped); in ccio_free_range()
454 CCIO_FREE_MAPPINGS(ioc, res_idx, mask, 8); in ccio_free_range()
456 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffUL, 8); in ccio_free_range()
459 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffffUL, 16); in ccio_free_range()
461 CCIO_FREE_MAPPINGS(ioc, res_idx, ~(unsigned int)0, 32); in ccio_free_range()
464 CCIO_FREE_MAPPINGS(ioc, res_idx, ~0UL, 64); in ccio_free_range()