Lines Matching refs:res_size
236 u32 *rptr_end = (u32 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir()
345 unsigned long *res_end = (unsigned long *) &(ioc->res_map[ioc->res_size]); in sba_search_bitmap()
449 if (pide >= (ioc->res_size << 3)) { in sba_alloc_range()
451 if (pide >= (ioc->res_size << 3)) in sba_alloc_range()
1699 int res_size; in sba_common_init() local
1707 res_size = sba_dev->ioc[i].pdir_size/sizeof(u64); /* entries */ in sba_common_init()
1711 res_size -= (128*1024)/sizeof(u64); in sba_common_init()
1714 res_size >>= 3; /* convert bit count to byte count */ in sba_common_init()
1716 __func__, res_size); in sba_common_init()
1718 sba_dev->ioc[i].res_size = res_size; in sba_common_init()
1719 sba_dev->ioc[i].res_map = (char *) __get_free_pages(GFP_KERNEL, get_order(res_size)); in sba_common_init()
1722 iterate_pages( sba_dev->ioc[i].res_map, res_size, in sba_common_init()
1732 memset(sba_dev->ioc[i].res_map, 0, res_size); in sba_common_init()
1759 iterate_pages( sba_dev->ioc[i].res_map, res_size, in sba_common_init()
1766 __func__, i, res_size, sba_dev->ioc[i].res_map); in sba_common_init()
1791 int total_pages = (int) (ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info()
1802 (int)((ioc->res_size << 3) * sizeof(u64)), /* 8 bits/byte */ in sba_proc_info()
1806 ioc->res_size, ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info()
1864 ioc->res_size, false); in sba_proc_bitmap_info()