checksum.h (01cfbad79a5e2b835abf6a8154a341d75a6fc8cd) checksum.h (1e94082963747b551b129528714827f76a090e93)
1#ifndef _PARISC_CHECKSUM_H
2#define _PARISC_CHECKSUM_H
3
4#include <linux/in6.h>
5
6/*
7 * computes the checksum of a memory block at buff, length len,
8 * and adds in "sum" (32-bit)

--- 108 unchanged lines hidden (view full) ---

117{
118 return csum_fold (csum_partial(buf, len, 0));
119}
120
121
122#define _HAVE_ARCH_IPV6_CSUM
123static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
124 const struct in6_addr *daddr,
1#ifndef _PARISC_CHECKSUM_H
2#define _PARISC_CHECKSUM_H
3
4#include <linux/in6.h>
5
6/*
7 * computes the checksum of a memory block at buff, length len,
8 * and adds in "sum" (32-bit)

--- 108 unchanged lines hidden (view full) ---

117{
118 return csum_fold (csum_partial(buf, len, 0));
119}
120
121
122#define _HAVE_ARCH_IPV6_CSUM
123static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
124 const struct in6_addr *daddr,
125 __u32 len, unsigned short proto,
125 __u32 len, __u8 proto,
126 __wsum sum)
127{
128 __asm__ __volatile__ (
129
130#if BITS_PER_LONG > 32
131
132 /*
133 ** We can execute two loads and two adds per cycle on PA 8000.

--- 75 unchanged lines hidden ---
126 __wsum sum)
127{
128 __asm__ __volatile__ (
129
130#if BITS_PER_LONG > 32
131
132 /*
133 ** We can execute two loads and two adds per cycle on PA 8000.

--- 75 unchanged lines hidden ---