Lines Matching refs:id
25 #define PERIPHERAL_MASK(id) (1 << ((id) & PERIPHERAL_ID_MAX)) argument
32 u32 id; member
42 u32 id; member
54 u32 id = periph->id; in clk_peripheral_enable() local
56 if (id < PERIPHERAL_ID_MIN) in clk_peripheral_enable()
58 if (id > PERIPHERAL_ID_MAX) in clk_peripheral_enable()
60 pmc_write(periph->base, offset, PERIPHERAL_MASK(id)); in clk_peripheral_enable()
69 u32 id = periph->id; in clk_peripheral_disable() local
71 if (id < PERIPHERAL_ID_MIN) in clk_peripheral_disable()
74 if (id > PERIPHERAL_ID_MAX) in clk_peripheral_disable()
76 pmc_write(periph->base, offset, PERIPHERAL_MASK(id)); in clk_peripheral_disable()
89 const char *parent_name, u32 id) in at91_clk_register_peripheral() argument
95 if (!base || !name || !parent_name || id > PERIPHERAL_ID_MAX) in at91_clk_register_peripheral()
102 periph->id = id; in at91_clk_register_peripheral()
118 .id = UCLASS_CLK,
127 if (periph->id < PERIPHERAL_ID_MIN) in clk_sam9x5_peripheral_enable()
131 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_enable()
143 if (periph->id < PERIPHERAL_ID_MIN) in clk_sam9x5_peripheral_disable()
147 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable()
165 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_get_rate()
181 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) { in clk_sam9x5_peripheral_set_rate()
199 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_set_rate()
219 u32 id, const struct clk_range *range) in at91_clk_register_sam9x5_peripheral() argument
232 periph->id = id; in at91_clk_register_sam9x5_peripheral()
251 .id = UCLASS_CLK,