Home
last modified time | relevance | path

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

1234567891011

/linux/drivers/gpu/drm/i915/
H A Dintel_runtime_pm.c54 static struct drm_i915_private *rpm_to_i915(struct intel_runtime_pm *rpm) in rpm_to_i915() argument
56 return container_of(rpm, struct drm_i915_private, runtime_pm); in rpm_to_i915()
61 static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) in init_intel_runtime_pm_wakeref() argument
63 if (!rpm->debug.class) in init_intel_runtime_pm_wakeref()
64 ref_tracker_dir_init(&rpm->debug, INTEL_REFTRACK_DEAD_COUNT, in init_intel_runtime_pm_wakeref()
69 track_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) in track_intel_runtime_pm_wakeref() argument
71 if (!rpm->available || rpm->no_wakeref_tracking) in track_intel_runtime_pm_wakeref()
74 return intel_ref_tracker_alloc(&rpm->debug); in track_intel_runtime_pm_wakeref()
77 static void untrack_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm, in untrack_intel_runtime_pm_wakeref() argument
80 if (!rpm->available || rpm->no_wakeref_tracking) in untrack_intel_runtime_pm_wakeref()
[all …]
H A Dintel_runtime_pm.h101 intel_runtime_pm_suspended(struct intel_runtime_pm *rpm) in intel_runtime_pm_suspended() argument
103 return pm_runtime_suspended(rpm->kdev); in intel_runtime_pm_suspended()
107 assert_rpm_device_not_suspended(struct intel_runtime_pm *rpm) in assert_rpm_device_not_suspended() argument
109 WARN_ONCE(intel_runtime_pm_suspended(rpm), in assert_rpm_device_not_suspended()
114 __assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_raw_wakeref_held() argument
116 assert_rpm_device_not_suspended(rpm); in __assert_rpm_raw_wakeref_held()
122 __assert_rpm_wakelock_held(struct intel_runtime_pm *rpm, int wakeref_count) in __assert_rpm_wakelock_held() argument
124 __assert_rpm_raw_wakeref_held(rpm, wakeref_count); in __assert_rpm_wakelock_held()
130 assert_rpm_raw_wakeref_held(struct intel_runtime_pm *rpm) in assert_rpm_raw_wakeref_held() argument
132 __assert_rpm_raw_wakeref_held(rpm, atomic_read(&rpm->wakeref_count)); in assert_rpm_raw_wakeref_held()
[all …]
H A Di915_hwmon.c85 with_intel_runtime_pm(uncore->rpm, wakeref) { in hwm_locked_with_pm_intel_uncore_rmw()
107 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_field_read_and_scale()
150 with_intel_runtime_pm(uncore->rpm, wakeref) { in hwm_energy()
177 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power1_max_interval_show()
336 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_temp_read()
369 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_in_read()
415 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power_max_read()
428 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power_max_read()
452 wakeref = intel_runtime_pm_get(ddat->uncore->rpm); in hwm_power_max_write()
466 intel_runtime_pm_put(ddat->uncore->rpm, wakeref); in hwm_power_max_write()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drpm.c83 rpm_t *rpm = rpmd; in is_dev_rpm2() local
85 return (rpm->pdev->device == PCI_DEVID_CN10KB_RPM); in is_dev_rpm2()
88 struct mac_ops *rpm_get_mac_ops(rpm_t *rpm) in rpm_get_mac_ops() argument
90 if (is_dev_rpm2(rpm)) in rpm_get_mac_ops()
96 static void rpm_write(rpm_t *rpm, u64 lmac, u64 offset, u64 val) in rpm_write() argument
98 cgx_write(rpm, lmac, offset, val); in rpm_write()
101 static u64 rpm_read(rpm_t *rpm, u64 lmac, u64 offset) in rpm_read() argument
103 return cgx_read(rpm, lmac, offset); in rpm_read()
111 rpm_t *rpm = rpmd; in is_mac_rpmusx() local
113 return rpm_read(rpm, 0, RPMX_CONST1) & 0x700ULL; in is_mac_rpmusx()
[all …]
/linux/drivers/mfd/
H A Dqcom_rpm.c60 #define RPM_STATUS_REG(rpm, i) ((rpm)->status_regs + (i) * 4) argument
61 #define RPM_CTRL_REG(rpm, i) ((rpm)->ctrl_regs + (i) * 4) argument
62 #define RPM_REQ_REG(rpm, i) ((rpm)->req_regs + (i) * 4) argument
447 int qcom_rpm_write(struct qcom_rpm *rpm, in qcom_rpm_write() argument
453 const struct qcom_rpm_data *data = rpm->data; in qcom_rpm_write()
466 mutex_lock(&rpm->lock); in qcom_rpm_write()
469 writel_relaxed(buf[i], RPM_REQ_REG(rpm, res->target_id + i)); in qcom_rpm_write()
472 for (i = 0; i < rpm->data->req_sel_size; i++) { in qcom_rpm_write()
474 RPM_CTRL_REG(rpm, rpm->data->req_sel_off + i)); in qcom_rpm_write()
477 writel_relaxed(BIT(state), RPM_CTRL_REG(rpm, rpm->data->req_ctx_off)); in qcom_rpm_write()
[all …]
/linux/drivers/rpmsg/
H A 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/drivers/soc/qcom/
H A 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/drivers/gpu/drm/i915/display/
H A Dintel_display_rpm.c11 return display->parent->rpm->get_raw(display->drm); in intel_display_rpm_get_raw()
16 display->parent->rpm->put_raw(display->drm, wakeref); in intel_display_rpm_put_raw()
21 return display->parent->rpm->get(display->drm); in intel_display_rpm_get()
26 return display->parent->rpm->get_if_in_use(display->drm); in intel_display_rpm_get_if_in_use()
31 return display->parent->rpm->get_noresume(display->drm); in intel_display_rpm_get_noresume()
36 display->parent->rpm->put(display->drm, wakeref); in intel_display_rpm_put()
41 display->parent->rpm->put_unchecked(display->drm); in intel_display_rpm_put_unchecked()
46 return display->parent->rpm->suspended(display->drm); in intel_display_rpm_suspended()
51 display->parent->rpm->assert_held(display->drm); in assert_display_rpm_held()
56 display->parent->rpm->assert_block(display->drm); in intel_display_rpm_assert_block()
[all …]
/linux/drivers/hwmon/
H A Dmax31790.c48 #define RPM_TO_REG(rpm, sr) ((60 * (sr) * 8192) / ((rpm) * 2)) argument
135 static u8 bits_for_tach_period(int rpm) in bits_for_tach_period() argument
139 if (rpm < 500) in bits_for_tach_period()
141 else if (rpm < 1000) in bits_for_tach_period()
143 else if (rpm < 2000) in bits_for_tach_period()
145 else if (rpm < 4000) in bits_for_tach_period()
147 else if (rpm < 8000) in bits_for_tach_period()
159 int sr, rpm; in max31790_read_fan() local
168 rpm = 0; in max31790_read_fan()
170 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
[all …]
H A Daspeed-pwm-tacho.c617 int rpm; in rpm_show() local
620 rpm = aspeed_get_fan_tach_ch_rpm(priv, index); in rpm_show()
621 if (rpm < 0) in rpm_show()
622 return rpm; in rpm_show()
624 return sprintf(buf, "%d\n", rpm); in rpm_show()
674 static SENSOR_DEVICE_ATTR_RO(fan1_input, rpm, 0);
675 static SENSOR_DEVICE_ATTR_RO(fan2_input, rpm, 1);
676 static SENSOR_DEVICE_ATTR_RO(fan3_input, rpm, 2);
677 static SENSOR_DEVICE_ATTR_RO(fan4_input, rpm, 3);
678 static SENSOR_DEVICE_ATTR_RO(fan5_input, rpm, 4);
[all …]
H A 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()
H A Dgpio-fan.c29 int rpm; member
175 static int rpm_to_speed_index(struct gpio_fan_data *fan_data, unsigned long rpm) in rpm_to_speed_index() argument
181 if (speed[i].rpm >= rpm) in rpm_to_speed_index()
269 return sprintf(buf, "%d\n", fan_data->speed[0].rpm); in fan1_min_show()
278 fan_data->speed[fan_data->num_speed - 1].rpm); in fan1_max_show()
286 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in fan1_input_show()
293 unsigned long rpm; in set_rpm() local
296 if (kstrtoul(buf, 10, &rpm)) in set_rpm()
306 ret = set_fan_speed(fan_data, rpm_to_speed_index(fan_data, rpm)); in set_rpm()
503 speed[i].rpm = u; in gpio_fan_get_of_data()
H A Dg762.c184 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p, in cnt_from_rpm() argument
190 if (!rpm) /* to stop the fan, set cnt to 255 */ in cnt_from_rpm()
193 rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2); in cnt_from_rpm()
194 return DIV_ROUND_CLOSEST(f1, rpm * f2); in cnt_from_rpm()
749 unsigned int rpm = 0; in fan1_input_show() local
757 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq, in fan1_input_show()
764 return sprintf(buf, "%u\n", rpm); in fan1_input_show()
953 unsigned int rpm; in fan1_target_show() local
959 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq, in fan1_target_show()
965 return sprintf(buf, "%u\n", rpm); in fan1_target_show()
/linux/Documentation/hwmon/
H A Dasus_rog_ryujin.rst37 fan1_input Pump speed (in rpm)
38 fan2_input Internal fan speed (in rpm)
39 fan3_input External (controller) fan 1 speed (in rpm)
40 fan4_input External (controller) fan 2 speed (in rpm)
41 fan5_input External (controller) fan 3 speed (in rpm)
42 fan6_input External (controller) fan 4 speed (in rpm)
/linux/drivers/clk/qcom/
H A Dclk-rpm.c97 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()
261 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_prepare()
282 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_unprepare()
297 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_prepare()
311 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_unprepare()
530 struct qcom_rpm *rpm; in rpm_clk_probe() local
[all …]
/linux/scripts/
H A DMakefile.package56 PHONY += rpm-sources
57 rpm-sources: linux.tar.gz
63 PHONY += rpm-pkg srcrpm-pkg binrpm-pkg
66 rpm-no-devel = --without=devel
69 rpm-pkg: private build-type := a
73 rpm-pkg srcrpm-pkg: rpm-sources
74 rpm-pkg srcrpm-pkg binrpm-pkg: rpmbuild/SPECS/kernel.spec
79 $$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps) \
80 $(rpm-no-devel)) \
/linux/drivers/gpu/drm/i915/pxp/
H A Dintel_pxp_session.c27 with_intel_runtime_pm_if_in_use(uncore->rpm, wakeref) in intel_pxp_session_is_in_play()
41 wakeref = intel_runtime_pm_get_if_in_use(uncore->rpm); in pxp_wait_for_session_state()
51 intel_runtime_pm_put(uncore->rpm, wakeref); in pxp_wait_for_session_state()
173 wakeref = intel_runtime_pm_get_if_in_use(gt->uncore->rpm); in pxp_session_work()
185 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in pxp_session_work()
/linux/tools/perf/Documentation/
H A 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/drivers/gpu/drm/i915/gt/
H A 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/arch/arm/boot/dts/qcom/
H A Dqcom-msm8660-surf.dts68 &rpm {
70 compatible = "qcom,rpm-pm8901-regulators";
74 compatible = "qcom,rpm-pm8058-regulators";
H A Dqcom-ipq8064-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";
H A Dqcom-ipq8062-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";
H A Dqcom-ipq8065-smb208.dtsi5 &rpm {
7 compatible = "qcom,rpm-smb208-regulators";
/linux/drivers/interconnect/qcom/
H A DMakefile48 icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o
92 obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dselftest_guc.c62 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in intel_guc_scrub_ctbs()
126 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_guc_scrub_ctbs()
162 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in intel_guc_steal_guc_ids()
282 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_guc_steal_guc_ids()
324 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in intel_guc_fast_request()
399 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_guc_fast_request()

1234567891011