cregit-Linux how code gets into the kernel

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

/*
 * Copyright 2004-2009 Analog Devices Inc.
 *                     akbar.hussain@lineo.com
 *
 * Licensed under the GPL-2 or later.
 */

#ifndef _BFIN_CHECKSUM_H

#define _BFIN_CHECKSUM_H

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


static inline __wsum __csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, __u8 proto, __wsum sum) { unsigned int carry; __asm__ ("%0 = %0 + %2;\n\t" "CC = AC0;\n\t" "%1 = CC;\n\t" "%0 = %0 + %1;\n\t" "%0 = %0 + %3;\n\t" "CC = AC0;\n\t" "%1 = CC;\n\t" "%0 = %0 + %1;\n\t" "%0 = %0 + %4;\n\t" "CC = AC0;\n\t" "%1 = CC;\n\t" "%0 = %0 + %1;\n\t" : "=d" (sum), "=&d" (carry) : "d" (daddr), "d" (saddr), "d" ((len + proto) << 8), "0"(sum) : "CC"); return (sum); }

Contributors

PersonTokensPropCommitsCommitProp
Bryan Wu2062.50%120.00%
Michael Hennerich515.62%120.00%
Al Viro412.50%120.00%
Alexander Duyck26.25%120.00%
Mike Frysinger13.12%120.00%
Total32100.00%5100.00%

#define csum_tcpudp_nofold __csum_tcpudp_nofold #include <asm-generic/checksum.h> #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Bryan Wu3061.22%116.67%
Mike Frysinger714.29%116.67%
Michael Hennerich510.20%116.67%
Al Viro48.16%116.67%
Alexander Duyck24.08%116.67%
Robin Getz12.04%116.67%
Total49100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.