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
374 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
376 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
379 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xffff, 16); in ccio_alloc_range()
381 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~(unsigned int)0, 32); in ccio_alloc_range()
384 CCIO_FIND_FREE_MAPPING(ioc, res_idx, ~0UL, 64); in ccio_alloc_range()
397 __func__, res_idx, ioc->res_hint); in ccio_alloc_range()
413 return res_idx << 3; in ccio_alloc_range()
416 #define CCIO_FREE_MAPPINGS(ioc, res_idx, mask, size) \ argument
417 u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
434 unsigned int res_idx = PDIR_INDEX(iovp) >> 3; in ccio_free_range() local
441 __func__, res_idx, pages_mapped); in ccio_free_range()
451 CCIO_FREE_MAPPINGS(ioc, res_idx, mask, 8); in ccio_free_range()
453 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffUL, 8); in ccio_free_range()
456 CCIO_FREE_MAPPINGS(ioc, res_idx, 0xffffUL, 16); in ccio_free_range()
458 CCIO_FREE_MAPPINGS(ioc, res_idx, ~(unsigned int)0, 32); in ccio_free_range()
461 CCIO_FREE_MAPPINGS(ioc, res_idx, ~0UL, 64); in ccio_free_range()