Home
last modified time | relevance | path

Searched refs:sens (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/test/os-tests/tests/ksensor/
H A Dksensor_sread.c59 uint32_t sens, inst; in main() local
64 sens = arc4random_uniform(nsensors); in main()
68 "/dev/sensors/test/test.temp.%u.%u", sens, inst); in main()
/illumos-gate/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c2352 ipsec_convert_sens_to_bslabel(const struct sadb_sens *sens, bslabel_t *sl) in ipsec_convert_sens_to_bslabel() argument
2354 uint64_t *bitmap = (uint64_t *)(sens + 1); in ipsec_convert_sens_to_bslabel()
2355 int bitmap_len = SADB_64TO8(sens->sadb_sens_sens_len); in ipsec_convert_sens_to_bslabel()
2358 LCLASS_SET((_bslabel_impl_t *)sl, sens->sadb_sens_sens_level); in ipsec_convert_sens_to_bslabel()
2382 ipsec_convert_sl_to_sens(int doi, bslabel_t *sl, sadb_sens_t *sens) in ipsec_convert_sl_to_sens() argument
2388 if (sens == NULL) in ipsec_convert_sl_to_sens()
2392 (void) memset(sens, 0, sens_len); in ipsec_convert_sl_to_sens()
2394 sens->sadb_sens_exttype = SADB_EXT_SENSITIVITY; in ipsec_convert_sl_to_sens()
2395 sens->sadb_sens_len = SADB_8TO64(sens_len); in ipsec_convert_sl_to_sens()
2396 sens->sadb_sens_dpd = doi; in ipsec_convert_sl_to_sens()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dsadb.c1092 sadb_sens_t *sens; in sadb_sa2msg() local
1445 sens = (sadb_sens_t *)walker; in sadb_sa2msg()
1446 sadb_sens_from_label(sens, SADB_EXT_SENSITIVITY, in sadb_sa2msg()
1454 sens = (sadb_sens_t *)walker; in sadb_sa2msg()
1456 sadb_sens_from_label(sens, SADB_X_EXT_OUTER_SENS, in sadb_sa2msg()
1459 sens->sadb_x_sens_flags = SADB_X_SENS_IMPLICIT; in sadb_sa2msg()
2926 sadb_sens_t *sens = local
3468 if (sens != NULL) {
3469 uint64_t *bitmap = (uint64_t *)(sens + 1);
3471 newbie->ipsa_tsl = sadb_label_from_sens(sens, bitmap);
[all …]
H A Dipsecah.c538 sadb_sens_t *sens; in ah_register_out() local
636 sens = (sadb_sens_t *)nextext; in ah_register_out()
637 sadb_sens_from_label(sens, SADB_EXT_SENSITIVITY, in ah_register_out()
640 nextext = (sadb_ext_t *)(((uint8_t *)sens) + sens_len); in ah_register_out()
H A Dipsecesp.c2780 sadb_sens_t *sens; in esp_register_out() local
2930 sens = (sadb_sens_t *)nextext; in esp_register_out()
2931 sadb_sens_from_label(sens, SADB_EXT_SENSITIVITY, in esp_register_out()
2934 nextext = (sadb_ext_t *)(((uint8_t *)sens) + sens_len); in esp_register_out()
/illumos-gate/usr/src/uts/common/io/urtw/
H A Durtw_var.h72 int32_t sens; member
H A Durtw.c937 rf->sens = URTW_8225_RF_DEF_SENS; in urtw_get_rfchip()
2473 if (rf->sens < 0 || rf->sens > 6) in urtw_8225_rf_set_sens()
2476 if (rf->sens > 4) in urtw_8225_rf_set_sens()
2483 rf->sens = 6 - rf->sens; in urtw_8225_rf_set_sens()
2484 if (error = urtw_8225_setgain(sc, rf->sens)) in urtw_8225_rf_set_sens()
2487 urtw_8225_threshold[rf->sens]); in urtw_8225_rf_set_sens()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c1038 sadb_sens_t *sens; in parselabel() local
1047 sens = malloc(len); in parselabel()
1048 if (sens == NULL) { in parselabel()
1054 (void) ipsec_convert_sl_to_sens(doi, sl, sens); in parselabel()
1061 sens->sadb_sens_exttype = SADB_X_EXT_OUTER_SENS; in parselabel()
1065 sens->sadb_sens_exttype = SADB_X_EXT_OUTER_SENS; in parselabel()
1066 sens->sadb_x_sens_flags = SADB_X_SENS_IMPLICIT; in parselabel()
1070 free(sens); in parselabel()
1078 return (sens); in parselabel()