Home
last modified time | relevance | path

Searched refs:PAGE_MASK (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/linux-2.4.37.9/arch/ppc/mm/
Dfault.c329 dir = pgd_offset(mm, address & PAGE_MASK); in va_to_pte()
331 pmd = pmd_offset(dir, address & PAGE_MASK); in va_to_pte()
333 pte = pte_offset(pmd, address & PAGE_MASK); in va_to_pte()
354 return(((unsigned long)(pte_val(*pte)) & PAGE_MASK) | (address & ~(PAGE_MASK))); in va_to_phys()
366 pgd = pgd_offset(mm, addr & PAGE_MASK); in print_8xx_pte()
368 pmd = pmd_offset(pgd, addr & PAGE_MASK); in print_8xx_pte()
370 pte = pte_offset(pmd, addr & PAGE_MASK); in print_8xx_pte()
407 pgd = pgd_offset(mm, addr & PAGE_MASK); in get_8xx_pte()
409 pmd = pmd_offset(pgd, addr & PAGE_MASK); in get_8xx_pte()
411 pte = pte_offset(pmd, addr & PAGE_MASK); in get_8xx_pte()
Dpgtable.c108 p = addr & PAGE_MASK; in __ioremap()
175 return (void *) (v + ((unsigned long)addr & ~PAGE_MASK)); in __ioremap()
187 vfree((void *) (PAGE_MASK & (unsigned long) addr)); in iounmap()
204 set_pte(pg, mk_pte_phys(pa & PAGE_MASK, __pgprot(flags))); in map_page()
369 pgd = pgd_offset(mm, addr & PAGE_MASK); in get_pteptr()
371 pmd = pmd_offset(pgd, addr & PAGE_MASK); in get_pteptr()
373 pte = pte_offset(pmd, addr & PAGE_MASK); in get_pteptr()
414 pa = (pte_val(*pte) & PAGE_MASK) | (addr & ~PAGE_MASK); in iopa()
/linux-2.4.37.9/arch/ppc64/kernel/
DHvCall.c44 leftThisPage = ((curPtr & PAGE_MASK) + PAGE_SIZE) - curPtr; in HvCall_readLogBuffer()
51 curPtr = (curPtr & PAGE_MASK) + PAGE_SIZE; in HvCall_readLogBuffer()
64 leftThisPage = ((curPtr & PAGE_MASK) + PAGE_SIZE) - curPtr; in HvCall_readLogBuffer()
74 curPtr = (curPtr & PAGE_MASK) + PAGE_SIZE; in HvCall_readLogBuffer()
98 leftThisPage = ((curPtr & PAGE_MASK) + PAGE_SIZE) - curPtr; in HvCall_writeLogBuffer()
113 curPtr = (curPtr & PAGE_MASK) + PAGE_SIZE; in HvCall_writeLogBuffer()
/linux-2.4.37.9/arch/m68k/kernel/
Dsys_m68k.c104 if (a.offset & ~PAGE_MASK) in old_mmap()
134 if ((long)a.offset & ~PAGE_MASK)
282 _paddr = (_mmusr & MMU_R_040) ? (_mmusr & PAGE_MASK) : 0; \
323 paddr += addr & ~(PAGE_MASK | 15); in cache_flush_040()
326 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_040()
344 i = (PAGE_SIZE - (paddr & ~PAGE_MASK)) >> 4; in cache_flush_040()
399 len += (addr & ~PAGE_MASK) + (PAGE_SIZE - 1); in cache_flush_040()
487 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_060()
505 i = (PAGE_SIZE - (paddr & ~PAGE_MASK)) >> 4; in cache_flush_060()
538 addr &= PAGE_MASK; in cache_flush_060()
[all …]
/linux-2.4.37.9/arch/sparc/kernel/
Dioport.c126 unsigned long vaddr = (unsigned long) virtual & PAGE_MASK; in iounmap()
203 unsigned long offset = ((unsigned long) pa) & (~PAGE_MASK); in _sparc_ioremap()
208 (offset + sz + PAGE_SIZE-1) & PAGE_MASK, in _sparc_ioremap()
217 pa &= PAGE_MASK; in _sparc_ioremap()
259 unsigned long len_total = (len + PAGE_SIZE-1) & PAGE_MASK; in sbus_alloc_consistent()
320 n = (n + PAGE_SIZE-1) & PAGE_MASK; in sbus_free_consistent()
345 unsigned long len_total = (len + PAGE_SIZE-1) & PAGE_MASK; in sbus_map_single()
400 n = (n + PAGE_SIZE-1) & PAGE_MASK; in sbus_unmap_single()
469 unsigned long len_total = (len + PAGE_SIZE-1) & PAGE_MASK; in pci_alloc_consistent()
549 n = (n + PAGE_SIZE-1) & PAGE_MASK; in pci_free_consistent()
[all …]
/linux-2.4.37.9/arch/i386/mm/
Dioremap.c141 offset = phys_addr & ~PAGE_MASK; in __ioremap()
142 phys_addr &= PAGE_MASK; in __ioremap()
162 return vfree((void *) (PAGE_MASK & (unsigned long) addr)); in iounmap()
185 offset = phys_addr & ~PAGE_MASK; in bt_ioremap()
186 phys_addr &= PAGE_MASK; in bt_ioremap()
219 offset = virt_addr & ~PAGE_MASK; in bt_iounmap()
/linux-2.4.37.9/include/asm-s390x/
Dpgtable.h264 return (*pgd_slot & (~PAGE_MASK & ~_PGD_ENTRY_INV & ~_PGD_ENTRY_MASK & in __pgd_bad()
271 return (pmd_val(pmd) & ~PAGE_MASK) == _PMD_ENTRY; in pmd_present()
281 return (pmd_val(pmd) & (~PAGE_MASK & ~_PMD_ENTRY_INV)) != _PMD_ENTRY; in pmd_bad()
339 *pgd_slot = (*pgd_slot & PAGE_MASK) | _PGD_ENTRY_MASK | in pgd_clear()
345 *pgd_slot = (*pgd_slot & PAGE_MASK) | _PGD_ENTRY_MASK | in pgd_clear()
371 pte_val(pte) &= PAGE_MASK | _PAGE_ISCLEAN; in pte_modify()
418 asm volatile ("lura 0,%0" : : "a" (pte_val(pte) & PAGE_MASK) : "0" ); in pte_mkyoung()
498 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
505 ((unsigned long) __va(__pgd_val(pgd) & PAGE_MASK))
/linux-2.4.37.9/arch/mips/lib/
Ddump_tlb.c76 (entrylo0 << 6) & PAGE_MASK, c0, in dump_tlb()
81 (entrylo1 << 6) & PAGE_MASK, c1, in dump_tlb()
120 write_c0_entryhi((addr & PAGE_MASK) | oldpid); in dump_tlb_addr()
210 paddr = (KSEG1 | (unsigned int) pte_val(*pte)) & PAGE_MASK; in vtop()
211 paddr |= (addr & ~PAGE_MASK); in vtop()
Dr3k_dump_tlb.c52 entrylo0 & PAGE_MASK, in dump_tlb()
84 write_c0_entryhi((addr & PAGE_MASK) | oldpid); in dump_tlb_addr()
160 paddr = (KSEG1 | (unsigned int) pte_val(*pte)) & PAGE_MASK; in vtop()
161 paddr |= (addr & ~PAGE_MASK); in vtop()
/linux-2.4.37.9/arch/mips64/lib/
Ddump_tlb.c71 (entrylo0 << 6) & PAGE_MASK, c0, in dump_tlb()
76 (entrylo1 << 6) & PAGE_MASK, c1, in dump_tlb()
116 write_c0_entryhi((addr & PAGE_MASK) | oldpid); in dump_tlb_addr()
194 paddr = (KSEG1 | (unsigned int) pte_val(*pte)) & PAGE_MASK; in vtop()
195 paddr |= (addr & ~PAGE_MASK); in vtop()
/linux-2.4.37.9/include/asm-ppc/
Dpgtable.h255 #define _PMD_PRESENT PAGE_MASK
288 #define _PMD_PRESENT PAGE_MASK
289 #define _PMD_PRESENT_MASK (PAGE_MASK)
290 #define _PMD_BAD (~PAGE_MASK)
317 #define _PMD_PRESENT PAGE_MASK
344 #define _PMD_PRESENT PAGE_MASK
372 #define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
463 ((unsigned long) __va(pgd_val(pgd) & PAGE_MASK))
592 #define pmd_page(pmd) (pmd_val(pmd) & PAGE_MASK)
/linux-2.4.37.9/arch/m68k/mm/
Dmemory.c42 unsigned long page = ptable & PAGE_MASK; in init_pointer_table()
107 unsigned long page = (unsigned long)ptable & PAGE_MASK; in free_pointer_table()
279 pushcl040(paddr & PAGE_MASK); in cache_clear()
285 paddr &= PAGE_MASK; in cache_clear()
330 paddr &= PAGE_MASK; in cache_push()
/linux-2.4.37.9/arch/sh/mm/
Dfault.c57 size += start & ~PAGE_MASK; in __verify_write()
59 start &= PAGE_MASK; in __verify_write()
203 page &= PAGE_MASK; in do_page_fault()
290 __flush_tlb_page(get_asid(), address&PAGE_MASK); in __do_page_fault()
376 page &= PAGE_MASK; in flush_tlb_page()
407 start &= PAGE_MASK; in flush_tlb_range()
409 end &= PAGE_MASK; in flush_tlb_range()
/linux-2.4.37.9/crypto/
Dhmac.c29 tmp.offset = ((long)key & ~PAGE_MASK); in hash_key()
74 tmp.offset = ((long)ipad & ~PAGE_MASK); in crypto_hmac_init()
108 tmp.offset = ((long)opad & ~PAGE_MASK); in crypto_hmac_final()
115 tmp.offset = ((long)out & ~PAGE_MASK); in crypto_hmac_final()
/linux-2.4.37.9/arch/mips64/mm/
Dtlb-sb1.c161 start &= (PAGE_MASK << 1); in local_flush_tlb_range()
163 end &= (PAGE_MASK << 1); in local_flush_tlb_range()
195 page &= (PAGE_MASK << 1); in local_flush_tlb_page()
222 page &= (PAGE_MASK << 1); in local_flush_tlb_one()
270 address &= (PAGE_MASK << 1); in __update_tlb()
Dtlb-andes.c84 start &= (PAGE_MASK << 1); in local_flush_tlb_range()
86 end &= (PAGE_MASK << 1); in local_flush_tlb_range()
120 page &= (PAGE_MASK << 1); in local_flush_tlb_page()
167 address &= (PAGE_MASK << 1); in __update_tlb()
Dtlb-r4k.c110 start &= (PAGE_MASK << 1); in local_flush_tlb_range()
112 end &= (PAGE_MASK << 1); in local_flush_tlb_range()
152 page &= (PAGE_MASK << 1); in local_flush_tlb_page()
184 page &= (PAGE_MASK << 1); in local_flush_tlb_one()
235 address &= (PAGE_MASK << 1); in __update_tlb()
/linux-2.4.37.9/arch/mips/mm/
Dtlb-sb1.c162 start &= (PAGE_MASK << 1); in local_flush_tlb_range()
164 end &= (PAGE_MASK << 1); in local_flush_tlb_range()
196 page &= (PAGE_MASK << 1); in local_flush_tlb_page()
223 page &= (PAGE_MASK << 1); in local_flush_tlb_one()
274 address &= (PAGE_MASK << 1); in __update_tlb()
Dtlb-r4k.c107 start &= (PAGE_MASK << 1); in local_flush_tlb_range()
109 end &= (PAGE_MASK << 1); in local_flush_tlb_range()
150 page &= (PAGE_MASK << 1); in local_flush_tlb_page()
183 page &= (PAGE_MASK << 1); in local_flush_tlb_one()
235 address &= (PAGE_MASK << 1); in __update_tlb()
278 address &= (PAGE_MASK << 1);
Dtlb-r3k.c98 start &= PAGE_MASK; in local_flush_tlb_range()
100 end &= PAGE_MASK; in local_flush_tlb_range()
134 page &= PAGE_MASK; in local_flush_tlb_page()
174 address &= PAGE_MASK; in __update_tlb()
/linux-2.4.37.9/arch/sparc/mm/
Dio-unit.c73 npages = ((vaddr & ~PAGE_MASK) + size + (PAGE_SIZE-1)) >> PAGE_SHIFT; in iounit_get_area()
105 iopte = MKIOPTE(__pa(vaddr & PAGE_MASK)); in iounit_get_area()
106 vaddr = IOUNIT_DMA_BASE + (scan << PAGE_SHIFT) + (vaddr & ~PAGE_MASK); in iounit_get_area()
147 len = ((vaddr & ~PAGE_MASK) + len + (PAGE_SIZE-1)) >> PAGE_SHIFT; in iounit_release_scsi_one()
164 len = ((sg[sz].dvma_address & ~PAGE_MASK) + sg[sz].length + (PAGE_SIZE-1)) >> PAGE_SHIFT; in iounit_release_scsi_sgl()
304 iounit->page_table[scan] = MKIOPTE(__pa(((unsigned long)addr) & PAGE_MASK)); in iounit_map_dma_page()
305 return vaddr + (((unsigned long)addr) & ~PAGE_MASK); in iounit_map_dma_page()
/linux-2.4.37.9/arch/i386/kernel/
Dtime.c340 pageaddr = (CYCLONE_CBAR_ADDR)&PAGE_MASK; in init_cyclone_clock()
341 offset = (CYCLONE_CBAR_ADDR)&(~PAGE_MASK); in init_cyclone_clock()
357 pageaddr = (base + CYCLONE_PMCC_OFFSET)&PAGE_MASK; in init_cyclone_clock()
358 offset = (base + CYCLONE_PMCC_OFFSET)&(~PAGE_MASK); in init_cyclone_clock()
369 pageaddr = (base + CYCLONE_MPCS_OFFSET)&PAGE_MASK; in init_cyclone_clock()
370 offset = (base + CYCLONE_MPCS_OFFSET)&(~PAGE_MASK); in init_cyclone_clock()
381 pageaddr = (base + CYCLONE_MPMC_OFFSET)&PAGE_MASK; in init_cyclone_clock()
382 offset = (base + CYCLONE_MPMC_OFFSET)&(~PAGE_MASK); in init_cyclone_clock()
/linux-2.4.37.9/arch/cris/mm/
Dtlb.c133 addr &= PAGE_MASK; /* perhaps not necessary */ in flush_tlb_page()
145 (tlb_hi & PAGE_MASK) == addr) { in flush_tlb_page()
176 start &= PAGE_MASK; /* probably not necessary */ in flush_tlb_range()
177 end &= PAGE_MASK; /* dito */ in flush_tlb_range()
188 vpn = tlb_hi & PAGE_MASK; in flush_tlb_range()
/linux-2.4.37.9/include/asm-sh/
Dpage.h21 #define PAGE_MASK (~(PAGE_SIZE-1)) macro
22 #define PTE_MASK PAGE_MASK
61 #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)
/linux-2.4.37.9/include/asm-sh64/
Dpage.h29 #define PAGE_MASK (~(PAGE_SIZE-1)) macro
30 #define PTE_MASK PAGE_MASK
74 #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)

12345678910>>...12