Lines Matching refs:pmc
30 struct at91_pmc *pmc; member
38 struct at91_pmc *pmc; member
51 struct at91_pmc *pmc = usb->pmc; in at91sam9x5_clk_usb_recalc_rate() local
53 tmp = pmc_read(pmc, AT91_PMC_USB); in at91sam9x5_clk_usb_recalc_rate()
114 struct at91_pmc *pmc = usb->pmc; in at91sam9x5_clk_usb_set_parent() local
118 tmp = pmc_read(pmc, AT91_PMC_USB) & ~AT91_PMC_USBS; in at91sam9x5_clk_usb_set_parent()
121 pmc_write(pmc, AT91_PMC_USB, tmp); in at91sam9x5_clk_usb_set_parent()
128 struct at91_pmc *pmc = usb->pmc; in at91sam9x5_clk_usb_get_parent() local
130 return pmc_read(pmc, AT91_PMC_USB) & AT91_PMC_USBS; in at91sam9x5_clk_usb_get_parent()
138 struct at91_pmc *pmc = usb->pmc; in at91sam9x5_clk_usb_set_rate() local
148 tmp = pmc_read(pmc, AT91_PMC_USB) & ~AT91_PMC_OHCIUSBDIV; in at91sam9x5_clk_usb_set_rate()
150 pmc_write(pmc, AT91_PMC_USB, tmp); in at91sam9x5_clk_usb_set_rate()
166 struct at91_pmc *pmc = usb->pmc; in at91sam9n12_clk_usb_enable() local
168 pmc_write(pmc, AT91_PMC_USB, in at91sam9n12_clk_usb_enable()
169 pmc_read(pmc, AT91_PMC_USB) | AT91_PMC_USBS); in at91sam9n12_clk_usb_enable()
176 struct at91_pmc *pmc = usb->pmc; in at91sam9n12_clk_usb_disable() local
178 pmc_write(pmc, AT91_PMC_USB, in at91sam9n12_clk_usb_disable()
179 pmc_read(pmc, AT91_PMC_USB) & ~AT91_PMC_USBS); in at91sam9n12_clk_usb_disable()
185 struct at91_pmc *pmc = usb->pmc; in at91sam9n12_clk_usb_is_enabled() local
187 return !!(pmc_read(pmc, AT91_PMC_USB) & AT91_PMC_USBS); in at91sam9n12_clk_usb_is_enabled()
200 at91sam9x5_clk_register_usb(struct at91_pmc *pmc, const char *name, in at91sam9x5_clk_register_usb() argument
219 usb->pmc = pmc; in at91sam9x5_clk_register_usb()
229 at91sam9n12_clk_register_usb(struct at91_pmc *pmc, const char *name, in at91sam9n12_clk_register_usb() argument
247 usb->pmc = pmc; in at91sam9n12_clk_register_usb()
260 struct at91_pmc *pmc = usb->pmc; in at91rm9200_clk_usb_recalc_rate() local
264 tmp = pmc_read(pmc, AT91_CKGR_PLLBR); in at91rm9200_clk_usb_recalc_rate()
316 struct at91_pmc *pmc = usb->pmc; in at91rm9200_clk_usb_set_rate() local
326 tmp = pmc_read(pmc, AT91_CKGR_PLLBR) & in at91rm9200_clk_usb_set_rate()
329 pmc_write(pmc, AT91_CKGR_PLLBR, tmp); in at91rm9200_clk_usb_set_rate()
344 at91rm9200_clk_register_usb(struct at91_pmc *pmc, const char *name, in at91rm9200_clk_register_usb() argument
362 usb->pmc = pmc; in at91rm9200_clk_register_usb()
373 struct at91_pmc *pmc) in of_at91sam9x5_clk_usb_setup() argument
388 clk = at91sam9x5_clk_register_usb(pmc, name, parent_names, num_parents); in of_at91sam9x5_clk_usb_setup()
396 struct at91_pmc *pmc) in of_at91sam9n12_clk_usb_setup() argument
408 clk = at91sam9n12_clk_register_usb(pmc, name, parent_name); in of_at91sam9n12_clk_usb_setup()
416 struct at91_pmc *pmc) in of_at91rm9200_clk_usb_setup() argument
433 clk = at91rm9200_clk_register_usb(pmc, name, parent_name, divisors); in of_at91rm9200_clk_usb_setup()