Lines Matching refs:chip
15 static vaddr_t chip_to_base(struct wdt_chip *chip) in chip_to_base() argument
18 container_of(chip, struct sp805_wdt_data, chip); in chip_to_base()
23 static TEE_Result sp805_setload(struct wdt_chip *chip, unsigned long timeout) in sp805_setload() argument
26 container_of(chip, struct sp805_wdt_data, chip); in sp805_setload()
46 static void sp805_config(struct wdt_chip *chip, bool enable) in sp805_config() argument
49 container_of(chip, struct sp805_wdt_data, chip); in sp805_config()
50 vaddr_t base = chip_to_base(chip); in sp805_config()
66 static void sp805_ping(struct wdt_chip *chip) in sp805_ping() argument
68 sp805_config(chip, false); in sp805_ping()
71 static void sp805_enable(struct wdt_chip *chip) in sp805_enable() argument
73 sp805_config(chip, true); in sp805_enable()
76 static void sp805_disable(struct wdt_chip *chip) in sp805_disable() argument
78 vaddr_t base = chip_to_base(chip); in sp805_disable()
90 struct wdt_chip *chip = h->data; in wdt_itr_cb() local
92 container_of(chip, struct sp805_wdt_data, chip); in wdt_itr_cb()
95 pd->itr_handler(chip); in wdt_itr_cb()
107 assert(!pd->chip.wdt_itr); in sp805_register_itr_handler()
110 itr_flags, &pd->chip); in sp805_register_itr_handler()
115 pd->chip.wdt_itr = wdt_itr; in sp805_register_itr_handler()
136 pd->chip.ops = &sp805_wdt_ops; in sp805_wdt_init()
137 return sp805_setload(&pd->chip, timeout); in sp805_wdt_init()