checksum.h (01cfbad79a5e2b835abf6a8154a341d75a6fc8cd) checksum.h (1e94082963747b551b129528714827f76a090e93)
1/*
2 * include/asm-xtensa/checksum.h
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2001 - 2005 Tensilica Inc.

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

170static __inline__ __sum16 ip_compute_csum(const void *buff, int len)
171{
172 return csum_fold (csum_partial(buff, len, 0));
173}
174
175#define _HAVE_ARCH_IPV6_CSUM
176static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
177 const struct in6_addr *daddr,
1/*
2 * include/asm-xtensa/checksum.h
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2001 - 2005 Tensilica Inc.

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

170static __inline__ __sum16 ip_compute_csum(const void *buff, int len)
171{
172 return csum_fold (csum_partial(buff, len, 0));
173}
174
175#define _HAVE_ARCH_IPV6_CSUM
176static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
177 const struct in6_addr *daddr,
178 __u32 len, unsigned short proto,
178 __u32 len, __u8 proto,
179 __wsum sum)
180{
181 unsigned int __dummy;
182 __asm__("l32i %1, %2, 0\n\t"
183 "add %0, %0, %1\n\t"
184 "bgeu %0, %1, 1f\n\t"
185 "addi %0, %0, 1\n\t"
186 "1:\t"

--- 68 unchanged lines hidden ---
179 __wsum sum)
180{
181 unsigned int __dummy;
182 __asm__("l32i %1, %2, 0\n\t"
183 "add %0, %0, %1\n\t"
184 "bgeu %0, %1, 1f\n\t"
185 "addi %0, %0, 1\n\t"
186 "1:\t"

--- 68 unchanged lines hidden ---