Lines Matching refs:res_map
204 char *res_map; /* resource map, bit == pdir entry */ member
321 unsigned long *rptr = (unsigned long *) &ioc->res_map[(pide >>3) & -sizeof(unsigned long)]; in sba_dump_pdir_entry()
350 u64 *rptr_end = (u64 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir()
351 u64 *rptr = (u64 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir()
468 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
487 unsigned long *res_end = (unsigned long *) &(ioc->res_map[ioc->res_size]); in sba_search_bitmap()
508 res_ptr = (ulong *)ioc->res_map; in sba_search_bitmap()
609 prefetch(ioc->res_map); in sba_search_bitmap()
610 ioc->res_hint = (unsigned long *) ioc->res_map; in sba_search_bitmap()
713 (uint) ((unsigned long) ioc->res_hint - (unsigned long) ioc->res_map), in sba_alloc_range()
734 unsigned long *res_ptr = (unsigned long *) &((ioc)->res_map[ridx & ~RESMAP_IDX_MASK]); in sba_free_range()
1717 ioc->res_map = (char *) __get_free_pages(GFP_KERNEL, in ioc_resource_init()
1719 if (!ioc->res_map) in ioc_resource_init()
1722 memset(ioc->res_map, 0, ioc->res_size); in ioc_resource_init()
1724 ioc->res_hint = (unsigned long *) ioc->res_map; in ioc_resource_init()
1728 ioc->res_map[0] = 0x1; in ioc_resource_init()
1733 ioc->res_map[ioc->res_size - 1] |= 0x80UL; /* res_map is chars */ in ioc_resource_init()
1739 ioc->res_size, (void *) ioc->res_map); in ioc_resource_init()
1911 unsigned long *res_ptr = (unsigned long *)ioc->res_map; in ioc_show()