/freebsd/crypto/openssl/crypto/stack/ |
H A D | stack.c | 173 static int sk_reserve(OPENSSL_STACK *st, int n, int exact) in sk_reserve() argument 179 if (n > max_nodes - st->num) { in sk_reserve() 185 num_alloc = st->num + n; in sk_reserve() 190 if (st->data == NULL) { in sk_reserve() 195 if ((st->data = OPENSSL_zalloc(sizeof(void *) * num_alloc)) == NULL) { in sk_reserve() 199 st->num_alloc = num_alloc; in sk_reserve() 204 if (num_alloc <= st->num_alloc) in sk_reserve() 206 num_alloc = compute_growth(num_alloc, st->num_alloc); in sk_reserve() 211 } else if (num_alloc == st->num_alloc) { in sk_reserve() 215 tmpdata = OPENSSL_realloc((void *)st->data, sizeof(void *) * num_alloc); in sk_reserve() [all …]
|
/freebsd/contrib/bsddialog/lib/ |
H A D | textbox.c | 48 static void updateborders(struct dialog *d, struct scrolltext *st) in updateborders() argument 60 if (st->xpad > 0) { in updateborders() 69 if (st->xpad + d->w - 2 - st->margin < st->wpad) { in updateborders() 78 if (st->hpad > d->h - 4) { in updateborders() 81 "%3d%%", 100 * (st->ypad + d->h - 4) / st->hpad); in updateborders() 86 static int textbox_size_position(struct dialog *d, struct scrolltext *st) in textbox_size_position() 93 d->text, NULL, &d->bs, st in textbox_size_position() 85 textbox_size_position(struct dialog * d,struct scrolltext * st) textbox_size_position() argument 103 textbox_draw(struct dialog * d,struct scrolltext * st) textbox_draw() argument 137 struct scrolltext st; bsddialog_textbox() local [all...] |
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_entry_copy_stat.c | 36 archive_entry_copy_stat(struct archive_entry *entry, const struct stat *st) 39 archive_entry_set_atime(entry, st->st_atime, st->st_atimespec.tv_nsec); in archive_entry_copy_stat() 40 archive_entry_set_ctime(entry, st->st_ctime, st->st_ctimespec.tv_nsec); in archive_entry_copy_stat() 41 archive_entry_set_mtime(entry, st->st_mtime, st->st_mtimespec.tv_nsec); in archive_entry_copy_stat() 43 archive_entry_set_atime(entry, st->st_atime, st->st_atim.tv_nsec); in archive_entry_copy_stat() 44 archive_entry_set_ctime(entry, st in archive_entry_copy_stat() 37 archive_entry_copy_stat(struct archive_entry * entry,const struct stat * st) archive_entry_copy_stat() argument [all...] |
H A D | archive_entry_stat.c | 41 struct stat *st; in archive_entry_stat() 43 entry->stat = calloc(1, sizeof(*st)); in archive_entry_stat() 60 st = entry->stat; in archive_entry_stat() 65 st->st_atime = archive_entry_atime(entry); in archive_entry_stat() 67 st->st_birthtime = archive_entry_birthtime(entry); in archive_entry_stat() 69 st->st_ctime = archive_entry_ctime(entry); in archive_entry_stat() 70 st->st_mtime = archive_entry_mtime(entry); in archive_entry_stat() 71 st->st_dev = archive_entry_dev(entry); in archive_entry_stat() 72 st->st_gid = (gid_t)archive_entry_gid(entry); in archive_entry_stat() 73 st in archive_entry_stat() 42 struct stat *st; archive_entry_stat() local [all...] |
/freebsd/contrib/elftoolchain/libelftc/ |
H A D | elftc_string_table.c | 52 #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/stand/libsa/ |
H A D | nvstore.c | 55 nvstore_t *st; in nvstore_get_store() local 57 st = NULL; in nvstore_get_store() 59 STAILQ_FOREACH(st, &stores, nvs_next) { in nvstore_get_store() 60 if (strcmp(name, st->nvs_name) == 0) in nvstore_get_store() 64 return (st); in nvstore_get_store() 70 nvstore_t *st; in nvstore_init() local 72 st = nvstore_get_store(name); in nvstore_init() 73 if (st != NULL) in nvstore_init() 76 if ((st = malloc(sizeof (*st))) == NULL) in nvstore_init() 79 if ((st->nvs_name = strdup(name)) == NULL) { in nvstore_init() [all …]
|
/freebsd/sys/i386/linux/ |
H A D | linux_copyout.c | 56 struct futex_st0 *st; in futex_xchgl_slow0() local 58 st = arg; in futex_xchgl_slow0() 59 *st->oldval = atomic_swap_int((int *)kva, st->oparg); in futex_xchgl_slow0() 65 struct futex_st0 st; in futex_xchgl() local 67 st.oparg = oparg; in futex_xchgl() 68 st.oldval = oldval; in futex_xchgl() 70 futex_xchgl_slow0, &st) != 0) in futex_xchgl() 78 struct futex_st0 *st; in futex_addl_slow0() local 80 st = arg; in futex_addl_slow0() 81 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/iio/ |
H A D | st-sensors.txt | 16 - st,drdy-int-pin: the pin on the package that will be used to signal 30 - st,lis3lv02d (deprecated, use st,lis3lv02dl-accel) 31 - st,lis302dl-spi (deprecated, use st,lis3lv02dl-accel) 32 - st,lis3lv02dl-accel 33 - st,lsm303dlh-accel 34 - st,lsm303dlhc-accel 35 - st,lis3dh-accel 36 - st,lsm330d-accel 37 - st,lsm330dl-accel 38 - st,lsm330dlc-accel [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | self_test_core.c | 83 static void self_test_setparams(OSSL_SELF_TEST *st) in self_test_setparams() argument 87 if (st->cb != NULL) { in self_test_setparams() 88 st->params[n++] = in self_test_setparams() 90 (char *)st->phase, 0); in self_test_setparams() 91 st->params[n++] = in self_test_setparams() 93 (char *)st->type, 0); in self_test_setparams() 94 st->params[n++] = in self_test_setparams() 96 (char *)st->desc, 0); in self_test_setparams() 98 st->params[n++] = OSSL_PARAM_construct_end(); in self_test_setparams() 117 void OSSL_SELF_TEST_free(OSSL_SELF_TEST *st) in OSSL_SELF_TEST_free() argument [all …]
|
/freebsd/sys/kern/ |
H A D | subr_stack.c | 54 struct stack *st; in stack_create() local 56 st = malloc(sizeof(*st), M_STACK, flags | M_ZERO); in stack_create() 57 return (st); in stack_create() 61 stack_destroy(struct stack *st) in stack_destroy() argument 64 free(st, M_STACK); in stack_destroy() 68 stack_put(struct stack *st, vm_offset_t pc) in stack_put() argument 71 if (st->depth < STACK_MAX) { in stack_put() 72 st->pcs[st->depth++] = pc; in stack_put() 86 stack_zero(struct stack *st) in stack_zero() argument 89 bzero(st, sizeof *st); in stack_zero() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/iio/accel/ |
H A D | lis302.txt | 8 - compatible: should be set to "st,lis3lv02d-spi" 15 - compatible: should be set to "st,lis3lv02d" 23 - st,click-single-{x,y,z}: if present, tells the device to issue an 26 - st,click-double-{x,y,z}: if present, tells the device to issue an 29 - st,click-thresh-{x,y,z}: set the x/y/z axis threshold 30 - st,click-click-time-limit: click time limit, from 0 to 127.5msec 32 - st,click-latency: click latency, from 0 to 255 msec with 34 - st,click-window: click window, from 0 to 255 msec with 36 - st,irq{1,2}-disable: disable IRQ 1/2 37 - st,irq{1,2}-ff-wu-1: raise IRQ 1/2 on FF_WU_1 condition [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
H A D | poly1305_donna32.h | 29 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 …]
|
H A D | poly1305_donna64.h | 35 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/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk_perms.c | 53 struct stat st; in searchgid() 67 assert(fstat(fd, &st) == 0); in searchgid() 68 _default_gid = st.st_gid; in searchgid() 132 struct stat st; in DEFINE_TEST() 167 assertEqualInt(0, stat("file_overwrite_0144", &st)); in DEFINE_TEST() 168 failure("file_overwrite_0144: st.st_mode=%o", st.st_mode); in DEFINE_TEST() 169 assert((st.st_mode & 07777) != 0144); in DEFINE_TEST() 190 assertEqualInt(0, stat("dir_overwrite_0744", &st)); in DEFINE_TEST() 191 failure("dir_overwrite_0744: st in DEFINE_TEST() 54 struct stat st; searchgid() local [all...] |
/freebsd/crypto/openssh/regress/misc/fuzz-harness/ |
H A D | kex_fuzz.cc | 27 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/contrib/libarchive/tar/ |
H A D | bsdtar_platform.h | 73 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctimespec.tv_nsec argument 74 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtimespec.tv_nsec argument 76 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctim.tv_nsec argument 77 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtim.tv_nsec argument 79 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_n argument 80 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_n argument 82 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_uctime * 1000 argument 83 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_umtime * 1000 argument 85 #define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_usec * 1000 argument 86 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_usec * 1000 argument [all …]
|
/freebsd/crypto/openssl/crypto/poly1305/ |
H A D | poly1305_ieee754.c | 112 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 …]
|
H A D | poly1305_base2_44.c | 59 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/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_wait.c | 63 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/sys/contrib/device-tree/src/arm/ti/omap/ |
H A D | omap3-gta04a3.dts | 16 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 …]
|
/freebsd/sys/contrib/device-tree/src/arm/st/ |
H A D | spear320-evb.dts | 13 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 …]
|
H A D | spear310-evb.dts | 13 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 …]
|
H A D | spear1340-evb.dts | 13 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,functio [all...] |
H A D | spear320-hmi.dts | 13 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 …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | hda_codec.c | 223 static uint32_t hda_codec_audio_inout_nid(struct hda_codec_stream *st, 395 struct hda_codec_stream *st = NULL; in hda_codec_init() local 425 st = &sc->streams[HDA_CODEC_STREAM_OUTPUT]; in hda_codec_init() 427 err = hda_audio_ctxt_init(&st->actx, "hda-audio-output", in hda_codec_init() 432 st->aud = audio_init(play, 1); in hda_codec_init() 433 if (!st->aud) { in hda_codec_init() 443 st = &sc->streams[HDA_CODEC_STREAM_INPUT]; in hda_codec_init() 445 err = hda_audio_ctxt_init(&st->actx, "hda-audio-input", in hda_codec_init() 450 st->aud = audio_init(rec, 0); in hda_codec_init() 451 if (!st->aud) { in hda_codec_init() [all …]
|