/illumos-gate/usr/src/uts/common/inet/ |
H A D | tunables.c | 102 void *pval, uint_t psize, uint_t flags) in mod_get_boolean() argument 109 bzero(pval, psize); in mod_get_boolean() 198 bzero(pval, psize); in mod_get_uint32() 202 nbytes = snprintf(pval, psize, "%u-%u", in mod_get_uint32() 292 char *pval = val; in mod_get_allprop() local 297 bzero(pval, psize); in mod_get_allprop() 330 pval += nbytes + 1; in mod_get_allprop() 359 const char *pval = val; in mod_set_extra_privports() local 473 char *pval = val; in mod_get_extra_privports() local 479 bzero(pval, psize); in mod_get_extra_privports() [all …]
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tunables.c | 77 char *pval = val; in tcp_listener_conf_get() local 82 bzero(pval, psize); in tcp_listener_conf_get() 92 nbytes = snprintf(pval, size, "%d:%d", tl->tl_port, in tcp_listener_conf_get() 95 nbytes = snprintf(pval, size, ",%d:%d", tl->tl_port, in tcp_listener_conf_get() 98 pval += nbytes; in tcp_listener_conf_get() 117 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_add() argument 166 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument 198 cr, pinfo, ifname, pval, flags)); in tcp_set_buf_prop() 256 CC_DEFAULT_ALGO_NAME : (char *)pval; in tcp_set_cc_algorithm() 293 tcp_copy_ccname_t cd = { pval, psize, 0 }; in tcp_get_cc_algorithm() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_tunables.c | 100 void *pval, uint_t pr_size, uint_t flags) in ip_get_forwarding() argument 148 nbytes = snprintf(pval, pr_size, "%d", value); in ip_get_forwarding() 184 void *pval, uint_t psize, uint_t flags) in ip_get_debug() argument 191 bzero(pval, psize); in ip_get_debug() 195 nbytes = snprintf(pval, psize, "%u-%u", in ip_get_debug() 200 nbytes = snprintf(pval, psize, "%u", ip_debug); in ip_get_debug() 271 void *pval, uint_t psize, uint_t flags) in ip_get_mtu() argument 305 nbytes = snprintf(pval, psize, "%u", def_mtu); in ip_get_mtu() 452 void *pval, uint_t psize, uint_t flags) in ip_get_hostmodel() argument 460 bzero(pval, psize); in ip_get_hostmodel() [all …]
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_prop.c | 401 pval = val; in i_ipadm_set_mtu() 465 pval = IPADM_NONESTR; in i_ipadm_set_usesrc() 544 pval = val; in i_ipadm_set_hostmodel() 607 pval = IPADM_ONSTR; in i_ipadm_set_ifprop_flags() 610 pval = IPADM_OFFSTR; in i_ipadm_set_ifprop_flags() 668 assert(pval == NULL); in i_ipadm_set_eprivport() 739 pval = val; in i_ipadm_set_forwarding() 765 pval = val; in i_ipadm_set_ecnsack() 1130 if (pval != NULL) in i_ipadm_populate_proparg() 1336 if (pval != NULL) { in i_ipadm_set_prop() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_tunables.c | 51 char *pval = val; in sctp_listener_conf_get() local 56 bzero(pval, psize); in sctp_listener_conf_get() 66 nbytes = snprintf(pval, size, "%d:%d", sl->sl_port, in sctp_listener_conf_get() 69 nbytes = snprintf(pval, size, ",%d:%d", sl->sl_port, in sctp_listener_conf_get() 72 pval += nbytes; in sctp_listener_conf_get() 91 const char *ifname, const void* pval, uint_t flags) in sctp_listener_conf_add() argument 103 if (ddi_strtol(pval, &colon, 10, &lport) != 0 || lport <= 0 || in sctp_listener_conf_add() 140 const char *ifname, const void* pval, uint_t flags) in sctp_listener_conf_del() argument 149 if (ddi_strtol(pval, NULL, 10, &lport) != 0 || lport <= 0 || in sctp_listener_conf_del() 169 const char *ifname, const void *pval, uint_t flags) in sctp_set_buf_prop() argument [all …]
|
/illumos-gate/usr/src/uts/common/inet/udp/ |
H A D | udp_tunables.c | 35 const char *ifname, const void *pval, uint_t flags) in udp_set_buf_prop() argument 38 cr, pinfo, ifname, pval, flags)); in udp_set_buf_prop() 56 const char *ifname, const void *pval, uint_t flags) in udp_smallest_anon_set() argument 62 if ((err = mod_uint32_value(pval, pinfo, flags, &new_value)) != 0) in udp_smallest_anon_set() 74 const char *ifname, const void *pval, uint_t flags) in udp_largest_anon_set() argument 80 if ((err = mod_uint32_value(pval, pinfo, flags, &new_value)) != 0) in udp_largest_anon_set()
|
/illumos-gate/usr/src/cmd/pools/poolstat/ |
H A D | sa_libpool.c | 109 const char *name, pool_value_t *pval, userdata_cb_t *ud) in populate_userdata_cb() argument 115 ud->ud_result = pool_value_get_uint64(pval, &bag->pset_sb_min); in populate_userdata_cb() 117 ud->ud_result = pool_value_get_uint64(pval, &bag->pset_sb_max); in populate_userdata_cb() 121 ud->ud_result = pool_value_get_uint64(pval, &load); in populate_userdata_cb() 124 ud->ud_result = pool_value_get_uint64(pval, &bag->pset_sb_size); in populate_userdata_cb() 126 ud->ud_result = pool_value_get_int64(pval, &bag->pset_sb_sysid); in populate_userdata_cb()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | io_dev_label.c | 31 const char *pval, picl_nodehdl_t *nodeh); 34 const char *pval); 244 const char *pval) in compare_string_propval() argument 260 len = strlen(pval) + 1; in compare_string_propval() 267 if ((err == PICL_SUCCESS) && (strcmp(pvalbuf, pval) == 0)) in compare_string_propval() 278 const char *pval, picl_nodehdl_t *nodeh) in find_node_by_string_prop() argument 290 if (compare_string_propval(childh, pname, pval)) { in find_node_by_string_prop()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | erie.c | 262 char *pval; in erie_get_first_compatible_value() local 270 pval = malloc(pinfo.size); in erie_get_first_compatible_value() 271 if (pval == NULL) in erie_get_first_compatible_value() 273 err = picl_get_propval(proph, pval, pinfo.size); in erie_get_first_compatible_value() 275 free(pval); in erie_get_first_compatible_value() 278 *outbuf = pval; in erie_get_first_compatible_value() 298 pval = malloc(pinfo.size); in erie_get_first_compatible_value() 299 if (pval == NULL) in erie_get_first_compatible_value() 302 err = picl_get_propval(rowproph, pval, pinfo.size); in erie_get_first_compatible_value() 304 free(pval); in erie_get_first_compatible_value() [all …]
|
H A D | huron.c | 392 char *pval; in huron_get_first_compatible_value() local 400 pval = malloc(pinfo.size); in huron_get_first_compatible_value() 401 if (pval == NULL) in huron_get_first_compatible_value() 403 err = picl_get_propval(proph, pval, pinfo.size); in huron_get_first_compatible_value() 405 free(pval); in huron_get_first_compatible_value() 408 *outbuf = pval; in huron_get_first_compatible_value() 428 pval = malloc(pinfo.size); in huron_get_first_compatible_value() 429 if (pval == NULL) in huron_get_first_compatible_value() 432 err = picl_get_propval(rowproph, pval, pinfo.size); in huron_get_first_compatible_value() 434 free(pval); in huron_get_first_compatible_value() [all …]
|
H A D | pelton.c | 402 char *pval; in pelton_get_first_compatible_value() local 410 pval = malloc(pinfo.size); in pelton_get_first_compatible_value() 411 if (pval == NULL) in pelton_get_first_compatible_value() 413 err = picl_get_propval(proph, pval, pinfo.size); in pelton_get_first_compatible_value() 415 free(pval); in pelton_get_first_compatible_value() 418 *outbuf = pval; in pelton_get_first_compatible_value() 438 pval = malloc(pinfo.size); in pelton_get_first_compatible_value() 439 if (pval == NULL) in pelton_get_first_compatible_value() 442 err = picl_get_propval(rowproph, pval, pinfo.size); in pelton_get_first_compatible_value() 444 free(pval); in pelton_get_first_compatible_value() [all …]
|
H A D | stpaul.c | 463 char *pval; in stpaul_get_first_compatible_value() local 471 pval = malloc(pinfo.size); in stpaul_get_first_compatible_value() 472 if (pval == NULL) in stpaul_get_first_compatible_value() 474 err = picl_get_propval(proph, pval, pinfo.size); in stpaul_get_first_compatible_value() 476 free(pval); in stpaul_get_first_compatible_value() 479 *outbuf = pval; in stpaul_get_first_compatible_value() 499 pval = malloc(pinfo.size); in stpaul_get_first_compatible_value() 500 if (pval == NULL) in stpaul_get_first_compatible_value() 503 err = picl_get_propval(rowproph, pval, pinfo.size); in stpaul_get_first_compatible_value() 505 free(pval); in stpaul_get_first_compatible_value() [all …]
|
H A D | ontario.c | 608 char *pval; in ontario_get_first_compatible_value() local 616 pval = malloc(pinfo.size); in ontario_get_first_compatible_value() 617 if (pval == NULL) in ontario_get_first_compatible_value() 619 err = picl_get_propval(proph, pval, pinfo.size); in ontario_get_first_compatible_value() 621 free(pval); in ontario_get_first_compatible_value() 624 *outbuf = pval; in ontario_get_first_compatible_value() 644 pval = malloc(pinfo.size); in ontario_get_first_compatible_value() 645 if (pval == NULL) in ontario_get_first_compatible_value() 648 err = picl_get_propval(rowproph, pval, pinfo.size); in ontario_get_first_compatible_value() 650 free(pval); in ontario_get_first_compatible_value() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/ |
H A D | montoya.c | 492 char *pval; in montoya_get_first_compatible_value() local 500 pval = malloc(pinfo.size); in montoya_get_first_compatible_value() 501 if (pval == NULL) in montoya_get_first_compatible_value() 503 err = picl_get_propval(proph, pval, pinfo.size); in montoya_get_first_compatible_value() 505 free(pval); in montoya_get_first_compatible_value() 508 *outbuf = pval; in montoya_get_first_compatible_value() 528 pval = malloc(pinfo.size); in montoya_get_first_compatible_value() 529 if (pval == NULL) in montoya_get_first_compatible_value() 532 err = picl_get_propval(rowproph, pval, pinfo.size); in montoya_get_first_compatible_value() 534 free(pval); in montoya_get_first_compatible_value() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/ |
H A D | monza.c | 537 char *pval; in monza_get_first_compatible_value() local 545 pval = malloc(pinfo.size); in monza_get_first_compatible_value() 546 if (pval == NULL) in monza_get_first_compatible_value() 548 err = picl_get_propval(proph, pval, pinfo.size); in monza_get_first_compatible_value() 550 free(pval); in monza_get_first_compatible_value() 553 *outbuf = pval; in monza_get_first_compatible_value() 573 pval = malloc(pinfo.size); in monza_get_first_compatible_value() 574 if (pval == NULL) in monza_get_first_compatible_value() 577 err = picl_get_propval(rowproph, pval, pinfo.size); in monza_get_first_compatible_value() 579 free(pval); in monza_get_first_compatible_value() [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | pool_rcm.c | 123 pool_value_t *pval; in pool_check_pset() local 126 if ((pval = pool_value_alloc()) == NULL) in pool_check_pset() 128 if (pool_get_property(conf, elem, "pset.min", pval) != POC_UINT) { in pool_check_pset() 131 pool_value_free(pval); in pool_check_pset() 134 (void) pool_value_get_uint64(pval, &min_cpus); in pool_check_pset() 135 if (pool_get_property(conf, elem, "pset.sys_id", pval) != POC_INT) { in pool_check_pset() 138 pool_value_free(pval); in pool_check_pset() 141 (void) pool_value_get_int64(pval, &tmp); in pool_check_pset() 142 pool_value_free(pval); in pool_check_pset()
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool_internal.c | 415 elem_no_set(pool_elem_t *elem, const pool_value_t *pval) in elem_no_set() argument 430 if (pool_value_get_string(pval, &nm) != PO_SUCCESS) { in elem_set_name() 469 if (pool_value_get_type(pval) == POC_STRING) in elem_set_string() 484 if (pool_value_get_type(pval) == POC_BOOL) in elem_set_bool() 499 if (pool_value_get_type(pval) == POC_UINT) in elem_set_uint() 531 if (pool_value_get_type(pval) != POC_BOOL) { in pool_set_active() 535 (void) pool_value_get_bool(pval, &bval); in pool_set_active() 554 if (pool_value_get_string(pval, &sched) != 0) { in pool_set_scheduler() 575 if (pool_value_get_uint64(pval, &max) != PO_SUCCESS) { in res_set_max() 629 if (pool_value_get_uint64(pval, &min) != PO_SUCCESS) { in res_set_min() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_persist.c | 373 char *pval; in ipmgmt_db_getprop() local 383 &pval)) == 0) { in ipmgmt_db_getprop() 426 char pval[MAXPROPVALLEN]; in ipmgmt_db_resetprop() local 438 bzero(pval, sizeof (pval)); in ipmgmt_db_resetprop() 444 if (pval[0] != '\0') in ipmgmt_db_resetprop() 445 (void) strlcat(pval, ",", in ipmgmt_db_resetprop() 447 (void) strlcat(pval, val, in ipmgmt_db_resetprop() 664 char pval[MAXPROPVALLEN]; in ipmgmt_db_update() local 1764 "for property %s: %s", pval, pname, in ipmgmt_set_scfprop_value() 1823 void *pval, scf_type_t ptype) in ipmgmt_get_scfprop() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_ndd.c | 59 nge_nd_get_prop_val(dev_info_t *dip, char *nm, long min, long max, int *pval) in nge_nd_get_prop_val() argument 68 *pval = NGE_PROP_GET_INT(dip, nm); in nge_nd_get_prop_val() 69 if (*pval >= min && *pval <= max) in nge_nd_get_prop_val()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/ |
H A D | piclmemcfg.c | 302 int pval; in get_reg_info() local 309 err = ptree_get_propval_by_name(plfh, OBP_PROP_SIZE_CELLS, &pval, in get_reg_info() 310 sizeof (pval)); in get_reg_info() 313 pval = SUPPORTED_NUM_CELL_SIZE; in get_reg_info() 320 if (pval != SUPPORTED_NUM_CELL_SIZE) in get_reg_info()
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | display_sun4v.c | 347 uint8_t *pval; in get_slot_number() local 375 if (!pval) { in get_slot_number() 385 free(pval); in get_slot_number() 421 free(pval); in get_slot_number() 649 char *pval; in sun4v_get_first_compatible_value() local 658 if (pval == NULL) in sun4v_get_first_compatible_value() 662 free(pval); in sun4v_get_first_compatible_value() 665 *outbuf = pval; in sun4v_get_first_compatible_value() 686 if (pval == NULL) in sun4v_get_first_compatible_value() 691 free(pval); in sun4v_get_first_compatible_value() [all …]
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_ndd.c | 195 int pval; in rge_param_register() local 240 pval = RGE_PROP_GET_INT(dip, nm); in rge_param_register() 241 if (pval >= ndp->ndp_min && pval <= ndp->ndp_max) in rge_param_register() 242 ndp->ndp_val = pval; in rge_param_register()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 422 char *pval; in opl_get_first_compatible_value() local 430 pval = malloc(pinfo.size); in opl_get_first_compatible_value() 431 if (pval == NULL) in opl_get_first_compatible_value() 433 err = picl_get_propval(proph, pval, pinfo.size); in opl_get_first_compatible_value() 435 free(pval); in opl_get_first_compatible_value() 438 *outbuf = pval; in opl_get_first_compatible_value() 458 pval = malloc(pinfo.size); in opl_get_first_compatible_value() 459 if (pval == NULL) in opl_get_first_compatible_value() 462 err = picl_get_propval(rowproph, pval, pinfo.size); in opl_get_first_compatible_value() 464 free(pval); in opl_get_first_compatible_value() [all …]
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_ndd.c | 193 int pval; in unm_param_register() local 238 pval = UNM_PROP_GET_INT(dip, nm); in unm_param_register() 239 if (pval >= ndp->ndp_min && pval <= ndp->ndp_max) in unm_param_register() 240 ndp->ndp_val = pval; in unm_param_register()
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_ndd.c | 61 bge_nd_get_prop_val(dev_info_t *dip, char *nm, long min, long max, int *pval) in bge_nd_get_prop_val() argument 69 *pval = BGE_PROP_GET_INT(dip, nm); in bge_nd_get_prop_val() 70 if (*pval >= min && *pval <= max) in bge_nd_get_prop_val()
|