Home
last modified time | relevance | path

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

12345678910>>...96

/freebsd-13-stable/contrib/ntp/sntp/libevent/test/
HDregress.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-13-stable/contrib/libevent/test/
HDregress.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-13-stable/sys/contrib/ncsw/Peripherals/FM/MAC/
HDfman_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 …]
HDfman_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 …]
HDfman_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-13-stable/sys/contrib/ncsw/Peripherals/FM/Port/
HDfman_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-13-stable/contrib/wpa/src/common/
HDsae.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 …]
HDsae_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-13-stable/contrib/ntp/sntp/libevent/WIN32-Code/
HDtree.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-13-stable/contrib/libevent/WIN32-Code/
HDtree.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-13-stable/crypto/openssl/crypto/modes/
HDcts128.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-13-stable/usr.bin/gzip/
HDgzexe38 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-13-stable/crypto/openssl/crypto/ec/
HDecp_nistp224.c591 widefelem tmp;
592 felem_square(tmp, in);
593 felem_reduce(out, tmp);
598 widefelem tmp;
599 felem_mul(tmp, in1, in2);
600 felem_reduce(out, tmp);
612 int64_t tmp[4], a;
613 tmp[0] = in[0];
614 tmp[1] = in[1];
615 tmp[2] = in[2];
[all …]
HDecp_nistp256.c380 felem tmp;
386 tmp[3] = zero110[3] + in[3] + ((u64)(in[2] >> 64));
389 tmp[2] = zero110[2] + (u64)in[2];
390 tmp[0] = zero110[0] + in[0];
391 tmp[1] = zero110[1] + in[1];
398 a = tmp[3] >> 64; /* a < 2^46 */
399 tmp[3] = (u64)tmp[3];
400 tmp[3] -= a;
401 tmp[3] += ((limb) a) << 32;
405 a = tmp[3] >> 64; /* a < 2^15 */
[all …]
/freebsd-13-stable/contrib/ipfilter/sys/
HDtree.h84 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
85 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
86 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
87 (head)->sph_root = tmp; \
90 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
91 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
92 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
93 (head)->sph_root = tmp; \
96 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument
97 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
[all …]
/freebsd-13-stable/crypto/openssh/openbsd-compat/
HDsys-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-13-stable/sys/contrib/ncsw/Peripherals/FM/
HDfman_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-13-stable/sbin/gbde/
HDtest.sh12 ./gbde init $D -P foo -L /tmp/_l1
13 ./gbde setkey $D -p foo -l /tmp/_l1 -P bar -L /tmp/_l1
14 ./gbde setkey $D -p bar -l /tmp/_l1 -P foo -L /tmp/_l1
16 ./gbde setkey $D -p foo -l /tmp/_l1 -n 2 -P foo2 -L /tmp/_l2
17 ./gbde setkey $D -p foo2 -l /tmp/_l2 -n 3 -P foo3 -L /tmp/_l3
18 ./gbde setkey $D -p foo3 -l /tmp/_l3 -n 4 -P foo4 -L /tmp/_l4
19 ./gbde setkey $D -p foo4 -l /tmp/_l4 -n 1 -P foo1 -L /tmp/_l1
21 ./gbde nuke $D -p foo1 -l /tmp/_l1 -n 4
22 if ./gbde nuke $D -p foo4 -l /tmp/_l4 -n 3 ; then false ; fi
23 ./gbde destroy $D -p foo2 -l /tmp/_l2
[all …]
/freebsd-13-stable/sys/fs/tmpfs/
HDtmpfs_vfsops.c327 struct tmpfs_mount *tmp; in tmpfs_mount() local
349 tmp = VFS_TO_TMPFS(mp); in tmpfs_mount()
358 if (size_max != tmp->tm_size_max) in tmpfs_mount()
362 !tmp->tm_ronly) { in tmpfs_mount()
366 tmp->tm_ronly) { in tmpfs_mount()
368 tmp->tm_ronly = 0; in tmpfs_mount()
373 tmp->tm_nomtime = vfs_getopt(mp->mnt_optnew, "nomtime", NULL, in tmpfs_mount()
439 tmp = (struct tmpfs_mount *)malloc(sizeof(struct tmpfs_mount), in tmpfs_mount()
442 mtx_init(&tmp->tm_allnode_lock, "tmpfs allnode lock", NULL, MTX_DEF); in tmpfs_mount()
443 tmp->tm_nodes_max = nodes_max; in tmpfs_mount()
[all …]
/freebsd-13-stable/contrib/ofed/libibverbs/
HDmemory.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-13-stable/tests/sys/sys/
HDarb_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 …]
HDsplay_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 …]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/os/linux/
HDzutil_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-13-stable/crypto/heimdal/lib/kadm5/
HDmarshall.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-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/
HDxattr_004_pos.ksh51 if ismounted /tmp/$NEWFS_DEFAULT_FS.$$ $NEWFS_DEFAULT_FS; then
52 log_must umount /tmp/$NEWFS_DEFAULT_FS.$$
53 log_must rm -rf /tmp/$NEWFS_DEFAULT_FS.$$
65 log_must mkdir /tmp/$NEWFS_DEFAULT_FS.$$
68 /tmp/$NEWFS_DEFAULT_FS.$$
71 log_must touch /tmp/$NEWFS_DEFAULT_FS.$$/$NEWFS_DEFAULT_FS-file.$$
73 log_must runat /tmp/$NEWFS_DEFAULT_FS.$$/$NEWFS_DEFAULT_FS-file.$$ \
77 log_must cp -@ /tmp/$NEWFS_DEFAULT_FS.$$/$NEWFS_DEFAULT_FS-file.$$ \
84 log_must umount /tmp/$NEWFS_DEFAULT_FS.$$
90 $ZVOL_DEVDIR/$TESTPOOL/$TESTFS/zvol /tmp/$NEWFS_DEFAULT_FS.$$
[all …]

12345678910>>...96