/drivers/net/wireless/ath/wil6210/ |
D | pmc.c | 21 static int wil_is_pmc_allocated(struct pmc_ctx *pmc) in wil_is_pmc_allocated() argument 23 return !!pmc->pring_va; in wil_is_pmc_allocated() 28 memset(&wil->pmc, 0, sizeof(struct pmc_ctx)); in wil_pmc_init() 29 mutex_init(&wil->pmc.lock); in wil_pmc_init() 44 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc() local 50 mutex_lock(&pmc->lock); in wil_pmc_alloc() 52 if (wil_is_pmc_allocated(pmc)) { in wil_pmc_alloc() 81 pmc->num_descriptors = num_descriptors; in wil_pmc_alloc() 82 pmc->descriptor_size = descriptor_size; in wil_pmc_alloc() 88 pmc->descriptors = kcalloc(num_descriptors, in wil_pmc_alloc() [all …]
|
/drivers/soc/tegra/ |
D | pmc.c | 261 struct tegra_pmc *pmc; member 351 void (*init)(struct tegra_pmc *pmc); 352 void (*setup_irq_polarity)(struct tegra_pmc *pmc, 357 int (*powergate_set)(struct tegra_pmc *pmc, unsigned int id, 454 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable 465 static u32 tegra_pmc_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_readl() argument 469 if (pmc->tz_only) { in tegra_pmc_readl() 473 if (pmc->dev) in tegra_pmc_readl() 474 dev_warn(pmc->dev, "%s(): SMC failed: %lu\n", in tegra_pmc_readl() 484 return readl(pmc->base + offset); in tegra_pmc_readl() [all …]
|
/drivers/mfd/ |
D | intel_pmc_bxt.c | 83 int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, u64 *data) in intel_pmc_gcr_read64() argument 88 spin_lock(&pmc->gcr_lock); in intel_pmc_gcr_read64() 89 *data = readq(pmc->gcr_mem_base + offset); in intel_pmc_gcr_read64() 90 spin_unlock(&pmc->gcr_lock); in intel_pmc_gcr_read64() 108 int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, u32 mask, u32 val) in intel_pmc_gcr_update() argument 115 spin_lock(&pmc->gcr_lock); in intel_pmc_gcr_update() 116 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 119 writel(new_val, pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 121 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 122 spin_unlock(&pmc->gcr_lock); in intel_pmc_gcr_update() [all …]
|
/drivers/platform/mellanox/ |
D | mlxbf-pmc.c | 432 static struct mlxbf_pmc_context *pmc; variable 444 arm_smccc_smc(command, pmc->sreg_tbl_perf, (uintptr_t)addr, 0, 0, 0, 0, in mlxbf_pmc_secure_read() 468 if (pmc->svc_sreg_support) in mlxbf_pmc_read() 500 arm_smccc_smc(command, pmc->sreg_tbl_perf, value, (uintptr_t)addr, 0, 0, in mlxbf_pmc_secure_write() 520 if (pmc->svc_sreg_support) in mlxbf_pmc_write() 535 (offset + MLXBF_PMC_REG_SIZE <= pmc->block[blk_num].blk_size)) in mlxbf_pmc_valid_range() 557 switch (pmc->event_set) { in mlxbf_pmc_event_list() 643 return mlxbf_pmc_write(pmc->block[blk_num].mmio_base + in mlxbf_pmc_config_l3_counters() 665 pmcaddr = pmc->block[blk_num].mmio_base + in mlxbf_pmc_program_l3_counter() 670 pmcaddr = pmc->block[blk_num].mmio_base + in mlxbf_pmc_program_l3_counter() [all …]
|
/drivers/platform/x86/ |
D | pmc_atom.c | 204 static inline u32 pmc_reg_read(struct pmc_dev *pmc, int reg_offset) in pmc_reg_read() argument 206 return readl(pmc->regmap + reg_offset); in pmc_reg_read() 209 static inline void pmc_reg_write(struct pmc_dev *pmc, int reg_offset, u32 val) in pmc_reg_write() argument 211 writel(val, pmc->regmap + reg_offset); in pmc_reg_write() 216 struct pmc_dev *pmc = &pmc_device; in pmc_atom_read() local 218 if (!pmc->init) in pmc_atom_read() 221 *value = pmc_reg_read(pmc, offset); in pmc_atom_read() 242 static void pmc_hw_reg_setup(struct pmc_dev *pmc) in pmc_hw_reg_setup() argument 252 pmc_reg_write(pmc, PMC_S0IX_WAKE_EN, (u32)PMC_WAKE_EN_SETTING); in pmc_hw_reg_setup() 273 struct pmc_dev *pmc = s->private; in pmc_dev_state_show() local [all …]
|
/drivers/usb/typec/mux/ |
D | intel_pmc_mux.c | 123 struct pmc_usb *pmc; member 155 port->iom_status = readl(port->pmc->iom_base + in update_port_status() 156 port->pmc->iom_port_status_offset + in update_port_status() 215 ret = pmc_usb_send_command(port->pmc->ipc, msg, len); in pmc_usb_command() 512 static int pmc_usb_register_port(struct pmc_usb *pmc, int index, in pmc_usb_register_port() argument 515 struct pmc_usb_port *port = &pmc->port[index]; in pmc_usb_register_port() 539 port->pmc = pmc; in pmc_usb_register_port() 546 port->typec_sw = typec_switch_register(pmc->dev, &sw_desc); in pmc_usb_register_port() 555 port->typec_mux = typec_mux_register(pmc->dev, &mux_desc); in pmc_usb_register_port() 566 port->usb_sw = usb_role_switch_register(pmc->dev, &desc); in pmc_usb_register_port() [all …]
|
/drivers/platform/x86/amd/ |
D | Makefile | 7 amd-pmc-y := pmc.o 8 obj-$(CONFIG_AMD_PMC) += amd-pmc.o
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
D | gp100.c | 109 enum nvkm_subdev_type type, int inst, 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, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gp100_mc_new() argument 127 return gp100_mc_new_(&gp100_mc, device, type, inst, pmc); in gp100_mc_new()
|
D | tu102.c | 117 enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in tu102_mc_new_() argument 124 *pmc = &mc->base; in tu102_mc_new_() 133 tu102_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in tu102_mc_new() argument 135 return tu102_mc_new_(&tu102_mc, device, type, inst, pmc); in tu102_mc_new()
|
D | gk20a.c | 38 gk20a_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gk20a_mc_new() argument 40 return nvkm_mc_new_(&gk20a_mc, device, type, inst, pmc); in gk20a_mc_new()
|
D | nv11.c | 47 nv11_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in nv11_mc_new() argument 49 return nvkm_mc_new_(&nv11_mc, device, type, inst, pmc); in nv11_mc_new()
|
D | nv17.c | 56 nv17_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in nv17_mc_new() argument 58 return nvkm_mc_new_(&nv17_mc, device, type, inst, pmc); in nv17_mc_new()
|
D | gp10b.c | 46 gp10b_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gp10b_mc_new() argument 48 return gp100_mc_new_(&gp10b_mc, device, type, inst, pmc); in gp10b_mc_new()
|
D | nv50.c | 58 nv50_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in nv50_mc_new() argument 60 return nvkm_mc_new_(&nv50_mc, device, type, inst, pmc); in nv50_mc_new()
|
D | g98.c | 65 g98_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in g98_mc_new() argument 67 return nvkm_mc_new_(&g98_mc, device, type, inst, pmc); in g98_mc_new()
|
D | gk104.c | 63 gk104_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gk104_mc_new() argument 65 return nvkm_mc_new_(&gk104_mc, device, type, inst, pmc); in gk104_mc_new()
|
D | g84.c | 65 g84_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in g84_mc_new() argument 67 return nvkm_mc_new_(&g84_mc, device, type, inst, pmc); in g84_mc_new()
|
D | nv44.c | 51 nv44_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in nv44_mc_new() argument 53 return nvkm_mc_new_(&nv44_mc, device, type, inst, pmc); in nv44_mc_new()
|
D | gt215.c | 74 gt215_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gt215_mc_new() argument 76 return nvkm_mc_new_(>215_mc, device, type, inst, pmc); in gt215_mc_new()
|
D | nv04.c | 83 nv04_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in nv04_mc_new() argument 85 return nvkm_mc_new_(&nv04_mc, device, type, inst, pmc); in nv04_mc_new()
|
D | ga100.c | 71 ga100_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in ga100_mc_new() argument 73 return nvkm_mc_new_(&ga100_mc, device, type, inst, pmc); in ga100_mc_new()
|
/drivers/clk/tegra/ |
D | clk.h | 380 void __iomem *pmc; member 405 void __iomem *clk_base, void __iomem *pmc, 410 void __iomem *clk_base, void __iomem *pmc, 415 void __iomem *clk_base, void __iomem *pmc, 421 void __iomem *clk_base, void __iomem *pmc, 427 void __iomem *clk_base, void __iomem *pmc, 433 void __iomem *clk_base, void __iomem *pmc, 440 void __iomem *pmc, unsigned long flags, 458 void __iomem *pmc, unsigned long flags, 474 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) 332 u32 val = readl_relaxed(pll->pmc + PMC_PLLP_WB0_OVERRIDE); in pllm_clk_is_gated_by_pmc() 383 val = readl_relaxed(pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_enable() 385 writel_relaxed(val, pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_enable() 401 val = readl_relaxed(pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_disable() 403 writel_relaxed(val, pll->pmc + PMC_PLLP_WB0_OVERRIDE); in _clk_pll_disable() 919 if (!pll->pmc) in clk_plle_training() 926 val = readl(pll->pmc + PMC_SATA_PWRGT); in clk_plle_training() 928 writel(val, pll->pmc + PMC_SATA_PWRGT); in clk_plle_training() [all …]
|
/drivers/power/reset/ |
D | at91-sama5d2_shdwc.c | 88 struct pmc_reg_config pmc; member 168 "r" (at91_shdwc->rcfg->pmc.mckr) in at91_poweroff() 268 .pmc = { 285 .pmc = { 302 .pmc = {
|
/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()
|