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));
434 * Store the value of a property of a package into newly allocated memory
439 OF_getprop_alloc(phandle_t package, const char *propname, int elsz, void **buf)
444 if ((len = OF_getproplen(package, propname)) == -1 ||
449 if (OF_getprop(package, propname, *buf, len) == -1) {
458 OF_getencprop_alloc(phandle_t package, const char *name, int elsz, void **buf)
464 retval = OF_getprop_alloc(package, name, elsz, buf);
487 /* Get the next property of a package. */
489 OF_nextprop(phandle_t package, const char *previous, char *buf, size_t size)
495 return (OFW_NEXTPROP(ofw_obj, package, previous, buf, size));
498 /* Set the value of a property of a package. */
500 OF_setprop(phandle_t package, const char *propname, const void *buf, size_t len)
506 return (OFW_SETPROP(ofw_obj, package, propname, buf,len));
520 /* Return a package handle for the specified device. */
542 /* Return the fully qualified pathname corresponding to a package. */
544 OF_package_to_path(phandle_t package, char *buf, size_t len)
550 return (OFW_PACKAGE_TO_PATH(ofw_obj, package, buf, len));