/freebsd/sys/netinet/cc/ |
H A D | cc_htcp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2007-2008 6 * Copyright (c) 2009-2010 Lawrence Stewart <lstewart@freebsd.org> 42 * An implementation of the H-TCP congestion control algorithm for FreeBSD, 43 * based on the Internet Draft "draft-leith-tcp-htcp-06.txt" by Leith and 96 * i.e. 1 + 10(delta - delta_l) + ((delta - delta_l) / 2) ^ 2 98 * "diff" is passed in to the macro as "delta - delta_l" and is expected to be 115 * up-shifting all the terms in the function and performing the required 116 * calculations, we down-shift the final result by HTCP_ALPHA_INC_SHIFT to [all …]
|
H A D | cc_newreno.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2007-2008,2010,2014 8 * Copyright (c) 2009-2010 Lawrence Stewart <lstewart@freebsd.org> 53 * Borrowed code fragments from cc_cdg.c to add modifiable beta 86 static void newreno_cb_destroy(struct cc_var *ccv); 87 static void newreno_ack_received(struct cc_var *ccv, ccsignal_t type); 88 static void newreno_after_idle(struct cc_var *ccv); 89 static void newreno_cong_signal(struct cc_var *ccv, ccsignal_t type); 90 static int newreno_ctl_output(struct cc_var *ccv, struct sockopt *sopt, void *buf); [all …]
|
H A D | cc_vegas.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2009-2010 7 * Copyright (c) 2010-2011 The FreeBSD Foundation 45 * pp. 1465-1480, Oct. 1995. The original Vegas duplicate ack policy has not 85 * See <netinet/cc.h> for appropriate bit-range to use for private signals. 89 static void vegas_ack_received(struct cc_var *ccv, ccsignal_t ack_type); 90 static void vegas_cb_destroy(struct cc_var *ccv); 91 static int vegas_cb_init(struct cc_var *ccv, void *ptr); 92 static void vegas_cong_signal(struct cc_var *ccv, ccsignal_t signal_type); [all …]
|
H A D | cc_cubic.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org> 61 /* (2 << CUBIC_SHIFT) - ONE_SUB_CUBIC_BETA. */ 75 * and taking cube-root yields 448845 as the effective useful limit 97 /* An estimate for the congestion window in the Reno-friendly region */ 144 * "draft-ietf-tcpm-cubic-04". 148 static __inline float 158 static __inline unsigned long 167 (C * pow(ticks_since_epoch / (double)hz - in theoretical_cubic_cwnd() [all …]
|
H A D | cc_cubic.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org> 41 * based on the Internet Draft "draft-rhee-tcpm-cubic-02" by Rhee, Xu and Ha. 76 static void cubic_ack_received(struct cc_var *ccv, ccsignal_t type); 77 static void cubic_cb_destroy(struct cc_var *ccv); 78 static int cubic_cb_init(struct cc_var *ccv, void *ptr); 79 static void cubic_cong_signal(struct cc_var *ccv, ccsignal_t type); 80 static void cubic_conn_init(struct cc_var *ccv); 81 static int cubic_mod_init(void); [all …]
|
H A D | cc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2007-2008 6 * Copyright (c) 2009-2010 Lawrence Stewart <lstewart@freebsd.org> 114 refcount_acquire(&algo->cc_refcount); in cc_refer() 121 refcount_release(&algo->cc_refcount); in cc_release() 152 static int 162 strlcpy(default_cc, CC_DEFAULT_ALGO()->name, sizeof(default_cc)); in cc_default_algo() 170 if (error != 0 || req->newptr == NULL) in cc_default_algo() 177 if (strncmp(default_cc, funcs->name, sizeof(default_cc))) in cc_default_algo() [all …]
|
/freebsd/sys/tools/sound/ |
H A D | feeder_rate_mkfilter.awk | 1 #!/usr/bin/awk -f 3 # SPDX-License-Identifier: BSD-2-Clause 5 # Copyright (c) 2007-2009 Ariff Abdullah <ariff@FreeBSD.org> 46 # - http://ccrma.stanford.edu/~jos/resample/ 54 return (((x < 0) ? -x : x) + 0); 59 return (((x < 0.0) ? -x : x) + 0.0); 74 r--; 90 y--; 99 y--; 121 function kaiserAttn2Beta(attn, beta) [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_aqm_pie.c | 2 * PIE - Proportional Integral controller Enhanced AQM algorithm. 8 * Implemented by Rasool Al-Saadi <ralsaadi@swin.edu.au> 74 static struct dn_aqm pie_desc; 78 * max_ecnth=0.1, alpha=0.125, beta=1.25, 85 static int 91 if (!strcmp(oidp->oid_name,"alpha")) in pie_sysctl_alpha_beta_handler() 94 value = pie_sysctl.beta; in pie_sysctl_alpha_beta_handler() 98 if (error != 0 || req->newptr == NULL) in pie_sysctl_alpha_beta_handler() 103 if (!strcmp(oidp->oid_name,"alpha")) in pie_sysctl_alpha_beta_handler() 106 pie_sysctl.beta = value; in pie_sysctl_alpha_beta_handler() [all …]
|
H A D | dn_sched_fq_pie.c | 2 * FQ_PIE - The FlowQueue-PIE scheduler/AQM 8 * Implemented by Rasool Al-Saadi <ralsaadi@swin.edu.au> 33 * As there is no an office document for FQ-PIE specification, we used 34 * FQ-CoDel algorithm with some modifications to implement FQ-PIE. 35 * This FQ-PIE implementation is a beta version and have not been tested 36 * extensively. Our FQ-PIE uses stand-alone PIE AQM per sub-queue. By 95 /* flow (sub-queue) stats */ 104 /* A flow of packets (sub-queue)*/ 122 * sub-queues and the flows array pointer even after the scheduler instance 142 static struct dn_alg fq_pie_desc; [all …]
|
H A D | dn_aqm_pie.h | 2 * PIE - Proportional Integral controller Enhanced AQM algorithm. 8 * Implemented by Rasool Al-Saadi <ralsaadi@swin.edu.au> 41 /* 31-bits because random() generates range from 0->(2**31)-1 */ 43 #define PIE_MAX_PROB ((1LL<<PIE_PROB_BITS) -1) 45 /* for 16-bits, we have 3-bits for integer part and 13-bits for fraction */ 65 uint16_t beta; /* (default: 1+1/4) */ member 82 /* pointer to parent queue of FQ-PIE sub-queues, or queue of owner fs. */ 104 * This function is used by PIE and FQ-PIE. 106 __inline static int 111 pprms = pst->parms; in drop_early() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/input/ |
H A D | azoteq,iqs7222.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schema [all...] |
/freebsd/sys/netinet/ |
H A D | sctp_cc_functions.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 5 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 6 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 60 static void 63 if ((assoc->max_cwnd > 0) && in sctp_enforce_cwnd_limit() 64 (net->cwnd > assoc->max_cwnd) && in sctp_enforce_cwnd_limit() 65 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { in sctp_enforce_cwnd_limit() 66 net->cwnd = assoc->max_cwnd; in sctp_enforce_cwnd_limit() [all …]
|
H A D | tcp.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 82 static __inline uint16_t 85 return (((uint16_t)th->th_x2 << 8) | th->th_flags); in __tcp_get_flags() 88 static __inline void 91 th->th_x2 = (flags >> 8) & 0x0f; in __tcp_set_flags() 92 th->th_flags = flags & 0xff; in __tcp_set_flags() 140 * For IPv4 the MSS is 576 - sizeof(struct tcpiphdr) 141 * For IPv6 the MSS is IPV6_MMTU - sizeof(struct ip6_hdr) - sizeof(struct tcphdr) 170 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr)) [all …]
|
/freebsd/crypto/openssl/crypto/ec/ |
H A D | ecp_nistp224.c | 2 * Copyright 2010-2021 The OpenSSL Project Authors. All Rights Reserved. 17 * http://www.apache.org/licenses/LICENSE-2.0 33 * A 64-bit implementation of the NIST P-224 elliptic curve point multiplication 36 * and Adam Langley's public domain 64-bit C implementation of curve25519 49 # error "Your compiler doesn't appear to support 128-bit integer types" 56 /*- 60 * using 64-bit coefficients called 'limbs', 63 * using 128-bit coefficients called 'widelimbs'. 64 * A 4-limb representation is an 'felem'; 65 * a 7-widelimb representation is a 'widefelem'. [all …]
|
H A D | ecp_nistp256.c | 2 * Copyright 2011-2021 The OpenSSL Project Authors. All Rights Reserved. 17 * http://www.apache.org/licenses/LICENSE-2.0 33 * A 64-bit implementation of the NIST P-256 elliptic curve point multiplication 50 # error "Your compiler doesn't appear to support 128-bit integer types" 58 * The underlying field. P256 operates over GF(2^256-2^224+2^192+2^96-1). We 66 * These are the parameters of P256, taken from FIPS 186-3, page 86. These 67 * values are big-endian. 69 static const felem_bytearray nistp256_curve_params[5] = { 74 {0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x01, /* a = -3 */ 92 /*- [all …]
|
H A D | ecp_nistp521.c | 2 * Copyright 2011-2021 The OpenSSL Project Authors. All Rights Reserved. 17 * http://www.apache.org/licenses/LICENSE-2.0 33 * A 64-bit implementation of the NIST P-521 elliptic curve point multiplication 49 # error "Your compiler doesn't appear to support 128-bit integer types" 56 * The underlying field. P521 operates over GF(2^521-1). We can serialize an 64 * These are the parameters of P521, taken from FIPS 186-3, section D.1.2.5. 65 * These values are big-endian. 67 static const felem_bytearray nistp521_curve_params[5] = { 77 {0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* a = -3 */ 115 /*- [all …]
|
/freebsd/release/tools/ |
H A D | oci-image-static.conf | 4 # static-linked workloads. This contains mtree directories, SSL certificates and 10 mtree -deU -p $m/ -f /etc/mtree/BSD.root.dist > /dev/null 11 mtree -deU -p $m/var -f /etc/mtree/BSD.var.dist > /dev/null 12 mtree -deU -p $m/usr -f /etc/mtree/BSD.usr.dist > /dev/null 13 mtree -deU -p $m/usr/include -f /etc/mtree/BSD.include.dist > /dev/null 14 mtree -deU -p $m/usr/lib -f /etc/mtree/BSD.debug.dist > /dev/null 15 install_packages ${abi} ${workdir} $m FreeBSD-caroot FreeBSD-zoneinfo 17 pwd_mkdb -p -d $m/etc $m/etc/master.passwd || return $? 24 CURRENT|STABLE|BETA*) 31 mkdir -p $m/usr/local/etc/pkg/repos [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | random | 1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8 //===----------------------------------------------------------------------===// 34 static constexpr result_type multiplier = a; 35 static constexpr result_type increment = c; 36 static constexpr result_type modulus = m; 37 static constexpr result_type min() { return c == 0u ? 1u: 0u;} 38 static constexpr result_type max() { return m - 1u;} 39 static constexpr result_type default_seed = 1u; [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | CMakeLists.txt | 18 # cmake -G "Visual Studio 10" .. 41 # what? why would you get id of other useful build types? - Ellzey 45 "Set library type to SHARED/STATIC/BOTH (default SHARED for MSVC, otherwise BOTH)") 93 # only a subset of names can be used, defaults to "beta" 99 beta 101 alpha-dev 110 if (EVENT__STAGE_RET EQUAL -1) 112 "stage ${EVENT_STAGE_NAME} is not allowed, reset to beta") 113 set(EVENT_STAGE_NAME beta) 117 "${EVENT_VERSION_MAJOR}.${EVENT_VERSION_MINOR}.${EVENT_VERSION_PATCH}-${EVENT_STAGE_NAME}") [all …]
|
/freebsd/contrib/libevent/ |
H A D | CMakeLists.txt | 18 # cmake -G "Visual Studio 10" .. 41 # what? why would you get id of other useful build types? - Ellzey 45 "Set library type to SHARED/STATIC/BOTH (default SHARED for MSVC, otherwise BOTH)") 93 # only a subset of names can be used, defaults to "beta" 99 beta 101 alpha-dev 110 if (EVENT__STAGE_RET EQUAL -1) 112 "stage ${EVENT_STAGE_NAME} is not allowed, reset to beta") 113 set(EVENT_STAGE_NAME beta) 117 "${EVENT_VERSION_MAJOR}.${EVENT_VERSION_MINOR}.${EVENT_VERSION_PATCH}-${EVENT_STAGE_NAME}") [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_paprd.c | 27 static struct ar9300_paprd_pwr_adjust ar9300_paprd_pwr_adj_array[] = { 50 static int 74 ar9300_eeprom_t *eep = &AH9300(ah)->ah_eeprom; in ar9300_paprd_setup_single_table() 76 #define ABS(_x, _y) ((int)_x > (int)_y ? (int)_x - (int)_y : (int)_y - (int)_x) in ar9300_paprd_setup_single_table() 78 ar9300_set_target_power_from_eeprom(ah, ichan->channel, target_power_val_t2); in ar9300_paprd_setup_single_table() 86 * In 5G there are 3 scale factors -- upper, mid and lower band. in ar9300_paprd_setup_single_table() 87 * Upper band scale factor is coded in bits 25-27 of in ar9300_paprd_setup_single_table() 89 * Mid band scale factor is coded in bits 28-30 of in ar9300_paprd_setup_single_table() 91 * Lower band scale factor is coded in bits 25-27 of in ar9300_paprd_setup_single_table() 93 * For 2G there is only one scale factor. It is saved in bits 25-27 of in ar9300_paprd_setup_single_table() [all …]
|
/freebsd/contrib/bearssl/ |
H A D | README.txt | 3 The most up-to-date documentation is supposed to be available on the 8 BearSSL is considered beta-level software. Most planned functionalities 13 utterly crazy move. BearSSL is free, open-source software, provided 22 - You can use and reuse the library as you wish, and modify it, and 26 - The only obligation that the license terms put upon you is that you 37 command-line tools. There is no installer yet. The library _can_ be 50 configuration file (that targets cross-compilation for an Atmel board 51 that features a Cortex-M0+ CPU), type: 59 Some compile-time options can be set through macros, either on the 60 compiler command-line, or in the `src/config.h` file. See the comments [all …]
|
/freebsd/contrib/bc/ |
H A D | NEWS.md | 185 * A crash when attempting to swap characters in command-line history when no 211 The first memory bug could be reproduced by assigning a string to a non-local 213 non-local variable, which would still refer to a string in the previous version 217 built-in function. In certain cases, that was wrongly allowed, and the 221 The first feature was the addition of the `is_number()` built-in function (`u` 224 The second feature was the addition of the `is_string()` built-in function (`t` 227 These features were added because I realized that type-checking is necessary now 231 The last added feature is the ability of the `asciify()` built-in function in 233 character-by-character printing will not be necessary, and more strings than 234 just single-character ones will be able to be created. [all …]
|
/freebsd/contrib/libxo/doc/ |
H A D | conf.py | 2 # -*- coding: utf-8 -*- 5 # sphinx-quickstart on Tue Oct 10 10:18:55 2017. 30 vers_cmd = "grep AC_INIT ../configure.ac | awk '{ print substr($2, 2, length($2) - 3);}'" 31 version = subprocess.check_output(vers_cmd, shell=True).decode("utf-8") 33 # -- General configuration ------------------------------------------------ 58 copyright = '2017-2019, Juniper Networks Inc' 70 # The full version, including alpha/beta/rc tags. 92 # -- Options for HTML output ---------------------------------------------- 99 # Theme options are theme-specific and customize the look and feel of a theme 108 # Add any paths that contain custom static files (such as style sheets) here, [all …]
|
/freebsd/sys/rpc/ |
H A D | clnt_dg.c | 3 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 11 * - Redistributions of source code must retain the above copyright notice, 13 * - Redistributions in binary form must reproduce the above copyright notice, 16 * - Neither the name of Sun Microsystems, Inc. nor the names of its 33 * Copyright (c) 1986-1991 by Sun Microsystems Inc. 62 * Disable RPC exponential back-off for FreeBSD.org systems. 69 static bool_t time_not_ok(struct timeval *); 70 static enum clnt_stat clnt_dg_call(CLIENT *, struct rpc_callextra *, 72 static void clnt_dg_geterr(CLIENT *, struct rpc_err *); [all …]
|