Lines Matching refs:item
117 struct acpi_item *item; in acpi_add_item() local
125 item = &acpi_item[item_count]; in acpi_add_item()
126 item->dev = dev; in acpi_add_item()
127 item->type = type; in acpi_add_item()
128 item->size = end - start; in acpi_add_item()
129 if (!item->size) in acpi_add_item()
131 item->buf = malloc(item->size); in acpi_add_item()
132 if (!item->buf) in acpi_add_item()
134 memcpy(item->buf, start, item->size); in acpi_add_item()
137 item->size); in acpi_add_item()
147 struct acpi_item *item = &acpi_item[i]; in acpi_dump_items() local
149 printf("dev '%s', type %d, size %x\n", item->dev->name, in acpi_dump_items()
150 item->type, item->size); in acpi_dump_items()
152 print_buffer(0, item->buf, 1, item->size, 0); in acpi_dump_items()
163 struct acpi_item *item = &acpi_item[i]; in find_acpi_item() local
165 if (!strcmp(devname, item->dev->name)) in find_acpi_item()
166 return item; in find_acpi_item()
208 struct acpi_item *item; in sort_acpi_item_type() local
214 item = find_acpi_item(name); in sort_acpi_item_type()
215 if (!item) { in sort_acpi_item_type()
219 if (item->type == type) { in sort_acpi_item_type()
220 log_debug(" - add %s\n", item->dev->name); in sort_acpi_item_type()
221 memcpy(ptr, item->buf, item->size); in sort_acpi_item_type()
222 ptr += item->size; in sort_acpi_item_type()