Lines Matching refs:addr

51 static inline void psb_clflush(void *addr)
53 __asm__ __volatile__("clflush (%0)\n" : : "r"(addr) : "memory");
56 static inline void psb_mmu_clflush(struct psb_mmu_driver *driver, void *addr)
62 psb_clflush(addr);
136 static inline unsigned long psb_pd_addr_end(unsigned long addr,
139 addr = (addr + PSB_PDE_MASK + 1) & ~PSB_PDE_MASK;
140 return (addr < end) ? addr : end;
307 unsigned long addr)
309 uint32_t index = psb_mmu_pd_index(addr);
347 unsigned long addr)
349 uint32_t index = psb_mmu_pd_index(addr);
386 static inline void psb_mmu_set_pte(struct psb_mmu_pt *pt, unsigned long addr,
389 pt->v[psb_mmu_pt_index(addr)] = pte;
393 unsigned long addr)
395 pt->v[psb_mmu_pt_index(addr)] = pt->pd->invalid_pte;
484 unsigned long addr;
505 addr = address;
506 end = addr + add;
509 next = psb_pd_addr_end(addr, end);
510 pt = psb_mmu_pt_map_lock(pd, addr);
514 psb_clflush(&pt->v[psb_mmu_pt_index(addr)]);
515 } while (addr += clflush_add,
516 (addr & clflush_mask) < next);
519 } while (addr = next, next != end);
529 unsigned long addr;
536 addr = address;
537 end = addr + (num_pages << PAGE_SHIFT);
540 next = psb_pd_addr_end(addr, end);
541 pt = psb_mmu_pt_alloc_map_lock(pd, addr);
545 psb_mmu_invalidate_pte(pt, addr);
547 } while (addr += PAGE_SIZE, addr < next);
550 } while (addr = next, next != end);
571 unsigned long addr;
592 addr = address;
593 end = addr + add;
596 next = psb_pd_addr_end(addr, end);
597 pt = psb_mmu_pt_map_lock(pd, addr);
601 psb_mmu_invalidate_pte(pt, addr);
604 } while (addr += PAGE_SIZE, addr < next);
607 } while (addr = next, next != end);
626 unsigned long addr;
634 addr = address;
635 end = addr + (num_pages << PAGE_SHIFT);
638 next = psb_pd_addr_end(addr, end);
639 pt = psb_mmu_pt_alloc_map_lock(pd, addr);
646 psb_mmu_set_pte(pt, addr, pte);
648 } while (addr += PAGE_SIZE, addr < next);
651 } while (addr = next, next != end);
675 unsigned long addr;
698 addr = address;
699 end = addr + add;
702 next = psb_pd_addr_end(addr, end);
703 pt = psb_mmu_pt_alloc_map_lock(pd, addr);
709 psb_mmu_set_pte(pt, addr, pte);
711 } while (addr += PAGE_SIZE, addr < next);
714 } while (addr = next, next != end);