Home
last modified time | relevance | path

Searched refs:rpm (Results 1 – 25 of 232) sorted by relevance

12345678910

/Linux-v6.6/drivers/gpu/drm/i915/
Dintel_runtime_pm.c68 static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) in init_intel_runtime_pm_wakeref() argument
70 spin_lock_init(&rpm->debug.lock); in init_intel_runtime_pm_wakeref()
75 track_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) in track_intel_runtime_pm_wakeref() argument
80 if (rpm->no_wakeref_tracking) in track_intel_runtime_pm_wakeref()
87 spin_lock_irqsave(&rpm->debug.lock, flags); in track_intel_runtime_pm_wakeref()
89 if (!rpm->debug.count) in track_intel_runtime_pm_wakeref()
90 rpm->debug.last_acquire = stack; in track_intel_runtime_pm_wakeref()
92 stacks = krealloc(rpm->debug.owners, in track_intel_runtime_pm_wakeref()
93 (rpm->debug.count + 1) * sizeof(*stacks), in track_intel_runtime_pm_wakeref()
96 stacks[rpm->debug.count++] = stack; in track_intel_runtime_pm_wakeref()
[all …]
Dintel_runtime_pm.h111 assert_rpm_device_not_suspended(struct intel_runtime_pm *rpm) in assert_rpm_device_not_suspended() argument
113 WARN_ONCE(rpm->suspended, in assert_rpm_device_not_suspended()
118 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
120 assert_rpm_device_not_suspended(rpm); in __assert_rpm_raw_wakeref_held()
126 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
128 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
134 assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm) in assert_rpm_raw_wakeref_held() argument
136 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held()
140 assert_rpm_wakelock_held(struct intel_runtime_pm *rpm) in assert_rpm_wakelock_held() argument
142 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held()
[all …]
Di915_driver.c885 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in i915_driver_release() local
891 wakeref = intel_runtime_pm_get(rpm); in i915_driver_release()
902 intel_runtime_pm_put(rpm, wakeref); in i915_driver_release()
904 intel_runtime_pm_driver_release(rpm); in i915_driver_release()
1122 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in i915_drm_suspend_late() local
1127 disable_rpm_wakeref_asserts(rpm); in i915_drm_suspend_late()
1165 enable_rpm_wakeref_asserts(rpm); in i915_drm_suspend_late()
1167 intel_runtime_pm_driver_release(rpm); in i915_drm_suspend_late()
1506 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in intel_runtime_suspend() local
1517 disable_rpm_wakeref_asserts(rpm); in intel_runtime_suspend()
[all …]
Di915_hwmon.c77 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_locked_with_pm_intel_uncore_rmw()
96 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_field_read_and_scale()
141 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_energy()
165 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power1_max_interval_show()
324 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_in_read()
370 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power_max_read()
383 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power_max_read()
427 wakeref = intel_runtime_pm_get(ddat->uncore->rpm); in hwm_power_max_write()
447 intel_runtime_pm_put(ddat->uncore->rpm, wakeref); in hwm_power_max_write()
755 with_intel_runtime_pm(uncore->rpm, wakeref) { in hwm_get_preregistration_info()
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/af/
Drpm.c77 rpm_t *rpm = rpmd; in is_dev_rpm2() local
79 return (rpm->pdev->device == PCI_DEVID_CN10KB_RPM); in is_dev_rpm2()
82 struct mac_ops *rpm_get_mac_ops(rpm_t *rpm) in rpm_get_mac_ops() argument
84 if (is_dev_rpm2(rpm)) in rpm_get_mac_ops()
90 static void rpm_write(rpm_t *rpm, u64 lmac, u64 offset, u64 val) in rpm_write() argument
92 cgx_write(rpm, lmac, offset, val); in rpm_write()
95 static u64 rpm_read(rpm_t *rpm, u64 lmac, u64 offset) in rpm_read() argument
97 return cgx_read(rpm, lmac, offset); in rpm_read()
105 rpm_t *rpm = rpmd; in is_mac_rpmusx() local
107 return rpm_read(rpm, 0, RPMX_CONST1) & 0x700ULL; in is_mac_rpmusx()
[all …]
/Linux-v6.6/drivers/mfd/
Dqcom_rpm.c58 #define RPM_STATUS_REG(rpm, i) ((rpm)->status_regs + (i) * 4) argument
59 #define RPM_CTRL_REG(rpm, i) ((rpm)->ctrl_regs + (i) * 4) argument
60 #define RPM_REQ_REG(rpm, i) ((rpm)->req_regs + (i) * 4) argument
445 int qcom_rpm_write(struct qcom_rpm *rpm, in qcom_rpm_write() argument
451 const struct qcom_rpm_data *data = rpm->data; in qcom_rpm_write()
464 mutex_lock(&rpm->lock); in qcom_rpm_write()
467 writel_relaxed(buf[i], RPM_REQ_REG(rpm, res->target_id + i)); in qcom_rpm_write()
470 for (i = 0; i < rpm->data->req_sel_size; i++) { in qcom_rpm_write()
472 RPM_CTRL_REG(rpm, rpm->data->req_sel_off + i)); in qcom_rpm_write()
475 writel_relaxed(BIT(state), RPM_CTRL_REG(rpm, rpm->data->req_ctx_off)); in qcom_rpm_write()
[all …]
/Linux-v6.6/drivers/rpmsg/
Dqcom_glink_rpm.c198 struct glink_rpm *rpm = container_of(pipe, struct glink_rpm, tx_pipe); in glink_rpm_tx_kick() local
200 mbox_send_message(rpm->mbox_chan, NULL); in glink_rpm_tx_kick()
201 mbox_client_txdone(rpm->mbox_chan, 0); in glink_rpm_tx_kick()
206 struct glink_rpm *rpm = data; in qcom_glink_rpm_intr() local
208 qcom_glink_native_rx(rpm->glink); in qcom_glink_rpm_intr()
291 struct glink_rpm *rpm; in glink_rpm_probe() local
299 rpm = devm_kzalloc(&pdev->dev, sizeof(*rpm), GFP_KERNEL); in glink_rpm_probe()
300 if (!rpm) in glink_rpm_probe()
315 &rpm->rx_pipe, &rpm->tx_pipe); in glink_rpm_probe()
319 rpm->irq = of_irq_get(dev->of_node, 0); in glink_rpm_probe()
[all …]
/Linux-v6.6/drivers/soc/qcom/
Dsmd-rpm.c94 int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, in qcom_rpm_smd_write() argument
118 mutex_lock(&rpm->lock); in qcom_rpm_smd_write()
130 ret = rpmsg_send(rpm->rpm_channel, pkt, size); in qcom_rpm_smd_write()
134 left = wait_for_completion_timeout(&rpm->ack, RPM_REQUEST_TIMEOUT); in qcom_rpm_smd_write()
138 ret = rpm->ack_status; in qcom_rpm_smd_write()
142 mutex_unlock(&rpm->lock); in qcom_rpm_smd_write()
156 struct qcom_smd_rpm *rpm = dev_get_drvdata(&rpdev->dev); in qcom_smd_rpm_callback() local
165 dev_err(rpm->dev, "invalid request\n"); in qcom_smd_rpm_callback()
190 rpm->ack_status = status; in qcom_smd_rpm_callback()
191 complete(&rpm->ack); in qcom_smd_rpm_callback()
[all …]
/Linux-v6.6/drivers/hwmon/
Dmax31790.c48 #define RPM_TO_REG(rpm, sr) ((60 * (sr) * 8192) / ((rpm) * 2)) argument
145 static u8 bits_for_tach_period(int rpm) in bits_for_tach_period() argument
149 if (rpm < 500) in bits_for_tach_period()
151 else if (rpm < 1000) in bits_for_tach_period()
153 else if (rpm < 2000) in bits_for_tach_period()
155 else if (rpm < 4000) in bits_for_tach_period()
157 else if (rpm < 8000) in bits_for_tach_period()
169 int sr, rpm; in max31790_read_fan() local
178 rpm = 0; in max31790_read_fan()
180 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
[all …]
Daspeed-pwm-tacho.c609 int rpm; in rpm_show() local
612 rpm = aspeed_get_fan_tach_ch_rpm(priv, index); in rpm_show()
613 if (rpm < 0) in rpm_show()
614 return rpm; in rpm_show()
616 return sprintf(buf, "%d\n", rpm); in rpm_show()
666 static SENSOR_DEVICE_ATTR_RO(fan1_input, rpm, 0);
667 static SENSOR_DEVICE_ATTR_RO(fan2_input, rpm, 1);
668 static SENSOR_DEVICE_ATTR_RO(fan3_input, rpm, 2);
669 static SENSOR_DEVICE_ATTR_RO(fan4_input, rpm, 3);
670 static SENSOR_DEVICE_ATTR_RO(fan5_input, rpm, 4);
[all …]
Dgpio-fan.c26 int rpm; member
152 static int rpm_to_speed_index(struct gpio_fan_data *fan_data, unsigned long rpm) in rpm_to_speed_index() argument
158 if (speed[i].rpm >= rpm) in rpm_to_speed_index()
245 return sprintf(buf, "%d\n", fan_data->speed[0].rpm); in fan1_min_show()
254 fan_data->speed[fan_data->num_speed - 1].rpm); in fan1_max_show()
262 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in fan1_input_show()
269 unsigned long rpm; in set_rpm() local
272 if (kstrtoul(buf, 10, &rpm)) in set_rpm()
282 set_fan_speed(fan_data, rpm_to_speed_index(fan_data, rpm)); in set_rpm()
473 speed[i].rpm = u; in gpio_fan_get_of_data()
Dultra45_env.c103 int rpm, period; in show_fan_speed() local
109 rpm = FAN_PERIOD_TO_RPM(period); in show_fan_speed()
111 rpm = 0; in show_fan_speed()
113 return sprintf(buf, "%d\n", rpm); in show_fan_speed()
120 unsigned long rpm; in set_fan_speed() local
126 err = kstrtoul(buf, 10, &rpm); in set_fan_speed()
130 if (!rpm) in set_fan_speed()
133 period = FAN_RPM_TO_PERIOD(rpm); in set_fan_speed()
Dg762.c181 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p, in cnt_from_rpm() argument
187 if (!rpm) /* to stop the fan, set cnt to 255 */ in cnt_from_rpm()
190 rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2); in cnt_from_rpm()
191 return DIV_ROUND_CLOSEST(f1, rpm * f2); in cnt_from_rpm()
731 unsigned int rpm = 0; in fan1_input_show() local
739 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq, in fan1_input_show()
746 return sprintf(buf, "%u\n", rpm); in fan1_input_show()
935 unsigned int rpm; in fan1_target_show() local
941 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq, in fan1_target_show()
947 return sprintf(buf, "%u\n", rpm); in fan1_target_show()
/Linux-v6.6/drivers/clk/qcom/
Dclk-rpm.c96 struct qcom_rpm *rpm; member
101 struct qcom_rpm *rpm; member
128 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_handoff()
132 ret = qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE, in clk_rpm_handoff()
144 return qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_set_rate_active()
152 return qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE, in clk_rpm_set_rate_sleep()
264 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_prepare()
285 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_unprepare()
300 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_prepare()
314 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_unprepare()
[all …]
/Linux-v6.6/scripts/package/
Dkernel.spec5 %define __spec_install_post /usr/lib/rpm/brp-compress || :
80 cp /boot/vmlinuz-%{KERNELRELEASE} /boot/.vmlinuz-%{KERNELRELEASE}-rpm
81 cp /boot/System.map-%{KERNELRELEASE} /boot/.System.map-%{KERNELRELEASE}-rpm
83 …lkernel %{KERNELRELEASE} /boot/.vmlinuz-%{KERNELRELEASE}-rpm /boot/.System.map-%{KERNELRELEASE}-rpm
84 rm -f /boot/.vmlinuz-%{KERNELRELEASE}-rpm /boot/.System.map-%{KERNELRELEASE}-rpm
/Linux-v6.6/drivers/gpu/drm/i915/pxp/
Dintel_pxp_session.c25 with_intel_runtime_pm_if_in_use(uncore->rpm, wakeref) in intel_pxp_session_is_in_play()
39 wakeref = intel_runtime_pm_get_if_in_use(uncore->rpm); in pxp_wait_for_session_state()
49 intel_runtime_pm_put(uncore->rpm, wakeref); in pxp_wait_for_session_state()
167 wakeref = intel_runtime_pm_get_if_in_use(gt->uncore->rpm); in pxp_session_work()
179 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in pxp_session_work()
/Linux-v6.6/scripts/
DMakefile.package77 PHONY += rpm-sources
78 rpm-sources: linux.tar.gz
84 PHONY += rpm-pkg srcrpm-pkg binrpm-pkg
86 rpm-pkg: private build-type := a
90 rpm-pkg srcrpm-pkg: rpm-sources
91 rpm-pkg srcrpm-pkg binrpm-pkg: kernel.spec
96 $$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps)) \
/Linux-v6.6/drivers/interconnect/qcom/
DMakefile32 icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o
60 obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o
/Linux-v6.6/tools/perf/Documentation/
Dsecurity.txt15 1. Download selinux-policy SRPM package (e.g. selinux-policy-3.14.4-48.fc31.src.rpm on FC31)
18 # rpm -Uhv selinux-policy-3.14.4-48.fc31.src.rpm
79 -rw-r--r--. 1 root root 112K Mar 20 12:16 selinux-policy-3.14.4-48.fc31.noarch.rpm
80 -rw-r--r--. 1 root root 1.2M Mar 20 12:17 selinux-policy-devel-3.14.4-48.fc31.noarch.rpm
81 -rw-r--r--. 1 root root 2.3M Mar 20 12:17 selinux-policy-doc-3.14.4-48.fc31.noarch.rpm
82 -rw-r--r--. 1 root root 12M Mar 20 12:17 selinux-policy-minimum-3.14.4-48.fc31.noarch.rpm
83 -rw-r--r--. 1 root root 4.5M Mar 20 12:16 selinux-policy-mls-3.14.4-48.fc31.noarch.rpm
84 -rw-r--r--. 1 root root 111K Mar 20 12:16 selinux-policy-sandbox-3.14.4-48.fc31.noarch.rpm
85 -rw-r--r--. 1 root root 14M Mar 20 12:17 selinux-policy-targeted-3.14.4-48.fc31.noarch.rpm
90 # rpm -Uhv rpmbuild/RPMS/noarch/selinux-policy-*
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/gvt/
Daperture_gm.c138 assert_rpm_wakelock_held(uncore->rpm); in intel_vgpu_write_fence()
177 wakeref = intel_runtime_pm_get(uncore->rpm); in free_vgpu_fence()
188 intel_runtime_pm_put(uncore->rpm, wakeref); in free_vgpu_fence()
199 wakeref = intel_runtime_pm_get(uncore->rpm); in alloc_vgpu_fence()
215 intel_runtime_pm_put(uncore->rpm, wakeref); in alloc_vgpu_fence()
229 intel_runtime_pm_put_unchecked(uncore->rpm); in alloc_vgpu_fence()
326 with_intel_runtime_pm(gvt->gt->uncore->rpm, wakeref) in intel_vgpu_reset_resource()
/Linux-v6.6/drivers/gpu/drm/i915/gt/
Dselftest_reset.c52 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in __igt_reset_stolen()
176 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in __igt_reset_stolen()
219 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_global_reset()
230 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_global_reset()
247 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_wedged_reset()
254 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_wedged_reset()
/Linux-v6.6/arch/arm/boot/dts/qcom/
Dqcom-ipq8062-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";
Dqcom-ipq8064-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";
Dqcom-ipq8064-v2.0-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";
Dqcom-ipq8065-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";

12345678910