Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 2015) sorted by relevance

12345678910>>...81

/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress.gen.c56 struct msg *tmp; in msg_new_with_arg() local
57 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg()
61 tmp->base = &msg_base__; in msg_new_with_arg()
63 tmp->from_name_data = NULL; in msg_new_with_arg()
64 tmp->from_name_set = 0; in msg_new_with_arg()
66 tmp->to_name_data = NULL; in msg_new_with_arg()
67 tmp->to_name_set = 0; in msg_new_with_arg()
69 tmp->attack_data = NULL; in msg_new_with_arg()
70 tmp->attack_set = 0; in msg_new_with_arg()
72 tmp->run_data = NULL; in msg_new_with_arg()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress.gen.c56 struct msg *tmp; in msg_new_with_arg() local
57 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg()
61 tmp->base = &msg_base__; in msg_new_with_arg()
63 tmp->from_name_data = NULL; in msg_new_with_arg()
64 tmp->from_name_set = 0; in msg_new_with_arg()
66 tmp->to_name_data = NULL; in msg_new_with_arg()
67 tmp->to_name_set = 0; in msg_new_with_arg()
69 tmp->attack_data = NULL; in msg_new_with_arg()
70 tmp->attack_set = 0; in msg_new_with_arg()
72 tmp->run_data = NULL; in msg_new_with_arg()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dfman_memac.c54 uint32_t tmp; in fman_memac_set_promiscuous() local
56 tmp = ioread32be(&regs->command_config); in fman_memac_set_promiscuous()
59 tmp |= CMD_CFG_PROMIS_EN; in fman_memac_set_promiscuous()
61 tmp &= ~CMD_CFG_PROMIS_EN; in fman_memac_set_promiscuous()
63 iowrite32be(tmp, &regs->command_config); in fman_memac_set_promiscuous()
101 uint32_t tmp; in fman_memac_enable() local
103 tmp = ioread32be(&regs->command_config); in fman_memac_enable()
106 tmp |= CMD_CFG_RX_EN; in fman_memac_enable()
109 tmp |= CMD_CFG_TX_EN; in fman_memac_enable()
111 iowrite32be(tmp, &regs->command_config); in fman_memac_enable()
[all …]
H A Dfman_dtsec.c114 uint32_t tmp; in fman_dtsec_init() local
123 tmp = ioread32be(&regs->tsec_id2); in fman_dtsec_init()
128 if (tmp & DTSEC_ID2_INT_REDUCED_OFF) in fman_dtsec_init()
133 if (tmp & DTSEC_ID2_INT_REDUCED_OFF) in fman_dtsec_init()
142 tmp = 0; in fman_dtsec_init()
144 tmp |= DTSEC_ECNTRL_GMIIM; in fman_dtsec_init()
146 tmp |= (DTSEC_ECNTRL_SGMIIM | DTSEC_ECNTRL_TBIM); in fman_dtsec_init()
148 tmp |= (DTSEC_ECNTRL_SGMIIM | DTSEC_ECNTRL_TBIM | in fman_dtsec_init()
151 tmp |= DTSEC_ECNTRL_RPM; in fman_dtsec_init()
153 tmp |= DTSEC_ECNTRL_R100M; in fman_dtsec_init()
[all …]
H A Dfman_tgec.c52 uint32_t tmp; in fman_tgec_reset_stat() local
54 tmp = ioread32be(&regs->command_config); in fman_tgec_reset_stat()
56 tmp |= CMD_CFG_STAT_CLR; in fman_tgec_reset_stat()
58 iowrite32be(tmp, &regs->command_config); in fman_tgec_reset_stat()
159 uint32_t tmp; in fman_tgec_enable() local
161 tmp = ioread32be(&regs->command_config); in fman_tgec_enable()
163 tmp |= CMD_CFG_RX_EN; in fman_tgec_enable()
165 tmp |= CMD_CFG_TX_EN; in fman_tgec_enable()
166 iowrite32be(tmp, &regs->command_config); in fman_tgec_enable()
183 uint32_t tmp; in fman_tgec_set_promiscuous() local
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/
H A Dfman_port.c57 uint32_t tmp; in init_bmi_rx() local
60 tmp = 0; in init_bmi_rx()
62 tmp |= BMI_PORT_CFG_IM; in init_bmi_rx()
64 tmp |= BMI_PORT_CFG_FDOVR; in init_bmi_rx()
65 iowrite32be(tmp, &regs->fmbm_rcfg); in init_bmi_rx()
68 tmp = (uint32_t)cfg->dma_swap_data << BMI_DMA_ATTR_SWP_SHIFT; in init_bmi_rx()
70 tmp |= BMI_DMA_ATTR_IC_STASH_ON; in init_bmi_rx()
72 tmp |= BMI_DMA_ATTR_HDR_STASH_ON; in init_bmi_rx()
74 tmp |= BMI_DMA_ATTR_SG_STASH_ON; in init_bmi_rx()
76 tmp |= BMI_DMA_ATTR_WRITE_OPTIMIZE; in init_bmi_rx()
[all …]
/freebsd/contrib/wpa/src/common/
H A Dsae.c28 struct sae_temporary_data *tmp; in sae_set_group() local
40 tmp = sae->tmp = os_zalloc(sizeof(*tmp)); in sae_set_group()
41 if (tmp == NULL) in sae_set_group()
45 tmp->ec = crypto_ec_init(group); in sae_set_group()
46 if (tmp->ec) { in sae_set_group()
50 tmp->prime_len = crypto_ec_prime_len(tmp->ec); in sae_set_group()
51 tmp->prime = crypto_ec_get_prime(tmp->ec); in sae_set_group()
52 tmp->order_len = crypto_ec_order_len(tmp->ec); in sae_set_group()
53 tmp->order = crypto_ec_get_order(tmp->ec); in sae_set_group()
58 tmp->dh = dh_groups_get(group); in sae_set_group()
[all …]
H A Dsae_pk.c252 u8 dtable[256], *out, *pos, tmp; in sae_pk_base32_decode() local
286 tmp = dtable[val]; in sae_pk_base32_decode()
287 if (tmp == 0x80) in sae_pk_base32_decode()
293 block |= tmp; in sae_pk_base32_decode()
361 struct sae_temporary_data *tmp = sae->tmp; in sae_pk_set_password() local
368 if (!tmp) in sae_pk_set_password()
371 os_memset(tmp->fingerprint, 0, sizeof(tmp->fingerprint)); in sae_pk_set_password()
372 tmp->fingerprint_bytes = tmp->fingerprint_bits = 0; in sae_pk_set_password()
382 tmp->sec = (pw[0] & BIT(7)) ? 3 : 5; in sae_pk_set_password()
383 tmp->lambda = len - len / 5; in sae_pk_set_password()
[all …]
/freebsd/contrib/ntp/sntp/libevent/WIN32-Code/
H A Dtree.h81 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
82 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
83 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
84 (head)->sph_root = tmp; \
87 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
88 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
89 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
90 (head)->sph_root = tmp; \
93 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument
94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
[all …]
/freebsd/contrib/libevent/WIN32-Code/
H A Dtree.h81 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
82 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
83 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
84 (head)->sph_root = tmp; \
87 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
88 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
89 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
90 (head)->sph_root = tmp; \
93 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument
94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
[all …]
/freebsd/crypto/openssl/crypto/ec/
H A Decp_nistp224.c593 widefelem tmp; in felem_square_reduce() local
594 felem_square(tmp, in); in felem_square_reduce()
595 felem_reduce(out, tmp); in felem_square_reduce()
600 widefelem tmp; in felem_mul_reduce() local
601 felem_mul(tmp, in1, in2); in felem_mul_reduce()
602 felem_reduce(out, tmp); in felem_mul_reduce()
614 int64_t tmp[4], a; in felem_contract() local
615 tmp[0] = in[0]; in felem_contract()
616 tmp[1] = in[1]; in felem_contract()
617 tmp[2] = in[2]; in felem_contract()
[all …]
H A Decp_nistp256.c380 felem tmp; in felem_shrink() local
386 tmp[3] = zero110[3] + in[3] + ((u64)(in[2] >> 64)); in felem_shrink()
389 tmp[2] = zero110[2] + (u64)in[2]; in felem_shrink()
390 tmp[0] = zero110[0] + in[0]; in felem_shrink()
391 tmp[1] = zero110[1] + in[1]; in felem_shrink()
398 a = tmp[3] >> 64; /* a < 2^46 */ in felem_shrink()
399 tmp[3] = (u64)tmp[3]; in felem_shrink()
400 tmp[3] -= a; in felem_shrink()
401 tmp[3] += ((limb) a) << 32; in felem_shrink()
405 a = tmp[3] >> 64; /* a < 2^15 */ in felem_shrink()
[all …]
/freebsd/crypto/openssl/crypto/modes/
H A Dcts128.c95 } tmp; in CRYPTO_cts128_encrypt() local
111 memcpy(tmp.c, out - 16, 16); in CRYPTO_cts128_encrypt()
113 memcpy(out, tmp.c, residue); in CRYPTO_cts128_encrypt()
115 memset(tmp.c, 0, sizeof(tmp)); in CRYPTO_cts128_encrypt()
116 memcpy(tmp.c, in, residue); in CRYPTO_cts128_encrypt()
118 (*cbc) (tmp.c, out - 16, 16, key, ivec, 1); in CRYPTO_cts128_encrypt()
131 } tmp; in CRYPTO_nistcts128_encrypt() local
151 memset(tmp.c, 0, sizeof(tmp)); in CRYPTO_nistcts128_encrypt()
152 memcpy(tmp.c, in, residue); in CRYPTO_nistcts128_encrypt()
153 (*cbc) (tmp.c, out - 16 + residue, 16, key, ivec, 1); in CRYPTO_nistcts128_encrypt()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dsys-tree.h88 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
89 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
90 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
91 (head)->sph_root = tmp; \
94 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
95 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
96 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
97 (head)->sph_root = tmp; \
100 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument
101 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
[all …]
/freebsd/usr.bin/gzip/
H A Dgzexe38 tmp=`/usr/bin/mktemp -d /tmp/gzexeXXXXXXXXXX` || {
43 /usr/bin/gzip -dc > "$tmp/$prog" 2> /dev/null; then
44 /bin/chmod u+x "$tmp/$prog"
45 "$tmp/$prog" ${1+"$@"}
62 tmp=`mktemp /tmp/gzexeXXXXXXXXXX` || {
66 if ! cp "$1" "$tmp"; then
67 echo "$prog: cannot copy $1 to $tmp"
68 rm -f "$tmp"
71 if ! tail +$lines "$tmp" | gzip -vdc > "$1"; then
73 cp "$tmp" "$1"
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/
H A Dfman_ncsw.c172 uint32_t tmp; in fman_enable_time_stamp() local
194 tmp = (intgr << FPM_TS_INT_SHIFT) | (uint16_t)frac; in fman_enable_time_stamp()
195 iowrite32be(tmp, &fpm_rg->fmfp_tsc2); in fman_enable_time_stamp()
238 uint32_t tmp = 0; in fman_set_num_of_riscs_per_port() local
240 tmp = (uint32_t)(port_id << FPM_PORT_FM_CTL_PORTID_SHIFT); in fman_set_num_of_riscs_per_port()
243 tmp = FPM_PRT_FM_CTL2 | FPM_PRT_FM_CTL1; in fman_set_num_of_riscs_per_port()
245 tmp |= (or_fman_ctrl << FPM_PRC_ORA_FM_CTL_SEL_SHIFT) | or_fman_ctrl; in fman_set_num_of_riscs_per_port()
247 iowrite32be(tmp, &fpm_rg->fmfp_prc); in fman_set_num_of_riscs_per_port()
255 uint32_t tmp = 0; in fman_set_order_restoration_per_port() local
257 tmp = (uint32_t)(port_id << FPM_PORT_FM_CTL_PORTID_SHIFT); in fman_set_order_restoration_per_port()
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c326 struct tmpfs_mount *tmp; in tmpfs_mount() local
348 tmp = VFS_TO_TMPFS(mp); in tmpfs_mount()
357 if (size_max != tmp->tm_size_max) in tmpfs_mount()
361 tmp->tm_ea_memory_max = ea_max_size; in tmpfs_mount()
364 !tmp->tm_ronly) { in tmpfs_mount()
368 tmp->tm_ronly) { in tmpfs_mount()
370 tmp->tm_ronly = 0; in tmpfs_mount()
375 tmp->tm_nomtime = vfs_getopt(mp->mnt_optnew, "nomtime", NULL, in tmpfs_mount()
443 tmp = (struct tmpfs_mount *)malloc(sizeof(struct tmpfs_mount), in tmpfs_mount()
446 mtx_init(&tmp->tm_allnode_lock, "tmpfs allnode lock", NULL, MTX_DEF); in tmpfs_mount()
[all …]
/freebsd/contrib/arm-optimized-routines/math/test/rtest/
H A Drandom.c87 uint32 tmp; in random_upto_biased() local
88 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
89 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
90 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
91 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
92 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
93 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
94 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
95 tmp = random_upto_internal(limit, mask); if (tmp < ret) ret = tmp; in random_upto_biased()
/freebsd/sbin/gbde/
H A Dtest.sh
/freebsd/contrib/ofed/libibverbs/
H A Dmemory.c126 void *tmp, *tmp_aligned; in ibv_fork_init() local
143 if (posix_memalign(&tmp, page_size, page_size)) in ibv_fork_init()
147 size = get_page_size(tmp); in ibv_fork_init()
148 tmp_aligned = (void *) ((uintptr_t) tmp & ~(size - 1)); in ibv_fork_init()
151 tmp_aligned = tmp; in ibv_fork_init()
157 free(tmp); in ibv_fork_init()
211 struct ibv_mem_node *tmp; in __mm_rotate_right() local
213 tmp = node->left; in __mm_rotate_right()
215 node->left = tmp->right; in __mm_rotate_right()
221 node->parent->right = tmp; in __mm_rotate_right()
[all …]
/freebsd/crypto/openssl/test/
H A Dasn1_internal_test.c37 const ASN1_STRING_TABLE *tmp; in test_tbl_standard() local
41 for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++) { in test_tbl_standard()
42 if (tmp->nid < last_nid) { in test_tbl_standard()
46 last_nid = tmp->nid; in test_tbl_standard()
55 for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++) in test_tbl_standard()
57 i, tmp->nid, OBJ_nid2ln(tmp->nid)); in test_tbl_standard()
73 const EVP_PKEY_ASN1_METHOD **tmp; in test_standard_methods() local
78 for (tmp = standard_methods, i = 0; i < OSSL_NELEM(standard_methods); in test_standard_methods()
79 i++, tmp++) { in test_standard_methods()
80 if ((*tmp)->pkey_id < last_pkey_id) { in test_standard_methods()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c86 char *tmp = strdup(path); in zfs_strip_partition() local
88 if (!tmp) in zfs_strip_partition()
91 if ((part = strstr(tmp, "-part")) && part != tmp) { in zfs_strip_partition()
93 } else if ((part = strrchr(tmp, 'p')) && in zfs_strip_partition()
94 part > tmp + 1 && isdigit(*(part-1))) { in zfs_strip_partition()
96 } else if ((tmp[0] == 'h' || tmp[0] == 's' || tmp[0] == 'v') && in zfs_strip_partition()
97 tmp[1] == 'd') { in zfs_strip_partition()
98 for (d = &tmp[2]; isalpha(*d); part = ++d) { } in zfs_strip_partition()
99 } else if (strncmp("xvd", tmp, 3) == 0) { in zfs_strip_partition()
100 for (d = &tmp[3]; isalpha(*d); part = ++d) { } in zfs_strip_partition()
[all …]
/freebsd/crypto/heimdal/lib/kadm5/
H A Dmarshall.c63 int32_t tmp; in kadm5_ret_key_data() local
64 ret = krb5_ret_int32(sp, &tmp); in kadm5_ret_key_data()
66 key->key_data_ver = tmp; in kadm5_ret_key_data()
67 ret = krb5_ret_int32(sp, &tmp); in kadm5_ret_key_data()
70 key->key_data_kvno = tmp; in kadm5_ret_key_data()
71 ret = krb5_ret_int32(sp, &tmp); in kadm5_ret_key_data()
74 key->key_data_type[0] = tmp; in kadm5_ret_key_data()
80 ret = krb5_ret_int32(sp, &tmp); in kadm5_ret_key_data()
83 key->key_data_type[1] = tmp; in kadm5_ret_key_data()
111 int32_t tmp; in kadm5_ret_tl_data() local
[all …]
/freebsd/tests/sys/sys/
H A Darb_test.c63 struct node *tmp, *ins; in ATF_TC_BODY() local
68 root = (struct tree *)calloc(1, ARB_ALLOCSIZE(root, ITER, tmp)); in ATF_TC_BODY()
70 ARB_INIT(tmp, next, root, ITER); in ATF_TC_BODY()
73 tmp = ARB_GETFREE(root, next); in ATF_TC_BODY()
74 ATF_REQUIRE_MSG(tmp != NULL, "ARB_GETFREE failed"); in ATF_TC_BODY()
76 tmp->key = arc4random_uniform(MAX-MIN); in ATF_TC_BODY()
77 tmp->key += MIN; in ATF_TC_BODY()
78 } while (ARB_FIND(tree, root, tmp) != NULL); in ATF_TC_BODY()
80 max = min = tmp->key; in ATF_TC_BODY()
82 if (tmp->key > max) in ATF_TC_BODY()
[all …]
H A Dsplay_test.c61 struct node *tmp, *ins; in ATF_TC_BODY() local
69 tmp = malloc(sizeof(struct node)); in ATF_TC_BODY()
70 ATF_REQUIRE_MSG(tmp != NULL, "malloc failed"); in ATF_TC_BODY()
72 tmp->key = arc4random_uniform(MAX-MIN); in ATF_TC_BODY()
73 tmp->key += MIN; in ATF_TC_BODY()
74 } while (SPLAY_FIND(tree, &root, tmp) != NULL); in ATF_TC_BODY()
76 max = min = tmp->key; in ATF_TC_BODY()
78 if (tmp->key > max) in ATF_TC_BODY()
79 max = tmp->key; in ATF_TC_BODY()
80 if (tmp->key < min) in ATF_TC_BODY()
[all …]

12345678910>>...81