This source file includes following definitions.
- __flush_tlb_slot
   1 
   2 
   3 
   4 
   5 
   6 
   7 #ifndef __ASM_SH_TLB_64_H
   8 #define __ASM_SH_TLB_64_H
   9 
  10 
  11 #define ITLB_FIXED      0x00000000      
  12 #define ITLB_LAST_VAR_UNRESTRICTED      0x000003F0      
  13 
  14 
  15 #define DTLB_FIXED      0x00800000      
  16 #define DTLB_LAST_VAR_UNRESTRICTED      0x008003F0      
  17 
  18 #ifndef __ASSEMBLY__
  19 
  20 
  21 
  22 
  23 
  24 
  25 #define for_each_dtlb_entry(tlb)                \
  26         for (tlb  = cpu_data->dtlb.first;       \
  27              tlb <= cpu_data->dtlb.last;        \
  28              tlb += cpu_data->dtlb.step)
  29 
  30 
  31 
  32 
  33 
  34 
  35 #define for_each_itlb_entry(tlb)                \
  36         for (tlb  = cpu_data->itlb.first;       \
  37              tlb <= cpu_data->itlb.last;        \
  38              tlb += cpu_data->itlb.step)
  39 
  40 
  41 
  42 
  43 
  44 
  45 static inline void __flush_tlb_slot(unsigned long long slot)
  46 {
  47         __asm__ __volatile__ ("putcfg %0, 0, r63\n" : : "r" (slot));
  48 }
  49 
  50 #ifdef CONFIG_MMU
  51 
  52 int sh64_tlb_init(void);
  53 unsigned long long sh64_next_free_dtlb_entry(void);
  54 unsigned long long sh64_get_wired_dtlb_entry(void);
  55 int sh64_put_wired_dtlb_entry(unsigned long long entry);
  56 void sh64_setup_tlb_slot(unsigned long long config_addr, unsigned long eaddr,
  57                          unsigned long asid, unsigned long paddr);
  58 void sh64_teardown_tlb_slot(unsigned long long config_addr);
  59 #else
  60 #define sh64_tlb_init()                                 do { } while (0)
  61 #define sh64_next_free_dtlb_entry()                     (0)
  62 #define sh64_get_wired_dtlb_entry()                     (0)
  63 #define sh64_put_wired_dtlb_entry(entry)                do { } while (0)
  64 #define sh64_setup_tlb_slot(conf, virt, asid, phys)     do { } while (0)
  65 #define sh64_teardown_tlb_slot(addr)                    do { } while (0)
  66 #endif 
  67 #endif 
  68 #endif