| /freebsd/crypto/openssl/crypto/bn/asm/ |
| H A D | sparcv8.S | 6 * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. 18 * a drop-in SuperSPARC ISA replacement for crypto/bn/bn_asm.c 27 * 1.1 - new loop unrolling model(*); 28 * 1.2 - made gas friendly; 29 * 1.3 - fixed problem with /usr/ccs/lib/cpp; 30 * 1.4 - some retunes; 42 * BN_ULONG bn_mul_add_words(rp,ap,num,w) 43 * BN_ULONG *rp,*ap; 55 andcc %o2,-4,%g0 63 rd %y,%g1 [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/media/ |
| H A D | video-interface-devices.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/video-interface-devices.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacopo Mondi <jacopo@jmondi.org> 11 - Sakari Ailus <sakari.ailus@linux.intel.com> 14 flash-leds: 15 $ref: /schemas/types.yaml#/definitions/phandle-array 17 An array of phandles, each referring to a flash LED, a sub-node of the LED 20 lens-focus: [all …]
|
| /freebsd/usr.sbin/traceroute/ |
| H A D | findsaddr-socket.c | 60 #include "os-proto.h" 64 #define SALEN(sa) ((sa)->sa_len) 67 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ argument 89 register struct rt_msghdr *rp; in findsaddr() local 107 rp = &rtmsg.rtmsg; in findsaddr() 108 rp->rtm_seq = ++seq; in findsaddr() 109 cp = (u_char *)(rp + 1); in findsaddr() 115 size = cp - (u_char *)rp; in findsaddr() 116 rp->rtm_msglen = size; in findsaddr() 118 cc = write(s, (char *)rp, size); in findsaddr() [all …]
|
| /freebsd/contrib/bearssl/src/codec/ |
| H A D | pemdec.c | 8 uint32_t *rp; member 19 unsigned y; in t0_parse7E_unsigned() local 21 y = *(*p) ++; in t0_parse7E_unsigned() 22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned() 23 if (y < 0x80) { in t0_parse7E_unsigned() 36 x = (uint32_t)-neg; in t0_parse7E_signed() 38 unsigned y; in t0_parse7E_signed() local 40 y = *(*p) ++; in t0_parse7E_signed() 41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed() 42 if (y < 0x80) { in t0_parse7E_signed() [all …]
|
| /freebsd/stand/common/ |
| H A D | gfx_fb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 37 * ALL pixel data is assumed to be 32-bit BGRA (byte order Blue, Green, Red, 43 * 32-bit to/from 32-bit is trivial case. 44 * 32-bit to/from 24-bit is also simple - we just drop the alpha channel. 45 * 32-bit to/from 16-bit is more complicated, because we nee to handle 46 * data loss from 32-bit to 16-bit. While reading/writing from/to video, we 47 * need to apply masks of 16-bit color components. This will preserve 48 * colors for terminal text. For 32-bit truecolor PMG images, we need to 49 * translate 32-bit colors to 15/16 bit colors and this means data loss. [all …]
|
| /freebsd/contrib/bearssl/src/x509/ |
| H A D | skey_decoder.c | 8 uint32_t *rp; member 19 unsigned y; in t0_parse7E_unsigned() local 21 y = *(*p) ++; in t0_parse7E_unsigned() 22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned() 23 if (y < 0x80) { in t0_parse7E_unsigned() 36 x = (uint32_t)-neg; in t0_parse7E_signed() 38 unsigned y; in t0_parse7E_signed() local 40 y = *(*p) ++; in t0_parse7E_signed() 41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed() 42 if (y < 0x80) { in t0_parse7E_signed() [all …]
|
| H A D | x509_decoder.c | 8 uint32_t *rp; member 19 unsigned y; in t0_parse7E_unsigned() local 21 y = *(*p) ++; in t0_parse7E_unsigned() 22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned() 23 if (y < 0x80) { in t0_parse7E_unsigned() 36 x = (uint32_t)-neg; in t0_parse7E_signed() 38 unsigned y; in t0_parse7E_signed() local 40 y = *(*p) ++; in t0_parse7E_signed() 41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed() 42 if (y < 0x80) { in t0_parse7E_signed() [all …]
|
| H A D | x509_minimal.c | 8 uint32_t *rp; member 19 unsigned y; in t0_parse7E_unsigned() local 21 y = *(*p) ++; in t0_parse7E_unsigned() 22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned() 23 if (y < 0x80) { in t0_parse7E_unsigned() 36 x = (uint32_t)-neg; in t0_parse7E_signed() 38 unsigned y; in t0_parse7E_signed() local 40 y = *(*p) ++; in t0_parse7E_signed() 41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed() 42 if (y < 0x80) { in t0_parse7E_signed() [all …]
|
| /freebsd/lib/msun/src/ |
| H A D | math_private.h | 25 * ix1 = *((1-n0)+(int*)&x); * low word of x * 27 * value. That is non-ANSI, and, moreover, the gcc instruction 136 /* Get a 64-bit int from a double. */ 172 /* Set a double from a 64-bit int. */ 310 /* The above works on non-i386 too, but we use this to check v. */ 316 * Attempt to get strict C99 semantics for assignment with non-C99 compilers. 378 __s = __w - (a); \ 379 (b) = ((a) - (__w - __s)) + ((b) - __s); \ 386 * "Normalize" the terms in the infinite-precision expression a + b for 399 * algorithm would be destroyed by non-null strict assignments. (The [all …]
|
| H A D | e_sqrt.c | 27 * ------------------------------------------ 29 * ------------------------------------------ 33 * Scale x to y in [1,4) with even powers of 2: 34 * find an integer k such that 1 <= (y=x*2^(2k)) < 4, then 35 * sqrt(x) = 2^k * sqrt(y) 37 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 40 * s = 2*q , and y = 2 * ( y - q ). (1) 46 * -(i+1) 2 47 * (q + 2 ) <= y. (2) 49 * -(i+1) [all …]
|
| /freebsd/contrib/tzcode/ |
| H A D | zic.c | 5 ** 2006-07-17 by Arthur David Olson. 30 ZIC32_MIN = -1 - (zic_t) 0x7fffffff, 38 /* Minimum and maximum years, assuming signed 32-bit time_t. */ 73 /* The minimum alignment of a type, for pre-C23 platforms. 160 return -1; in readlink() 166 return -1; in symlink() 171 (errno = ENOTSUP, -1) 198 static zic_t rpytime(const struct rule * rp, zic_t wantedy); 199 static bool rulesub(struct rule * rp, 208 enum { PERCENT_Z_LEN_BOUND = sizeof "+995959" - 1 }; [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | sk-usbhid.c | 1 /* $OpenBSD: sk-usbhid.c,v 1.47 2024/12/03 08:31:49 djm Exp $ */ 37 * Almost every use of OpenSSL in this file is for ECDSA-NISTP256. 62 #define fido_cred_set_prot(x, y) (FIDO_ERR_UNSUPPORTED_OPTION) argument 71 #define fido_dev_get_touch_status(x, y, z) (FIDO_ERR_UNSUPPORTED_OPTION) argument 87 * This must be done before including sk-api.h. 95 #include "sk-api.h" 186 if ((sk->path = strdup(path)) == NULL) { in sk_open() 191 if ((sk->dev = fido_dev_new()) == NULL) { in sk_open() 193 free(sk->path); in sk_open() 197 if ((r = fido_dev_open(sk->dev, sk->path)) != FIDO_OK) { in sk_open() [all …]
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | ec.h | 2 * Copyright 2002-2023 The OpenSSL Project Authors. All Rights Reserved. 77 * for the encoding of a elliptic curve point (x,y) */ 80 * which solution of the quadratic equation y is */ 82 /** the point is encoded as z||x||y, where z is the octet 0x04 */ 84 /** the point is encoded as z||x||y, where the octet z specifies 85 * which solution of the quadratic equation y is */ 137 /** Returns 64-bit optimized methods for nistp224 142 /** Returns 64-bit optimized methods for nistp256 147 /** Returns 64-bit optimized methods for nistp521 217 * \param cofactor the index of the sub-group generated by the generator [all …]
|
| /freebsd/contrib/sendmail/src/ |
| H A D | parseaddr.c | 2 * Copyright (c) 1998-2006 Proofpoint, Inc. and its suppliers. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 16 SM_RCSID("@(#)$Id: parseaddr.c,v 8.407 2013-11-22 20:51:56 ca Exp $") 32 ** PARSEADDR -- Parse an address 43 ** of 'berkeley' -- to be transmitted over the arpanet. 46 ** addr -- the address to parse. [i] 47 ** a -- a pointer to the address descriptor buffer. 49 ** flags -- describe detail for parsing. See RF_ definitions 51 ** delim -- the character to terminate the address, passed 53 ** delimptr -- if non-NULL, set to the location of the [all …]
|
| /freebsd/usr.sbin/ppp/ |
| H A D | route.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 5 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 97 (int)phost->sa_family, (int)phost->sa_len); in p_sockaddr() 98 inet_ntop(phost->sa_family, phost->sa_data, tmp, sizeof tmp); in p_sockaddr() 101 inet_ntop(pmask->sa_family, pmask->sa_data, tmp, sizeof tmp); in p_sockaddr() 106 switch (phost->sa_family) { in p_sockaddr() 113 prompt_Printf(prompt, "%-*s ", width - 1, "default"); in p_sockaddr() 115 prompt_Printf(prompt, "%-*s ", width - 1, ncprange_ntoa(&range)); in p_sockaddr() [all …]
|
| /freebsd/contrib/bearssl/T0/ |
| H A D | T0Comp.cs | 38 * Command-line entry point. 52 if (!a.StartsWith("-")) { in Main() 56 if (a == "--") { in Main() 65 while (a.StartsWith("-")) { in Main() 151 .GetManifestResourceStream("t0-kernel"))) in Main() 175 " -o file use 'file' as base for output file name (default: 't0out')"); in Usage() 177 " -r name use 'name' as base for run function (default: same as output)"); in Usage() 179 " -m name[,name...]"); in Usage() 183 " -nf disable flow analysis"); in Usage() 192 * If 'delayedChar' equals y < 0 then there are two delayed [all …]
|
| /freebsd/stand/i386/libi386/ |
| H A D | vbe.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 59 * palette array for 8-bit indexed colors. In this case, cmap does store 108 if (strcasecmp(res->name, cmp) == 0) in vbe_resolution_compare() 110 if (res->alias != NULL && strcasecmp(res->alias, cmp) == 0) in vbe_resolution_compare() 132 *width = res->width; in vbe_get_max_resolution() 133 *height = res->height; in vbe_get_max_resolution() 243 return ((vbe->Capabilities & VBE_CAP_NONVGA) == 0); in vbe_is_vga() 252 if (vbe->Capabilities & VBE_CAP_DAC8) { in bios_set_text_mode() 257 * 6 bits, but apparently some systems do fail with 8-bit in bios_set_text_mode() [all …]
|
| /freebsd/contrib/libfido2/src/ |
| H A D | cred.c | 2 * Copyright (c) 2018-2022 Yubico AB. All rights reserved. 3 * Use of this source code is governed by a BSD-style 5 * SPDX-License-Identifier: BSD-2-Clause 31 return (cbor_decode_fmt(val, &cred->fmt)); in parse_makecred_reply() 33 if (fido_blob_decode(val, &cred->authdata_raw) < 0) { in parse_makecred_reply() 35 return (-1); in parse_makecred_reply() 37 return (cbor_decode_cred_authdata(val, cred->type, in parse_makecred_reply() 38 &cred->authdata_cbor, &cred->authdata, &cred->attcred, in parse_makecred_reply() 39 &cred->authdata_ext)); in parse_makecred_reply() 41 return (cbor_decode_attstmt(val, &cred->attstmt)); in parse_makecred_reply() [all …]
|
| /freebsd/crypto/openssl/crypto/ec/ |
| H A D | ec_local.h | 2 * Copyright 2001-2024 The OpenSSL Project Authors. All Rights Reserved. 74 /*- 84 const BIGNUM *x, const BIGNUM *y, 87 BIGNUM *x, BIGNUM *y, BN_CTX *); 118 /*- 124 * + points[num-1] * scalars[num-1]. 132 * may treat it as an unusual input, without any constant-timeness 152 /*- 180 BIGNUM **rp); 203 * Types and functions to manipulate pre-computed values. [all …]
|
| /freebsd/contrib/nvi/vi/ |
| H A D | vs_smap.c | 1 /*- 35 * vs_change -- 74 if (lno > TMAP->lno) in vs_change() 82 if (lno < HMAP->lno) { in vs_change() 88 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p) in vs_change() 89 --p->lno; in vs_change() 90 if (sp->lno >= lno) in vs_change() 91 --sp->lno; in vs_change() 95 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p) in vs_change() 96 ++p->lno; in vs_change() [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | gnop8.sh | 4 # SPDX-License-Identifier: BSD-2-Clause 33 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 38 [ -f $exp ] && { echo "Using $exp"; fsck=$exp; } 39 mdconfig -a -t swap -s 5g -u $mdstart || exit 1 41 newfs -j /dev/$md || exit 1 43 while [ $((`date +%s` - start)) -lt 120 ]; do 48 cp -rp /[a-l]* /[n-z]* /mnt & 52 gnop destroy -f /dev/$md.nop 60 $fsck -d -y /dev/$md 64 $fsck -d -y /dev/$md [all …]
|
| /freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_parser.c | 35 * parsing grammar dt_grammar.y, and this file, dt_parser.c, which handles 44 * during the parsing phase are performed by dt_node_free(), which frees node- 61 * in the case of a comma-separated list of probe descriptions). As such, the 82 * - associative arrays that do not yet have a value type defined 83 * - translated data (i.e. the result of the xlate operator) 84 * - aggregations 123 char yyintprefix; /* int token macro prefix (+/-) */ 135 case DT_TOK_SUB_EQ: return ("-="); in opstr() 161 case DT_TOK_SUB: return ("-"); in opstr() 170 case DT_TOK_SUBSUB: return ("--"); in opstr() [all …]
|
| /freebsd/sys/dev/sound/pcm/ |
| H A D | feeder_mixer.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2009 Ariff Abdullah <ariff@FreeBSD.org> 6 * Copyright (c) 2024-2025 The FreeBSD Foundation 59 intpcm_t x, y; in feed_mixer_apply() local 65 src -= AFMT_BPS(fmt); in feed_mixer_apply() 66 dst -= AFMT_BPS(fmt); in feed_mixer_apply() 67 count -= AFMT_BPS(fmt); in feed_mixer_apply() 69 y = pcm_sample_read_calc(dst, fmt); in feed_mixer_apply() 70 z = INTPCM_T(x) + y; in feed_mixer_apply() [all …]
|
| /freebsd/contrib/bearssl/src/ssl/ |
| H A D | ssl_hs_server.c | 8 uint32_t *rp; member 19 unsigned y; in t0_parse7E_unsigned() local 21 y = *(*p) ++; in t0_parse7E_unsigned() 22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned() 23 if (y < 0x80) { in t0_parse7E_unsigned() 36 x = (uint32_t)-neg; in t0_parse7E_signed() 38 unsigned y; in t0_parse7E_signed() local 40 y = *(*p) ++; in t0_parse7E_signed() 41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed() 42 if (y < 0x80) { in t0_parse7E_signed() [all …]
|
| H A D | ssl_hs_client.c | 8 uint32_t *rp; member 19 unsigned y; in t0_parse7E_unsigned() local 21 y = *(*p) ++; in t0_parse7E_unsigned() 22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned() 23 if (y < 0x80) { in t0_parse7E_unsigned() 36 x = (uint32_t)-neg; in t0_parse7E_signed() 38 unsigned y; in t0_parse7E_signed() local 40 y = *(*p) ++; in t0_parse7E_signed() 41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed() 42 if (y < 0x80) { in t0_parse7E_signed() [all …]
|