Home
last modified time | relevance | path

Searched refs:pmc (Results 1 – 25 of 43) sorted by relevance

12

/drivers/net/wireless/ath/wil6210/
Dpmc.c32 static int wil_is_pmc_allocated(struct pmc_ctx *pmc) in wil_is_pmc_allocated() argument
34 return !!pmc->pring_va; in wil_is_pmc_allocated()
39 memset(&wil->pmc, 0, sizeof(struct pmc_ctx)); in wil_pmc_init()
40 mutex_init(&wil->pmc.lock); in wil_pmc_init()
56 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc() local
62 mutex_lock(&pmc->lock); in wil_pmc_alloc()
64 if (wil_is_pmc_allocated(pmc)) { in wil_pmc_alloc()
93 pmc->num_descriptors = num_descriptors; in wil_pmc_alloc()
94 pmc->descriptor_size = descriptor_size; in wil_pmc_alloc()
100 pmc->descriptors = kcalloc(num_descriptors, in wil_pmc_alloc()
[all …]
/drivers/soc/tegra/
Dpmc.c147 struct tegra_pmc *pmc; member
225 void (*init)(struct tegra_pmc *pmc);
226 void (*setup_irq_polarity)(struct tegra_pmc *pmc,
349 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable
360 static u32 tegra_pmc_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_readl() argument
364 if (pmc->tz_only) { in tegra_pmc_readl()
368 if (pmc->dev) in tegra_pmc_readl()
369 dev_warn(pmc->dev, "%s(): SMC failed: %lu\n", in tegra_pmc_readl()
379 return readl(pmc->base + offset); in tegra_pmc_readl()
382 static void tegra_pmc_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_writel() argument
[all …]
DMakefile6 obj-$(CONFIG_SOC_TEGRA_PMC) += pmc.o
/drivers/platform/x86/
Dpmc_atom.c203 static inline u32 pmc_reg_read(struct pmc_dev *pmc, int reg_offset) in pmc_reg_read() argument
205 return readl(pmc->regmap + reg_offset); in pmc_reg_read()
208 static inline void pmc_reg_write(struct pmc_dev *pmc, int reg_offset, u32 val) in pmc_reg_write() argument
210 writel(val, pmc->regmap + reg_offset); in pmc_reg_write()
215 struct pmc_dev *pmc = &pmc_device; in pmc_atom_read() local
217 if (!pmc->init) in pmc_atom_read()
220 *value = pmc_reg_read(pmc, offset); in pmc_atom_read()
227 struct pmc_dev *pmc = &pmc_device; in pmc_atom_write() local
229 if (!pmc->init) in pmc_atom_write()
232 pmc_reg_write(pmc, offset, value); in pmc_atom_write()
[all …]
Dintel_pmc_ipc.c510 struct intel_pmc_ipc_dev *pmc = &ipcdev; in ipc_pci_probe() local
514 if (pmc->dev) in ipc_pci_probe()
517 pmc->irq_mode = IPC_TRIGGER_MODE_IRQ; in ipc_pci_probe()
529 init_completion(&pmc->cmd_complete); in ipc_pci_probe()
531 pmc->ipc_base = pcim_iomap_table(pdev)[0]; in ipc_pci_probe()
534 pmc); in ipc_pci_probe()
540 pmc->dev = &pdev->dev; in ipc_pci_probe()
542 pci_set_drvdata(pdev, pmc); in ipc_pci_probe()
Dintel_pmc_core.c33 static struct pmc_dev pmc; variable
405 struct pmc_dev *pmcdev = &pmc; in pmc_core_check_read_lock_bit()
447 struct pmc_dev *pmcdev = &pmc; in pmc_core_mtpmc_link_status()
456 struct pmc_dev *pmcdev = &pmc; in pmc_core_send_msg()
567 struct pmc_dev *pmcdev = &pmc; in pmc_core_ltr_ignore_write()
836 struct pmc_dev *pmcdev = &pmc; in quirk_xtal_ignore()
863 struct pmc_dev *pmcdev = &pmc; in pmc_core_probe()
/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
Dgp100.c109 int index, struct nvkm_mc **pmc) in gp100_mc_new_() argument
116 *pmc = &mc->base; in gp100_mc_new_()
125 gp100_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gp100_mc_new() argument
127 return gp100_mc_new_(&gp100_mc, device, index, pmc); in gp100_mc_new()
Dgk20a.c38 gk20a_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gk20a_mc_new() argument
40 return nvkm_mc_new_(&gk20a_mc, device, index, pmc); in gk20a_mc_new()
Dnv11.c47 nv11_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in nv11_mc_new() argument
49 return nvkm_mc_new_(&nv11_mc, device, index, pmc); in nv11_mc_new()
Dnv17.c56 nv17_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in nv17_mc_new() argument
58 return nvkm_mc_new_(&nv17_mc, device, index, pmc); in nv17_mc_new()
Dgp10b.c46 gp10b_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gp10b_mc_new() argument
48 return gp100_mc_new_(&gp10b_mc, device, index, pmc); in gp10b_mc_new()
Dg84.c65 g84_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in g84_mc_new() argument
67 return nvkm_mc_new_(&g84_mc, device, index, pmc); in g84_mc_new()
Dgk104.c63 gk104_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gk104_mc_new() argument
65 return nvkm_mc_new_(&gk104_mc, device, index, pmc); in gk104_mc_new()
Dnv50.c58 nv50_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in nv50_mc_new() argument
60 return nvkm_mc_new_(&nv50_mc, device, index, pmc); in nv50_mc_new()
Dg98.c65 g98_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in g98_mc_new() argument
67 return nvkm_mc_new_(&g98_mc, device, index, pmc); in g98_mc_new()
Dnv44.c51 nv44_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in nv44_mc_new() argument
53 return nvkm_mc_new_(&nv44_mc, device, index, pmc); in nv44_mc_new()
Dtu102.c52 tu102_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in tu102_mc_new() argument
54 return gp100_mc_new_(&tu102_mc, device, index, pmc); in tu102_mc_new()
Dgt215.c74 gt215_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gt215_mc_new() argument
76 return nvkm_mc_new_(&gt215_mc, device, index, pmc); in gt215_mc_new()
Dnv04.c83 nv04_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in nv04_mc_new() argument
85 return nvkm_mc_new_(&nv04_mc, device, index, pmc); in nv04_mc_new()
Dgf100.c115 gf100_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gf100_mc_new() argument
117 return nvkm_mc_new_(&gf100_mc, device, index, pmc); in gf100_mc_new()
Dbase.c217 int index, struct nvkm_mc **pmc) in nvkm_mc_new_() argument
220 if (!(mc = *pmc = kzalloc(sizeof(*mc), GFP_KERNEL))) in nvkm_mc_new_()
222 nvkm_mc_ctor(func, device, index, *pmc); in nvkm_mc_new_()
/drivers/clk/tegra/
Dclk.h315 void __iomem *pmc; member
340 void __iomem *clk_base, void __iomem *pmc,
345 void __iomem *clk_base, void __iomem *pmc,
350 void __iomem *clk_base, void __iomem *pmc,
356 void __iomem *clk_base, void __iomem *pmc,
362 void __iomem *clk_base, void __iomem *pmc,
368 void __iomem *clk_base, void __iomem *pmc,
375 void __iomem *pmc, unsigned long flags,
393 void __iomem *pmc, unsigned long flags,
409 void __iomem *clk_base, void __iomem *pmc,
Dclk-pll.c233 #define pll_override_readl(offset, p) readl_relaxed(p->pmc + offset)
240 #define pll_override_writel(val, offset, p) writel(val, p->pmc + offset)
336 val = readl_relaxed(pll->pmc + PMC_PLLP_WB0_OVERRIDE); in clk_pll_is_enabled()
373 val = readl_relaxed(pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_enable()
375 writel_relaxed(val, pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_enable()
391 val = readl_relaxed(pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_disable()
393 writel_relaxed(val, pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_disable()
896 if (!pll->pmc) in clk_plle_training()
903 val = readl(pll->pmc + PMC_SATA_PWRGT); in clk_plle_training()
905 writel(val, pll->pmc + PMC_SATA_PWRGT); in clk_plle_training()
[all …]
Dclk-tegra114.c917 void __iomem *pmc) in tegra114_pll_init() argument
923 pmc, 0, &pll_c_params, NULL); in tegra114_pll_init()
936 clk = tegra_clk_register_pllc("pll_c2", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
941 clk = tegra_clk_register_pllc("pll_c3", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
946 clk = tegra_clk_register_pllm("pll_m", "pll_ref", clk_base, pmc, in tegra114_pll_init()
990 clk = tegra_clk_register_pll("pll_d", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1000 clk = tegra_clk_register_pll("pll_d2", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1010 clk = tegra_clk_register_pllre("pll_re_vco", "pll_ref", clk_base, pmc, in tegra114_pll_init()
/drivers/memory/samsung/
Dexynos-srom.c70 u32 bank, width, pmc = 0; in exynos_srom_configure_bank() local
79 pmc = 1 << EXYNOS_SROM_BCX__PMC__SHIFT; in exynos_srom_configure_bank()
94 writel_relaxed(pmc | (timing[0] << EXYNOS_SROM_BCX__TACP__SHIFT) | in exynos_srom_configure_bank()

12