Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 1317) sorted by relevance

12345678910>>...53

/freebsd-12-stable/crypto/openssl/crypto/stack/
Dstack.c160 static int sk_reserve(OPENSSL_STACK *st, int n, int exact) in sk_reserve() argument
166 if (n > max_nodes - st->num) in sk_reserve()
170 num_alloc = st->num + n; in sk_reserve()
175 if (st->data == NULL) { in sk_reserve()
180 if ((st->data = OPENSSL_zalloc(sizeof(void *) * num_alloc)) == NULL) { in sk_reserve()
184 st->num_alloc = num_alloc; in sk_reserve()
189 if (num_alloc <= st->num_alloc) in sk_reserve()
191 num_alloc = compute_growth(num_alloc, st->num_alloc); in sk_reserve()
194 } else if (num_alloc == st->num_alloc) { in sk_reserve()
198 tmpdata = OPENSSL_realloc((void *)st->data, sizeof(void *) * num_alloc); in sk_reserve()
[all …]
/freebsd-12-stable/contrib/bmake/
Dvar.c1688 struct stat st; in VarRealpath() local
1695 if (rp && *rp == '/' && stat(rp, &st) == 0) in VarRealpath()
2224 (strncmp(s, want, n) == 0 && (s[n] == st->endc || s[n] == ':'))
2227 (s[n] == st->endc || s[n] == ':' || s[n] == '='))
2228 #define CHARMOD_MATCH(c) (c == st->endc || c == ':')
2232 ApplyModifier_At(ApplyModifiersState *st) { in ApplyModifier_At() argument
2236 st->cp = ++(st->tstr); in ApplyModifier_At()
2237 st->delim = '@'; in ApplyModifier_At()
2239 st->ctxt, &st->parsestate, st->flags, &st->cp, st->delim, in ApplyModifier_At()
2245 st->ctxt, &st->parsestate, st->flags, &st->cp, st->delim, in ApplyModifier_At()
[all …]
/freebsd-12-stable/contrib/libarchive/libarchive/
Darchive_entry_copy_stat.c37 archive_entry_copy_stat(struct archive_entry *entry, const struct stat *st) in archive_entry_copy_stat() argument
40 archive_entry_set_atime(entry, st->st_atime, st->st_atimespec.tv_nsec); in archive_entry_copy_stat()
41 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctimespec.tv_nsec); in archive_entry_copy_stat()
42 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtimespec.tv_nsec); in archive_entry_copy_stat()
44 archive_entry_set_atime(entry, st->st_atime, st->st_atim.tv_nsec); in archive_entry_copy_stat()
45 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctim.tv_nsec); in archive_entry_copy_stat()
46 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtim.tv_nsec); in archive_entry_copy_stat()
48 archive_entry_set_atime(entry, st->st_atime, st->st_atime_nsec); in archive_entry_copy_stat()
49 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctime_nsec); in archive_entry_copy_stat()
50 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtime_nsec); in archive_entry_copy_stat()
[all …]
Darchive_entry_stat.c42 struct stat *st; in archive_entry_stat() local
44 entry->stat = calloc(1, sizeof(*st)); in archive_entry_stat()
61 st = entry->stat; in archive_entry_stat()
66 st->st_atime = archive_entry_atime(entry); in archive_entry_stat()
68 st->st_birthtime = archive_entry_birthtime(entry); in archive_entry_stat()
70 st->st_ctime = archive_entry_ctime(entry); in archive_entry_stat()
71 st->st_mtime = archive_entry_mtime(entry); in archive_entry_stat()
72 st->st_dev = archive_entry_dev(entry); in archive_entry_stat()
73 st->st_gid = (gid_t)archive_entry_gid(entry); in archive_entry_stat()
74 st->st_uid = (uid_t)archive_entry_uid(entry); in archive_entry_stat()
[all …]
/freebsd-12-stable/sys/kern/
Dsubr_stack.c57 struct stack *st; in stack_create() local
59 st = malloc(sizeof(*st), M_STACK, flags | M_ZERO); in stack_create()
60 return (st); in stack_create()
64 stack_destroy(struct stack *st) in stack_destroy() argument
67 free(st, M_STACK); in stack_destroy()
71 stack_put(struct stack *st, vm_offset_t pc) in stack_put() argument
74 if (st->depth < STACK_MAX) { in stack_put()
75 st->pcs[st->depth++] = pc; in stack_put()
89 stack_zero(struct stack *st) in stack_zero() argument
92 bzero(st, sizeof *st); in stack_zero()
[all …]
/freebsd-12-stable/contrib/elftoolchain/libelftc/
Delftc_string_table.c52 #define ELFTC_STRING_TABLE_LENGTH(st) ((st)->st_len >> 1) argument
53 #define ELFTC_STRING_TABLE_CLEAR_COMPACTION_FLAG(st) do { \ argument
54 (st)->st_len &= ~ELFTC_STRING_TABLE_COMPACTION_FLAG; \
56 #define ELFTC_STRING_TABLE_SET_COMPACTION_FLAG(st) do { \ argument
57 (st)->st_len |= ELFTC_STRING_TABLE_COMPACTION_FLAG; \
59 #define ELFTC_STRING_TABLE_UPDATE_LENGTH(st, len) do { \ argument
60 (st)->st_len = \
61 ((st)->st_len & \
76 elftc_string_table_find_hash_entry(Elftc_String_Table *st, const char *string, in elftc_string_table_find_hash_entry() argument
83 hashindex = libelftc_hash_string(string) % st->st_nbuckets; in elftc_string_table_find_hash_entry()
[all …]
/freebsd-12-stable/sys/i386/linux/
Dlinux_copyout.c61 struct futex_st0 *st; in futex_xchgl_slow0() local
63 st = arg; in futex_xchgl_slow0()
64 *st->oldval = atomic_swap_int((int *)kva, st->oparg); in futex_xchgl_slow0()
70 struct futex_st0 st; in futex_xchgl() local
72 st.oparg = oparg; in futex_xchgl()
73 st.oldval = oldval; in futex_xchgl()
75 futex_xchgl_slow0, &st) != 0) in futex_xchgl()
83 struct futex_st0 *st; in futex_addl_slow0() local
85 st = arg; in futex_addl_slow0()
86 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0()
[all …]
/freebsd-12-stable/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/
Dpoly1305_donna32.h29 poly1305_init(poly1305_state_internal_t *st, const unsigned char key[32]) in poly1305_init() argument
32 st->r[0] = (LOAD32_LE(&key[0])) & 0x3ffffff; in poly1305_init()
33 st->r[1] = (LOAD32_LE(&key[3]) >> 2) & 0x3ffff03; in poly1305_init()
34 st->r[2] = (LOAD32_LE(&key[6]) >> 4) & 0x3ffc0ff; in poly1305_init()
35 st->r[3] = (LOAD32_LE(&key[9]) >> 6) & 0x3f03fff; in poly1305_init()
36 st->r[4] = (LOAD32_LE(&key[12]) >> 8) & 0x00fffff; in poly1305_init()
39 st->h[0] = 0; in poly1305_init()
40 st->h[1] = 0; in poly1305_init()
41 st->h[2] = 0; in poly1305_init()
42 st->h[3] = 0; in poly1305_init()
[all …]
Dpoly1305_donna64.h35 poly1305_init(poly1305_state_internal_t *st, const unsigned char key[32]) in poly1305_init() argument
44 st->r[0] = (t0) &0xffc0fffffff; in poly1305_init()
45 st->r[1] = ((t0 >> 44) | (t1 << 20)) & 0xfffffc0ffff; in poly1305_init()
46 st->r[2] = ((t1 >> 24)) & 0x00ffffffc0f; in poly1305_init()
49 st->h[0] = 0; in poly1305_init()
50 st->h[1] = 0; in poly1305_init()
51 st->h[2] = 0; in poly1305_init()
54 st->pad[0] = LOAD64_LE(&key[16]); in poly1305_init()
55 st->pad[1] = LOAD64_LE(&key[24]); in poly1305_init()
57 st->leftover = 0; in poly1305_init()
[all …]
/freebsd-12-stable/contrib/libarchive/libarchive/test/
Dtest_write_disk_perms.c54 struct stat st; in searchgid() local
68 assert(fstat(fd, &st) == 0); in searchgid()
69 _default_gid = st.st_gid; in searchgid()
133 struct stat st; in DEFINE_TEST()
168 assertEqualInt(0, stat("file_overwrite_0144", &st)); in DEFINE_TEST()
169 failure("file_overwrite_0144: st.st_mode=%o", st.st_mode); in DEFINE_TEST()
170 assert((st.st_mode & 07777) != 0144); in DEFINE_TEST()
191 assertEqualInt(0, stat("dir_overwrite_0744", &st)); in DEFINE_TEST()
192 failure("dir_overwrite_0744: st.st_mode=%o", st.st_mode); in DEFINE_TEST()
193 assertEqualInt(st.st_mode & 0777, 0744); in DEFINE_TEST()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/poly1305/
Dpoly1305_ieee754.c112 poly1305_internal *st = (poly1305_internal *) ctx; in poly1305_init() local
117 st->h[0].d = TWO(52)*TWO0; in poly1305_init()
118 st->h[1].d = TWO(52)*TWO32; in poly1305_init()
119 st->h[2].d = TWO(52)*TWO64; in poly1305_init()
120 st->h[3].d = TWO(52)*TWO96; in poly1305_init()
122 st->h[0].u = EXP(52+0); in poly1305_init()
123 st->h[1].u = EXP(52+32); in poly1305_init()
124 st->h[2].u = EXP(52+64); in poly1305_init()
125 st->h[3].u = EXP(52+96); in poly1305_init()
165 st->r[0] = r0.d - TWO(52)*TWO0; in poly1305_init()
[all …]
Dpoly1305_base2_44.c59 poly1305_internal *st = (poly1305_internal *)ctx; in poly1305_init() local
63 st->h[0] = 0; in poly1305_init()
64 st->h[1] = 0; in poly1305_init()
65 st->h[2] = 0; in poly1305_init()
71 st->r[0] = r0 & 0x0fffffffffff; in poly1305_init()
72 st->r[1] = ((r0 >> 44) | (r1 << 20)) & 0x0fffffffffff; in poly1305_init()
73 st->r[2] = (r1 >> 24); in poly1305_init()
75 st->s[0] = (st->r[1] + (st->r[1] << 2)) << 2; in poly1305_init()
76 st->s[1] = (st->r[2] + (st->r[2] << 2)) << 2; in poly1305_init()
84 poly1305_internal *st = (poly1305_internal *)ctx; in poly1305_blocks() local
[all …]
/freebsd-12-stable/crypto/openssh/regress/misc/fuzz-harness/
Dkex_fuzz.cc27 static int prepare_key(struct shared_state *st, int keytype, int bits);
123 store_key(struct shared_state *st, struct sshkey *pubkey, in store_key() argument
126 if (st == NULL || pubkey->type < 0 || pubkey->type > INT_MAX || in store_key()
128 ((size_t)pubkey->type < st->nkeys && in store_key()
129 st->pubkeys[pubkey->type] != NULL)) in store_key()
131 if ((size_t)pubkey->type >= st->nkeys) { in store_key()
132 st->pubkeys = (struct sshkey **)xrecallocarray(st->pubkeys, in store_key()
133 st->nkeys, pubkey->type + 1, sizeof(*st->pubkeys)); in store_key()
134 st->privkeys = (struct sshkey **)xrecallocarray(st->privkeys, in store_key()
135 st->nkeys, privkey->type + 1, sizeof(*st->privkeys)); in store_key()
[all …]
/freebsd-12-stable/contrib/libarchive/tar/
Dbsdtar_platform.h103 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctimespec.tv_nsec argument
104 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtimespec.tv_nsec argument
106 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctim.tv_nsec argument
107 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtim.tv_nsec argument
109 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_n argument
110 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_n argument
112 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_uctime * 1000 argument
113 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_umtime * 1000 argument
115 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_usec * 1000 argument
116 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_usec * 1000 argument
[all …]
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/
Dt_wait.c63 int st; in ATF_TC_BODY() local
64 ATF_REQUIRE(wait6(P_ALL, 0, &st, 0, &wru, &si) == -1 in ATF_TC_BODY()
79 int st; in ATF_TC_BODY() local
89 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
90 ATF_REQUIRE(WIFEXITED(st) && WEXITSTATUS(st) == 0x5a); in ATF_TC_BODY()
114 int st; in ATF_TC_BODY() local
125 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
126 ATF_REQUIRE(WIFSIGNALED(st) && WTERMSIG(st) == SIGTERM); in ATF_TC_BODY()
150 int st; in ATF_TC_BODY() local
170 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
[all …]
/freebsd-12-stable/sys/gnu/dts/arm/
Domap3-gta04a3.dts16 compatible = "st,lis331dlh", "st,lis3lv02d";
23 st,click-single-x;
24 st,click-single-y;
25 st,click-single-z;
26 st,click-thresh-x = <8>;
27 st,click-thresh-y = <8>;
28 st,click-thresh-z = <10>;
29 st,click-click-time-limit = <9>;
30 st,click-latency = <50>;
31 st,irq1-click;
[all …]
Dspear320-evb.dts13 compatible = "st,spear320-evb", "st,spear320";
23 st,pinmux-mode = <4>;
29 st,pins = "i2c0_grp";
30 st,function = "i2c0";
33 st,pins = "mii0_grp";
34 st,function = "mii0";
37 st,pins = "ssp0_grp";
38 st,function = "ssp0";
41 st,pins = "uart0_grp";
42 st,function = "uart0";
[all …]
Dspear1340-evb.dts13 compatible = "st,spear1340-evb", "st,spear1340";
28 st,pins = "pads_as_gpio_grp";
29 st,function = "pads_as_gpio";
32 st,pins = "fsmc_8bit_grp";
33 st,function = "fsmc";
36 st,pins = "uart0_grp";
37 st,function = "uart0";
40 st,pins = "i2c0_grp";
41 st,function = "i2c0";
44 st,pins = "i2c1_grp";
[all …]
Dspear310-evb.dts13 compatible = "st,spear310-evb", "st,spear310";
28 st,pins = "gpio0_pin0_grp",
34 st,function = "gpio0";
37 st,pins = "i2c0_grp";
38 st,function = "i2c0";
41 st,pins = "mii0_grp";
42 st,function = "mii0";
45 st,pins = "ssp0_grp";
46 st,function = "ssp0";
49 st,pins = "uart0_grp";
[all …]
Dspear1310-evb.dts13 compatible = "st,spear1310-evb", "st,spear1310";
28 st,pins = "i2c0_grp";
29 st,function = "i2c0";
32 st,pins = "i2s0_grp";
33 st,function = "i2s0";
36 st,pins = "i2s1_grp";
37 st,function = "i2s1";
40 st,pins = "arm_gpio_grp";
41 st,function = "arm_gpio";
44 st,pins = "clcd_grp" , "clcd_high_res";
[all …]
Dspear320-hmi.dts13 compatible = "st,spear320-hmi", "st,spear320";
23 st,pinmux-mode = <4>;
29 st,pins = "i2c0_grp";
30 st,function = "i2c0";
33 st,pins = "ssp0_grp";
34 st,function = "ssp0";
37 st,pins = "uart0_grp";
38 st,function = "uart0";
41 st,pins = "clcd_grp";
42 st,function = "clcd";
[all …]
Domap3-overo-common-peripherals.dtsi55 compatible = "st,lis33de", "st,lis3lv02d";
60 st,click-single-x;
61 st,click-single-y;
62 st,click-single-z;
63 st,click-thresh-x = <10>;
64 st,click-thresh-y = <10>;
65 st,click-thresh-z = <10>;
66 st,irq1-click;
67 st,irq2-click;
68 st,wakeup-x-lo;
[all …]
/freebsd-12-stable/sys/netpfil/pf/
Dif_pfsync.c470 struct pf_kstate *st = NULL; in pfsync_state_import() local
513 st = pf_alloc_state(M_NOWAIT); in pfsync_state_import()
514 if (__predict_false(st == NULL)) in pfsync_state_import()
540 if (pfsync_alloc_scrub_memory(&sp->src, &st->src) || in pfsync_state_import()
541 pfsync_alloc_scrub_memory(&sp->dst, &st->dst)) in pfsync_state_import()
561 bcopy(&sp->rt_addr, &st->rt_addr, sizeof(st->rt_addr)); in pfsync_state_import()
562 st->creation = time_uptime - ntohl(sp->creation); in pfsync_state_import()
563 st->expire = time_uptime; in pfsync_state_import()
572 st->expire -= timeout - ntohl(sp->expire); in pfsync_state_import()
575 st->direction = sp->direction; in pfsync_state_import()
[all …]
/freebsd-12-stable/sys/arm/broadcom/bcm2835/
Dbcm2835_systimer.c82 struct systimer st[BCM2835_NUM_TIMERS]; member
135 struct systimer *st = et->et_priv; in bcm_systimer_start() local
151 bcm_systimer_tc_write_4(SYSTIMER_CS, (1 << st->index)); in bcm_systimer_start()
152 bcm_systimer_tc_write_4(SYSTIMER_C0 + st->index*4, clo); in bcm_systimer_start()
159 st->enabled = 1; in bcm_systimer_start()
171 struct systimer *st = et->et_priv; in bcm_systimer_stop() local
172 st->enabled = 0; in bcm_systimer_stop()
180 struct systimer *st = (struct systimer *)arg; in bcm_systimer_intr() local
184 if ((cs & (1 << st->index)) == 0) in bcm_systimer_intr()
188 bcm_systimer_tc_write_4(SYSTIMER_CS, (1 << st->index)); in bcm_systimer_intr()
[all …]
/freebsd-12-stable/sys/contrib/libsodium/test/default/
Dgenerichash2.c9 crypto_generichash_state *st; in main() local
15 assert(crypto_generichash_statebytes() >= sizeof *st); in main()
16 st = (crypto_generichash_state *) in main()
23 if (crypto_generichash_init(st, k, in main()
29 crypto_generichash_update(st, in, i); in main()
30 crypto_generichash_update(st, in, i); in main()
31 crypto_generichash_update(st, in, i); in main()
32 if (crypto_generichash_final(st, out, in main()
40 if (crypto_generichash_final(st, out, in main()
46 assert(crypto_generichash_init(st, k, sizeof k, 0U) == -1); in main()
[all …]

12345678910>>...53