/* * This header provides constants for Tegra pinctrl bindings. * * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. * * Author: Laxman Dewangan * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. */ #ifndef _DT_BINDINGS_PINCTRL_TEGRA_H #define _DT_BINDINGS_PINCTRL_TEGRA_H /* * Enable/disable for diffeent dt properties. This is applicable for * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain, * nvidia,lock, nvidia,rcv-sel, nvidia,high-speed-mode, nvidia,schmitt. */ #define TEGRA_PIN_DISABLE 0 #define TEGRA_PIN_ENABLE 1 #define TEGRA_PIN_PULL_NONE 0 #define TEGRA_PIN_PULL_DOWN 1 #define TEGRA_PIN_PULL_UP 2 /* Low power mode driver */ #define TEGRA_PIN_LP_DRIVE_DIV_8 0 #define TEGRA_PIN_LP_DRIVE_DIV_4 1 #define TEGRA_PIN_LP_DRIVE_DIV_2 2 #define TEGRA_PIN_LP_DRIVE_DIV_1 3 /* Rising/Falling slew rate */ #define TEGRA_PIN_SLEW_RATE_FASTEST 0 #define TEGRA_PIN_SLEW_RATE_FAST 1 #define TEGRA_PIN_SLEW_RATE_SLOW 2 #define TEGRA_PIN_SLEW_RATE_SLOWEST 3 #endif i/linux/net-next.git/'>summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-02-02 08:04:56 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-03 11:19:34 -0500
commit3541f9e8bdebce02458882b66b638d7302c1f616 (patch)
tree1049ef01f68f197e66fa77f18768aaf6d219f8b1 /include
parentff3edc9b8efc8200c25f3a5adfb1c1de0a882dc5 (diff)
tcp: add tcp_mss_clamp() helper
Small cleanup factorizing code doing the TCP_MAXSEG clamping. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/tcp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h