Searched refs:SFW_ID_PER_PAGE (Results 1 – 3 of 3) sorted by relevance
396 #define SFW_ID_PER_PAGE (PAGE_CACHE_SIZE / sizeof(lnet_process_id_packed_t)) macro397 #define SFW_MAX_NDESTS (LNET_MAX_IOV * SFW_ID_PER_PAGE)398 #define sfw_id_pages(n) (((n) + SFW_ID_PER_PAGE - 1) / SFW_ID_PER_PAGE)
772 LASSERT(bk->bk_niov * SFW_ID_PER_PAGE >= (unsigned int)ndest); in sfw_add_test_instance()784 dests = page_address(bk->bk_iovs[i / SFW_ID_PER_PAGE].kiov_page); in sfw_add_test_instance()786 id = dests[i % SFW_ID_PER_PAGE]; in sfw_add_test_instance()
711 i = idx / SFW_ID_PER_PAGE; in lstcon_next_id()717 return &pid[idx % SFW_ID_PER_PAGE]; in lstcon_next_id()