Home
last modified time | relevance | path

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

123

/titanic_50/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 …]
/titanic_50/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 …]
/titanic_50/usr/src/lib/libipadm/common/
H A Dipadm_prop.c373 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_mtu() argument
391 pval = val; in i_ipadm_set_mtu()
395 mtu = (uint_t)strtol(pval, &endp, 10); in i_ipadm_set_mtu()
413 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_metric() argument
426 metric = (uint_t)strtol(pval, &endp, 10); in i_ipadm_set_metric()
446 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_usesrc() argument
455 pval = IPADM_NONESTR; in i_ipadm_set_usesrc()
461 if (strcmp(pval, IPADM_NONESTR) != 0 && in i_ipadm_set_usesrc()
462 !i_ipadm_validate_ifname(iph, pval)) in i_ipadm_set_usesrc()
470 if (strcmp(pval, IPADM_NONESTR) != 0) { in i_ipadm_set_usesrc()
[all …]
/titanic_50/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c70 char *pval = val; in tcp_listener_conf_get() local
75 bzero(pval, psize); in tcp_listener_conf_get()
85 nbytes = snprintf(pval, size, "%d:%d", tl->tl_port, in tcp_listener_conf_get()
88 nbytes = snprintf(pval, size, ",%d:%d", tl->tl_port, in tcp_listener_conf_get()
91 pval += nbytes; in tcp_listener_conf_get()
110 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_add() argument
122 if (ddi_strtol(pval, &colon, 10, &lport) != 0 || lport <= 0 || in tcp_listener_conf_add()
159 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument
168 if (ddi_strtol(pval, NULL, 10, &lport) != 0 || lport <= 0 || in tcp_listener_conf_del()
188 const char *ifname, const void *pval, uint_t flags) in tcp_set_buf_prop() argument
[all …]
/titanic_50/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 …]
/titanic_50/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()
/titanic_50/usr/src/cmd/pools/poolstat/
H A Dsa_libpool.c111 const char *name, pool_value_t *pval, userdata_cb_t *ud) in populate_userdata_cb() argument
117 ud->ud_result = pool_value_get_uint64(pval, &bag->pset_sb_min); in populate_userdata_cb()
119 ud->ud_result = pool_value_get_uint64(pval, &bag->pset_sb_max); in populate_userdata_cb()
123 ud->ud_result = pool_value_get_uint64(pval, &load); in populate_userdata_cb()
126 ud->ud_result = pool_value_get_uint64(pval, &bag->pset_sb_size); in populate_userdata_cb()
128 ud->ud_result = pool_value_get_int64(pval, &bag->pset_sb_sysid); in populate_userdata_cb()
/titanic_50/usr/src/cmd/picl/plugins/sun4v/pri/
H A Dio_dev_label.c33 const char *pval, picl_nodehdl_t *nodeh);
36 const char *pval);
246 const char *pval) in compare_string_propval() argument
262 len = strlen(pval) + 1; in compare_string_propval()
269 if ((err == PICL_SUCCESS) && (strcmp(pvalbuf, pval) == 0)) in compare_string_propval()
280 const char *pval, picl_nodehdl_t *nodeh) in find_node_by_string_prop() argument
292 if (compare_string_propval(childh, pname, pval)) { in find_node_by_string_prop()
/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c110 char vbuf[INT64BUFSZ], tbuf[32], *pval = NULL, *aval = NULL; in txml_print_prop() local
119 pval = vbuf; in txml_print_prop()
130 pval = vbuf; in txml_print_prop()
142 pval = vbuf; in txml_print_prop()
154 pval = vbuf; in txml_print_prop()
161 &pval, &err) != 0) in txml_print_prop()
174 pval = fmri; in txml_print_prop()
208 pval = aval; in txml_print_prop()
217 Value, pval, NULL); in txml_print_prop()
219 if (pval != NULL && pv->tp_type == TOPO_TYPE_STRING) in txml_print_prop()
[all …]
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Derie.c264 char *pval; in erie_get_first_compatible_value() local
272 pval = malloc(pinfo.size); in erie_get_first_compatible_value()
273 if (pval == NULL) in erie_get_first_compatible_value()
275 err = picl_get_propval(proph, pval, pinfo.size); in erie_get_first_compatible_value()
277 free(pval); in erie_get_first_compatible_value()
280 *outbuf = pval; in erie_get_first_compatible_value()
300 pval = malloc(pinfo.size); in erie_get_first_compatible_value()
301 if (pval == NULL) in erie_get_first_compatible_value()
304 err = picl_get_propval(rowproph, pval, pinfo.size); in erie_get_first_compatible_value()
306 free(pval); in erie_get_first_compatible_value()
[all …]
H A Dhuron.c394 char *pval; in huron_get_first_compatible_value() local
402 pval = malloc(pinfo.size); in huron_get_first_compatible_value()
403 if (pval == NULL) in huron_get_first_compatible_value()
405 err = picl_get_propval(proph, pval, pinfo.size); in huron_get_first_compatible_value()
407 free(pval); in huron_get_first_compatible_value()
410 *outbuf = pval; in huron_get_first_compatible_value()
430 pval = malloc(pinfo.size); in huron_get_first_compatible_value()
431 if (pval == NULL) in huron_get_first_compatible_value()
434 err = picl_get_propval(rowproph, pval, pinfo.size); in huron_get_first_compatible_value()
436 free(pval); in huron_get_first_compatible_value()
[all …]
H A Dpelton.c404 char *pval; in pelton_get_first_compatible_value() local
412 pval = malloc(pinfo.size); in pelton_get_first_compatible_value()
413 if (pval == NULL) in pelton_get_first_compatible_value()
415 err = picl_get_propval(proph, pval, pinfo.size); in pelton_get_first_compatible_value()
417 free(pval); in pelton_get_first_compatible_value()
420 *outbuf = pval; in pelton_get_first_compatible_value()
440 pval = malloc(pinfo.size); in pelton_get_first_compatible_value()
441 if (pval == NULL) in pelton_get_first_compatible_value()
444 err = picl_get_propval(rowproph, pval, pinfo.size); in pelton_get_first_compatible_value()
446 free(pval); in pelton_get_first_compatible_value()
[all …]
H A Dstpaul.c465 char *pval; in stpaul_get_first_compatible_value() local
473 pval = malloc(pinfo.size); in stpaul_get_first_compatible_value()
474 if (pval == NULL) in stpaul_get_first_compatible_value()
476 err = picl_get_propval(proph, pval, pinfo.size); in stpaul_get_first_compatible_value()
478 free(pval); in stpaul_get_first_compatible_value()
481 *outbuf = pval; in stpaul_get_first_compatible_value()
501 pval = malloc(pinfo.size); in stpaul_get_first_compatible_value()
502 if (pval == NULL) in stpaul_get_first_compatible_value()
505 err = picl_get_propval(rowproph, pval, pinfo.size); in stpaul_get_first_compatible_value()
507 free(pval); in stpaul_get_first_compatible_value()
[all …]
H A Dontario.c610 char *pval; in ontario_get_first_compatible_value() local
618 pval = malloc(pinfo.size); in ontario_get_first_compatible_value()
619 if (pval == NULL) in ontario_get_first_compatible_value()
621 err = picl_get_propval(proph, pval, pinfo.size); in ontario_get_first_compatible_value()
623 free(pval); in ontario_get_first_compatible_value()
626 *outbuf = pval; in ontario_get_first_compatible_value()
646 pval = malloc(pinfo.size); in ontario_get_first_compatible_value()
647 if (pval == NULL) in ontario_get_first_compatible_value()
650 err = picl_get_propval(rowproph, pval, pinfo.size); in ontario_get_first_compatible_value()
652 free(pval); in ontario_get_first_compatible_value()
[all …]
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/montoya/common/
H A Dmontoya.c494 char *pval; in montoya_get_first_compatible_value() local
502 pval = malloc(pinfo.size); in montoya_get_first_compatible_value()
503 if (pval == NULL) in montoya_get_first_compatible_value()
505 err = picl_get_propval(proph, pval, pinfo.size); in montoya_get_first_compatible_value()
507 free(pval); in montoya_get_first_compatible_value()
510 *outbuf = pval; in montoya_get_first_compatible_value()
530 pval = malloc(pinfo.size); in montoya_get_first_compatible_value()
531 if (pval == NULL) in montoya_get_first_compatible_value()
534 err = picl_get_propval(rowproph, pval, pinfo.size); in montoya_get_first_compatible_value()
536 free(pval); in montoya_get_first_compatible_value()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c211 char *pval; in ipmgmt_db_getprop() local
221 &pval)) == 0) { in ipmgmt_db_getprop()
222 (void) strlcpy(pargp->ia_pval, pval, sizeof (pargp->ia_pval)); in ipmgmt_db_getprop()
264 char pval[MAXPROPVALLEN]; in ipmgmt_db_resetprop() local
276 bzero(pval, sizeof (pval)); in ipmgmt_db_resetprop()
279 (void) strlcat(pval, val, MAXPROPVALLEN); in ipmgmt_db_resetprop()
282 if (pval[0] != '\0') in ipmgmt_db_resetprop()
283 (void) strlcat(pval, ",", in ipmgmt_db_resetprop()
285 (void) strlcat(pval, val, in ipmgmt_db_resetprop()
296 *errp = nvlist_add_string(db_nvl, pargp->ia_pname, pval); in ipmgmt_db_resetprop()
[all …]
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/monza/common/
H A Dmonza.c539 char *pval; in monza_get_first_compatible_value() local
547 pval = malloc(pinfo.size); in monza_get_first_compatible_value()
548 if (pval == NULL) in monza_get_first_compatible_value()
550 err = picl_get_propval(proph, pval, pinfo.size); in monza_get_first_compatible_value()
552 free(pval); in monza_get_first_compatible_value()
555 *outbuf = pval; in monza_get_first_compatible_value()
575 pval = malloc(pinfo.size); in monza_get_first_compatible_value()
576 if (pval == NULL) in monza_get_first_compatible_value()
579 err = picl_get_propval(rowproph, pval, pinfo.size); in monza_get_first_compatible_value()
581 free(pval); in monza_get_first_compatible_value()
[all …]
/titanic_50/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()
/titanic_50/usr/src/lib/libpool/common/
H A Dpool_internal.c417 elem_no_set(pool_elem_t *elem, const pool_value_t *pval) in elem_no_set() argument
426 elem_set_name(pool_elem_t *elem, const pool_value_t *pval) in elem_set_name() argument
432 if (pool_value_get_string(pval, &nm) != PO_SUCCESS) { in elem_set_name()
469 elem_set_string(pool_elem_t *elem, const pool_value_t *pval) in elem_set_string() argument
471 if (pool_value_get_type(pval) == POC_STRING) in elem_set_string()
484 elem_set_bool(pool_elem_t *elem, const pool_value_t *pval) in elem_set_bool() argument
486 if (pool_value_get_type(pval) == POC_BOOL) in elem_set_bool()
499 elem_set_uint(pool_elem_t *elem, const pool_value_t *pval) in elem_set_uint() argument
501 if (pool_value_get_type(pval) == POC_UINT) in elem_set_uint()
511 system_set_allocate(pool_elem_t *elem, const pool_value_t *pval) in system_set_allocate() argument
[all …]
/titanic_50/usr/src/uts/common/io/nge/
H A Dnge_ndd.c61 nge_nd_get_prop_val(dev_info_t *dip, char *nm, long min, long max, int *pval) in nge_nd_get_prop_val() argument
70 *pval = NGE_PROP_GET_INT(dip, nm); in nge_nd_get_prop_val()
71 if (*pval >= min && *pval <= max) in nge_nd_get_prop_val()
/titanic_50/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/
H A Dpiclmemcfg.c304 int pval; in get_reg_info() local
311 err = ptree_get_propval_by_name(plfh, OBP_PROP_SIZE_CELLS, &pval, in get_reg_info()
312 sizeof (pval)); in get_reg_info()
315 pval = SUPPORTED_NUM_CELL_SIZE; in get_reg_info()
322 if (pval != SUPPORTED_NUM_CELL_SIZE) in get_reg_info()
/titanic_50/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()
/titanic_50/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 …]
/titanic_50/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()
/titanic_50/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 …]

123