/drivers/net/wireless/ath/wil6210/ |
D | pmc.c | 32 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/ |
D | pmc.c | 147 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 …]
|
D | Makefile | 6 obj-$(CONFIG_SOC_TEGRA_PMC) += pmc.o
|
/drivers/platform/x86/ |
D | pmc_atom.c | 203 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 …]
|
D | intel_pmc_ipc.c | 510 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()
|
D | intel_pmc_core.c | 33 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/ |
D | gp100.c | 109 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()
|
D | gk20a.c | 38 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()
|
D | nv11.c | 47 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()
|
D | nv17.c | 56 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()
|
D | gp10b.c | 46 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()
|
D | g84.c | 65 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()
|
D | gk104.c | 63 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()
|
D | nv50.c | 58 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()
|
D | g98.c | 65 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()
|
D | nv44.c | 51 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()
|
D | tu102.c | 52 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()
|
D | gt215.c | 74 gt215_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gt215_mc_new() argument 76 return nvkm_mc_new_(>215_mc, device, index, pmc); in gt215_mc_new()
|
D | nv04.c | 83 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()
|
D | gf100.c | 115 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()
|
D | base.c | 217 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/ |
D | clk.h | 315 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,
|
D | clk-pll.c | 233 #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 …]
|
D | clk-tegra114.c | 917 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/ |
D | exynos-srom.c | 70 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()
|