Home
last modified time | relevance | path

Searched +full:static +full:- +full:beta (Results 1 – 25 of 59) sorted by relevance

123

/linux/net/ipv4/
H A Dtcp_htcp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * H-TCP congestion control. The algorithm is detailed in:
5 * "H-TCP: TCP for high-speed and long-distance networks"
18 static int use_rtt_scaling __read_mostly = 1;
22 static int use_bandwidth_switch __read_mostly = 1;
28 u8 beta; /* Fixed point arith, << 7 */ member
49 static inline u32 htcp_cong_time(const struct htcp *ca) in htcp_cong_time()
51 return jiffies - ca->last_cong; in htcp_cong_time()
54 static inline u32 htcp_ccount(const struct htcp *ca) in htcp_ccount()
56 return htcp_cong_time(ca) / ca->minRTT; in htcp_ccount()
[all …]
H A Dtcp_illinois.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * "TCP-Illinois: A Loss and Delay-Based Congestion Control Algorithm
9 * for High-Speed Networks"
12 * Implemented from description in paper and ns-2 simulation.
13 * Copyright (C) 2007 Stephen Hemminger <shemminger@linux-foundation.org>
35 static int win_thresh __read_mostly = 15;
39 static int theta __read_mostly = 5;
51 u32 beta; /* Muliplicative decrease */ member
57 static void rtt_reset(struct sock *sk) in rtt_reset()
62 ca->end_seq = tp->snd_nxt; in rtt_reset()
[all …]
H A Dtcp_bic.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Lison-Xu, Kahaled Harfoush, and Injong Rhee.
21 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation
22 * max_cwnd = snd_cwnd * beta
29 static int fast_convergence = 1;
30 static int max_increment = 16;
31 static int low_window = 14;
32 static int beta = 819; /* = 819/1024 (BICTCP_BETA_SCALE) */ variable
33 static int initial_ssthresh;
34 static int smooth_part = 20;
[all …]
H A Dtcp_cubic.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * "CUBIC: A New TCP-Friendly High-Speed TCP Variant"
34 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation
35 * max_cwnd = snd_cwnd * beta
49 static int fast_convergence __read_mostly = 1;
50 static int beta __read_mostly = 717; /* = 717/1024 (BICTCP_BETA_SCALE) */
51 static int initial_ssthresh __read_mostly;
52 static int bic_scale __read_mostly = 41;
53 static int tcp_friendliness __read_mostly = 1;
55 static int hystart __read_mostly = 1;
[all …]
H A Dtcp_vegas.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * IEEE Journal on Selected Areas in Communication, 13(8):1465--1480,
17 * using fine-grained timers, NewReno, and FACK.
19 * only every-other RTT during slow start, we increase during
29 * o When the sender re-starts from idle, it waits until it has
44 static int alpha = 2;
45 static int beta = 4; variable
46 static int gamma = 1;
50 module_param(beta, int, 0644);
51 MODULE_PARM_DESC(beta, "upper bound of packets in network");
[all …]
H A Dtcp_veno.c1 // SPDX-License-Identifier: GPL-2.0-only
20 /* Default values of the Veno variables, in fixed-point representation
24 static const int beta = 3 << V_PARAM_SHIFT; variable
36 /* There are several situations when we must "re-start" Veno:
45 static inline void veno_enable(struct sock *sk) in veno_enable()
50 veno->doing_veno_now = 1; in veno_enable()
52 veno->minrtt = 0x7fffffff; in veno_enable()
55 static inline void veno_disable(struct sock *sk) in veno_disable()
60 veno->doing_veno_now = 0; in veno_disable()
63 static void tcp_veno_init(struct sock *sk) in tcp_veno_init()
[all …]
/linux/net/sched/
H A Dsch_pie.c1 // SPDX-License-Identifier: GPL-2.0-only
37 u64 local_prob = vars->prob; in pie_drop_early()
41 if (vars->burst_time > 0) in pie_drop_early()
47 if ((vars->qdelay < params->target / 2) && in pie_drop_early()
48 (vars->prob < MAX_PROB / 5)) in pie_drop_early()
51 /* If we have fewer than 2 mtu-sized packets, disable pie_drop_early, in pie_drop_early()
60 if (params->bytemode && packet_size <= mtu) in pie_drop_early()
63 local_prob = vars->prob; in pie_drop_early()
66 vars->accu_prob = 0; in pie_drop_early()
68 vars->accu_prob += local_prob; in pie_drop_early()
[all …]
H A Dsch_fq_pie.c1 // SPDX-License-Identifier: GPL-2.0-only
22 * - Packets are classified on flows.
23 * - This is a Stochastic model (as we use a hash, several flows might
25 * - Each flow has a PIE managed queue.
26 * - Flows are linked onto two (Round Robin) lists,
28 * - For a given flow, packets are not reordered.
29 * - Drops during enqueue only.
30 * - ECN capability is off by default.
31 * - ECN threshold (if ECN is enabled) is at 10% by default.
32 * - Uses timestamps to calculate queue delay by default.
[all …]
/linux/include/net/
H A Dpie.h1 /* SPDX-License-Identifier: GPL-2.0-only */
14 #define DQCOUNT_INVALID -1
18 * struct pie_params - contains pie parameters
23 * @beta: parameter to control drop probability
33 u32 beta; member
40 * struct pie_vars - contains pie variables
64 * struct pie_stats - contains pie stats
80 * struct pie_skb_cb - contains private skb vars
89 static inline void pie_params_init(struct pie_params *params) in pie_params_init()
91 params->target = PSCHED_NS2TICKS(15 * NSEC_PER_MSEC); /* 15 ms */ in pie_params_init()
[all …]
H A Dred.h1 /* SPDX-License-Identifier: GPL-2.0 */
22 ------------------
26 avg = (1-W)*avg + W*current_queue_len,
28 W is the filter time constant (chosen as 2^(-Wlog)), it controls
32 if (avg > th_max) -> packet marked (dropped).
33 if (avg < th_min) -> packet passes.
36 Pb = max_P * (avg - th_min)/(th_max-th_min)
42 max_P is chosen as a number, so that max_P/(th_max-th_min)
48 -----------------------------
50 qth_min - bytes (should be < qth_max/2)
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent
14 * "ca->ack_cnt / delta" operation.
25 static bool before(__u32 seq1, __u32 seq2) in before()
27 return (__s32)(seq1-seq2) < 0; in before()
34 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation
35 * max_cwnd = snd_cwnd * beta
49 static int fast_convergence = 1;
50 static const int beta = 717; /* = 717/1024 (BICTCP_BETA_SCALE) */ variable
51 static int initial_ssthresh;
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Dazoteq,iqs7222.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jeff LaBundy <jeff@labundy.com>
21 - azoteq,iqs7222a
22 - azoteq,iqs7222b
23 - azoteq,iqs7222c
24 - azoteq,iqs7222d
29 irq-gpios:
32 Specifies the GPIO connected to the device's active-low RDY output.
[all …]
/linux/drivers/scsi/
H A Dqla1280.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (C) 2001-2004 Jes Sorensen, Wild Open Source Inc.
8 * Copyright (C) 2003-2004 Christoph Hellwig
15 - Retain firmware image for error recovery.
17 - General code cleanup.
18 - Improve error recovery.
20 - Ditch all < 2.6 support
22 - use pci_map_single to map non-S/G requests
23 - remove qla1280_proc_info
25 - add support for ISP1020/1040
[all …]
H A Dimm.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 * 10 Apr 1998 (Good Friday) - Received EN144302 by email from Iomega.
22 * --- SNIP ---
33 * ----- It actually works!!! -----
47 * Driver is now out of beta testing.
52 * Err.. It appears that imm-2.00 was broken....
68 /* ------ END OF USER CONFIGURABLE PARAMETERS ----- */
83 /* batteries not included :-) */
96 static char *IMM_MODE_STRING[] =
138 static inline struct scsi_pointer *imm_scsi_pointer(struct scsi_cmnd *cmd) in imm_scsi_pointer()
[all …]
/linux/drivers/misc/echo/
H A Decho.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * SpanDSP - a series of DSP components for telephony
5 * echo.c - A line echo canceller. This code is being developed
30 especially for double talk - there were always cases where my DTD
50 on 4 real-world samples.
54 on the real-world samples. I have no idea why, perhaps a scaling
59 dot product) compared to the current sample-by-sample update.
66 Path Models", IEEE Transactions on communications, COM-25,
87 Thanks to Steve Underwood, Jean-Marc Valin, and Ramakrishnan
102 #define DC_LOG2BETA 3 /* log2() of DC filter Beta */
[all …]
/linux/drivers/input/misc/
H A Diqs7222.c1 // SPDX-License-Identifier: GPL-2.0-or-later
115 static const char * const iqs7222_reg_grp_names[IQS7222_NUM_REG_GRPS] = {
116 [IQS7222_REG_GRP_CYCLE] = "cycle-%d",
117 [IQS7222_REG_GRP_CHAN] = "channel-%d",
118 [IQS7222_REG_GRP_SLDR] = "slider-%d",
120 [IQS7222_REG_GRP_GPIO] = "gpio-%d",
123 static const unsigned int iqs7222_max_cols[IQS7222_NUM_REG_GRPS] = {
136 static const unsigned int iqs7222_gpio_links[] = { 2, 5, 6, };
148 static const struct iqs7222_event_desc iqs7222_kp_events[] = {
150 .name = "event-prox",
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dar9003_paprd.c2 * Copyright (c) 2010-2011 Atheros Communications Inc.
23 struct ath9k_channel *chan = ah->curchan; in ar9003_paprd_enable()
28 * is used for sub-band disabling of PAPRD. in ar9003_paprd_enable()
29 * 5G band is divided into 3 sub-bands -- upper, in ar9003_paprd_enable()
32 * -- disable PAPRD for upper band 5GHz in ar9003_paprd_enable()
34 * -- disable PAPRD for middle band 5GHz in ar9003_paprd_enable()
36 * -- disable PAPRD for lower band 5GHz in ar9003_paprd_enable()
40 if (chan->channel >= UPPER_5G_SUB_BAND_START) { in ar9003_paprd_enable()
44 } else if (chan->channel >= MID_5G_SUB_BAND_START) { in ar9003_paprd_enable()
56 ah->paprd_table_write_done = true; in ar9003_paprd_enable()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dctxgf117.c33 static const struct gf100_gr_init
46 static const struct gf100_gr_init
59 static const struct gf100_gr_pack
73 static const struct gf100_gr_init
86 static const struct gf100_gr_pack
112 static const struct gf100_gr_init
126 static const struct gf100_gr_init
137 static const struct gf100_gr_pack
147 static const struct gf100_gr_init
153 static const struct gf100_gr_init
[all …]
/linux/drivers/media/dvb-frontends/
H A Dstb0899_algo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 static inline u32 stb0899_do_div(u64 n, u32 d) in stb0899_do_div()
29 static u32 stb0899_calc_srate(u32 master_clk, u8 *sfr)
48 static u32 stb0899_get_srate(struct stb0899_state *state)
50 struct stb0899_internal *internal = &state->internal;
55 return stb0899_calc_srate(internal->master_clk, sfr);
66 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) in stb0899_set_srate()
71 dprintk(state->verbose, FE_DEBUG, 1, "-->"); in stb0899_set_srate()
107 static long stb0899_calc_derot_time(long srate) in stb0899_calc_derot_time()
122 struct stb0899_internal *internal = &state->internal; in stb0899_carr_width()
[all …]
/linux/drivers/hwmon/
H A Dtmp401.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Copyright (c) 2013 Guenter Roeck <linux@roeck-us.net>
32 static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4c, 0x4d,
50 static const u8 TMP401_TEMP_MSB[7][3] = {
60 static const u8 TMP432_STATUS_REG[] = {
93 static const struct i2c_device_id tmp401_id[] = {
126 static bool tmp401_regmap_is_volatile(struct device *dev, unsigned int reg) in tmp401_regmap_is_volatile()
143 static int tmp401_reg_read(void *context, unsigned int reg, unsigned int *val) in tmp401_reg_read()
146 struct i2c_client *client = data->client; in tmp401_reg_read()
171 case 0x19: /* critical limits, 8-bit registers */ in tmp401_reg_read()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_av1_req_lat_if.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <media/videobuf2-dma-contig.h>
22 #define AV1_REF_INVALID_SCALE -1
26 #define AV1_INVALID_IDX -1
39 (((_value_) < 0) ? -AV1_DIV_ROUND_UP_POW2(-(_value_), (_n_)) \
43 #define BIT_FLAG(x, bit) (!!((x)->flags & (bit)))
44 #define SEGMENTATION_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEGMENTATION_FLAG_##name))
45 #define QUANT_FLAG(x, name) (!!((x)->flags & V4L2_AV1_QUANTIZATION_FLAG_##name))
46 #define SEQUENCE_FLAG(x, name) (!!((x)->flags & V4L2_AV1_SEQUENCE_FLAG_##name))
47 #define FH_FLAG(x, name) (!!((x)->flags & V4L2_AV1_FRAME_FLAG_##name))
[all …]
/linux/net/rxrpc/
H A Drtt.c1 // SPDX-License-Identifier: GPL-2.0
7 * https://tools.ietf.org/html/rfc1122#section-4.2.3.1
8 * http://ccr.sigcomm.org/archive/1995/jan95/ccr-9501-partridge87.pdf
12 #include "ar-internal.h"
18 static u32 rxrpc_rto_min_us(struct rxrpc_peer *peer) in rxrpc_rto_min_us()
23 static u32 __rxrpc_set_rto(const struct rxrpc_peer *peer) in __rxrpc_set_rto()
25 return (peer->srtt_us >> 3) + peer->rttvar_us; in __rxrpc_set_rto()
28 static u32 rxrpc_bound_rto(u32 rto) in rxrpc_bound_rto()
41 * it up into three procedures. -- erics
43 static void rxrpc_rtt_estimator(struct rxrpc_peer *peer, long sample_rtt_us) in rxrpc_rtt_estimator()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Drockchip_vpu981_hw_av1_dec.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <media/v4l2-mem2mem.h>
21 #define AV1_INVALID_IDX -1
38 #define RS_SUBPEL_MASK ((1 << RS_SUBPEL_BITS) - 1)
40 #define RS_SCALE_SUBPEL_MASK ((1 << RS_SCALE_SUBPEL_BITS) - 1)
41 #define RS_SCALE_EXTRA_BITS (RS_SCALE_SUBPEL_BITS - RS_SUBPEL_BITS)
42 #define RS_SCALE_EXTRA_OFF (1 << (RS_SCALE_EXTRA_BITS - 1))
46 #define LST_BUF_IDX (V4L2_AV1_REF_LAST_FRAME - V4L2_AV1_REF_LAST_FRAME)
47 #define LST2_BUF_IDX (V4L2_AV1_REF_LAST2_FRAME - V4L2_AV1_REF_LAST_FRAME)
48 #define LST3_BUF_IDX (V4L2_AV1_REF_LAST3_FRAME - V4L2_AV1_REF_LAST_FRAME)
[all …]
/linux/drivers/i2c/busses/
H A Di2c-sis96x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 This module must be considered BETA unless and until
62 static struct pci_driver sis96x_driver;
63 static struct i2c_adapter sis96x_adapter;
64 static u16 sis96x_smbus_base;
66 static inline u8 sis96x_read(u8 reg) in sis96x_read()
71 static inline void sis96x_write(u8 reg, u8 data) in sis96x_write()
79 static int sis96x_transaction(int size) in sis96x_transaction()
99 return -EBUSY; in sis96x_transaction()
124 result = -ETIMEDOUT; in sis96x_transaction()
[all …]
/linux/drivers/power/supply/
H A Dsmb347-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <dt-bindings/power/summit,smb347-charger.h>
26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1
29 #define SMB3XX_TEMP_USE_DEFAULT -273
34 * reloaded from non-volatile registers after POR.
136 * struct smb347_charger - smb347 charger instance
149 * @pre_charge_current: current (in uA) to use in pre-charging phase
153 * pre-charge to fast charge mode
158 * current [%100 - %130] (in degree C)
159 * @soft_cold_temp_limit: soft cold temperature limit [%0 - %15] (in degree C),
[all …]

123