/openbmc/linux/drivers/base/power/ |
H A D | generic_ops.c | 3 * drivers/base/power/generic_ops.c - Generic PM callbacks for subsystems 7 #include <linux/pm.h> 16 * If PM operations are defined for the @dev's driver and they include 22 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() 35 * If PM operations are defined for the @dev's driver and they include 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() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | penmount.c | 50 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 …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_pm.c | 63 for (i = 0; i < rdev->pm.num_power_states; i++) { in radeon_pm_get_type_index() 64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index() 71 return rdev->pm.default_power_state_index; in radeon_pm_get_type_index() 76 if ((rdev->pm.pm_method == PM_METHOD_DPM) && rdev->pm.dpm_enabled) { in radeon_pm_acpi_event_handler() 77 mutex_lock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler() 79 rdev->pm.dpm.ac_power = true; in radeon_pm_acpi_event_handler() 81 rdev->pm.dpm.ac_power = false; in radeon_pm_acpi_event_handler() 84 radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power); in radeon_pm_acpi_event_handler() 86 mutex_unlock(&rdev->pm.mutex); in radeon_pm_acpi_event_handler() 87 } else if (rdev->pm.pm_method == PM_METHOD_PROFILE) { in radeon_pm_acpi_event_handler() [all …]
|
H A D | r600_dpm.c | 147 if (rps == rdev->pm.dpm.current_ps) in r600_dpm_print_ps_status() 149 if (rps == rdev->pm.dpm.requested_ps) in r600_dpm_print_ps_status() 151 if (rps == rdev->pm.dpm.boot_ps) in r600_dpm_print_ps_status() 758 rdev->pm.dpm.thermal.min_temp = low_temp; in r600_set_thermal_temperature_range() 759 rdev->pm.dpm.thermal.max_temp = high_temp; in r600_set_thermal_temperature_range() 792 r600_is_internal_thermal_sensor(rdev->pm.int_thermal_type)) { in r600_dpm_late_enable() 858 rdev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in r600_get_platform_caps() 859 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in r600_get_platform_caps() 860 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in r600_get_platform_caps() 895 rdev->pm.dpm.fan.t_hyst = fan_info->fan.ucTHyst; in r600_parse_extended_power_table() [all …]
|
/openbmc/qemu/hw/acpi/ |
H A D | ich9.c | 55 ICH9LPCPMRegs *pm = container_of(regs, ICH9LPCPMRegs, acpi_regs); in ich9_pm_update_sci_fn() local 56 acpi_update_sci(&pm->acpi_regs, pm->irq); in ich9_pm_update_sci_fn() 61 ICH9LPCPMRegs *pm = opaque; in ich9_gpe_readb() local 62 return acpi_gpe_ioport_readb(&pm->acpi_regs, addr); in ich9_gpe_readb() 68 ICH9LPCPMRegs *pm = opaque; in ich9_gpe_writeb() local 69 acpi_gpe_ioport_writeb(&pm->acpi_regs, addr, val); in ich9_gpe_writeb() 70 acpi_update_sci(&pm->acpi_regs, pm->irq); in ich9_gpe_writeb() 85 ICH9LPCPMRegs *pm = opaque; in ich9_smi_readl() local 88 return pm->smi_en; in ich9_smi_readl() 90 return pm->smi_sts; in ich9_smi_readl() [all …]
|
H A D | ich9_timer.c | 18 void ich9_pm_update_swsmi_timer(ICH9LPCPMRegs *pm, bool enable) in ich9_pm_update_swsmi_timer() argument 25 lpc = container_of(pm, ICH9LPCState, pm); in ich9_pm_update_swsmi_timer() 36 timer_mod(pm->swsmi_timer, expire_time); in ich9_pm_update_swsmi_timer() 38 timer_del(pm->swsmi_timer); in ich9_pm_update_swsmi_timer() 44 ICH9LPCPMRegs *pm = opaque; in ich9_pm_swsmi_timer_expired() local 46 pm->smi_sts |= ICH9_PMIO_SMI_STS_SWSMI_STS; in ich9_pm_swsmi_timer_expired() 49 ich9_pm_update_swsmi_timer(pm, pm->smi_en & ICH9_PMIO_SMI_EN_SWSMI_EN); in ich9_pm_swsmi_timer_expired() 52 void ich9_pm_swsmi_timer_init(ICH9LPCPMRegs *pm) in ich9_pm_swsmi_timer_init() argument 54 pm->smi_sts_wmask |= ICH9_PMIO_SMI_STS_SWSMI_STS; in ich9_pm_swsmi_timer_init() 55 pm->swsmi_timer = in ich9_pm_swsmi_timer_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_packet_manager.c | 41 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 in pm_calc_rlib_size() 87 pm_allocate_runlist_ib(struct packet_manager * pm,unsigned int ** rl_buffer,uint64_t * rl_gpu_buffer,unsigned int * rl_buffer_size,bool * is_over_subscription) pm_allocate_runlist_ib() argument 121 pm_create_runlist_ib(struct packet_manager * pm,struct list_head * queues,uint64_t * rl_gpu_addr,size_t * rl_size_bytes) pm_create_runlist_ib() argument 225 pm_init(struct packet_manager * pm,struct device_queue_manager * dqm) pm_init() argument 265 pm_uninit(struct packet_manager * pm,bool hanging) pm_uninit() argument 272 pm_send_set_resources(struct packet_manager * pm,struct scheduling_resources * res) pm_send_set_resources() argument 301 pm_send_runlist(struct packet_manager * pm,struct list_head * dqm_queues) pm_send_runlist() argument 343 pm_send_query_status(struct packet_manager * pm,uint64_t fence_address,uint64_t fence_value) pm_send_query_status() argument 373 pm_update_grace_period(struct packet_manager * pm,uint32_t grace_period) pm_update_grace_period() argument 405 pm_send_unmap_queue(struct packet_manager * pm,enum kfd_unmap_queues_filter filter,uint32_t filter_param,bool reset) pm_send_unmap_queue() argument 433 pm_release_ib(struct packet_manager * pm) pm_release_ib() argument 447 struct packet_manager *pm = data; pm_debugfs_runlist() local 464 pm_debugfs_hang_hws(struct packet_manager * pm) pm_debugfs_hang_hws() argument [all...] |
/openbmc/linux/drivers/input/misc/ |
H A D | powermate.c | 88 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() 121 /* Decide if we need to issue a control message and do so. Must be called with pm->lock taken */ 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() [all …]
|
/openbmc/linux/net/mptcp/ |
H A D | pm.c | 21 u8 add_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_announce_addr() 25 lockdep_assert_held(&msk->pm.lock); in mptcp_pm_announce_addr() 35 msk->pm.remote = *addr; in mptcp_pm_announce_addr() 38 msk->pm.local = *addr; in mptcp_pm_announce_addr() 41 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_announce_addr() 47 u8 rm_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_remove_addr() 57 msk->pm.rm_list_tx = *rm_list; in mptcp_pm_remove_addr() 59 WRITE_ONCE(msk->pm.addr_signal, rm_addr); in mptcp_pm_remove_addr() 68 struct mptcp_pm_data *pm = &msk->pm; in mptcp_pm_new_connection() local 72 WRITE_ONCE(pm->server_side, server_side); in mptcp_pm_new_connection() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-prodikeys.c | 39 struct pcmidi_snd *pm; /* pcmidi device context */ member 44 struct pcmidi_snd *pm; member 105 dbg_hid("pcmidi sysfs read channel=%u\n", pk->pm->midi_channel); in show_channel() 107 return sprintf(buf, "%u (min:%u, max:%u)\n", pk->pm->midi_channel, in show_channel() 122 pk->pm->midi_channel = channel; in store_channel() 142 dbg_hid("pcmidi sysfs read sustain=%u\n", pk->pm->midi_sustain); in show_sustain() 144 return sprintf(buf, "%u (off:%u, max:%u (ms))\n", pk->pm->midi_sustain, in show_sustain() 159 pk->pm->midi_sustain = sustain; in store_sustain() 160 pk->pm->midi_sustain_mode = in store_sustain() 161 (0 == sustain || !pk->pm->midi_mode) ? 0 : 1; in store_sustain() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | bcm2835-pm.c | 3 * PM MFD driver for Broadcom BCM2835 5 * This driver binds to the PM block and creates the MFD device for 11 #include <linux/mfd/bcm2835-pm.h> 29 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() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_pm.c | 17 static struct s5p_mfc_pm *pm; variable 25 pm = &dev->pm; in s5p_mfc_init_pm() 28 pm->num_clocks = dev->variant->num_clocks; in s5p_mfc_init_pm() 29 pm->clk_names = dev->variant->clk_names; in s5p_mfc_init_pm() 30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm() 31 pm->clock_gate = NULL; in s5p_mfc_init_pm() 34 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_init_pm() 35 pm->clocks[i] = devm_clk_get(pm->device, pm->clk_names[i]); in s5p_mfc_init_pm() 36 if (IS_ERR(pm->clocks[i])) { in s5p_mfc_init_pm() 38 if (i && PTR_ERR(pm->clocks[i]) == -ENOENT) { in s5p_mfc_init_pm() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_dpm.c | 49 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() 105 atomic_set(&adev->pm.pwr_state[block_type], pwr_state); in amdgpu_dpm_set_powergating_by_smu() 107 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu() 117 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu() 119 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | legacy_dpm.c | 127 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 …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_pm.c | 11 #include <linux/blk-pm.h> 22 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 [all …]
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/ |
H A D | bastille_3.2.1.bb | 13 file://AccountPermission.pm \ 14 file://FileContent.pm \ 15 file://HPSpecific.pm \ 16 file://Miscellaneous.pm \ 17 file://ServiceAdmin.pm \ 83 install -m 0644 Bastille/AccountSecurity.pm ${D}${libdir}/Bastille 84 install -m 0644 Bastille/Apache.pm ${D}${libdir}/Bastille 85 install -m 0644 Bastille/API.pm ${D}${libdir}/Bastille 86 install -m 0644 ${UNPACKDIR}/AccountPermission.pm ${D}${libdir}/Bastille/API 87 install -m 0644 ${UNPACKDIR}/FileContent.pm ${D}${libdir}/Bastille/API [all …]
|
/openbmc/linux/tools/power/pm-graph/ |
H A D | Makefile | 9 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph 10 install sleepgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph 11 install bootgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph 12 install -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config 13 install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config 14 install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 15 install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 16 install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 17 install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config 18 install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | reg_fsl_emb.h | 34 #define PMRN_PMLCA0 0x090 /* PM Local Control A0 */ 35 #define PMRN_PMLCA1 0x091 /* PM Local Control A1 */ 36 #define PMRN_PMLCA2 0x092 /* PM Local Control A2 */ 37 #define PMRN_PMLCA3 0x093 /* PM Local Control A3 */ 38 #define PMRN_PMLCA4 0x094 /* PM Local Control A4 */ 39 #define PMRN_PMLCA5 0x095 /* PM Local Control A5 */ 53 #define PMRN_PMLCB0 0x110 /* PM Local Control B0 */ 54 #define PMRN_PMLCB1 0x111 /* PM Local Control B1 */ 55 #define PMRN_PMLCB2 0x112 /* PM Local Control B2 */ 56 #define PMRN_PMLCB3 0x113 /* PM Local Control B3 */ [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec_pm.c | 15 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 …]
|
/openbmc/linux/sound/drivers/ |
H A D | portman2x4.c | 77 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 …]
|
/openbmc/qemu/block/ |
H A D | progress_meter.c | 31 void progress_init(ProgressMeter *pm) in progress_init() argument 33 qemu_mutex_init(&pm->lock); in progress_init() 36 void progress_destroy(ProgressMeter *pm) in progress_destroy() argument 38 qemu_mutex_destroy(&pm->lock); in progress_destroy() 41 void progress_get_snapshot(ProgressMeter *pm, uint64_t *current, in progress_get_snapshot() argument 44 QEMU_LOCK_GUARD(&pm->lock); in progress_get_snapshot() 46 *current = pm->current; in progress_get_snapshot() 47 *total = pm->total; in progress_get_snapshot() 50 void progress_work_done(ProgressMeter *pm, uint64_t done) in progress_work_done() argument 52 QEMU_LOCK_GUARD(&pm->lock); in progress_work_done() [all …]
|
/openbmc/linux/drivers/accel/ivpu/ |
H A D | ivpu_pm.c | 100 struct ivpu_pm_info *pm = container_of(work, struct ivpu_pm_info, recovery_work); in ivpu_pm_recovery_work() local 101 struct ivpu_device *vdev = pm->vdev; in ivpu_pm_recovery_work() 120 struct ivpu_pm_info *pm = vdev->pm; in ivpu_pm_schedule_recovery() local 133 if (atomic_cmpxchg(&pm->in_reset, 0, 1) == 0) { in ivpu_pm_schedule_recovery() 135 queue_work(system_long_wq, &pm->recovery_work); in ivpu_pm_schedule_recovery() 145 ivpu_dbg(vdev, PM, "Suspend..\n"); in ivpu_pm_suspend_cb() 162 ivpu_dbg(vdev, PM, "Suspend done.\n"); in ivpu_pm_suspend_cb() 173 ivpu_dbg(vdev, PM, "Resume..\n"); in ivpu_pm_resume_cb() 182 ivpu_dbg(vdev, PM, "Resume done.\n"); in ivpu_pm_resume_cb() 193 ivpu_dbg(vdev, PM, "Runtime suspend..\n"); in ivpu_pm_runtime_suspend_cb() [all …]
|
/openbmc/linux/Documentation/power/ |
H A D | runtime_pm.rst | 14 Support for runtime power management (runtime PM) of I/O devices is provided 15 at the power management core (PM core) level by means of: 18 put their PM-related work items. It is strongly recommended that pm_wq be 19 used for queuing all work items related to runtime PM, because this allows 24 * A number of runtime PM fields in the 'power' member of 'struct device' (which 25 is of the type 'struct dev_pm_info', defined in include/linux/pm.h) that can 26 be used for synchronizing runtime PM operations with one another. 28 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in 29 include/linux/pm.h). 32 used for carrying out runtime PM operations in such a way that the [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_pm.c | 17 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 …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | base.c | 36 nvkm_pm_count_perfdom(struct nvkm_pm *pm) in nvkm_pm_count_perfdom() argument 41 list_for_each_entry(dom, &pm->domains, head) in nvkm_pm_count_perfdom() 62 nvkm_perfdom_find(struct nvkm_pm *pm, int di) in nvkm_perfdom_find() argument 67 list_for_each_entry(dom, &pm->domains, head) { in nvkm_perfdom_find() 75 nvkm_perfsig_find(struct nvkm_pm *pm, u8 di, u8 si, struct nvkm_perfdom **pdom) in nvkm_perfsig_find() argument 80 dom = nvkm_perfdom_find(pm, di); in nvkm_perfsig_find() 104 nvkm_perfsrc_find(struct nvkm_pm *pm, struct nvkm_perfsig *sig, int si) in nvkm_perfsrc_find() argument 119 list_for_each_entry(src, &pm->sources, head) { in nvkm_perfsrc_find() 129 nvkm_perfsrc_enable(struct nvkm_pm *pm, struct nvkm_perfctr *ctr) in nvkm_perfsrc_enable() argument 131 struct nvkm_subdev *subdev = &pm->engine.subdev; in nvkm_perfsrc_enable() [all …]
|