Home
last modified time | relevance | path

Searched refs:intval (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/crypto/krb5/src/util/profile/
H A Dtest_vtable.c241 int intval; in main() local
251 assert(profile_is_writable(profile, &intval) == 0); in main()
252 assert(intval == 0); in main()
253 assert(profile_is_modified(profile, &intval) == 0); in main()
254 assert(intval == 0); in main()
269 &intval) == 0); in main()
270 assert(intval == 23); in main()
272 &intval) == 0); in main()
273 assert(intval == 1); in main()
274 assert(profile_get_integer(profile, "xxx", NULL, NULL, 62, &intval) == 0); in main()
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_beacon.c934 u_int32_t nexttbtt, intval, tsftu; in ath_beacon_config() local
997 intval = ni->ni_intval & HAL_BEACON_PERIOD; in ath_beacon_config()
999 intval /= ATH_BCBUF; in ath_beacon_config()
1002 intval = ni->ni_intval & HAL_BEACON_PERIOD; in ath_beacon_config()
1021 nexttbtt = intval; in ath_beacon_config()
1023 nexttbtt = roundup(nexttbtt, intval); in ath_beacon_config()
1077 remainder = (nexttbtt - tsftu) % intval; in ath_beacon_config()
1080 countdiff = (oldtbtt - nexttbtt) / intval % dtimperiod; in ath_beacon_config()
1090 remainder = (tsftu - nexttbtt) % intval; in ath_beacon_config()
1091 nexttbtt = tsftu - remainder + intval; in ath_beacon_config()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/asn.1/
H A Dasn1_encode.c521 store_int(intmax_t intval, size_t size, void *val) in store_int() argument
525 if ((int8_t)intval != intval) in store_int()
527 *(int8_t *)val = intval; in store_int()
530 if ((int16_t)intval != intval) in store_int()
532 *(int16_t *)val = intval; in store_int()
535 if ((int32_t)intval != intval) in store_int()
537 *(int32_t *)val = intval; in store_int()
540 if ((int64_t)intval != intval) in store_int()
542 *(int64_t *)val = intval; in store_int()
550 store_uint(uintmax_t intval, size_t size, void *val) in store_uint() argument
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_crypt.c2105 uint64_t intval, nlevels, blksz, ibs; in dsl_crypto_recv_raw_objset_check() local
2112 ret = nvlist_lookup_uint64(nvl, "mdn_compress", &intval); in dsl_crypto_recv_raw_objset_check()
2113 if (ret != 0 || intval >= ZIO_COMPRESS_LEGACY_FUNCTIONS) in dsl_crypto_recv_raw_objset_check()
2116 ret = nvlist_lookup_uint64(nvl, "mdn_checksum", &intval); in dsl_crypto_recv_raw_objset_check()
2117 if (ret != 0 || intval >= ZIO_CHECKSUM_LEGACY_FUNCTIONS) in dsl_crypto_recv_raw_objset_check()
2175 intval = 0; in dsl_crypto_recv_raw_objset_check()
2177 (void) nvlist_lookup_uint64(nvl, "from_ivset_guid", &intval); in dsl_crypto_recv_raw_objset_check()
2182 if (intval == 0 || from_ivset_guid == 0) in dsl_crypto_recv_raw_objset_check()
2185 if (intval != from_ivset_guid) in dsl_crypto_recv_raw_objset_check()
2274 uint64_t intval, key_guid, version; in dsl_crypto_recv_raw_key_check() local
[all …]
H A Dvdev.c6234 uint64_t intval, zprop_source_t src) in vdev_prop_add_list() argument
6244 fnvlist_add_uint64(propval, ZPROP_VALUE, intval); in vdev_prop_add_list()
6279 uint64_t intval; in vdev_props_set_sync() local
6304 intval = fnvpair_value_uint64(elem); in vdev_props_set_sync()
6305 ASSERT3U(intval, !=, VDEV_BIAS_LOG); in vdev_props_set_sync()
6307 (intval == VDEV_BIAS_SPECIAL) ? in vdev_props_set_sync()
6309 (intval == VDEV_BIAS_DEDUP) ? in vdev_props_set_sync()
6341 intval = fnvpair_value_uint64(elem); in vdev_props_set_sync()
6346 prop, intval, &unused)); in vdev_props_set_sync()
6349 sizeof (uint64_t), 1, &intval, tx)); in vdev_props_set_sync()
[all …]
H A Ddsl_prop.c718 uint64_t zapobj, intval, dummy, count; in dsl_prop_set_sync_impl() local
729 isint = (dodefault(zfs_name_to_prop(propname), 8, 1, &intval) == 0); in dsl_prop_set_sync_impl()
850 VERIFY0(dsl_prop_get_int_ds(ds, propname, &intval)); in dsl_prop_set_sync_impl()
864 cbr->cbr_func(cbr->cbr_arg, intval); in dsl_prop_set_sync_impl()
869 ds->ds_dir->dd_object, propname, intval, TRUE); in dsl_prop_set_sync_impl()
873 "%lld", (longlong_t)intval); in dsl_prop_set_sync_impl()
999 uint64_t intval = fnvpair_value_uint64(pair); in dsl_props_set_sync_impl() local
1001 source, sizeof (intval), 1, &intval, tx); in dsl_props_set_sync_impl()
H A Dzfs_ioctl.c2918 uint64_t intval = 0; in zfs_prop_set_special() local
2938 intval = fnvpair_value_uint64(pair); in zfs_prop_set_special()
2943 err = dsl_dir_set_quota(dsname, source, intval); in zfs_prop_set_special()
2946 err = dsl_dataset_set_refquota(dsname, source, intval); in zfs_prop_set_special()
2950 if (intval == UINT64_MAX) { in zfs_prop_set_special()
2974 err = dsl_dir_set_reservation(dsname, source, intval); in zfs_prop_set_special()
2977 err = dsl_dataset_set_refreservation(dsname, source, intval); in zfs_prop_set_special()
2980 err = dsl_dataset_set_compression(dsname, source, intval); in zfs_prop_set_special()
2989 err = zvol_set_volsize(dsname, intval); in zfs_prop_set_special()
2992 err = zvol_set_volthreading(dsname, intval); in zfs_prop_set_special()
[all …]
H A Dspa.c352 uint64_t intval, zprop_source_t src) in spa_prop_add_list() argument
363 fnvlist_add_uint64(propval, ZPROP_VALUE, intval); in spa_prop_add_list()
374 uint64_t intval; in spa_prop_add() local
383 err = ddt_get_pool_dedup_cached(spa, &intval); in spa_prop_add()
391 spa_prop_add_list(outnvl, prop, NULL, intval, src); in spa_prop_add()
650 uint64_t intval = 0; in spa_prop_get() local
680 intval = za->za_first_integer; in spa_prop_get()
683 spa_prop_add_list(nv, prop, strval, intval, src); in spa_prop_get()
739 uint64_t intval; in spa_prop_validate() local
766 if (nvpair_value_uint64(elem, &intval) != 0) { in spa_prop_validate()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dbeacon.c180 void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval) in mt7603_beacon_set_timer() argument
185 if (intval) in mt7603_beacon_set_timer()
191 if (!dev->mt76.beacon_mask || (!intval && idx < 0)) { in mt7603_beacon_set_timer()
198 if (intval) in mt7603_beacon_set_timer()
199 dev->mt76.beacon_int = intval; in mt7603_beacon_set_timer()
201 FIELD_PREP(MT_TBTT_PERIOD, intval) | MT_TBTT_CAL_ENABLE); in mt7603_beacon_set_timer()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c1023 uint64_t intval; in zio_crypt_do_objset_hmacs() local
1033 intval = (le_bswap) ? osp->os_type : BSWAP_64(osp->os_type); in zio_crypt_do_objset_hmacs()
1034 crypto_mac_update(ctx, &intval, sizeof (uint64_t)); in zio_crypt_do_objset_hmacs()
1037 intval = osp->os_flags; in zio_crypt_do_objset_hmacs()
1039 intval = BSWAP_64(intval); in zio_crypt_do_objset_hmacs()
1040 intval &= OBJSET_CRYPT_PORTABLE_FLAGS_MASK; in zio_crypt_do_objset_hmacs()
1042 intval = BSWAP_64(intval); in zio_crypt_do_objset_hmacs()
1044 crypto_mac_update(ctx, &intval, sizeof (uint64_t)); in zio_crypt_do_objset_hmacs()
1064 intval = osp->os_flags; in zio_crypt_do_objset_hmacs()
1066 intval = BSWAP_64(intval); in zio_crypt_do_objset_hmacs()
[all …]
/freebsd/usr.bin/patch/
H A Dutil.c299 static sig_t hupval, intval; in set_signals() local
305 intval = signal(SIGINT, SIG_IGN); in set_signals()
306 if (intval != SIG_IGN) in set_signals()
307 intval = my_exit; in set_signals()
310 signal(SIGINT, intval); in set_signals()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_pool.c281 uint64_t intval; in zpool_get_prop() local
296 intval = zpool_get_prop_int(zhp, prop, &src); in zpool_get_prop()
297 (void) snprintf(buf, len, "%llu", (u_longlong_t)intval); in zpool_get_prop()
342 intval = zpool_get_prop_int(zhp, prop, &src); in zpool_get_prop()
353 if (intval == 0) { in zpool_get_prop()
357 } else if (intval == UINT64_MAX) { in zpool_get_prop()
418 (u_longlong_t)intval); in zpool_get_prop()
420 (void) zfs_nicenum(intval, buf, len); in zpool_get_prop()
431 if (intval == 0) { in zpool_get_prop()
435 (u_longlong_t)intval); in zpool_get_prop()
[all …]
H A Dlibzfs_dataset.c842 uint64_t intval; in zfs_valid_proplist() local
937 intval = 0; in zfs_valid_proplist()
939 strval, &intval) != 0) { in zfs_valid_proplist()
946 (void) nvpair_value_uint64(elem, &intval); in zfs_valid_proplist()
947 if (intval == 0) { in zfs_valid_proplist()
975 valary[2] = intval; in zfs_valid_proplist()
1019 &strval, &intval, errbuf) != 0) in zfs_valid_proplist()
1033 if (intval < version) { in zfs_valid_proplist()
1057 if (intval < SPA_MINBLOCKSIZE || in zfs_valid_proplist()
1058 intval > maxbs || !ISP2(intval)) { in zfs_valid_proplist()
[all …]
H A Dlibzfs_crypto.c930 uint64_t intval; in proplist_has_encryption_props() local
934 zfs_prop_to_name(ZFS_PROP_ENCRYPTION), &intval); in proplist_has_encryption_props()
935 if (ret == 0 && intval != ZIO_CRYPT_OFF) in proplist_has_encryption_props()
944 zfs_prop_to_name(ZFS_PROP_KEYFORMAT), &intval); in proplist_has_encryption_props()
949 zfs_prop_to_name(ZFS_PROP_PBKDF2_ITERS), &intval); in proplist_has_encryption_props()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c1140 uint64_t intval; in zio_crypt_do_objset_hmacs() local
1161 intval = (le_bswap) ? osp->os_type : BSWAP_64(osp->os_type); in zio_crypt_do_objset_hmacs()
1163 cd.cd_raw.iov_base = (char *)&intval; in zio_crypt_do_objset_hmacs()
1173 intval = osp->os_flags; in zio_crypt_do_objset_hmacs()
1175 intval = BSWAP_64(intval); in zio_crypt_do_objset_hmacs()
1176 intval &= OBJSET_CRYPT_PORTABLE_FLAGS_MASK; in zio_crypt_do_objset_hmacs()
1178 intval = BSWAP_64(intval); in zio_crypt_do_objset_hmacs()
1181 cd.cd_raw.iov_base = (char *)&intval; in zio_crypt_do_objset_hmacs()
1217 intval = osp->os_flags; in zio_crypt_do_objset_hmacs()
1219 intval = BSWAP_64(intval); in zio_crypt_do_objset_hmacs()
[all …]
/freebsd/sys/dev/wtap/wtap_hal/
H A Dhal.c222 uint32_t intval = hal->hw.timer_intr_intval; in wtap_hal_timer_intr() local
224 hal->hw.tsf += ticks_to_msecs(intval); in wtap_hal_timer_intr()
226 callout_schedule(&hal->hw.timer_intr, intval); in wtap_hal_timer_intr()
/freebsd/sbin/kldstat/
H A Dkldstat.c62 stat.name, stat.data.intval, stat.data.uintval, in printmod()
173 stat.data.intval, stat.data.uintval, in main()
/freebsd/share/examples/kld/syscall/test/
H A Dcall.c49 syscall_num = stat.data.intval; in main()
/freebsd/sbin/sysctl/
H A Dsysctl.c302 int intval; in parse_numeric() local
316 intval = strIKtoi(newvalstr, &endptr, fmt); in parse_numeric()
318 intval = (int)strtol(newvalstr, &endptr, 0); in parse_numeric()
319 newval = &intval; in parse_numeric()
320 valsize = sizeof(intval); in parse_numeric()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dwnm_sta.h59 u8 action, u16 intval, struct wpabuf *tfs_req);
H A Dwnm_sta.c56 u8 action, u16 intval, struct wpabuf *tfs_req) in ieee802_11_send_wnmsleep_req() argument
82 wnmsleep_ie->intval = host_to_le16(intval); in ieee802_11_send_wnmsleep_req()
194 "(action=%d, intval=%d)", action, intval); in ieee802_11_send_wnmsleep_req()
408 wnmsleep_ie->action_type, wnmsleep_ie->intval); in ieee802_11_rx_wnmsleep_resp()
418 wnmsleep_ie->action_type, wnmsleep_ie->intval); in ieee802_11_rx_wnmsleep_resp()
/freebsd/crypto/openssl/test/
H A Dparams_api_test.c78 uint64_t intval; in test_param_type_null() local
85 rc = OSSL_PARAM_get_int32(param, (int32_t *)&intval); in test_param_type_null()
87 rc = OSSL_PARAM_get_int64(param, (int64_t *)&intval); in test_param_type_null()
93 rc = OSSL_PARAM_get_uint32(param, (uint32_t *)&intval); in test_param_type_null()
95 rc = OSSL_PARAM_get_uint64(param, &intval); in test_param_type_null()
/freebsd/sys/arm64/nvidia/tegra210/
H A Dmax77620_regulators.c549 int intval, rv; in max77620_regnode_init() local
573 rv = max77620_get_pwr_ramp_delay(sc, &intval); in max77620_regnode_init()
579 sc->pwr_ramp_delay = intval; in max77620_regnode_init()
/freebsd/sbin/veriexec/
H A Dmanifest_parser.y92 int intval; member
/freebsd/contrib/wpa/src/ap/
H A Dwnm_ap.c64 u8 action_type, u16 intval) in ieee802_11_send_wnmsleep_resp() argument
95 wnmsleep_ie.intval = host_to_le16(intval); in ieee802_11_send_wnmsleep_resp()
372 le_to_host16(wnmsleep_ie->intval)); in ieee802_11_rx_wnmsleep_req()

12