Lines Matching refs:vbuf

2164     void *vbuf, size_t size)
2180 (void) memcpy(vbuf, srcp, sizeof (picl_nodehdl_t));
2193 read_propval_and_unlock(picl_obj_t *nodep, picl_obj_t *propp, void *vbuf,
2217 err = (volrd)(&rarg, vbuf);
2220 (void) strlcpy(vbuf, propp->prop_val, propp->prop_size);
2222 (void) memcpy(vbuf, propp->prop_val, propp->prop_size);
2230 xptree_get_propval_with_cred(picl_prophdl_t proph, void *vbuf, size_t size,
2252 return (read_propval_and_unlock(nodep, propp, vbuf, cred));
2259 ptree_get_propval(picl_prophdl_t proph, void *vbuf, size_t size)
2261 return (xptree_get_propval_with_cred(proph, vbuf, size, picld_cred));
2271 void *vbuf, size_t size, door_cred_t cred)
2294 return (read_reserved_propval_and_unlock(nodep, pname, vbuf,
2304 return (read_propval_and_unlock(nodep, propp, vbuf, cred));
2312 ptree_get_propval_by_name(picl_nodehdl_t nodeh, const char *pname, void *vbuf,
2315 return (xptree_get_propval_by_name_with_cred(nodeh, pname, vbuf, size,
2325 write_propval_and_unlock(picl_obj_t *nodep, picl_obj_t *propp, const void *vbuf,
2349 err = (volwr)(&warg, vbuf);
2352 (void) memcpy(propp->prop_val, vbuf, size);
2360 xptree_update_propval_with_cred(picl_prophdl_t proph, const void *vbuf,
2382 return (write_propval_and_unlock(nodep, propp, vbuf, size, cred));
2390 ptree_update_propval(picl_prophdl_t proph, const void *vbuf, size_t size)
2392 return (xptree_update_propval_with_cred(proph, vbuf, size, picld_cred));
2403 const void *vbuf, size_t size, door_cred_t cred)
2437 return (write_propval_and_unlock(nodep, propp, vbuf, size, cred));
2445 const void *vbuf, size_t size)
2447 return (xptree_update_propval_by_name_with_cred(nodeh, pname, vbuf,
2666 prop_match(ptree_propinfo_t pinfo, void *vbuf, char *val)
2685 if (strcmp(val, (char *)vbuf) == 0)
2693 return (cval == *(char *)vbuf);
2696 return (sval == *(int16_t *)vbuf);
2699 return (intval == *(int32_t *)vbuf);
2702 return (llval == *(int64_t *)vbuf);
2710 return (ucval == *(uint8_t *)vbuf);
2713 return (usval == *(uint16_t *)vbuf);
2716 return (uintval == *(uint32_t *)vbuf);
2719 return (ullval == *(uint64_t *)vbuf);
2727 return (fval == *(float *)vbuf);
2730 return (dval == *(double *)vbuf);
2751 void *vbuf;
2765 vbuf = alloca(pinfo.piclinfo.size);
2766 if (vbuf == NULL)
2768 err = ptree_get_propval(proph, vbuf,
2773 if (!prop_match(pinfo, vbuf, pval))
3004 void *vbuf, picl_prophdl_t *proph)
3009 err = ptree_create_prop(infop, vbuf, &tmph);
3113 void *vbuf;
3129 vbuf = alloca(propinfo.piclinfo.size);
3130 if (vbuf == NULL)
3132 err = ptree_get_propval(proph, vbuf, propinfo.piclinfo.size);
3135 if (memcmp(vbuf, pval, valsize) == 0)