cregit-Linux how code gets into the kernel

Release 4.14 arch/microblaze/include/asm/checksum.h

/*
 * Copyright (C) 2008 Michal Simek <monstr@monstr.eu>
 * Copyright (C) 2006 Atmark Techno, Inc.
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License. See the file "COPYING" in the main directory of this archive
 * for more details.
 */

#ifndef _ASM_MICROBLAZE_CHECKSUM_H

#define _ASM_MICROBLAZE_CHECKSUM_H

/*
 * computes the checksum of the TCP/UDP pseudo-header
 * returns a 16-bit checksum, already complemented
 */

#define csum_tcpudp_nofold	csum_tcpudp_nofold

static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) { __asm__("add %0, %0, %1\n\t" "addc %0, %0, %2\n\t" "addc %0, %0, %3\n\t" "addc %0, %0, r0\n\t" : "+&d" (sum) : "d" (saddr), "d" (daddr), #ifdef __MICROBLAZEEL__ "d" ((len + proto) << 8) #else "d" (len + proto) #endif ); return sum; }

Contributors

PersonTokensPropCommitsCommitProp
Michal Simek3288.89%240.00%
Alexander Duyck25.56%120.00%
Remis Lima Baima12.78%120.00%
Arnd Bergmann12.78%120.00%
Total36100.00%5100.00%

#include <asm-generic/checksum.h> #endif /* _ASM_MICROBLAZE_CHECKSUM_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Michal Simek4583.33%240.00%
Remis Lima Baima611.11%120.00%
Alexander Duyck23.70%120.00%
Arnd Bergmann11.85%120.00%
Total54100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.