Lines Matching refs:package

347 /* Return the package handle that corresponds to an instance handle. */
358 /* Get the length of a property of a package. */
360 OF_getproplen(phandle_t package, const char *propname)
366 return (OFW_GETPROPLEN(ofw_obj, package, propname));
369 /* Check existence of a property of a package. */
371 OF_hasprop(phandle_t package, const char *propname)
374 return (OF_getproplen(package, propname) >= 0 ? 1 : 0);
377 /* Get the value of a property of a package. */
379 OF_getprop(phandle_t package, const char *propname, void *buf, size_t buflen)
385 return (OFW_GETPROP(ofw_obj, package, propname, buf, buflen));
431 * Store the value of a property of a package into newly allocated memory
436 OF_getprop_alloc(phandle_t package, const char *propname, int elsz, void **buf)
441 if ((len = OF_getproplen(package, propname)) == -1 ||
446 if (OF_getprop(package, propname, *buf, len) == -1) {
455 OF_getencprop_alloc(phandle_t package, const char *name, int elsz, void **buf)
461 retval = OF_getprop_alloc(package, name, elsz, buf);
472 /* Get the next property of a package. */
474 OF_nextprop(phandle_t package, const char *previous, char *buf, size_t size)
480 return (OFW_NEXTPROP(ofw_obj, package, previous, buf, size));
483 /* Set the value of a property of a package. */
485 OF_setprop(phandle_t package, const char *propname, const void *buf, size_t len)
491 return (OFW_SETPROP(ofw_obj, package, propname, buf,len));
505 /* Return a package handle for the specified device. */
527 /* Return the fully qualified pathname corresponding to a package. */
529 OF_package_to_path(phandle_t package, char *buf, size_t len)
535 return (OFW_PACKAGE_TO_PATH(ofw_obj, package, buf, len));