Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 1750) sorted by relevance

12345678910>>...70

/linux/drivers/base/power/
H A Dgeneric_ops.c22 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_runtime_suspend() local
25 ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : 0; in pm_generic_runtime_suspend()
41 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_runtime_resume() local
44 ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : 0; in pm_generic_runtime_resume()
63 if (drv && drv->pm && drv->pm->prepare) in pm_generic_prepare()
64 ret = drv->pm->prepare(dev); in pm_generic_prepare()
75 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend_noirq() local
77 return pm && pm->suspend_noirq ? pm->suspend_noirq(dev) : 0; in pm_generic_suspend_noirq()
87 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pm_generic_suspend_late() local
89 return pm && pm->suspend_late ? pm->suspend_late(dev) : 0; in pm_generic_suspend_late()
[all …]
/linux/drivers/input/touchscreen/
H A Dpenmount.c50 struct pm { struct
59 void (*parse_packet)(struct pm *); argument
66 static void pm_mtevent(struct pm *pm, struct input_dev *input) in pm_mtevent() argument
70 for (i = 0; i < pm->maxcontacts; ++i) { in pm_mtevent()
73 pm->slots[i].active); in pm_mtevent()
74 if (pm->slots[i].active) { in pm_mtevent()
75 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent()
76 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent()
99 static void pm_parse_9000(struct pm *pm) in pm_parse_9000() argument
101 struct input_dev *dev = pm->dev; in pm_parse_9000()
[all …]
/linux/drivers/input/misc/
H A Dpowermate.c88 struct powermate_device *pm = urb->context; in powermate_irq() local
89 struct device *dev = &pm->intf->dev; in powermate_irq()
110 input_report_key(pm->input, BTN_0, pm->data[0] & 0x01); in powermate_irq()
111 input_report_rel(pm->input, REL_DIAL, pm->data[1]); in powermate_irq()
112 input_sync(pm->input); in powermate_irq()
122 static void powermate_sync_state(struct powermate_device *pm) in powermate_sync_state() argument
124 if (pm->requires_update == 0) in powermate_sync_state()
126 if (pm->config->status == -EINPROGRESS) in powermate_sync_state()
129 if (pm->requires_update & UPDATE_PULSE_ASLEEP){ in powermate_sync_state()
130 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state()
[all …]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_packet_manager.c41 static void pm_calc_rlib_size(struct packet_manager *pm, in pm_calc_rlib_size() argument
48 struct kfd_node *node = pm->dqm->dev; in pm_calc_rlib_size()
51 process_count = pm->dqm->processes_count; in pm_calc_rlib_size()
52 queue_count = pm->dqm->active_queue_count; in pm_calc_rlib_size()
53 compute_queue_count = pm->dqm->active_cp_queue_count; in pm_calc_rlib_size()
54 gws_queue_count = pm->dqm->gws_queue_count; in pm_calc_rlib_size()
67 compute_queue_count > get_cp_queues_num(pm->dqm) || in pm_calc_rlib_size()
73 map_queue_size = pm->pmf->map_queues_size; in pm_calc_rlib_size()
75 *rlib_size = process_count * pm->pmf->map_process_size + in pm_calc_rlib_size()
83 *rlib_size += pm->pmf->runlist_size; in pm_calc_rlib_size()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_pm.c64 for (i = 0; i < rdev->pm.num_power_states; i++) { in radeon_pm_get_type_index()
65 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
72 return rdev->pm.default_power_state_index; in radeon_pm_get_type_index()
77 if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled) { in radeon_pm_acpi_event_handler()
78 mutex_lock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler()
80 rdev->pm.dpm.ac_power = true; in radeon_pm_acpi_event_handler()
82 rdev->pm.dpm.ac_power = false; in radeon_pm_acpi_event_handler()
85 radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power); in radeon_pm_acpi_event_handler()
87 mutex_unlock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler()
88 } else if (rdev->pm.pm_method == PM_METHOD_PROFILE) { in radeon_pm_acpi_event_handler()
[all …]
H A Dr600.c366 rdev->pm.dynpm_can_upclock = true; in r600_pm_get_dynpm_state()
367 rdev->pm.dynpm_can_downclock = true; in r600_pm_get_dynpm_state()
373 if (rdev->pm.num_power_states > 2) in r600_pm_get_dynpm_state()
376 switch (rdev->pm.dynpm_planned_action) { in r600_pm_get_dynpm_state()
378 rdev->pm.requested_power_state_index = min_power_state_index; in r600_pm_get_dynpm_state()
379 rdev->pm.requested_clock_mode_index = 0; in r600_pm_get_dynpm_state()
380 rdev->pm.dynpm_can_downclock = false; in r600_pm_get_dynpm_state()
383 if (rdev->pm.current_power_state_index == min_power_state_index) { in r600_pm_get_dynpm_state()
384 rdev->pm.requested_power_state_index = rdev->pm.current_power_state_index; in r600_pm_get_dynpm_state()
385 rdev->pm.dynpm_can_downclock = false; in r600_pm_get_dynpm_state()
[all …]
H A Dr600_dpm.c145 if (rps == rdev->pm.dpm.current_ps) in r600_dpm_print_ps_status()
147 if (rps == rdev->pm.dpm.requested_ps) in r600_dpm_print_ps_status()
149 if (rps == rdev->pm.dpm.boot_ps) in r600_dpm_print_ps_status()
756 rdev->pm.dpm.thermal.min_temp = low_temp; in r600_set_thermal_temperature_range()
757 rdev->pm.dpm.thermal.max_temp = high_temp; in r600_set_thermal_temperature_range()
790 r600_is_internal_thermal_sensor(rdev->pm.int_thermal_type)) { in r600_dpm_late_enable()
856 rdev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in r600_get_platform_caps()
857 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in r600_get_platform_caps()
858 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in r600_get_platform_caps()
893 rdev->pm.dpm.fan.t_hyst = fan_info->fan.ucTHyst; in r600_parse_extended_power_table()
[all …]
H A Dr420.c48 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile()
49 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile()
50 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile()
51 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile()
53 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile()
54 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_ps_idx = 0; in r420_pm_init_profile()
55 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile()
56 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile()
58 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile()
59 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_on_ps_idx = 1; in r420_pm_init_profile()
[all …]
/linux/drivers/hid/
H A Dhid-prodikeys.c37 struct pcmidi_snd *pm; member
94 struct pcmidi_snd *pm = hid_get_drvdata(hdev); in show_channel() local
96 dbg_hid("pcmidi sysfs read channel=%u\n", pm->midi_channel); in show_channel()
98 return sprintf(buf, "%u (min:%u, max:%u)\n", pm->midi_channel, in show_channel()
107 struct pcmidi_snd *pm = hid_get_drvdata(hdev); in store_channel() local
113 pm->midi_channel = channel; in store_channel()
131 struct pcmidi_snd *pm = hid_get_drvdata(hdev); in show_sustain() local
133 dbg_hid("pcmidi sysfs read sustain=%u\n", pm->midi_sustain); in show_sustain()
135 return sprintf(buf, "%u (off:%u, max:%u (ms))\n", pm->midi_sustain, in show_sustain()
144 struct pcmidi_snd *pm = hid_get_drvdata(hdev); in store_sustain() local
[all …]
/linux/sound/drivers/
H A Dportman2x4.c77 static int portman_free(struct portman *pm) in portman_free() argument
79 kfree(pm); in portman_free()
87 struct portman *pm; in portman_create() local
91 pm = kzalloc(sizeof(struct portman), GFP_KERNEL); in portman_create()
92 if (pm == NULL) in portman_create()
96 spin_lock_init(&pm->reg_lock); in portman_create()
97 pm->card = card; in portman_create()
98 pm->pardev = pardev; in portman_create()
100 *rchip = pm; in portman_create()
180 static inline void portman_write_command(struct portman *pm, u8 value) in portman_write_command() argument
[all …]
/linux/net/mptcp/
H A Dpm.c20 u8 add_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_announce_addr()
24 lockdep_assert_held(&msk->pm.lock); in mptcp_pm_announce_addr()
34 msk->pm.remote = *addr; in mptcp_pm_announce_addr()
37 msk->pm.local = *addr; in mptcp_pm_announce_addr()
40 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_announce_addr()
46 u8 rm_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_remove_addr()
56 msk->pm.rm_list_tx = *rm_list; in mptcp_pm_remove_addr()
58 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_remove_addr()
67 struct mptcp_pm_data *pm = &msk->pm; in mptcp_pm_new_connection() local
71 WRITE_ONCE(pm->server_side, server_side); in mptcp_pm_new_connection()
[all …]
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_pm.c19 struct s5p_mfc_pm *pm = &dev->pm; in s5p_mfc_init_pm() local
22 pm->num_clocks = dev->variant->num_clocks; in s5p_mfc_init_pm()
23 pm->clk_names = dev->variant->clk_names; in s5p_mfc_init_pm()
24 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm()
25 pm->clock_gate = NULL; in s5p_mfc_init_pm()
28 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_init_pm()
29 pm->clocks[i] = devm_clk_get(pm->device, pm->clk_names[i]); in s5p_mfc_init_pm()
30 if (IS_ERR(pm->clocks[i])) { in s5p_mfc_init_pm()
32 if (i && PTR_ERR(pm->clocks[i]) == -ENOENT) { in s5p_mfc_init_pm()
33 pm->clocks[i] = NULL; in s5p_mfc_init_pm()
[all …]
/linux/drivers/mfd/
H A Dbcm2835-pm.c29 struct bcm2835_pm *pm) in bcm2835_pm_get_pdata() argument
31 if (of_property_present(pm->dev->of_node, "reg-names")) { in bcm2835_pm_get_pdata()
34 pm->base = devm_platform_ioremap_resource_byname(pdev, "pm"); in bcm2835_pm_get_pdata()
35 if (IS_ERR(pm->base)) in bcm2835_pm_get_pdata()
36 return PTR_ERR(pm->base); in bcm2835_pm_get_pdata()
40 pm->asb = devm_ioremap_resource(&pdev->dev, res); in bcm2835_pm_get_pdata()
41 if (IS_ERR(pm->asb)) in bcm2835_pm_get_pdata()
42 pm->asb = NULL; in bcm2835_pm_get_pdata()
48 pm->rpivid_asb = devm_ioremap_resource(&pdev->dev, res); in bcm2835_pm_get_pdata()
49 if (IS_ERR(pm->rpivid_asb)) in bcm2835_pm_get_pdata()
[all …]
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dlegacy_dpm.c127 if (rps == adev->pm.dpm.current_ps) in amdgpu_dpm_print_ps_status()
129 if (rps == adev->pm.dpm.requested_ps) in amdgpu_dpm_print_ps_status()
131 if (rps == adev->pm.dpm.boot_ps) in amdgpu_dpm_print_ps_status()
143 for (i = 0; i < adev->pm.dpm.num_ps; i++) in amdgpu_pm_print_power_states()
144 amdgpu_dpm_print_power_state(adev, &adev->pm.dpm.ps[i]); in amdgpu_pm_print_power_states()
172 adev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in amdgpu_get_platform_caps()
173 adev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in amdgpu_get_platform_caps()
174 adev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in amdgpu_get_platform_caps()
242 adev->pm.dpm.fan.t_hyst = fan_info->fan.ucTHyst; in amdgpu_parse_extended_power_table()
243 adev->pm.dpm.fan.t_min = le16_to_cpu(fan_info->fan.usTMin); in amdgpu_parse_extended_power_table()
[all …]
/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_dpm.c49 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
52 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
65 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
68 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
79 if (atomic_read(&adev->pm.pwr_state[block_type]) == pwr_state) { in amdgpu_dpm_set_powergating_by_smu()
85 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
106 atomic_set(&adev->pm.pwr_state[block_type], pwr_state); in amdgpu_dpm_set_powergating_by_smu()
108 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
118 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
120 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
[all …]
H A DMakefile26 -I$(FULL_AMD_PATH)/pm/inc/ \
27 -I$(FULL_AMD_PATH)/pm/swsmu \
28 -I$(FULL_AMD_PATH)/pm/swsmu/inc \
29 -I$(FULL_AMD_PATH)/pm/swsmu/inc/pmfw_if \
30 -I$(FULL_AMD_PATH)/pm/swsmu/smu11 \
31 -I$(FULL_AMD_PATH)/pm/swsmu/smu12 \
32 -I$(FULL_AMD_PATH)/pm/swsmu/smu13 \
33 -I$(FULL_AMD_PATH)/pm/swsmu/smu14 \
34 -I$(FULL_AMD_PATH)/pm/powerplay/inc \
35 -I$(FULL_AMD_PATH)/pm/powerplay/smumgr\
[all …]
/linux/drivers/scsi/
H A Dscsi_pm.c22 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend() argument
24 return pm && pm->suspend ? pm->suspend(dev) : 0; in do_scsi_suspend()
27 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze() argument
29 return pm && pm->freeze ? pm->freeze(dev) : 0; in do_scsi_freeze()
32 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff() argument
34 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in do_scsi_poweroff()
37 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume() argument
39 return pm && pm->resume ? pm->resume(dev) : 0; in do_scsi_resume()
42 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw() argument
44 return pm && pm->thaw ? pm->thaw(dev) : 0; in do_scsi_thaw()
[all …]
/linux/tools/power/pm-graph/
H A DMakefile36 $(INSTALL) -d $(DESTDIR)$(LIBDIR)/pm-graph
37 $(INSTALL) sleepgraph.py $(DESTDIR)$(LIBDIR)/pm-graph
38 $(INSTALL) bootgraph.py $(DESTDIR)$(LIBDIR)/pm-graph
39 $(INSTALL) -d $(DESTDIR)$(LIBDIR)/pm-graph/config
40 $(INSTALL_DATA) config/cgskip.txt $(DESTDIR)$(LIBDIR)/pm-graph/config
41 $(INSTALL_DATA) config/freeze-callgraph.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config
42 $(INSTALL_DATA) config/freeze.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config
43 $(INSTALL_DATA) config/freeze-dev.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config
44 $(INSTALL_DATA) config/standby-callgraph.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config
45 $(INSTALL_DATA) config/standby.cfg $(DESTDIR)$(LIBDIR)/pm-graph/config
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_pm.c15 int mtk_vcodec_init_dec_clk(struct platform_device *pdev, struct mtk_vcodec_pm *pm) in mtk_vcodec_init_dec_clk() argument
21 dec_clk = &pm->vdec_clk; in mtk_vcodec_init_dec_clk()
22 pm->dev = &pdev->dev; in mtk_vcodec_init_dec_clk()
57 static int mtk_vcodec_dec_pw_on(struct mtk_vcodec_pm *pm) in mtk_vcodec_dec_pw_on() argument
61 ret = pm_runtime_resume_and_get(pm->dev); in mtk_vcodec_dec_pw_on()
63 dev_err(pm->dev, "pm_runtime_resume_and_get fail %d", ret); in mtk_vcodec_dec_pw_on()
68 static void mtk_vcodec_dec_pw_off(struct mtk_vcodec_pm *pm) in mtk_vcodec_dec_pw_off() argument
72 ret = pm_runtime_put(pm->dev); in mtk_vcodec_dec_pw_off()
74 dev_err(pm->dev, "pm_runtime_put fail %d", ret); in mtk_vcodec_dec_pw_off()
77 static void mtk_vcodec_dec_clock_on(struct mtk_vcodec_pm *pm) in mtk_vcodec_dec_clock_on() argument
[all …]
/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc_pm.c17 struct mtk_vcodec_pm *pm; in mtk_vcodec_init_enc_clk() local
23 pm = &mtkdev->pm; in mtk_vcodec_init_enc_clk()
24 memset(pm, 0, sizeof(struct mtk_vcodec_pm)); in mtk_vcodec_init_enc_clk()
25 pm->dev = &pdev->dev; in mtk_vcodec_init_enc_clk()
26 enc_clk = &pm->venc_clk; in mtk_vcodec_init_enc_clk()
37 dev_err(pm->dev, "[MTK VCODEC] Failed to get venc clock count"); in mtk_vcodec_init_enc_clk()
46 dev_err(pm->dev, "[MTK VCODEC] venc failed to get clk name %d", i); in mtk_vcodec_init_enc_clk()
52 dev_err(pm->dev, "[MTK VCODEC] venc devm_clk_get (%d)%s fail", i, in mtk_vcodec_init_enc_clk()
61 int mtk_vcodec_enc_pw_on(struct mtk_vcodec_pm *pm) in mtk_vcodec_enc_pw_on() argument
65 ret = pm_runtime_resume_and_get(pm->dev); in mtk_vcodec_enc_pw_on()
[all …]
/linux/drivers/pci/
H A Dpci-driver.c704 pci_WARN(pci_dev, ret && drv->driver.pm, "device %04x:%04x\n", in pci_has_legacy_pm_support()
715 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_prepare() local
717 if (pm && pm->prepare) { in pci_pm_prepare()
718 int error = pm->prepare(dev); in pci_pm_prepare()
784 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend() local
797 if (!pm) { in pci_pm_suspend()
823 if (pm->suspend) { in pci_pm_suspend()
827 error = pm->suspend(dev); in pci_pm_suspend()
828 suspend_report_result(dev, pm->suspend, error); in pci_pm_suspend()
836 pm->suspend); in pci_pm_suspend()
[all …]
/linux/drivers/accel/ivpu/
H A Divpu_pm.c120 struct ivpu_pm_info *pm = container_of(work, struct ivpu_pm_info, recovery_work); in ivpu_pm_recovery_work() local
121 struct ivpu_device *vdev = pm->vdev; in ivpu_pm_recovery_work()
125 ivpu_err(vdev, "Recovering the NPU (reset #%d)\n", atomic_read(&vdev->pm->reset_counter)); in ivpu_pm_recovery_work()
134 atomic_inc(&vdev->pm->reset_counter); in ivpu_pm_recovery_work()
135 atomic_set(&vdev->pm->reset_pending, 1); in ivpu_pm_recovery_work()
136 down_write(&vdev->pm->reset_lock); in ivpu_pm_recovery_work()
147 up_write(&vdev->pm->reset_lock); in ivpu_pm_recovery_work()
148 atomic_set(&vdev->pm->reset_pending, 0); in ivpu_pm_recovery_work()
170 if (atomic_cmpxchg(&vdev->pm->reset_pending, 0, 1) == 0) { in ivpu_pm_trigger_recovery()
173 queue_work(system_long_wq, &vdev->pm->recovery_work); in ivpu_pm_trigger_recovery()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_pm_dbgfs.c14 struct adf_pm pm = accel_dev->power_management; in pm_status_read() local
16 if (pm.print_pm_status) in pm_status_read()
17 return pm.print_pm_status(accel_dev, buf, count, pos); in pm_status_read()
29 struct adf_pm *pm = &accel_dev->power_management; in adf_pm_dbgfs_add() local
31 if (!pm->present || !pm->print_pm_status) in adf_pm_dbgfs_add()
34 pm->debugfs_pm_status = debugfs_create_file("pm_status", 0400, in adf_pm_dbgfs_add()
41 struct adf_pm *pm = &accel_dev->power_management; in adf_pm_dbgfs_rm() local
43 if (!pm->present) in adf_pm_dbgfs_rm()
46 debugfs_remove(pm->debugfs_pm_status); in adf_pm_dbgfs_rm()
47 pm->debugfs_pm_status = NULL; in adf_pm_dbgfs_rm()
/linux/tools/perf/util/
H A Dmetricgroup.c182 static bool metric__group_events(const struct pmu_metric *pm) in metric__group_events()
184 switch (pm->event_grouping) { in metric__group_events()
190 metric__watchdog_constraint_hint(pm->metric_name, /*foot=*/false); in metric__group_events()
212 static struct metric *metric__new(const struct pmu_metric *pm, in metric__new()
229 m->pmu = pm->pmu ?: "cpu"; in metric__new()
230 m->metric_name = pm->metric_name; in metric__new()
231 m->default_metricgroup_name = pm->default_metricgroup_name ?: ""; in metric__new()
238 m->metric_expr = pm->metric_expr; in metric__new()
239 m->metric_threshold = pm->metric_threshold; in metric__new()
240 m->metric_unit = pm in metric__new()
181 metric__group_events(const struct pmu_metric * pm) metric__group_events() argument
211 metric__new(const struct pmu_metric * pm,const char * modifier,bool metric_no_group,int runtime,const char * user_requested_cpu_list,bool system_wide) metric__new() argument
374 match_pm_metric(const struct pmu_metric * pm,const char * pmu,const char * metric) match_pm_metric() argument
452 metricgroup__add_to_mep_groups(const struct pmu_metric * pm,struct rblist * groups) metricgroup__add_to_mep_groups() argument
489 metricgroup__sys_event_iter(const struct pmu_metric * pm,const struct pmu_metrics_table * table,void * data) metricgroup__sys_event_iter() argument
509 metricgroup__add_to_mep_groups_callback(const struct pmu_metric * pm,const struct pmu_metrics_table * table __maybe_unused,void * vdata) metricgroup__add_to_mep_groups_callback() argument
854 struct pmu_metric pm; resolve_metric() member
868 struct pmu_metric pm; resolve_metric() local
923 __add_metric(struct list_head * metric_list,const struct pmu_metric * pm,const char * modifier,bool metric_no_group,bool metric_no_threshold,int runtime,const char * user_requested_cpu_list,bool system_wide,struct metric * root_metric,const struct visited_metric * visited,const struct pmu_metrics_table * table) __add_metric() argument
1041 struct pmu_metric *pm; global() member
1044 metricgroup__find_metric_callback(const struct pmu_metric * pm,const struct pmu_metrics_table * table __maybe_unused,void * vdata) metricgroup__find_metric_callback() argument
1064 metricgroup__find_metric(const char * pmu,const char * metric,const struct pmu_metrics_table * table,struct pmu_metric * pm) metricgroup__find_metric() argument
1077 add_metric(struct list_head * metric_list,const struct pmu_metric * pm,const char * modifier,bool metric_no_group,bool metric_no_threshold,const char * user_requested_cpu_list,bool system_wide,struct metric * root_metric,const struct visited_metric * visited,const struct pmu_metrics_table * table) add_metric() argument
1114 metricgroup__add_metric_sys_event_iter(const struct pmu_metric * pm,const struct pmu_metrics_table * table __maybe_unused,void * data) metricgroup__add_metric_sys_event_iter() argument
1195 metricgroup__add_metric_callback(const struct pmu_metric * pm,const struct pmu_metrics_table * table,void * vdata) metricgroup__add_metric_callback() argument
1727 metricgroup__has_metric_callback(const struct pmu_metric * pm,const struct pmu_metrics_table * table __maybe_unused,void * vdata) metricgroup__has_metric_callback() argument
1751 metricgroup__topdown_max_level_callback(const struct pmu_metric * pm,const struct pmu_metrics_table * table __maybe_unused,void * data) metricgroup__topdown_max_level_callback() argument
[all...]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dsdio_mcu.c59 struct mt76_connac_pm *pm = &dev->pm; in __mt7663s_mcu_drv_pmctrl() local
74 pm->stats.last_wake_event = jiffies; in __mt7663s_mcu_drv_pmctrl()
75 pm->stats.doze_time += pm->stats.last_wake_event - in __mt7663s_mcu_drv_pmctrl()
76 pm->stats.last_doze_event; in __mt7663s_mcu_drv_pmctrl()
88 mutex_lock(&dev->pm.mutex); in mt7663s_mcu_drv_pmctrl()
93 mutex_unlock(&dev->pm.mutex); in mt7663s_mcu_drv_pmctrl()
102 struct mt76_connac_pm *pm = &dev->pm; in mt7663s_mcu_fw_pmctrl() local
106 mutex_lock(&pm->mutex); in mt7663s_mcu_fw_pmctrl()
108 if (mt76_connac_skip_fw_pmctrl(mphy, pm)) in mt7663s_mcu_fw_pmctrl()
121 pm->stats.last_doze_event = jiffies; in mt7663s_mcu_fw_pmctrl()
[all …]

12345678910>>...70