Lines Matching refs:buf
47 acpi_data buf;
48 buf.pointer = NULL;
49 buf.length = ACPI_ALLOCATE_BUFFER;
51 if (device->acpi->evaluate_method(device->acpi_cookie, "_PSR", NULL, &buf) != B_OK
52 || buf.pointer == NULL
53 || ((acpi_object_type*)buf.pointer)->object_type != ACPI_TYPE_INTEGER) {
56 acpi_object_type* object = (acpi_object_type*)buf.pointer;
60 free(buf.pointer);
105 acpi_ac_read(void* _cookie, off_t position, void *buf, size_t* num_bytes)
116 if (user_memcpy(buf, &device->last_status, sizeof(uint8)) < B_OK)