Lines Matching refs:pd
17 struct sp805_wdt_data *pd = in chip_to_base() local
20 return io_pa_or_va(&pd->base, WDT_SIZE); in chip_to_base()
25 struct sp805_wdt_data *pd = in sp805_setload() local
35 if (MUL_OVERFLOW(timeout, pd->clk_rate, &load)) in sp805_setload()
42 pd->load_val = load; in sp805_setload()
48 struct sp805_wdt_data *pd = in sp805_config() local
53 io_write32(base + WDT_LOAD_OFFSET, pd->load_val); in sp805_config()
91 struct sp805_wdt_data *pd = in wdt_itr_cb() local
94 if (pd->itr_handler) in wdt_itr_cb()
95 pd->itr_handler(chip); in wdt_itr_cb()
101 TEE_Result sp805_register_itr_handler(struct sp805_wdt_data *pd, in sp805_register_itr_handler() argument
107 assert(!pd->chip.wdt_itr); in sp805_register_itr_handler()
110 itr_flags, &pd->chip); in sp805_register_itr_handler()
114 pd->itr_handler = itr_handler; in sp805_register_itr_handler()
115 pd->chip.wdt_itr = wdt_itr; in sp805_register_itr_handler()
130 TEE_Result sp805_wdt_init(struct sp805_wdt_data *pd, paddr_t base, in sp805_wdt_init() argument
133 assert(pd); in sp805_wdt_init()
134 pd->base.pa = base; in sp805_wdt_init()
135 pd->clk_rate = clk_rate; in sp805_wdt_init()
136 pd->chip.ops = &sp805_wdt_ops; in sp805_wdt_init()
137 return sp805_setload(&pd->chip, timeout); in sp805_wdt_init()