Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
csum_partial_copy.c File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define ldq_u(x, y)   __asm__ __volatile__("ldq_u %0,%1":"=r" (x):"m" (*(const unsigned long *)(y)))
 
#define stq_u(x, y)   __asm__ __volatile__("stq_u %1,%0":"=m" (*(unsigned long *)(y)):"r" (x))
 
#define extql(x, y, z)   __asm__ __volatile__("extql %1,%2,%0":"=r" (z):"r" (x),"r" (y))
 
#define extqh(x, y, z)   __asm__ __volatile__("extqh %1,%2,%0":"=r" (z):"r" (x),"r" (y))
 
#define mskql(x, y, z)   __asm__ __volatile__("mskql %1,%2,%0":"=r" (z):"r" (x),"r" (y))
 
#define mskqh(x, y, z)   __asm__ __volatile__("mskqh %1,%2,%0":"=r" (z):"r" (x),"r" (y))
 
#define insql(x, y, z)   __asm__ __volatile__("insql %1,%2,%0":"=r" (z):"r" (x),"r" (y))
 
#define insqh(x, y, z)   __asm__ __volatile__("insqh %1,%2,%0":"=r" (z):"r" (x),"r" (y))
 
#define __get_user_u(x, ptr)
 
#define __put_user_u(x, ptr)
 

Functions

__wsum csum_partial_copy_from_user (const void __user *src, void *dst, int len, __wsum sum, int *errp)
 
__wsum csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum)
 

Macro Definition Documentation

#define __get_user_u (   x,
  ptr 
)
Value:
({ \
long __guu_err; \
__asm__ __volatile__( \
"1: ldq_u %0,%2\n" \
"2:\n" \
".section __ex_table,\"a\"\n" \
" .long 1b - .\n" \
" lda %0,2b-1b(%1)\n" \
".previous" \
: "=r"(x), "=r"(__guu_err) \
: "m"(__m(ptr)), "1"(0)); \
__guu_err; \
})

Definition at line 42 of file csum_partial_copy.c.

#define __put_user_u (   x,
  ptr 
)
Value:
({ \
long __puu_err; \
__asm__ __volatile__( \
"1: stq_u %2,%1\n" \
"2:\n" \
".section __ex_table,\"a\"\n" \
" .long 1b - ." \
" lda $31,2b-1b(%0)\n" \
".previous" \
: "=r"(__puu_err) \
: "m"(__m(addr)), "rJ"(x), "0"(0)); \
__puu_err; \
})

Definition at line 57 of file csum_partial_copy.c.

#define extqh (   x,
  y,
 
)    __asm__ __volatile__("extqh %1,%2,%0":"=r" (z):"r" (x),"r" (y))

Definition at line 26 of file csum_partial_copy.c.

#define extql (   x,
  y,
 
)    __asm__ __volatile__("extql %1,%2,%0":"=r" (z):"r" (x),"r" (y))

Definition at line 23 of file csum_partial_copy.c.

#define insqh (   x,
  y,
 
)    __asm__ __volatile__("insqh %1,%2,%0":"=r" (z):"r" (x),"r" (y))

Definition at line 38 of file csum_partial_copy.c.

#define insql (   x,
  y,
 
)    __asm__ __volatile__("insql %1,%2,%0":"=r" (z):"r" (x),"r" (y))

Definition at line 35 of file csum_partial_copy.c.

#define ldq_u (   x,
  y 
)    __asm__ __volatile__("ldq_u %0,%1":"=r" (x):"m" (*(const unsigned long *)(y)))

Definition at line 17 of file csum_partial_copy.c.

#define mskqh (   x,
  y,
 
)    __asm__ __volatile__("mskqh %1,%2,%0":"=r" (z):"r" (x),"r" (y))

Definition at line 32 of file csum_partial_copy.c.

#define mskql (   x,
  y,
 
)    __asm__ __volatile__("mskql %1,%2,%0":"=r" (z):"r" (x),"r" (y))

Definition at line 29 of file csum_partial_copy.c.

#define stq_u (   x,
  y 
)    __asm__ __volatile__("stq_u %1,%0":"=m" (*(unsigned long *)(y)):"r" (x))

Definition at line 20 of file csum_partial_copy.c.

Function Documentation

__wsum csum_partial_copy_from_user ( const void __user src,
void dst,
int  len,
__wsum  sum,
int errp 
)

Definition at line 333 of file csum_partial_copy.c.

__wsum csum_partial_copy_nocheck ( const void src,
void dst,
int  len,
__wsum  sum 
)

Definition at line 374 of file csum_partial_copy.c.