Home
last modified time | relevance | path

Searched refs:pmf (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_packet_manager.c72 map_queue_size = pm->pmf->map_queues_size; in pm_calc_rlib_size()
74 *rlib_size = process_count * pm->pmf->map_process_size + in pm_calc_rlib_size()
82 *rlib_size += pm->pmf->runlist_size; in pm_calc_rlib_size()
158 retval = pm->pmf->map_process(pm, &rl_buffer[rl_wptr], qpd); in pm_create_runlist_ib()
163 inc_wptr(&rl_wptr, pm->pmf->map_process_size, in pm_create_runlist_ib()
173 retval = pm->pmf->map_queues(pm, in pm_create_runlist_ib()
181 pm->pmf->map_queues_size, in pm_create_runlist_ib()
192 retval = pm->pmf->map_queues(pm, in pm_create_runlist_ib()
201 pm->pmf->map_queues_size, in pm_create_runlist_ib()
211 retval = pm->pmf in pm_create_runlist_ib()
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/amd/pmf/
H A Dsps.c11 #include "pmf.h"
128 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf) in amd_pmf_set_sps_power_limits() argument
132 mode = amd_pmf_get_pprof_modes(pmf); in amd_pmf_set_sps_power_limits()
136 amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL); in amd_pmf_set_sps_power_limits()
141 bool is_pprof_balanced(struct amd_pmf_dev *pmf) in is_pprof_balanced() argument
143 return (pmf->current_profile == PLATFORM_PROFILE_BALANCED) ? true : false; in is_pprof_balanced()
149 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_get() local
151 *profile = pmf->current_profile; in amd_pmf_profile_get()
155 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf) in amd_pmf_get_pprof_modes() argument
159 switch (pmf in amd_pmf_get_pprof_modes()
230 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); amd_pmf_profile_set() local
[all...]
H A Dcore.c18 #include "pmf.h"
63 struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier); in amd_pmf_pwr_src_notify_call() local
68 if (is_apmf_func_supported(pmf, APMF_FUNC_AUTO_MODE) || in amd_pmf_pwr_src_notify_call()
69 is_apmf_func_supported(pmf, APMF_FUNC_DYN_SLIDER_DC) || in amd_pmf_pwr_src_notify_call()
70 is_apmf_func_supported(pmf, APMF_FUNC_DYN_SLIDER_AC)) { in amd_pmf_pwr_src_notify_call()
71 if ((pmf->amt_enabled || pmf->cnqf_enabled) && is_pprof_balanced(pmf)) in amd_pmf_pwr_src_notify_call()
75 if (is_apmf_func_supported(pmf, APMF_FUNC_STATIC_SLIDER_GRANULAR)) in amd_pmf_pwr_src_notify_call()
76 amd_pmf_set_sps_power_limits(pmf); in amd_pmf_pwr_src_notify_call()
[all...]
H A DMakefile3 # Makefile for linux/drivers/platform/x86/amd/pmf
7 obj-$(CONFIG_AMD_PMF) += amd-pmf.o
8 amd-pmf-objs := core.o acpi.o sps.o \
H A Dpmf.h403 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf);
410 bool is_pprof_balanced(struct amd_pmf_dev *pmf);
415 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf);
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_packet_manager.c71 map_queue_size = pm->pmf->map_queues_size; in pm_calc_rlib_size()
73 *rlib_size = process_count * pm->pmf->map_process_size + in pm_calc_rlib_size()
81 *rlib_size += pm->pmf->runlist_size; in pm_calc_rlib_size()
157 retval = pm->pmf->map_process(pm, &rl_buffer[rl_wptr], qpd); in pm_create_runlist_ib()
162 inc_wptr(&rl_wptr, pm->pmf->map_process_size, in pm_create_runlist_ib()
172 retval = pm->pmf->map_queues(pm, in pm_create_runlist_ib()
180 pm->pmf->map_queues_size, in pm_create_runlist_ib()
191 retval = pm->pmf->map_queues(pm, in pm_create_runlist_ib()
200 pm->pmf->map_queues_size, in pm_create_runlist_ib()
210 retval = pm->pmf in pm_create_runlist_ib()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gfx.c509 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_gfx_disable_kcq()
513 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size * in amdgpu_gfx_disable_kcq()
521 kiq->pmf->kiq_unmap_queues(kiq_ring, in amdgpu_gfx_disable_kcq()
540 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_gfx_disable_kgq()
545 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size * in amdgpu_gfx_disable_kgq()
553 kiq->pmf->kiq_unmap_queues(kiq_ring, in amdgpu_gfx_disable_kgq()
586 if (!kiq->pmf || !kiq->pmf in amdgpu_gfx_enable_kcq()
[all...]
H A Damdgpu_amdkfd.c829 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_amdkfd_unmap_hiq()
848 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size)) { in amdgpu_amdkfd_unmap_hiq()
854 kiq->pmf->kiq_unmap_queues(kiq_ring, ring, RESET_QUEUES, 0, 0); in amdgpu_amdkfd_unmap_hiq()
H A Dmes_v11_0.c881 if (!kiq->pmf || !kiq->pmf->kiq_map_queues) in mes_v11_0_kiq_enable_queue()
884 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size); in mes_v11_0_kiq_enable_queue()
890 kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring); in mes_v11_0_kiq_enable_queue()
H A Dmes_v10_1.c807 if (!kiq->pmf || !kiq->pmf->kiq_map_queues) in mes_v10_1_kiq_enable_queue()
810 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size); in mes_v10_1_kiq_enable_queue()
816 kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring); in mes_v10_1_kiq_enable_queue()
H A Dgmc_v9_0.c972 unsigned int ndw = kiq->pmf->invalidate_tlbs_size + 8; in gmc_v9_0_flush_gpu_tlb_pasid()
975 ndw += kiq->pmf->invalidate_tlbs_size; in gmc_v9_0_flush_gpu_tlb_pasid()
981 kiq->pmf->kiq_invalidate_tlbs(ring, in gmc_v9_0_flush_gpu_tlb_pasid()
987 kiq->pmf->kiq_invalidate_tlbs(ring, in gmc_v9_0_flush_gpu_tlb_pasid()
990 kiq->pmf->kiq_invalidate_tlbs(ring, in gmc_v9_0_flush_gpu_tlb_pasid()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gfx.c467 if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) in amdgpu_gfx_disable_kcq()
470 if (amdgpu_ring_alloc(kiq_ring, kiq->pmf->unmap_queues_size * in amdgpu_gfx_disable_kcq()
475 kiq->pmf->kiq_unmap_queues(kiq_ring, &adev->gfx.compute_ring[i], in amdgpu_gfx_disable_kcq()
501 if (!kiq->pmf || !kiq->pmf->kiq_map_queues || !kiq->pmf->kiq_set_resources) in amdgpu_gfx_enable_kcq()
522 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size * in amdgpu_gfx_enable_kcq()
524 kiq->pmf->set_resources_size); in amdgpu_gfx_enable_kcq()
530 kiq->pmf in amdgpu_gfx_enable_kcq()
[all...]
H A Dmes_v10_1.c793 if (!kiq->pmf || !kiq->pmf->kiq_map_queues)
796 r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size);
802 kiq->pmf->kiq_map_queues(kiq_ring, &adev->mes.ring);
H A Dgmc_v9_0.c859 unsigned int ndw = kiq->pmf->invalidate_tlbs_size + 8; in gmc_v9_0_flush_gpu_tlb_pasid()
862 ndw += kiq->pmf->invalidate_tlbs_size; in gmc_v9_0_flush_gpu_tlb_pasid()
868 kiq->pmf->kiq_invalidate_tlbs(ring, in gmc_v9_0_flush_gpu_tlb_pasid()
870 kiq->pmf->kiq_invalidate_tlbs(ring, in gmc_v9_0_flush_gpu_tlb_pasid()
/kernel/linux/linux-6.6/drivers/platform/x86/amd/
H A DMakefile10 obj-$(CONFIG_AMD_PMF) += pmf/
/kernel/linux/linux-5.10/sound/aoa/core/
H A DMakefile5 gpio-pmf.o \
/kernel/linux/linux-6.6/sound/aoa/core/
H A DMakefile5 gpio-pmf.o \
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
H A Dmedia-dev.c509 if (!fmd->pmf) in fimc_md_register_sensor_entities()
512 ret = pm_runtime_resume_and_get(fmd->pmf); in fimc_md_register_sensor_entities()
552 pm_runtime_put(fmd->pmf); in fimc_md_register_sensor_entities()
558 pm_runtime_put(fmd->pmf); in fimc_md_register_sensor_entities()
626 if (!fmd->pmf && fimc->pdev) in register_fimc_entity()
627 fmd->pmf = &fimc->pdev->dev; in register_fimc_entity()
1285 if (camclk->fmd->pmf == NULL) in cam_clk_prepare()
1288 return pm_runtime_resume_and_get(camclk->fmd->pmf); in cam_clk_prepare()
1295 if (camclk->fmd->pmf == NULL) in cam_clk_unprepare()
1298 pm_runtime_put_sync(camclk->fmd->pmf); in cam_clk_unprepare()
[all...]
H A Dmedia-dev.h106 * @pmf: handle to the CAMCLK clock control FIMC helper device
124 struct device *pmf; member
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos4-is/
H A Dmedia-dev.c511 if (!fmd->pmf) in fimc_md_register_sensor_entities()
514 ret = pm_runtime_resume_and_get(fmd->pmf); in fimc_md_register_sensor_entities()
554 pm_runtime_put(fmd->pmf); in fimc_md_register_sensor_entities()
560 pm_runtime_put(fmd->pmf); in fimc_md_register_sensor_entities()
628 if (!fmd->pmf && fimc->pdev) in register_fimc_entity()
629 fmd->pmf = &fimc->pdev->dev; in register_fimc_entity()
1286 if (camclk->fmd->pmf == NULL) in cam_clk_prepare()
1289 return pm_runtime_resume_and_get(camclk->fmd->pmf); in cam_clk_prepare()
1296 if (camclk->fmd->pmf == NULL) in cam_clk_unprepare()
1299 pm_runtime_put_sync(camclk->fmd->pmf); in cam_clk_unprepare()
[all...]
H A Dmedia-dev.h107 * @pmf: handle to the CAMCLK clock control FIMC helper device
128 struct device *pmf; member
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
H A DMakefile9 ecm.o pcmplc.o pmf.o queue.o rmt.o \
/kernel/linux/linux-6.6/drivers/net/fddi/skfp/
H A DMakefile9 ecm.o pcmplc.o pmf.o queue.o rmt.o \
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_stats.c228 if (!bp->port.pmf || !bp->port.port_stx) { in bnx2x_stats_pmf_update()
277 if (!bp->link_vars.link_up || !bp->port.pmf) { in bnx2x_port_stats_init()
521 if (bp->port.pmf) in bnx2x_stats_start()
1101 if (bp->port.pmf) { in bnx2x_storm_stats_update()
1229 if (bp->port.pmf) in bnx2x_stats_update()
1329 if (bp->port.pmf) in bnx2x_stats_stop()
1337 if (bp->port.pmf) in bnx2x_stats_stop()
1408 if (!bp->port.pmf || !bp->port.port_stx) { in bnx2x_port_stats_base_init()
1591 if (bp->port.pmf && bp->port.port_stx) in bnx2x_memset_stats()
1624 /* pmf shoul in bnx2x_stats_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_stats.c228 if (!bp->port.pmf || !bp->port.port_stx) { in bnx2x_stats_pmf_update()
277 if (!bp->link_vars.link_up || !bp->port.pmf) { in bnx2x_port_stats_init()
521 if (bp->port.pmf) in bnx2x_stats_start()
1102 if (bp->port.pmf) { in bnx2x_storm_stats_update()
1230 if (bp->port.pmf) in bnx2x_stats_update()
1330 if (bp->port.pmf) in bnx2x_stats_stop()
1338 if (bp->port.pmf) in bnx2x_stats_stop()
1409 if (!bp->port.pmf || !bp->port.port_stx) { in bnx2x_port_stats_base_init()
1592 if (bp->port.pmf && bp->port.port_stx) in bnx2x_memset_stats()
1625 /* pmf shoul in bnx2x_stats_init()
[all...]

Completed in 35 milliseconds

123