/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | intel_runtime_pm.c | 78 static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) in init_intel_runtime_pm_wakeref() argument 80 spin_lock_init(&rpm->debug.lock); in init_intel_runtime_pm_wakeref() 84 track_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) in track_intel_runtime_pm_wakeref() argument 89 if (!rpm->available) in track_intel_runtime_pm_wakeref() 96 spin_lock_irqsave(&rpm->debug.lock, flags); in track_intel_runtime_pm_wakeref() 98 if (!rpm->debug.count) in track_intel_runtime_pm_wakeref() 99 rpm->debug.last_acquire = stack; in track_intel_runtime_pm_wakeref() 101 stacks = krealloc(rpm->debug.owners, in track_intel_runtime_pm_wakeref() 102 (rpm->debug.count + 1) * sizeof(*stacks), in track_intel_runtime_pm_wakeref() 105 stacks[rpm->debug.count++] = stack; in track_intel_runtime_pm_wakeref() [all …]
|
D | intel_runtime_pm.h | 96 assert_rpm_device_not_suspended(struct intel_runtime_pm *rpm) in assert_rpm_device_not_suspended() argument 98 WARN_ONCE(rpm->suspended, in assert_rpm_device_not_suspended() 103 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument 105 assert_rpm_device_not_suspended(rpm); in __assert_rpm_raw_wakeref_held() 111 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument 113 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held() 119 assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm) in assert_rpm_raw_wakeref_held() argument 121 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held() 125 assert_rpm_wakelock_held(struct intel_runtime_pm *rpm) in assert_rpm_wakelock_held() argument 127 __assert_rpm_wakelock_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_wakelock_held() [all …]
|
D | intel_wakeref.c | 14 wf->wakeref = intel_runtime_pm_get(wf->rpm); in rpm_get() 21 intel_runtime_pm_put(wf->rpm, wakeref); in rpm_put() 97 struct intel_runtime_pm *rpm, in __intel_wakeref_init() argument 101 wf->rpm = rpm; in __intel_wakeref_init() 140 intel_runtime_pm_put(wf->rpm, wakeref); in wakeref_auto_timeout() 144 struct intel_runtime_pm *rpm) in intel_wakeref_auto_init() argument 150 wf->rpm = rpm; in intel_wakeref_auto_init() 164 assert_rpm_wakelock_held(wf->rpm); in intel_wakeref_auto() 170 wf->wakeref = intel_runtime_pm_get_if_in_use(wf->rpm); in intel_wakeref_auto()
|
D | intel_wakeref.h | 42 struct intel_runtime_pm *rpm; member 54 struct intel_runtime_pm *rpm, 57 #define intel_wakeref_init(wf, rpm, ops) do { \ argument 60 __intel_wakeref_init((wf), (rpm), (ops), &__key); \ 254 struct intel_runtime_pm *rpm; member 279 struct intel_runtime_pm *rpm);
|
D | i915_drv.c | 963 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in i915_driver_release() local 968 disable_rpm_wakeref_asserts(rpm); in i915_driver_release() 978 enable_rpm_wakeref_asserts(rpm); in i915_driver_release() 979 intel_runtime_pm_driver_release(rpm); in i915_driver_release() 1123 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in i915_drm_suspend_late() local 1126 disable_rpm_wakeref_asserts(rpm); in i915_drm_suspend_late() 1162 enable_rpm_wakeref_asserts(rpm); in i915_drm_suspend_late() 1164 intel_runtime_pm_driver_release(rpm); in i915_drm_suspend_late() 1484 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in intel_runtime_suspend() local 1492 disable_rpm_wakeref_asserts(rpm); in intel_runtime_suspend() [all …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | qcom_rpm.c | 58 #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 …]
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | smd-rpm.c | 96 int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, in qcom_rpm_smd_write() argument 120 mutex_lock(&rpm->lock); in qcom_rpm_smd_write() 132 ret = rpmsg_send(rpm->rpm_channel, pkt, size); in qcom_rpm_smd_write() 136 left = wait_for_completion_timeout(&rpm->ack, RPM_REQUEST_TIMEOUT); in qcom_rpm_smd_write() 140 ret = rpm->ack_status; in qcom_rpm_smd_write() 144 mutex_unlock(&rpm->lock); in qcom_rpm_smd_write() 158 struct qcom_smd_rpm *rpm = dev_get_drvdata(&rpdev->dev); in qcom_smd_rpm_callback() local 167 dev_err(rpm->dev, "invalid request\n"); in qcom_smd_rpm_callback() 192 rpm->ack_status = status; in qcom_smd_rpm_callback() 193 complete(&rpm->ack); in qcom_smd_rpm_callback() [all …]
|
D | rpmpd.c | 106 struct qcom_smd_rpm *rpm; member 240 return qcom_rpm_smd_write(pd->rpm, QCOM_SMD_RPM_ACTIVE_STATE, in rpmpd_send_enable() 252 return qcom_rpm_smd_write(pd->rpm, state, pd->res_type, pd->res_id, in rpmpd_send_corner() 367 struct qcom_smd_rpm *rpm; in rpmpd_probe() local 371 rpm = dev_get_drvdata(pdev->dev.parent); in rpmpd_probe() 372 if (!rpm) { in rpmpd_probe() 402 rpmpds[i]->rpm = rpm; in rpmpd_probe()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/qcom/ |
D | qcom,glink.txt | 9 Usage: required for glink-rpm 11 Definition: must be "qcom,glink-rpm" 29 - qcom,rpm-msg-ram: 30 Usage: required for glink-rpm 73 compatible = "qcom,rpm-msg-ram"; 77 rpm-glink { 78 compatible = "qcom,glink-rpm"; 82 qcom,rpm-msg-ram = <&rpm_msg_ram>; 86 rpm-requests { 87 compatible = "qcom,rpm-msm8996";
|
D | qcom,smem.txt | 17 - qcom,rpm-msg-ram: 47 qcom,rpm-msg-ram = <&rpm_msg_ram>; 54 compatible = "qcom,rpm-msg-ram";
|
D | qcom,smd.txt | 75 "rpm" subsystem. For the "rpm" subsystem we have a device tied to the 86 rpm { 92 compatible = "qcom,rpm-msm8974";
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | max31790.c | 46 #define RPM_TO_REG(rpm, sr) ((60 * (sr) * 8192) / ((rpm) * 2)) argument 143 static u8 bits_for_tach_period(int rpm) in bits_for_tach_period() argument 147 if (rpm < 500) in bits_for_tach_period() 149 else if (rpm < 1000) in bits_for_tach_period() 151 else if (rpm < 2000) in bits_for_tach_period() 153 else if (rpm < 4000) in bits_for_tach_period() 155 else if (rpm < 8000) in bits_for_tach_period() 167 int sr, rpm; in max31790_read_fan() local 175 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan() 176 *val = rpm; in max31790_read_fan() [all …]
|
D | aspeed-pwm-tacho.c | 610 int rpm; in rpm_show() local 613 rpm = aspeed_get_fan_tach_ch_rpm(priv, index); in rpm_show() 614 if (rpm < 0) in rpm_show() 615 return rpm; in rpm_show() 617 return sprintf(buf, "%d\n", rpm); in rpm_show() 667 static SENSOR_DEVICE_ATTR_RO(fan1_input, rpm, 0); 668 static SENSOR_DEVICE_ATTR_RO(fan2_input, rpm, 1); 669 static SENSOR_DEVICE_ATTR_RO(fan3_input, rpm, 2); 670 static SENSOR_DEVICE_ATTR_RO(fan4_input, rpm, 3); 671 static SENSOR_DEVICE_ATTR_RO(fan5_input, rpm, 4); [all …]
|
D | ultra45_env.c | 102 int rpm, period; in show_fan_speed() local 108 rpm = FAN_PERIOD_TO_RPM(period); in show_fan_speed() 110 rpm = 0; in show_fan_speed() 112 return sprintf(buf, "%d\n", rpm); in show_fan_speed() 119 unsigned long rpm; in set_fan_speed() local 125 err = kstrtoul(buf, 10, &rpm); in set_fan_speed() 129 if (!rpm) in set_fan_speed() 132 period = FAN_RPM_TO_PERIOD(rpm); in set_fan_speed()
|
D | gpio-fan.c | 25 int rpm; member 153 static int rpm_to_speed_index(struct gpio_fan_data *fan_data, unsigned long rpm) in rpm_to_speed_index() argument 159 if (speed[i].rpm >= rpm) in rpm_to_speed_index() 246 return sprintf(buf, "%d\n", fan_data->speed[0].rpm); in fan1_min_show() 255 fan_data->speed[fan_data->num_speed - 1].rpm); in fan1_max_show() 263 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in fan1_input_show() 270 unsigned long rpm; in set_rpm() local 273 if (kstrtoul(buf, 10, &rpm)) in set_rpm() 283 set_fan_speed(fan_data, rpm_to_speed_index(fan_data, rpm)); in set_rpm() 474 speed[i].rpm = u; in gpio_fan_get_of_data()
|
D | g762.c | 182 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p, in cnt_from_rpm() argument 188 if (!rpm) /* to stop the fan, set cnt to 255 */ in cnt_from_rpm() 191 rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2); in cnt_from_rpm() 192 return DIV_ROUND_CLOSEST(f1, rpm * f2); in cnt_from_rpm() 727 unsigned int rpm = 0; in fan1_input_show() local 735 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq, in fan1_input_show() 742 return sprintf(buf, "%u\n", rpm); in fan1_input_show() 931 unsigned int rpm; in fan1_target_show() local 937 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq, in fan1_target_show() 943 return sprintf(buf, "%u\n", rpm); in fan1_target_show()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
D | qcom-rpm.txt | 12 "qcom,rpm-apq8064" 13 "qcom,rpm-msm8660" 14 "qcom,rpm-msm8960" 15 "qcom,rpm-ipq8064" 16 "qcom,rpm-mdm9615" 60 "qcom,rpm-pm8058-regulators" 61 "qcom,rpm-pm8901-regulators" 62 "qcom,rpm-pm8921-regulators" 63 "qcom,rpm-pm8018-regulators" 64 "qcom,rpm-smb208-regulators" [all …]
|
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | clk-rpm.c | 145 struct qcom_rpm *rpm; member 150 struct qcom_rpm *rpm; member 177 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_handoff() 181 ret = qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE, in clk_rpm_handoff() 193 return qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_set_rate_active() 201 return qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE, in clk_rpm_set_rate_sleep() 313 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_prepare() 334 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_unprepare() 349 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_prepare() 363 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_unprepare() [all …]
|
/kernel/linux/linux-5.10/scripts/package/ |
D | mkspec | 52 %define __spec_install_post /usr/lib/rpm/brp-compress || : 112 cp /boot/vmlinuz-$KERNELRELEASE /boot/.vmlinuz-$KERNELRELEASE-rpm 113 cp /boot/System.map-$KERNELRELEASE /boot/.System.map-$KERNELRELEASE-rpm 115 …installkernel $KERNELRELEASE /boot/.vmlinuz-$KERNELRELEASE-rpm /boot/.System.map-$KERNELRELEASE-rpm 116 rm -f /boot/.vmlinuz-$KERNELRELEASE-rpm /boot/.System.map-$KERNELRELEASE-rpm
|
/kernel/linux/linux-5.10/tools/perf/Documentation/ |
D | security.txt | 15 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 …]
|
/kernel/linux/linux-5.10/drivers/interconnect/qcom/ |
D | Makefile | 13 icc-smd-rpm-objs := smd-rpm.o 25 obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/ |
D | aperture_gm.c | 137 assert_rpm_wakelock_held(uncore->rpm); in intel_vgpu_write_fence() 176 wakeref = intel_runtime_pm_get(uncore->rpm); in free_vgpu_fence() 187 intel_runtime_pm_put(uncore->rpm, wakeref); in free_vgpu_fence() 198 wakeref = intel_runtime_pm_get(uncore->rpm); in alloc_vgpu_fence() 214 intel_runtime_pm_put(uncore->rpm, wakeref); in alloc_vgpu_fence() 228 intel_runtime_pm_put_unchecked(uncore->rpm); in alloc_vgpu_fence() 325 with_intel_runtime_pm(gvt->gt->uncore->rpm, wakeref) in intel_vgpu_reset_resource()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | selftest_reset.c | 51 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in __igt_reset_stolen() 171 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in __igt_reset_stolen() 214 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_global_reset() 225 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_global_reset() 242 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_wedged_reset() 249 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_wedged_reset()
|
D | intel_gt_pm.c | 108 intel_wakeref_init(>->wakeref, gt->uncore->rpm, &wf_ops); in intel_gt_pm_init_early() 139 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in gt_sanitize() 177 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in gt_sanitize() 315 with_intel_runtime_pm(gt->uncore->rpm, wakeref) { in intel_gt_suspend_late()
|
D | selftest_llc.c | 19 wakeref = intel_runtime_pm_get(llc_to_gt(llc)->uncore->rpm); in gen6_verify_ring_freq() 66 intel_runtime_pm_put(llc_to_gt(llc)->uncore->rpm, wakeref); in gen6_verify_ring_freq()
|