Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c102 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 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
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 Dip_tunables.c100 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 Dipadm_prop.c401 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 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.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()
/illumos-gate/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()
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/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.c417 elem_no_set(pool_elem_t *elem, const pool_value_t *pval) in elem_no_set() argument
432 if (pool_value_get_string(pval, &nm) != PO_SUCCESS) { in elem_set_name()
471 if (pool_value_get_type(pval) == POC_STRING) in elem_set_string()
486 if (pool_value_get_type(pval) == POC_BOOL) in elem_set_bool()
501 if (pool_value_get_type(pval) == POC_UINT) in elem_set_uint()
533 if (pool_value_get_type(pval) != POC_BOOL) { in pool_set_active()
537 (void) pool_value_get_bool(pval, &bval); in pool_set_active()
556 if (pool_value_get_string(pval, &sched) != 0) { in pool_set_scheduler()
577 if (pool_value_get_uint64(pval, &max) != PO_SUCCESS) { in res_set_max()
631 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 Dipmgmt_persist.c373 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 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()
/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
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 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