Lines Matching refs:instr
65 const struct wdat_instruction *instr, u32 *value)
67 const struct acpi_generic_address *gas = &instr->entry.register_region;
71 *value = ioread8(instr->reg);
74 *value = ioread16(instr->reg);
77 *value = ioread32(instr->reg);
90 const struct wdat_instruction *instr, u32 value)
92 const struct acpi_generic_address *gas = &instr->entry.register_region;
96 iowrite8((u8)value, instr->reg);
99 iowrite16((u16)value, instr->reg);
102 iowrite32(value, instr->reg);
117 struct wdat_instruction *instr;
128 list_for_each_entry(instr, wdat->instructions[action], node) {
129 const struct acpi_wdat_entry *entry = &instr->entry;
144 ret = wdat_wdt_read(wdat, instr, &x);
154 ret = wdat_wdt_read(wdat, instr, &x);
167 ret = wdat_wdt_read(wdat, instr, &y);
173 ret = wdat_wdt_write(wdat, instr, x);
183 ret = wdat_wdt_read(wdat, instr, &y);
189 ret = wdat_wdt_write(wdat, instr, x);
375 struct wdat_instruction *instr;
387 instr = devm_kzalloc(dev, sizeof(*instr), GFP_KERNEL);
388 if (!instr)
391 INIT_LIST_HEAD(&instr->node);
392 instr->entry = entries[i];
413 instr->reg = regs[j] + r.start - res->start;
418 if (!instr->reg) {
435 list_add_tail(&instr->node, instructions);