Lines Matching defs:buf
54 acpi_data buf;
55 buf.pointer = NULL;
56 buf.length = ACPI_ALLOCATE_BUFFER;
57 if (device->acpi->evaluate_method(device->acpi_cookie, "_LID", NULL, &buf) != B_OK
58 || buf.pointer == NULL
59 || ((acpi_object_type*)buf.pointer)->object_type != ACPI_TYPE_INTEGER) {
62 acpi_object_type* object = (acpi_object_type*)buf.pointer;
67 free(buf.pointer);
115 acpi_lid_read(void* _cookie, off_t position, void *buf, size_t* num_bytes)
126 if (user_memcpy(buf, &device->last_status, sizeof(uint8)) < B_OK)