Lines Matching defs:obj
22 const union acpi_object **obj);
477 * @obj: Location to store the property value (if not %NULL)
480 * object at the location pointed to by @obj if found.
492 const union acpi_object **obj)
520 if (obj)
521 *obj = propvalue;
535 * @obj: Location to store the property value (if not %NULL).
538 acpi_object_type type, const union acpi_object **obj)
540 return adev ? acpi_data_get_property(&adev->data, name, type, obj) : -EINVAL;
576 * @obj: Location to store a pointer to the property value (if not NULL)
579 * ACPI object at the location pointed to by @obj if found.
593 const union acpi_object **obj)
608 if (obj)
609 *obj = prop;
676 const union acpi_object *obj;
685 ret = acpi_data_get_property(data, propname, ACPI_TYPE_ANY, &obj);
693 if (obj->type == ACPI_TYPE_LOCAL_REFERENCE) {
697 ret = acpi_bus_get_device(obj->reference.handle, &device);
718 if (obj->type != ACPI_TYPE_PACKAGE)
720 if (index >= obj->package.count)
723 element = obj->package.elements;
724 end = element + obj->package.count;
797 const union acpi_object *obj;
801 ret = acpi_data_get_property(data, propname, ACPI_TYPE_INTEGER, &obj);
807 if (obj->integer.value > U8_MAX)
811 *(u8 *)val = obj->integer.value;
815 if (obj->integer.value > U16_MAX)
819 *(u16 *)val = obj->integer.value;
823 if (obj->integer.value > U32_MAX)
827 *(u32 *)val = obj->integer.value;
832 *(u64 *)val = obj->integer.value;
840 ret = acpi_data_get_property(data, propname, ACPI_TYPE_STRING, &obj);
845 *(char **)val = obj->string.pointer;
949 const union acpi_object *obj;
969 ret = acpi_data_get_property_array(data, propname, ACPI_TYPE_ANY, &obj);
974 return obj->package.count;
976 if (proptype != DEV_PROP_STRING && nval > obj->package.count)
981 items = obj->package.elements;
999 min_t(u32, nval, obj->package.count));