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

Go to the source code of this file.

Macros

#define SIGN(x, y)   ((0x8000ULL*x)<<y)
 
#define CARRY(x, y)   ((0x0002ULL*x)<<y)
 
#define SELECT(x, y)   ((0x0001ULL*x)<<y)
 
#define VR_NEGATE(a, b, c, d)
 
#define VR_CARRY(a, b, c, d)
 
#define VR_SELECT(a, b, c, d)
 

Functions

__sum16 csum_tcpudp_magic (unsigned long saddr, unsigned long daddr, unsigned short len, unsigned short proto, __wsum sum)
 
__wsum csum_tcpudp_nofold (unsigned long saddr, unsigned long daddr, unsigned short len, unsigned short proto, __wsum sum)
 
 EXPORT_SYMBOL (csum_tcpudp_nofold)
 
unsigned int do_csum (const void *voidptr, int len)
 
__wsum csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum)
 

Macro Definition Documentation

#define CARRY (   x,
  y 
)    ((0x0002ULL*x)<<y)

Definition at line 35 of file checksum.c.

#define SELECT (   x,
  y 
)    ((0x0001ULL*x)<<y)

Definition at line 36 of file checksum.c.

#define SIGN (   x,
  y 
)    ((0x8000ULL*x)<<y)

Definition at line 34 of file checksum.c.

#define VR_CARRY (   a,
  b,
  c,
  d 
)
Value:
(CARRY(a, 48) + CARRY(b, 32) + CARRY(c, 16) \
+ CARRY(d, 0))

Definition at line 40 of file checksum.c.

#define VR_NEGATE (   a,
  b,
  c,
  d 
)
Value:
(SIGN(a, 48) + SIGN(b, 32) + SIGN(c, 16) \
+ SIGN(d, 0))

Definition at line 38 of file checksum.c.

#define VR_SELECT (   a,
  b,
  c,
  d 
)
Value:
(SELECT(a, 48) + SELECT(b, 32) + SELECT(c, 16) \
+ SELECT(d, 0))

Definition at line 42 of file checksum.c.

Function Documentation

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

Definition at line 199 of file checksum.c.

__sum16 csum_tcpudp_magic ( unsigned long  saddr,
unsigned long  daddr,
unsigned short  len,
unsigned short  proto,
__wsum  sum 
)

Definition at line 63 of file checksum.c.

__wsum csum_tcpudp_nofold ( unsigned long  saddr,
unsigned long  daddr,
unsigned short  len,
unsigned short  proto,
__wsum  sum 
)

Definition at line 72 of file checksum.c.

unsigned int do_csum ( const void voidptr,
int  len 
)

Definition at line 100 of file checksum.c.

EXPORT_SYMBOL ( csum_tcpudp_nofold  )