| /linux/drivers/platform/x86/amd/pmf/ |
| H A D | sps.c | 268 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf) in amd_pmf_set_sps_power_limits() argument 272 mode = amd_pmf_get_pprof_modes(pmf); in amd_pmf_set_sps_power_limits() 276 if (pmf->pmf_if_version == PMF_IF_V2) in amd_pmf_set_sps_power_limits() 277 return amd_pmf_update_sps_power_limits_v2(pmf, mode); in amd_pmf_set_sps_power_limits() 279 amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL); in amd_pmf_set_sps_power_limits() 284 bool is_pprof_balanced(struct amd_pmf_dev *pmf) in is_pprof_balanced() argument 286 return pmf->current_profile == PLATFORM_PROFILE_BALANCED; in is_pprof_balanced() 292 struct amd_pmf_dev *pmf = dev_get_drvdata(dev); in amd_pmf_profile_get() local 294 *profile = pmf->current_profile; in amd_pmf_profile_get() 298 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf) in amd_pmf_get_pprof_modes() argument [all …]
|
| H A D | Makefile | 7 obj-$(CONFIG_AMD_PMF) += amd-pmf.o 8 amd-pmf-y := core.o acpi.o sps.o \ 12 amd-pmf-$(CONFIG_AMD_PMF_UTIL_SUPPORT) += util.o
|
| H A D | core.c | 83 struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier); in amd_pmf_pwr_src_notify_call() local 88 if (is_apmf_func_supported(pmf, APMF_FUNC_AUTO_MODE) || in amd_pmf_pwr_src_notify_call() 89 is_apmf_func_supported(pmf, APMF_FUNC_DYN_SLIDER_DC) || in amd_pmf_pwr_src_notify_call() 90 is_apmf_func_supported(pmf, APMF_FUNC_DYN_SLIDER_AC)) { in amd_pmf_pwr_src_notify_call() 91 if ((pmf->amt_enabled || pmf->cnqf_enabled) && is_pprof_balanced(pmf)) in amd_pmf_pwr_src_notify_call() 95 if (is_apmf_func_supported(pmf, APMF_FUNC_STATIC_SLIDER_GRANULAR)) in amd_pmf_pwr_src_notify_call() 96 amd_pmf_set_sps_power_limits(pmf); in amd_pmf_pwr_src_notify_call() 98 if (is_apmf_func_supported(pmf, APMF_FUNC_OS_POWER_SLIDER_UPDATE)) in amd_pmf_pwr_src_notify_call() 99 amd_pmf_power_slider_update_event(pmf); in amd_pmf_pwr_src_notify_call()
|
| H A D | pmf.h | 1092 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf); 1098 bool is_pprof_balanced(struct amd_pmf_dev *pmf); 1105 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf);
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_gfx.c | 598 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_gfx_disable_kcq() 605 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size * in amdgpu_gfx_disable_kcq() 613 kiq->pmf->kiq_unmap_queues(kiq_ring, in amdgpu_gfx_disable_kcq() 650 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_gfx_disable_kgq() 658 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size * in amdgpu_gfx_disable_kgq() 666 kiq->pmf->kiq_unmap_queues(kiq_ring, in amdgpu_gfx_disable_kgq() 709 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->set_resources_size); in amdgpu_gfx_mes_enable_kcq() 716 kiq->pmf->kiq_set_resources(kiq_ring, queue_mask); in amdgpu_gfx_mes_enable_kcq() 747 if (!kiq->pmf || !kiq->pmf->kiq_map_queues || !kiq->pmf->kiq_set_resources) in amdgpu_gfx_enable_kcq() 771 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size * in amdgpu_gfx_enable_kcq() [all …]
|
| H A D | amdgpu_amdkfd.c | 871 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_amdkfd_unmap_hiq() 893 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size)) { in amdgpu_amdkfd_unmap_hiq() 899 kiq->pmf->kiq_unmap_queues(kiq_ring, ring, RESET_QUEUES, 0, 0); in amdgpu_amdkfd_unmap_hiq()
|
| H A D | gfx_v9_0.c | 1093 adev->gfx.kiq[0].pmf = &gfx_v9_0_kiq_pm4_funcs; in gfx_v9_0_set_kiq_pm4_funcs() 5781 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in gfx_v9_0_ring_preempt_ib() 5786 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size)) { in gfx_v9_0_ring_preempt_ib() 5800 kiq->pmf->kiq_unmap_queues(kiq_ring, ring, PREEMPT_QUEUES_NO_UNMAP, in gfx_v9_0_ring_preempt_ib() 7322 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in gfx_v9_0_reset_kcq() 7329 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size)) { in gfx_v9_0_reset_kcq() 7334 kiq->pmf->kiq_unmap_queues(kiq_ring, ring, RESET_QUEUES, in gfx_v9_0_reset_kcq() 7369 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size); in gfx_v9_0_reset_kcq() 7374 kiq->pmf->kiq_map_queues(kiq_ring, ring); in gfx_v9_0_reset_kcq()
|
| /linux/sound/aoa/core/ |
| H A D | Makefile | 5 gpio-pmf.o \
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| H A D | media-dev.c | 507 if (!fmd->pmf) in fimc_md_register_sensor_entities() 510 ret = pm_runtime_resume_and_get(fmd->pmf); in fimc_md_register_sensor_entities() 546 pm_runtime_put(fmd->pmf); in fimc_md_register_sensor_entities() 552 pm_runtime_put(fmd->pmf); in fimc_md_register_sensor_entities() 620 if (!fmd->pmf && fimc->pdev) in register_fimc_entity() 621 fmd->pmf = &fimc->pdev->dev; in register_fimc_entity() 1275 if (camclk->fmd->pmf == NULL) in cam_clk_prepare() 1278 return pm_runtime_resume_and_get(camclk->fmd->pmf); in cam_clk_prepare() 1285 if (camclk->fmd->pmf == NULL) in cam_clk_unprepare() 1288 pm_runtime_put_sync(camclk->fmd->pmf); in cam_clk_unprepare()
|
| /linux/drivers/platform/x86/amd/ |
| H A D | Makefile | 11 obj-$(CONFIG_AMD_PMF) += pmf/
|
| H A D | Kconfig | 7 source "drivers/platform/x86/amd/pmf/Kconfig"
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | Makefile | 9 ecm.o pcmplc.o pmf.o queue.o rmt.o \
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_stats.c | 226 if (!bp->port.pmf || !bp->port.port_stx) { in bnx2x_stats_pmf_update() 275 if (!bp->link_vars.link_up || !bp->port.pmf) { in bnx2x_port_stats_init() 519 if (bp->port.pmf) in bnx2x_stats_start() 1100 if (bp->port.pmf) { in bnx2x_storm_stats_update() 1228 if (bp->port.pmf) in bnx2x_stats_update() 1328 if (bp->port.pmf) in bnx2x_stats_stop() 1336 if (bp->port.pmf) in bnx2x_stats_stop() 1407 if (!bp->port.pmf || !bp->port.port_stx) { in bnx2x_port_stats_base_init() 1590 if (bp->port.pmf && bp->port.port_stx) in bnx2x_memset_stats() 1624 if (!bp->stats_init && bp->port.pmf && bp->port.port_stx) in bnx2x_stats_init() [all …]
|
| H A D | bnx2x_cmn.c | 2077 return bnx2x_config_rss_eth(bp, bp->port.pmf || !CHIP_IS_E1x(bp)); in bnx2x_init_rss() 2435 bp->port.pmf = 1; in bnx2x_nic_load_pmf() 2442 bp->port.pmf = 0; in bnx2x_nic_load_pmf() 2445 DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf); in bnx2x_nic_load_pmf() 2849 if (bp->port.pmf) { in bnx2x_nic_load() 2892 if (bp->port.pmf) in bnx2x_nic_load() 2929 if (bp->port.pmf && (bp->state != BNX2X_STATE_DIAG)) in bnx2x_nic_load() 2961 bp->port.pmf = 0; in bnx2x_nic_load() 3127 bp->port.pmf = 0; in bnx2x_nic_unload()
|
| H A D | bnx2x_dcb.c | 1028 if ((!bp->port.pmf) && (!(bp->flags & BC_SUPPORTS_DCBX_MSG_NON_PMF))) in bnx2x_dcbx_init() 1040 bp->dcb_state, bp->port.pmf); in bnx2x_dcbx_init()
|
| H A D | bnx2x.h | 1007 u32 pmf; member
|
| /linux/tools/platform/x86/amd/ |
| H A D | Makefile | 35 test_amd_pmf: test-pmf.c
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | wmi.c | 1657 .pmf = WMI_PEER_PMF, 1695 .pmf = WMI_10_2_PEER_PMF,
|
| H A D | mac.c | 2259 arg->peer_flags |= ar->wmi.peer_flags->pmf; in ath10k_peer_assoc_h_crypto()
|
| /linux/ |
| H A D | MAINTAINERS | 1271 F: Documentation/ABI/testing/sysfs-amd-pmf 1272 F: drivers/platform/x86/amd/pmf/ 1273 F: include/uapi/linux/amd-pmf.h
|