Home
last modified time | relevance | path

Searched refs:pval (Results 1 – 25 of 65) sorted by relevance

123

/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c77 const char *ifname, const void* pval, uint_t flags) in mod_set_boolean() argument
87 if (ddi_strtoul(pval, &end, 10, &new_value) != 0 || *end != '\0') in mod_set_boolean()
102 void *pval, uint_t psize, uint_t flags) in mod_get_boolean() argument
109 bzero(pval, psize); in mod_get_boolean()
111 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo)); in mod_get_boolean()
113 nbytes = snprintf(pval, psize, "%u,%u", B_FALSE, B_TRUE); in mod_get_boolean()
115 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_bval); in mod_get_boolean()
117 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_bval); in mod_get_boolean()
124 mod_uint32_value(const void *pval, mod_prop_info_t *pinfo, uint_t flags, in mod_uint32_value() argument
134 if (ddi_strtoul(pval, &end, 10, (ulong_t *)new_value) != 0 || in mod_uint32_value()
[all …]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c77 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
129 if (ddi_strtol(pval, &colon, 10, &lport) != 0 || lport <= 0 || in tcp_listener_conf_add()
166 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument
175 if (ddi_strtol(pval, NULL, 10, &lport) != 0 || lport <= 0 || in tcp_listener_conf_del()
195 const char *ifname, const void *pval, uint_t flags) in tcp_set_buf_prop() argument
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_tunables.c50 const char *ifname, const void* pval, uint_t flags) in ip_set_forwarding() argument
62 if (ddi_strtoul(pval, &end, 10, &new_value) != 0 || in ip_set_forwarding()
100 void *pval, uint_t pr_size, uint_t flags) in ip_get_forwarding() argument
112 nbytes = snprintf(pval, pr_size, "%d", MOD_PROP_PERM_RW); in ip_get_forwarding()
115 nbytes = snprintf(pval, pr_size, "%d", pinfo->prop_def_bval); in ip_get_forwarding()
124 nbytes = snprintf(pval, pr_size, "%d", pinfo->prop_cur_bval); in ip_get_forwarding()
148 nbytes = snprintf(pval, pr_size, "%d", value); in ip_get_forwarding()
162 const char *ifname, const void* pval, uint_t flags) in ip_set_debug() argument
170 if ((err = mod_uint32_value(pval, pinfo, flags, &new_value)) != 0) in ip_set_debug()
184 void *pval, uint_t psize, uint_t flags) in ip_get_debug() argument
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_prop.c383 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_mtu() argument
401 pval = val; in i_ipadm_set_mtu()
405 mtu = (uint_t)strtol(pval, &endp, 10); in i_ipadm_set_mtu()
423 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_metric() argument
436 metric = (uint_t)strtol(pval, &endp, 10); in i_ipadm_set_metric()
456 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_usesrc() argument
465 pval = IPADM_NONESTR; in i_ipadm_set_usesrc()
471 if (strcmp(pval, IPADM_NONESTR) != 0 && in i_ipadm_set_usesrc()
472 !i_ipadm_validate_ifname(iph, pval)) in i_ipadm_set_usesrc()
480 if (strcmp(pval, IPADM_NONESTR) != 0) { in i_ipadm_set_usesrc()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c51 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 Dudp_tunables.c35 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 Dsa_libpool.c109 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 Dio_dev_label.c31 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 Derie.c262 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 Dhuron.c392 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 Dpelton.c402 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 Dstpaul.c463 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 Dontario.c608 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 Dmontoya.c492 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 Dmonza.c537 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 Dpool_rcm.c123 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 Dpool_internal.c415 elem_no_set(pool_elem_t *elem, const pool_value_t *pval) in elem_no_set() argument
424 elem_set_name(pool_elem_t *elem, const pool_value_t *pval) in elem_set_name() argument
430 if (pool_value_get_string(pval, &nm) != PO_SUCCESS) { in elem_set_name()
467 elem_set_string(pool_elem_t *elem, const pool_value_t *pval) in elem_set_string() argument
469 if (pool_value_get_type(pval) == POC_STRING) in elem_set_string()
482 elem_set_bool(pool_elem_t *elem, const pool_value_t *pval) in elem_set_bool() argument
484 if (pool_value_get_type(pval) == POC_BOOL) in elem_set_bool()
497 elem_set_uint(pool_elem_t *elem, const pool_value_t *pval) in elem_set_uint() argument
499 if (pool_value_get_type(pval) == POC_UINT) in elem_set_uint()
509 system_set_allocate(pool_elem_t *elem, const pool_value_t *pval) in system_set_allocate() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c373 char *pval; in ipmgmt_db_getprop() local
383 &pval)) == 0) { in ipmgmt_db_getprop()
384 (void) strlcpy(pargp->ia_pval, pval, sizeof (pargp->ia_pval)); in ipmgmt_db_getprop()
426 char pval[MAXPROPVALLEN]; in ipmgmt_db_resetprop() local
438 bzero(pval, sizeof (pval)); in ipmgmt_db_resetprop()
441 (void) strlcat(pval, val, MAXPROPVALLEN); 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()
458 *errp = nvlist_add_string(db_nvl, pargp->ia_pname, pval); in ipmgmt_db_resetprop()
[all …]
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_ndd.c59 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 Dpiclmemcfg.c302 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 Ddisplay_sun4v.c347 uint8_t *pval; in get_slot_number() local
374 pval = (uint8_t *)malloc(pinfo.size); in get_slot_number()
375 if (!pval) { in get_slot_number()
381 if (picl_get_propval(proph, pval, pinfo.size) != PICL_SUCCESS) { in get_slot_number()
385 free(pval); in get_slot_number()
391 dev_mask |= (*(pval+i) << 8*(sizeof (dev_mask)-1-i)); in get_slot_number()
404 char *p = (char *)(pval+sizeof (dev_mask)); in get_slot_number()
421 free(pval); in get_slot_number()
649 char *pval; in sun4v_get_first_compatible_value() local
657 pval = malloc(pinfo.size); in sun4v_get_first_compatible_value()
[all …]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_ndd.c195 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 Dopl_picl.c422 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 Dunm_ndd.c193 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 Dbge_ndd.c61 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()

123