Lines Matching defs:pval

71  * Modifies the value of the property to default value or to the `pval'
77 const char *ifname, const void* pval, uint_t flags)
87 if (ddi_strtoul(pval, &end, 10, &new_value) != 0 || *end != '\0')
102 void *pval, uint_t psize, uint_t flags)
109 bzero(pval, psize);
111 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo));
113 nbytes = snprintf(pval, psize, "%u,%u", B_FALSE, B_TRUE);
115 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_bval);
117 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_bval);
124 mod_uint32_value(const void *pval, mod_prop_info_t *pinfo, uint_t flags,
134 if (ddi_strtoul(pval, &end, 10, (ulong_t *)new_value) != 0 ||
145 * Modifies the value of the property to default value or to the `pval'
151 const char *ifname, const void *pval, uint_t flags)
156 if ((err = mod_uint32_value(pval, pinfo, flags, &new_value)) != 0)
168 const char *ifname, const void* pval, uint_t flags)
172 if ((err = mod_set_uint32(stack, cr, pinfo, ifname, pval, flags)) != 0)
191 void *pval, uint_t psize, uint_t flags)
198 bzero(pval, psize);
200 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo));
202 nbytes = snprintf(pval, psize, "%u-%u",
205 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_uval);
207 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_uval);
239 mod_prop_info_t *pinfo, const char *ifname, const void *pval, uint_t flags)
250 if (ddi_strtoul(pval, &end, 10, &new_value) != 0 || *end != '\0')
269 mod_prop_info_t *pinfo, const char *ifname, void *pval, uint_t psize,
277 nbytes = snprintf(pval, psize, "%u-%u", min, max);
280 return (mod_get_uint32(stack, pinfo, ifname, pval, psize, flags));
292 char *pval = val;
297 bzero(pval, psize);
327 nbytes = snprintf(pval, size, "%s %d %d", prop->mpi_name,
330 pval += nbytes + 1;
359 const char *pval = val;
362 if (ddi_strtoul(pval, &end, 10, &new_value) != 0 ||
473 char *pval = val;
479 bzero(pval, psize);
483 tbytes = snprintf(pval, psize, "%u,%u", ULP_DEF_EPRIV_PORT1,
487 tbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW);
512 tbytes = snprintf(pval, psize, "%u-%u", pinfo->prop_min_uval,
520 nbytes = snprintf(pval, size, "%u", ports[i]);
522 nbytes = snprintf(pval, size, ",%u", ports[i]);
524 pval += nbytes;