Home
last modified time | relevance | path

Searched refs:ENTRIES_PER_PAGE (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/mm/
Dshmem.c40 #define ENTRIES_PER_PAGE (PAGE_CACHE_SIZE/sizeof(unsigned long)) macro
41 #define ENTRIES_PER_PAGEPAGE (ENTRIES_PER_PAGE*ENTRIES_PER_PAGE)
44 #define SHMEM_MAX_INDEX (SHMEM_NR_DIRECT + (ENTRIES_PER_PAGEPAGE/2) * (ENTRIES_PER_PAGE+1))
147 offset = index % ENTRIES_PER_PAGE; in shmem_swp_entry()
148 index /= ENTRIES_PER_PAGE; in shmem_swp_entry()
151 if (index >= ENTRIES_PER_PAGE/2) { in shmem_swp_entry()
152 index -= ENTRIES_PER_PAGE/2; in shmem_swp_entry()
153 dir += ENTRIES_PER_PAGE/2 + index/ENTRIES_PER_PAGE; in shmem_swp_entry()
154 index %= ENTRIES_PER_PAGE; in shmem_swp_entry()
274 last = *dir + (len + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in shmem_truncate_direct()
[all …]
/linux-2.4.37.9/drivers/char/agp/
Dagpgart_be.c232 #define ENTRIES_PER_PAGE (PAGE_SIZE / sizeof(unsigned long)) macro
258 scratch_pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in agp_allocate_memory()