/drivers/clk/at91/ |
H A D | pmc.h | 2 * drivers/clk/at91/pmc.h 38 static inline void pmc_lock(struct at91_pmc *pmc) argument 40 spin_lock(&pmc->lock); 43 static inline void pmc_unlock(struct at91_pmc *pmc) argument 45 spin_unlock(&pmc->lock); 48 static inline u32 pmc_read(struct at91_pmc *pmc, int offset) argument 50 return readl(pmc->regbase + offset); 53 static inline void pmc_write(struct at91_pmc *pmc, int offset, u32 value) argument 55 writel(value, pmc->regbase + offset); 62 struct at91_pmc *pmc); [all...] |
H A D | clk-plldiv.c | 18 #include "pmc.h" 24 struct at91_pmc *pmc; member in struct:clk_plldiv 31 struct at91_pmc *pmc = plldiv->pmc; local 33 if (pmc_read(pmc, AT91_PMC_MCKR) & AT91_PMC_PLLADIV2) 60 struct at91_pmc *pmc = plldiv->pmc; local 66 pmc_lock(pmc); 67 tmp = pmc_read(pmc, AT91_PMC_MCKR) & ~AT91_PMC_PLLADIV2; 70 pmc_write(pmc, AT91_PMC_MCK 83 at91_clk_register_plldiv(struct at91_pmc *pmc, const char *name, const char *parent_name) argument 112 of_at91_clk_plldiv_setup(struct device_node *np, struct at91_pmc *pmc) argument 131 of_at91sam9x5_clk_plldiv_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-peripheral.c | 18 #include "pmc.h" 36 struct at91_pmc *pmc; member in struct:clk_peripheral 44 struct at91_pmc *pmc; member in struct:clk_sam9x5_peripheral 57 struct at91_pmc *pmc = periph->pmc; local 65 pmc_write(pmc, offset, PERIPHERAL_MASK(id)); 72 struct at91_pmc *pmc = periph->pmc; local 80 pmc_write(pmc, offset, PERIPHERAL_MASK(id)); 86 struct at91_pmc *pmc local 104 at91_clk_register_peripheral(struct at91_pmc *pmc, const char *name, const char *parent_name, u32 id) argument 163 struct at91_pmc *pmc = periph->pmc; local 178 struct at91_pmc *pmc = periph->pmc; local 190 struct at91_pmc *pmc = periph->pmc; local 209 struct at91_pmc *pmc = periph->pmc; local 313 at91_clk_register_sam9x5_peripheral(struct at91_pmc *pmc, const char *name, const char *parent_name, u32 id, const struct clk_range *range) argument 351 of_at91_clk_periph_setup(struct device_node *np, struct at91_pmc *pmc, u8 type) argument 400 of_at91rm9200_clk_periph_setup(struct device_node *np, struct at91_pmc *pmc) argument 406 of_at91sam9x5_clk_periph_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-main.c | 24 #include "pmc.h" 37 struct at91_pmc *pmc; member in struct:clk_main_osc 46 struct at91_pmc *pmc; member in struct:clk_main_rc_osc 57 struct at91_pmc *pmc; member in struct:clk_rm9200_main 64 struct at91_pmc *pmc; member in struct:clk_sam9x5_main 85 struct at91_pmc *pmc = osc->pmc; local 88 tmp = pmc_read(pmc, AT91_CKGR_MOR) & ~MOR_KEY_MASK; 94 pmc_write(pmc, AT91_CKGR_MOR, tmp); 97 while (!(pmc_read(pmc, AT91_PMC_S 109 struct at91_pmc *pmc = osc->pmc; local 125 struct at91_pmc *pmc = osc->pmc; local 142 at91_clk_register_main_osc(struct at91_pmc *pmc, unsigned int irq, const char *name, const char *parent_name, bool bypass) argument 192 of_at91rm9200_clk_main_osc_setup(struct device_node *np, struct at91_pmc *pmc) argument 229 struct at91_pmc *pmc = osc->pmc; local 251 struct at91_pmc *pmc = osc->pmc; local 264 struct at91_pmc *pmc = osc->pmc; local 295 at91_clk_register_main_rc_osc(struct at91_pmc *pmc, unsigned int irq, const char *name, u32 frequency, u32 accuracy) argument 340 of_at91sam9x5_clk_main_rc_osc_setup(struct device_node *np, struct at91_pmc *pmc) argument 366 clk_main_probe_frequency(struct at91_pmc *pmc) argument 383 clk_main_recalc_rate(struct at91_pmc *pmc, unsigned long parent_rate) argument 428 at91_clk_register_rm9200_main(struct at91_pmc *pmc, const char *name, const char *parent_name) argument 462 of_at91rm9200_clk_main_setup(struct device_node *np, struct at91_pmc *pmc) argument 492 struct at91_pmc *pmc = clkmain->pmc; local 521 struct at91_pmc *pmc = clkmain->pmc; local 559 at91_clk_register_sam9x5_main(struct at91_pmc *pmc, unsigned int irq, const char *name, const char **parent_names, int num_parents) argument 607 of_at91sam9x5_clk_main_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-smd.c | 18 #include "pmc.h" 27 struct at91_pmc *pmc; member in struct:at91sam9x5_clk_smd 39 struct at91_pmc *pmc = smd->pmc; local 41 tmp = pmc_read(pmc, AT91_PMC_SMD); 72 struct at91_pmc *pmc = smd->pmc; local 76 tmp = pmc_read(pmc, AT91_PMC_SMD) & ~AT91_PMC_SMDS; 79 pmc_write(pmc, AT91_PMC_SMD, tmp); 86 struct at91_pmc *pmc local 96 struct at91_pmc *pmc = smd->pmc; local 117 at91sam9x5_clk_register_smd(struct at91_pmc *pmc, const char *name, const char **parent_names, u8 num_parents) argument 144 of_at91sam9x5_clk_smd_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-system.c | 23 #include "pmc.h" 32 struct at91_pmc *pmc; member in struct:clk_system 55 struct at91_pmc *pmc = sys->pmc; local 58 pmc_write(pmc, AT91_PMC_SCER, mask); 63 while (!(pmc_read(pmc, AT91_PMC_SR) & mask)) { 67 pmc_read(pmc, AT91_PMC_SR) & mask); 77 struct at91_pmc *pmc = sys->pmc; local 79 pmc_write(pmc, AT91_PMC_SCD 85 struct at91_pmc *pmc = sys->pmc; local 103 at91_clk_register_system(struct at91_pmc *pmc, const char *name, const char *parent_name, u8 id, int irq) argument 145 of_at91_clk_sys_setup(struct device_node *np, struct at91_pmc *pmc) argument 179 of_at91rm9200_clk_sys_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-utmi.c | 23 #include "pmc.h" 29 struct at91_pmc *pmc; member in struct:clk_utmi 49 struct at91_pmc *pmc = utmi->pmc; local 53 pmc_write(pmc, AT91_CKGR_UCKR, tmp); 55 while (!(pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_LOCKU)) { 58 pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_LOCKU); 67 struct at91_pmc *pmc = utmi->pmc; local 69 return !!(pmc_read(pmc, AT91_PMC_S 75 struct at91_pmc *pmc = utmi->pmc; local 96 at91_clk_register_utmi(struct at91_pmc *pmc, unsigned int irq, const char *name, const char *parent_name) argument 132 of_at91_clk_utmi_setup(struct device_node *np, struct at91_pmc *pmc) argument 155 of_at91sam9x5_clk_utmi_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-usb.c | 18 #include "pmc.h" 30 struct at91_pmc *pmc; member in struct:at91sam9x5_clk_usb 38 struct at91_pmc *pmc; member in struct:at91rm9200_clk_usb 51 struct at91_pmc *pmc = usb->pmc; local 53 tmp = pmc_read(pmc, AT91_PMC_USB); 81 struct at91_pmc *pmc = usb->pmc; local 85 tmp = pmc_read(pmc, AT91_PMC_USB) & ~AT91_PMC_USBS; 88 pmc_write(pmc, AT91_PMC_US 95 struct at91_pmc *pmc = usb->pmc; local 105 struct at91_pmc *pmc = usb->pmc; local 133 struct at91_pmc *pmc = usb->pmc; local 143 struct at91_pmc *pmc = usb->pmc; local 152 struct at91_pmc *pmc = usb->pmc; local 167 at91sam9x5_clk_register_usb(struct at91_pmc *pmc, const char *name, const char **parent_names, u8 num_parents) argument 195 at91sam9n12_clk_register_usb(struct at91_pmc *pmc, const char *name, const char *parent_name) argument 226 struct at91_pmc *pmc = usb->pmc; local 282 struct at91_pmc *pmc = usb->pmc; local 310 at91rm9200_clk_register_usb(struct at91_pmc *pmc, const char *name, const char *parent_name, const u32 *divisors) argument 338 of_at91sam9x5_clk_usb_setup(struct device_node *np, struct at91_pmc *pmc) argument 366 of_at91sam9n12_clk_usb_setup(struct device_node *np, struct at91_pmc *pmc) argument 386 of_at91rm9200_clk_usb_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-programmable.c | 20 #include "pmc.h" 37 struct at91_pmc *pmc; member in struct:clk_programmable 49 struct at91_pmc *pmc = prog->pmc; local 52 pres = (pmc_read(pmc, AT91_PMC_PCKR(prog->id)) >> layout->pres_shift) & 101 struct at91_pmc *pmc = prog->pmc; local 102 u32 tmp = pmc_read(pmc, AT91_PMC_PCKR(prog->id)) & ~layout->css_mask; 116 pmc_write(pmc, AT91_PMC_PCKR(prog->id), tmp | index); 125 struct at91_pmc *pmc local 140 struct at91_pmc *pmc = prog->pmc; local 173 at91_clk_register_programmable(struct at91_pmc *pmc, const char *name, const char **parent_names, u8 num_parents, u8 id, const struct clk_programmable_layout *layout) argument 226 of_at91_clk_prog_setup(struct device_node *np, struct at91_pmc *pmc, const struct clk_programmable_layout *layout) argument 270 of_at91rm9200_clk_prog_setup(struct device_node *np, struct at91_pmc *pmc) argument 276 of_at91sam9g45_clk_prog_setup(struct device_node *np, struct at91_pmc *pmc) argument 282 of_at91sam9x5_clk_prog_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | pmc.c | 25 #include "pmc.h" 61 struct at91_pmc *pmc = irq_data_get_irq_chip_data(d); local 63 pmc_write(pmc, AT91_PMC_IDR, 1 << d->hwirq); 68 struct at91_pmc *pmc = irq_data_get_irq_chip_data(d); local 70 pmc_write(pmc, AT91_PMC_IER, 1 << d->hwirq); 96 struct at91_pmc *pmc = h->host_data; local 103 irq_set_chip_data(virq, pmc); 114 struct at91_pmc *pmc = d->host_data; local 115 const struct at91_pmc_caps *caps = pmc->caps; 137 struct at91_pmc *pmc local 196 struct at91_pmc *pmc; local 352 struct at91_pmc *pmc; local [all...] |
H A D | clk-h32mx.c | 28 #include "pmc.h" 34 struct at91_pmc *pmc; member in struct:clk_sama5d4_h32mx 44 if (pmc_read(h32mxclk->pmc, AT91_PMC_MCKR) & AT91_PMC_H32MXDIV) 73 struct at91_pmc *pmc = h32mxclk->pmc; local 79 pmc_lock(pmc); 80 tmp = pmc_read(pmc, AT91_PMC_MCKR) & ~AT91_PMC_H32MXDIV; 83 pmc_write(pmc, AT91_PMC_MCKR, tmp); 84 pmc_unlock(pmc); 96 struct at91_pmc *pmc) 95 of_sama5d4_clk_h32mx_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-master.c | 23 #include "pmc.h" 47 struct at91_pmc *pmc; member in struct:clk_master 66 struct at91_pmc *pmc = master->pmc; local 68 while (!(pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_MCKRDY)) { 71 pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_MCKRDY); 81 return !!(pmc_read(master->pmc, AT91_PMC_SR) & AT91_PMC_MCKRDY); 91 struct at91_pmc *pmc = master->pmc; local 97 pmc_lock(pmc); 122 struct at91_pmc *pmc = master->pmc; local 135 at91_clk_register_master(struct at91_pmc *pmc, unsigned int irq, const char *name, int num_parents, const char **parent_names, const struct clk_master_layout *layout, const struct clk_master_characteristics *characteristics) argument 216 of_at91_clk_master_setup(struct device_node *np, struct at91_pmc *pmc, const struct clk_master_layout *layout) argument 260 of_at91rm9200_clk_master_setup(struct device_node *np, struct at91_pmc *pmc) argument 266 of_at91sam9x5_clk_master_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | clk-pll.c | 24 #include "pmc.h" 61 struct at91_pmc *pmc; member in struct:clk_pll 85 struct at91_pmc *pmc = pll->pmc; local 97 pllr = pmc_read(pmc, offset); 101 if ((pmc_read(pmc, AT91_PMC_SR) & mask) && 108 icpr = pmc_read(pmc, AT91_PMC_PLLICPR) & ~PLL_ICPR_MASK(id); 111 pmc_write(pmc, AT91_PMC_PLLICPR, icpr); 119 pmc_write(pmc, offset, pllr); 121 while (!(pmc_read(pmc, AT91_PMC_S 133 struct at91_pmc *pmc = pll->pmc; local 142 struct at91_pmc *pmc = pll->pmc; local 303 at91_clk_register_pll(struct at91_pmc *pmc, unsigned int irq, const char *name, const char *parent_name, u8 id, const struct clk_pll_layout *layout, const struct clk_pll_characteristics *characteristics) argument 474 of_at91_clk_pll_setup(struct device_node *np, struct at91_pmc *pmc, const struct clk_pll_layout *layout) argument 511 of_at91rm9200_clk_pll_setup(struct device_node *np, struct at91_pmc *pmc) argument 517 of_at91sam9g45_clk_pll_setup(struct device_node *np, struct at91_pmc *pmc) argument 523 of_at91sam9g20_clk_pllb_setup(struct device_node *np, struct at91_pmc *pmc) argument 529 of_sama5d3_clk_pll_setup(struct device_node *np, struct at91_pmc *pmc) argument [all...] |
H A D | Makefile | 5 obj-y += pmc.o sckc.o
|
H A D | clk-slow.c | 26 #include "pmc.h" 60 struct at91_pmc *pmc; member in struct:clk_sam9260_slow 397 return !!(pmc_read(slowck->pmc, AT91_PMC_SR) & AT91_PMC_OSCSEL); 405 at91_clk_register_sam9260_slow(struct at91_pmc *pmc, argument 414 if (!pmc || !name) 431 slowck->pmc = pmc; 441 struct at91_pmc *pmc) 461 clk = at91_clk_register_sam9260_slow(pmc, name, parent_names, 440 of_at91sam9260_clk_slow_setup(struct device_node *np, struct at91_pmc *pmc) argument
|
/drivers/gpu/drm/nouveau/core/subdev/mc/ |
H A D | base.c | 29 nouveau_mc_unk260(struct nouveau_mc *pmc, u32 data) argument 31 const struct nouveau_mc_oclass *impl = (void *)nv_oclass(pmc); 33 impl->unk260(pmc, data); 37 nouveau_mc_intr_mask(struct nouveau_mc *pmc) argument 39 u32 intr = nv_rd32(pmc, 0x000100); 48 struct nouveau_mc *pmc = arg; local 49 const struct nouveau_mc_oclass *oclass = (void *)nv_object(pmc)->oclass; 54 nv_wr32(pmc, 0x000140, 0x00000000); 55 nv_rd32(pmc, 0x000140); 56 intr = nouveau_mc_intr_mask(pmc); 83 struct nouveau_mc *pmc = (void *)object; local 91 struct nouveau_mc *pmc = (void *)object; local 103 struct nouveau_mc *pmc = (void *)object; local 116 struct nouveau_mc *pmc; local [all...] |
H A D | priv.h | 9 struct nouveau_mc *pmc = (p); _nouveau_mc_dtor(nv_object(pmc)); \ 12 struct nouveau_mc *pmc = (p); _nouveau_mc_init(nv_object(pmc)); \ 15 struct nouveau_mc *pmc = (p); _nouveau_mc_fini(nv_object(pmc), (s)); \
|
H A D | nv40.c | 28 nv40_mc_msi_rearm(struct nouveau_mc *pmc) argument 30 struct nv04_mc_priv *priv = (void *)pmc;
|
H A D | nv4c.c | 28 nv4c_mc_msi_rearm(struct nouveau_mc *pmc) argument 30 struct nv04_mc_priv *priv = (void *)pmc;
|
H A D | nvc0.c | 53 nvc0_mc_msi_rearm(struct nouveau_mc *pmc) argument 55 struct nv04_mc_priv *priv = (void *)pmc; 60 nvc0_mc_unk260(struct nouveau_mc *pmc, u32 data) argument 62 nv_wr32(pmc, 0x000260, data);
|
H A D | nv50.c | 46 nv50_mc_msi_rearm(struct nouveau_mc *pmc) argument 48 struct nouveau_device *device = nv_device(pmc);
|
/drivers/soc/tegra/ |
H A D | Makefile | 4 obj-$(CONFIG_ARCH_TEGRA) += pmc.o
|
H A D | pmc.c | 2 * drivers/soc/tegra/pmc.c 39 #include <soc/tegra/pmc.h> 136 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable in typeref:struct:tegra_pmc 143 return readl(pmc->base + offset); 148 writel(value, pmc->base + offset); 160 mutex_lock(&pmc->powergates_lock); 165 mutex_unlock(&pmc->powergates_lock); 171 mutex_unlock(&pmc->powergates_lock); 182 if (!pmc->soc || id < 0 || id >= pmc 609 tegra_pmc_parse_dt(struct tegra_pmc *pmc, struct device_node *np) argument 681 tegra_pmc_init(struct tegra_pmc *pmc) argument [all...] |
/drivers/net/wireless/ath/wcn36xx/ |
H A D | Makefile | 6 pmc.o \
|
/drivers/clk/tegra/ |
H A D | Makefile | 11 obj-y += clk-tegra-pmc.o
|