Home
last modified time | relevance | path

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

123

/drivers/net/wireless/ath/wil6210/
Dpmc.c21 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/
Dpmc.c261 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/
Dintel_pmc_bxt.c83 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/
Dmlxbf-pmc.c432 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/
Dpmc_atom.c204 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/
Dintel_pmc_mux.c123 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/
DMakefile7 amd-pmc-y := pmc.o
8 obj-$(CONFIG_AMD_PMC) += amd-pmc.o
/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
Dgp100.c109 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()
Dtu102.c117 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()
Dgk20a.c38 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()
Dnv11.c47 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()
Dnv17.c56 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()
Dgp10b.c46 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()
Dnv50.c58 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()
Dg98.c65 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()
Dgk104.c63 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()
Dg84.c65 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()
Dnv44.c51 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()
Dgt215.c74 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_(&gt215_mc, device, type, inst, pmc); in gt215_mc_new()
Dnv04.c83 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()
Dga100.c71 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/
Dclk.h380 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,
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)
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/
Dat91-sama5d2_shdwc.c88 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/
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()

123