| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rpm.c | 83 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 D | qcom_rpm.c | 60 #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 D | qcom_glink_rpm.c | 198 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 D | smd-rpm.c | 94 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/Documentation/hwmon/ |
| H A D | asus_rog_ryujin.rst | 37 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)
|
| H A D | lineage-pem.rst | 75 fan1_input Fan 1 speed (rpm, optional) 76 fan2_input Fan 2 speed (rpm, optional) 77 fan3_input Fan 3 speed (rpm, optional)
|
| H A D | nzxt-kraken2.rst | 39 fan1_input Fan speed (in rpm) 40 fan2_input Pump speed (in rpm)
|
| H A D | gigabyte_waterforce.rst | 37 fan1_input Fan speed (in rpm) 38 fan2_input Pump speed (in rpm)
|
| H A D | corsair-cpro.rst | 34 fan[1-6]_input Connected fan rpm. 36 fan[1-6]_target Sets fan speed target rpm.
|
| /linux/drivers/hwmon/ |
| H A D | aspeed-pwm-tacho.c | 617 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 D | gpio-fan.c | 29 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 D | g762.c | 184 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()
|
| H A D | g760a.c | 110 unsigned int rpm = 0; in fan1_input_show() local 114 rpm = rpm_from_cnt(data->act_cnt, data->clk, data->fan_div); in fan1_input_show() 117 return sprintf(buf, "%d\n", rpm); in fan1_input_show()
|
| H A D | lm80.c | 65 static inline unsigned char FAN_TO_REG(unsigned rpm, unsigned div) in FAN_TO_REG() argument 67 if (rpm == 0) in FAN_TO_REG() 69 rpm = clamp_val(rpm, 1, 1000000); in FAN_TO_REG() 70 return clamp_val((1350000 + rpm * div / 2) / (rpm * div), 1, 254); in FAN_TO_REG()
|
| /linux/scripts/ |
| H A D | Makefile.package | 56 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/tools/perf/Documentation/ |
| H A 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 …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_driver.c | 779 .rpm = &i915_display_rpm_interface, 988 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in i915_driver_release() local 994 wakeref = intel_runtime_pm_get(rpm); in i915_driver_release() 1005 intel_runtime_pm_put(rpm, wakeref); in i915_driver_release() 1007 intel_runtime_pm_driver_release(rpm); in i915_driver_release() 1167 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in i915_drm_suspend_late() local 1172 disable_rpm_wakeref_asserts(rpm); in i915_drm_suspend_late() 1189 enable_rpm_wakeref_asserts(rpm); in i915_drm_suspend_late() 1192 intel_runtime_pm_driver_release(rpm); in i915_drm_suspend_late() 1562 struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; in intel_runtime_suspend() local [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_reset.c | 52 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()
|
| H A D | selftest_llc.c | 17 wakeref = intel_runtime_pm_get(llc_to_gt(llc)->uncore->rpm); in gen6_verify_ring_freq() 63 intel_runtime_pm_put(llc_to_gt(llc)->uncore->rpm, wakeref); in gen6_verify_ring_freq()
|
| /linux/arch/arm/boot/dts/qcom/ |
| H A D | qcom-msm8660-surf.dts | 68 &rpm { 70 compatible = "qcom,rpm-pm8901-regulators"; 74 compatible = "qcom,rpm-pm8058-regulators";
|
| /linux/drivers/interconnect/qcom/ |
| H A D | Makefile | 49 icc-smd-rpm-objs := smd-rpm.o icc-rpm.o icc-rpm-clocks.o 94 obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o
|
| /linux/drivers/thunderbolt/ |
| H A D | icm.c | 101 bool rpm; member 113 u8 *proto_version, size_t *nboot_acl, bool *rpm); 478 u8 *proto_version, size_t *nboot_acl, bool *rpm) in icm_fr_driver_ready() argument 880 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, sizeof(pkg->ep_name)); in icm_fr_device_connected() 1038 u8 *proto_version, size_t *nboot_acl, bool *rpm) in icm_tr_driver_ready() argument 1060 if (rpm) in icm_tr_driver_ready() 1061 *rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3); in icm_tr_driver_ready() 1309 sw->rpm = force_rtd3; in __icm_tr_device_connected() 1310 if (!sw->rpm) in __icm_tr_device_connected() 1311 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, in __icm_tr_device_connected() [all …]
|
| /linux/drivers/platform/x86/hp/ |
| H A D | hp-wmi.c | 511 static inline u8 rpm_to_pwm(u8 rpm, struct hp_wmi_hwmon_priv *priv) in rpm_to_pwm() argument 514 clamp_val(rpm, 0, priv->max_rpm)); in rpm_to_pwm() 2451 int rpm, ret; in hp_wmi_hwmon_read() local 2470 rpm = hp_wmi_get_fan_speed_victus_s(channel); in hp_wmi_hwmon_read() 2471 if (rpm < 0) in hp_wmi_hwmon_read() 2472 return rpm; in hp_wmi_hwmon_read() 2473 *val = rpm_to_pwm(rpm / 100, priv); in hp_wmi_hwmon_read() 2497 int rpm; in hp_wmi_hwmon_write() local 2511 rpm = pwm_to_rpm(val, priv); in hp_wmi_hwmon_write() 2512 rpm = clamp_val(rpm, priv->min_rpm, priv->max_rpm); in hp_wmi_hwmon_write() [all …]
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A D | i915_gem_migrate.c | 340 wakeref = intel_runtime_pm_get(__gt->uncore->rpm); in igt_lmem_pages_failsafe_migrate() 344 intel_runtime_pm_put(__gt->uncore->rpm, wakeref); in igt_lmem_pages_failsafe_migrate() 495 wakeref = intel_runtime_pm_get(__gt->uncore->rpm); in igt_lmem_async_migrate() 499 intel_runtime_pm_put(__gt->uncore->rpm, wakeref); in igt_lmem_async_migrate()
|
| /linux/drivers/regulator/ |
| H A D | qcom_rpm-regulator.c | 48 struct qcom_rpm *rpm; member 199 return qcom_rpm_write(vreg->rpm, in rpm_reg_write() 943 struct qcom_rpm *rpm; in rpm_reg_probe() local 945 rpm = dev_get_drvdata(pdev->dev.parent); in rpm_reg_probe() 946 if (!rpm) { in rpm_reg_probe() 966 vreg->rpm = rpm; in rpm_reg_probe()
|