• Home
  • Raw
  • Download

Lines Matching refs:instr

65 	 const struct wdat_instruction *instr, u32 *value)  in wdat_wdt_read()  argument
67 const struct acpi_generic_address *gas = &instr->entry.register_region; in wdat_wdt_read()
71 *value = ioread8(instr->reg); in wdat_wdt_read()
74 *value = ioread16(instr->reg); in wdat_wdt_read()
77 *value = ioread32(instr->reg); in wdat_wdt_read()
90 const struct wdat_instruction *instr, u32 value) in wdat_wdt_write() argument
92 const struct acpi_generic_address *gas = &instr->entry.register_region; in wdat_wdt_write()
96 iowrite8((u8)value, instr->reg); in wdat_wdt_write()
99 iowrite16((u16)value, instr->reg); in wdat_wdt_write()
102 iowrite32(value, instr->reg); in wdat_wdt_write()
117 struct wdat_instruction *instr; in wdat_wdt_run_action() local
128 list_for_each_entry(instr, wdat->instructions[action], node) { in wdat_wdt_run_action()
129 const struct acpi_wdat_entry *entry = &instr->entry; in wdat_wdt_run_action()
144 ret = wdat_wdt_read(wdat, instr, &x); in wdat_wdt_run_action()
154 ret = wdat_wdt_read(wdat, instr, &x); in wdat_wdt_run_action()
167 ret = wdat_wdt_read(wdat, instr, &y); in wdat_wdt_run_action()
173 ret = wdat_wdt_write(wdat, instr, x); in wdat_wdt_run_action()
183 ret = wdat_wdt_read(wdat, instr, &y); in wdat_wdt_run_action()
189 ret = wdat_wdt_write(wdat, instr, x); in wdat_wdt_run_action()
376 struct wdat_instruction *instr; in wdat_wdt_probe() local
388 instr = devm_kzalloc(dev, sizeof(*instr), GFP_KERNEL); in wdat_wdt_probe()
389 if (!instr) in wdat_wdt_probe()
392 INIT_LIST_HEAD(&instr->node); in wdat_wdt_probe()
393 instr->entry = entries[i]; in wdat_wdt_probe()
414 instr->reg = regs[j] + r.start - res->start; in wdat_wdt_probe()
419 if (!instr->reg) { in wdat_wdt_probe()
436 list_add_tail(&instr->node, instructions); in wdat_wdt_probe()