/freebsd/sys/contrib/xz-embedded/linux/lib/xz/ |
H A D | xz_dec_bcj.c | 5 * Igor Pavlov <https://7-zip.org/> 22 BCJ_X86 = 4, /* x86 or x86-64 */ 37 /* True if we are operating in single-call mode. */ 64 * needs to be big enough to hold Alignment + 2 * Look-ahead: 66 * Type Alignment Look-ahead 67 * x86 1 4 68 * PowerPC 4 0 69 * IA-64 16 0 70 * ARM 4 0 71 * ARM-Thumb 2 2 [all …]
|
H A D | xz_dec_stream.c | 42 /* Position in variable-length integers and Check fields */ 45 /* Variable-length integer decoded by dec_vli() */ 141 } temp; member 155 4, 4, 4, 164 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 165 * must have set s->temp.pos to indicate how much data we are supposed 166 * to copy into s->temp.buf. Return true once s->temp.pos has reached 167 * s->temp.size. 172 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 174 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() [all …]
|
/freebsd/sys/dev/usb/controller/ |
H A D | musb_otg.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 * 2.0 High Speed Dual-Role controller. 87 MUSBOTG_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) 167 .ep_end = -1, 177 ep = td->ep_no; in musbotg_channel_alloc() 180 if (sc->sc_mode == MUSB2_DEVICE_MODE) { in musbotg_channel_alloc() 189 if (sc->sc_channel_mask & (1 << 0)) in musbotg_channel_alloc() 190 return (-1); in musbotg_channel_alloc() 191 sc->sc_channel_mask |= (1 << 0); in musbotg_channel_alloc() [all …]
|
H A D | dwc_otg.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2012-2015 Hans Petter Selasky. All rights reserved. 6 * Copyright (c) 2010-2011 Aleksandr Rybalko. All rights reserved. 43 * NOTE: Writing to non-existing registers appears to cause an 95 (USB_DMATAG_TO_XROOT((pc)->tag_parent)->ude 173 uint32_t temp; dwc_otg_write_fifo() local 223 uint32_t temp; dwc_otg_read_fifo() local 276 uint32_t temp; dwc_otg_tx_fifo_reset() local 529 uint32_t temp; dwc_otg_pull_up() local 546 uint32_t temp; dwc_otg_pull_down() local 629 uint32_t temp; dwc_otg_wakeup_peer() local 670 uint32_t temp; dwc_otg_set_address() local 717 uint32_t temp; dwc_otg_host_check_tx_fifo_empty() local 1097 uint32_t temp; dwc_otg_setup_rx() local 1663 uint32_t temp; dwc_otg_data_rx() local 2133 uint32_t temp; dwc_otg_data_tx() local 2318 uint32_t temp; dwc_otg_data_tx_sync() local 2494 uint16_t temp; dwc_otg_update_host_transfer_schedule_locked() local 2681 uint32_t temp; dwc_otg_interrupt_poll_locked() local 2875 uint32_t temp; dwc_otg_filter_interrupt() local 2938 uint32_t temp; dwc_otg_interrupt() local 3065 uint32_t temp; dwc_otg_interrupt() local 3086 dwc_otg_setup_standard_chain_sub(struct dwc_otg_std_temp * temp) dwc_otg_setup_standard_chain_sub() argument 3124 struct dwc_otg_std_temp temp; dwc_otg_setup_standard_chain() local 3653 uint32_t temp; dwc_otg_set_stall() local 3708 uint32_t temp; dwc_otg_clear_stall_sub_locked() local 3837 uint32_t temp; dwc_otg_init() local 4189 uint32_t temp; dwc_otg_device_isoc_start() local [all...] |
/freebsd/lib/libusb/ |
H A D | libusb20_desc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 54 /*------------------------------------------------------------------------* 60 *------------------------------------------------------------------------*/ 86 * because the field is 8-bit. in libusb20_parse_config_desc() 101 /* descriptor pre-scan */ in libusb20_parse_config_desc() 105 } else if ((ptr[1] == LIBUSB20_DT_INTERFACE) && (ptr[0] >= 4)) { in libusb20_parse_config_desc() 149 LIBUSB20_INIT(LIBUSB20_CONFIG_DESC, &lub_config->desc); in libusb20_parse_config_desc() 151 if (libusb20_me_decode(ptr, ptr[0], &lub_config->desc)) { in libusb20_parse_config_desc() 154 lub_config->num_interface = 0; in libusb20_parse_config_desc() [all …]
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | rsaz_exp.c | 2 * Copyright 2013-2022 The OpenSSL Project Authors. All Rights Reserved. 23 * See crypto/bn/asm/rsaz-avx2.pl for further details. 63 unsigned char *p_str = storage + (64 - ((size_t)storage % 64)); 106 /* table[4] = a_inv^4 */ 108 rsaz_1024_scatter5_avx2(table_s, result, 4); 137 rsaz_1024_gather5_avx2(result, table_s, 4); 216 while (index > -1) { /* loop for the remaining 127 windows */ 222 index -= 5; 229 rsaz_1024_sqr_avx2(result, result, m, k0, 4); 248 * See crypto/bn/rsaz-x86_64.pl for further details. [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_paprd.c | 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() 96 AH_PAPRD_GET_SCALE_FACTOR(paprd_scale_factor, eep, is_2g, ichan->channel); in ar9300_paprd_setup_single_table() 99 am_mask = ahp->ah_2g_paprd_rate_mask_ht40 & AH_PAPRD_AM_PM_MASK; in ar9300_paprd_setup_single_table() [all …]
|
/freebsd/crypto/openssl/crypto/ec/ |
H A D | ecp_nistz256.c | 2 * Copyright 2014-2022 The OpenSSL Project Authors. All Rights Reserved. 48 #define ALIGNPTR(p,N) ((unsigned char *)p+N-(size_t)p%N) 71 * Constant time access to the X and Y coordinates of the pre-computed, 72 * generator multiplies, in the Montgomery domain. Pre-calculated 95 * step. Choice between the two can be platform-specific, but it was a) 112 /* Modular sub: res = a-b mod P */ 116 /* Modular neg: res = -a mod P */ 118 /* Montgomery mul: res = a*b*2^-256 mod P */ 122 /* Montgomery sqr: res = a*a*2^-256 mod P */ 157 s = ~((in >> 5) - 1); in _booth_recode_w5() [all …]
|
/freebsd/crypto/openssl/crypto/bn/asm/ |
H A D | armv4-mont.pl | 2 # Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved. 22 # and compilers. The code was observed to provide +65-35% improvement 24 # +115-80% on Intel IXP425. This is compared to pre-bn_mul_mont code 25 # base and compiler generated code with in-lined umull and even umlal 36 # performance improvement on Cortex-A8 is ~45-100% depending on key 37 # length, more for longer keys. On Cortex-A15 the span is ~10-105%. 40 # rather because original integer-only code seems to perform 41 # suboptimally on S4. Situation on Cortex-A9 is unfortunately 44 # of percent worse than for integer-only code. The code is chosen 45 # for execution on all NEON-capable processors, because gain on [all …]
|
/freebsd/usr.sbin/vidcontrol/ |
H A D | decode.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 40 char temp[128]; in decode() local 42 #define DEC(c) (((c) - ' ') & 0x3f) in decode() 45 if (!fgets(temp, sizeof(temp), fd)) in decode() 47 } while (strncmp(temp, "begin ", 6)); in decode() 48 sscanf(temp, "begin %o %s", (unsigned *)&n, temp); in decode() 51 if (!fgets(p = temp, sizeof(temp), fd)) in decode() 55 for (++p; n > 0; p += 4, n -= 3) { in decode() 58 tbuffer[tpos++] = DEC(p[0])<<2 | DEC(p[1])>>4; in decode() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/ |
H A D | aead_aes256gcm_aesni.c | 3 * AES256-GCM, based on the "Intel Carry-Less Multiplication Instruction and its Usage for Computing 40 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) 99 /** single, by-the-book AES encryption with AES-NI */ 103 __m128i temp = _mm_xor_si128(nv, rkeys[0]); in aesni_encrypt1() local 105 temp = _mm_aesenc_si128(temp, rkeys[1]); in aesni_encrypt1() 106 temp = _mm_aesenc_si128(temp, rkeys[2]); in aesni_encrypt1() 107 temp = _mm_aesenc_si128(temp, rkeys[3]); in aesni_encrypt1() 108 temp = _mm_aesenc_si128(temp, rkeys[4]); in aesni_encrypt1() 109 temp = _mm_aesenc_si128(temp, rkeys[5]); in aesni_encrypt1() 110 temp = _mm_aesenc_si128(temp, rkeys[6]); in aesni_encrypt1() [all …]
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | aes-internal-dec.c | 2 * AES (Rijndael) cipher - decrypt 5 * - cleanup 6 * - use C pre-processor to make it easier to change S table access 7 * - added option (AES_SMALL_TABLES) for reducing code size by about 8 kB at 8 * cost of reduced throughput (quite small difference on Pentium 4, 9 * 10-25% when using -O1 or -O2 optimization) 11 * Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi> 31 u32 temp; in rijndaelKeySetupDec() local 38 for (i = 0, j = 4*Nr; i < j; i += 4, j -= 4) { in rijndaelKeySetupDec() 39 temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; in rijndaelKeySetupDec() [all …]
|
/freebsd/lib/msun/src/ |
H A D | e_jn.c | 18 * y0(0)=y1(0)=yn(n,0) = -inf with division by zero signal; 19 * y0(-ve)=y1(-ve)=yn(n,-ve) are NaN with invalid signal. 26 * j(n,x)/j(n-1,x) is evaluated and then backward 43 invsqrtpi= 5.64189583547756279280e-01, /* 0x3FE20DD7, 0x50429B6D */ 53 double a, b, c, s, temp, di; in jn() local 56 /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) in jn() 57 * Thus, J(-n,x) = J(n,-x) in jn() 62 if((ix|((u_int32_t)(lx|-lx))>>31)>0x7ff00000) return x+x; in jn() 64 n = -n; in jn() 65 x = -x; in jn() [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 2 * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. 25 unsigned int d[CHACHA_KEY_SIZE / 4]; 27 unsigned int counter[CHACHA_CTR_SIZE / 4]; 32 #define data(ctx) ((EVP_CHACHA_KEY *)(ctx)->cipher_data) 44 for (i = 0; i < CHACHA_KEY_SIZE; i+=4) { in chacha_init_key() 45 key->key.d[i/4] = CHACHA_U8TOU32(user_key+i); in chacha_init_key() 49 for (i = 0; i < CHACHA_CTR_SIZE; i+=4) { in chacha_init_key() 50 key->counter[i/4] = CHACHA_U8TOU32(iv+i); in chacha_init_key() 53 key->partial_len = 0; in chacha_init_key() 64 if ((n = key->partial_len)) { in chacha_cipher() [all …]
|
/freebsd/sys/arm64/rockchip/ |
H A D | rk_tsadc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 65 #define TSADC_AUTO_SRC_EN(x) (1 << (4 + (x))) 71 #define TSADC_INT_EN_2GPIO_EN_SRC(x) (1 << (4 + (x))) 100 #define WR4(_sc, _r, _v) bus_write_4((_sc)->mem_res, (_r), (_v)) 101 #define RD4(_sc, _r) bus_read_4((_sc)->mem_res, (_r)) 113 int temp; member 153 {3800, -40000}, 154 {3792, -35000}, 155 {3783, -30000}, [all …]
|
/freebsd/sbin/nvmecontrol/modules/intel/ |
H A D | intel.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 7 * Copyright (C) 2012-2013 Intel Corporation 50 …* http://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/ssd-dc-p3700-… 58 struct intel_log_temp_stats *temp = buf; in print_intel_temp_stats() local 64 print_temp_C(letoh(temp->current)); in print_intel_temp_stats() 66 (uintmax_t)letoh(temp->overtemp_flag_last)); in print_intel_temp_stats() 68 (uintmax_t)letoh(temp->overtemp_flag_life)); in print_intel_temp_stats() 70 print_temp_C(letoh(temp->max_temp)); in print_intel_temp_stats() 72 print_temp_C(letoh(temp->min_temp)); in print_intel_temp_stats() [all …]
|
/freebsd/share/man/man4/ |
H A D | aibs.4 | 1 .\" $NetBSD: aibs.4,v 1.2 2010/02/09 05:37:25 cnst Exp $ 2 .\" $OpenBSD: aibs.4,v 1.4 2009/07/30 06:30:45 jmc Exp $ 18 .Dd April 4, 2010 28 .Bd -ragged -offset indent 35 .Bd -literal -offset indent 62 .Bl -bullet 79 For example, on an ASUS V3-P5G965 barebone: 80 .Bd -literal -offset indent 81 > sysctl dev.aibs.0.{volt,temp,fan} 86 dev.aibs.0.temp.0: 28.0C 80.0C 95.0C [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_diag_cnt.c | 1 /*- 45 diag_cnt = &dev->diag_cnt; in mlx5_sysctl_counter_id() 54 if (diag_cnt->cnt_id[x].enabled) in mlx5_sysctl_counter_id() 55 ptr[num++] = diag_cnt->cnt_id[x].id; in mlx5_sysctl_counter_id() 59 if (err || !req->newptr) in mlx5_sysctl_counter_id() 62 num = req->newlen / sizeof(ptr[0]); in mlx5_sysctl_counter_id() 78 diag_cnt->num_cnt_id = num; in mlx5_sysctl_counter_id() 82 if (err != 0 && req->newptr != NULL) in mlx5_sysctl_counter_id() 97 uint32_t temp[NUM_OF_DIAG_PARAMS]; in mlx5_sysctl_params() local 101 diag_cnt = &dev->diag_cnt; in mlx5_sysctl_params() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | parseipfexpr.c | 15 { IPF_EXP_IP6_ADDR, 2, 0, 4, "ip6.addr" }, 19 { IPF_EXP_IP6_SRCADDR, 2, 0, 4, "ip6.src" }, 20 { IPF_EXP_IP6_DSTADDR, 2, 0, 4, "ip6.dst" }, 29 { IPF_EXP_IDLE_GT, 1, 1, 1, "idle-gt" }, 30 { -1, 0, 0, 0, NULL } 38 char *temp, *arg, *s, *t, *ops, *error; in parseipfexpr() local 46 temp = strdup(line); in parseipfexpr() 47 if (temp == NULL) { in parseipfexpr() 55 for (s = temp; *s != '\0'; ) { in parseipfexpr() 67 if (temp[strlen(temp) - 1] != ';') { in parseipfexpr() [all …]
|
/freebsd/sys/cddl/dev/dtrace/i386/ |
H A D | dtrace_asm.S | 37 pushl %eax /* push %eax -- may be return value */ 65 * down 4 bytes, and then store the base pointer. 68 subl $4, %esp /* make room for %ebp */ 69 pushl %eax /* push temp */ 72 movl %eax, 4(%esp) /* store calling EIP */ 78 popl %eax /* pop off temp */ 87 pushl %eax /* push temp */ 93 movl 4(%esp), %eax /* load calling EIP */ 96 popl %eax /* pop off temp */ 97 addl $4, %esp /* adjust stack pointer */ [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/zpool.d/ |
H A D | pend_sec | 9 temp: Show SMART drive temperature in celsius (all drives). 15 nonmed: Show SMART non-medium errors (SAS). 27 smart_test: Show SMART self-test results summary. 28 test_type: Show SMART self-test type (short, long... ). 29 test_status: Show SMART self-test status. 30 test_progress: Show SMART self-test percentage done. 31 test_ended: Show when the last SMART self-test ended (if supported). 46 # is chosen quasi-sequentially (based off our PID). This allows us to return 53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l) 56 find "$dir" -type f -printf '%f\n' | while read -r file ; do [all …]
|
H A D | smart | 9 temp: Show SMART drive temperature in celsius (all drives). 15 nonmed: Show SMART non-medium errors (SAS). 27 smart_test: Show SMART self-test results summary. 28 test_type: Show SMART self-test type (short, long... ). 29 test_status: Show SMART self-test status. 30 test_progress: Show SMART self-test percentage done. 31 test_ended: Show when the last SMART self-test ended (if supported). 46 # is chosen quasi-sequentially (based off our PID). This allows us to return 53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l) 56 find "$dir" -type f -printf '%f\n' | while read -r file ; do [all …]
|
H A D | smart_test | 9 temp: Show SMART drive temperature in celsius (all drives). 15 nonmed: Show SMART non-medium errors (SAS). 27 smart_test: Show SMART self-test results summary. 28 test_type: Show SMART self-test type (short, long... ). 29 test_status: Show SMART self-test status. 30 test_progress: Show SMART self-test percentage done. 31 test_ended: Show when the last SMART self-test ended (if supported). 46 # is chosen quasi-sequentially (based off our PID). This allows us to return 53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l) 56 find "$dir" -type f -printf '%f\n' | while read -r file ; do [all …]
|
H A D | ata_err | 9 temp: Show SMART drive temperature in celsius (all drives). 15 nonmed: Show SMART non-medium errors (SAS). 27 smart_test: Show SMART self-test results summary. 28 test_type: Show SMART self-test type (short, long... ). 29 test_status: Show SMART self-test status. 30 test_progress: Show SMART self-test percentage done. 31 test_ended: Show when the last SMART self-test ended (if supported). 46 # is chosen quasi-sequentially (based off our PID). This allows us to return 53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l) 56 find "$dir" -type f -printf '%f\n' | while read -r file ; do [all …]
|
H A D | cmd_to | 9 temp: Show SMART drive temperature in celsius (all drives). 15 nonmed: Show SMART non-medium errors (SAS). 27 smart_test: Show SMART self-test results summary. 28 test_type: Show SMART self-test type (short, long... ). 29 test_status: Show SMART self-test status. 30 test_progress: Show SMART self-test percentage done. 31 test_ended: Show when the last SMART self-test ended (if supported). 46 # is chosen quasi-sequentially (based off our PID). This allows us to return 53 num_files=$(find "$dir" -maxdepth 1 -type f | wc -l) 56 find "$dir" -type f -printf '%f\n' | while read -r file ; do [all …]
|