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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/string.h

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ 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.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ASM_POWERPC_STRING_H
  3 #define _ASM_POWERPC_STRING_H
  4 
  5 #ifdef __KERNEL__
  6 
  7 #define __HAVE_ARCH_STRNCPY
  8 #define __HAVE_ARCH_STRNCMP
  9 #define __HAVE_ARCH_MEMSET
 10 #define __HAVE_ARCH_MEMCPY
 11 #define __HAVE_ARCH_MEMMOVE
 12 #define __HAVE_ARCH_MEMCMP
 13 #define __HAVE_ARCH_MEMCHR
 14 #define __HAVE_ARCH_MEMSET16
 15 #define __HAVE_ARCH_MEMCPY_FLUSHCACHE
 16 
 17 extern char * strcpy(char *,const char *);
 18 extern char * strncpy(char *,const char *, __kernel_size_t);
 19 extern __kernel_size_t strlen(const char *);
 20 extern int strcmp(const char *,const char *);
 21 extern int strncmp(const char *, const char *, __kernel_size_t);
 22 extern char * strcat(char *, const char *);
 23 extern void * memset(void *,int,__kernel_size_t);
 24 extern void * memcpy(void *,const void *,__kernel_size_t);
 25 extern void * memmove(void *,const void *,__kernel_size_t);
 26 extern int memcmp(const void *,const void *,__kernel_size_t);
 27 extern void * memchr(const void *,int,__kernel_size_t);
 28 extern void * memcpy_flushcache(void *,const void *,__kernel_size_t);
 29 
 30 #ifdef CONFIG_PPC64
 31 #define __HAVE_ARCH_MEMSET32
 32 #define __HAVE_ARCH_MEMSET64
 33 
 34 extern void *__memset16(uint16_t *, uint16_t v, __kernel_size_t);
 35 extern void *__memset32(uint32_t *, uint32_t v, __kernel_size_t);
 36 extern void *__memset64(uint64_t *, uint64_t v, __kernel_size_t);
 37 
 38 static inline void *memset16(uint16_t *p, uint16_t v, __kernel_size_t n)
 39 {
 40         return __memset16(p, v, n * 2);
 41 }
 42 
 43 static inline void *memset32(uint32_t *p, uint32_t v, __kernel_size_t n)
 44 {
 45         return __memset32(p, v, n * 4);
 46 }
 47 
 48 static inline void *memset64(uint64_t *p, uint64_t v, __kernel_size_t n)
 49 {
 50         return __memset64(p, v, n * 8);
 51 }
 52 #else
 53 extern void *memset16(uint16_t *, uint16_t, __kernel_size_t);
 54 #endif
 55 #endif /* __KERNEL__ */
 56 
 57 #endif  /* _ASM_POWERPC_STRING_H */
 58 

~ [ 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