~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/asm-mips/cacheflush.h

Version: ~ [ linux-6.0-rc1 ] ~ [ linux-5.19.1 ] ~ [ linux-5.18.17 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.60 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.136 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.210 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.255 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.290 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.325 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * This file is subject to the terms and conditions of the GNU General Public
  3  * License.  See the file "COPYING" in the main directory of this archive
  4  * for more details.
  5  *
  6  * Copyright (C) 1994, 95, 96, 97, 98, 99, 2000 by Ralf Baechle at alii
  7  * Copyright (C) 1999 Silicon Graphics, Inc.
  8  */
  9 #ifndef __ASM_CACHEFLUSH_H
 10 #define __ASM_CACHEFLUSH_H
 11 
 12 #include <linux/config.h>
 13 
 14 struct mm_struct;
 15 struct vm_area_struct;
 16 struct page;
 17 
 18 /* Cache flushing:
 19  *
 20  *  - flush_cache_all() flushes entire cache
 21  *  - flush_cache_mm(mm) flushes the specified mm context's cache lines
 22  *  - flush_cache_page(mm, vmaddr) flushes a single page
 23  *  - flush_cache_range(mm, start, end) flushes a range of pages
 24  *  - flush_page_to_ram(page) write back kernel page to ram
 25  *  - flush_icache_range(start, end) flush a range of instructions
 26  *
 27  * MIPS specific flush operations:
 28  *
 29  *  - flush_cache_sigtramp() flush signal trampoline
 30  *  - flush_icache_all() flush the entire instruction cache
 31  *  - flush_data_cache_page() flushes a page from the data cache
 32  */
 33 extern void (*_flush_cache_all)(void);
 34 extern void (*___flush_cache_all)(void);
 35 extern void (*_flush_cache_mm)(struct mm_struct *mm);
 36 extern void (*_flush_cache_range)(struct mm_struct *mm, unsigned long start,
 37         unsigned long end);
 38 extern void (*_flush_cache_page)(struct vm_area_struct *vma,
 39         unsigned long page);
 40 extern void flush_dcache_page(struct page * page);
 41 extern void (*_flush_icache_range)(unsigned long start, unsigned long end);
 42 extern void (*_flush_icache_page)(struct vm_area_struct *vma,
 43         struct page *page);
 44 
 45 extern void (*_flush_cache_sigtramp)(unsigned long addr);
 46 extern void (*_flush_icache_all)(void);
 47 extern void (*_flush_data_cache_page)(unsigned long addr);
 48 
 49 #define flush_cache_all()               _flush_cache_all()
 50 #define __flush_cache_all()             ___flush_cache_all()
 51 #define flush_cache_mm(mm)              _flush_cache_mm(mm)
 52 #define flush_cache_range(mm,start,end) _flush_cache_range(mm,start,end)
 53 #define flush_cache_page(vma,page)      _flush_cache_page(vma, page)
 54 #define flush_page_to_ram(page)         do { } while (0)
 55 
 56 #define flush_icache_range(start, end)  _flush_icache_range(start,end)
 57 #define flush_icache_user_range(vma, page, addr, len) \
 58                                         _flush_icache_page((vma), (page))
 59 #define flush_icache_page(vma, page)    _flush_icache_page(vma, page)
 60 
 61 #define flush_cache_sigtramp(addr)      _flush_cache_sigtramp(addr)
 62 #define flush_data_cache_page(addr)     _flush_data_cache_page(addr)
 63 #ifdef CONFIG_VTAG_ICACHE
 64 #define flush_icache_all()              _flush_icache_all()
 65 #else
 66 #define flush_icache_all()              do { } while(0)
 67 #endif
 68 
 69 #endif /* __ASM_CACHEFLUSH_H */
 70 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp