| /kernel/linux/linux-6.6/include/linux/ |
| D | polynomial.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 * struct polynomial_term - one term descriptor of a polynomial 11 * @deg: degree of the term. 12 * @coef: multiplication factor of the term. 18 long coef; 19 long divider; 20 long divider_leftover; 24 * struct polynomial - a polynomial descriptor 26 * @terms: polynomial terms, last term must have degree of 0 29 long total_divider; [all …]
|
| D | intel_rapl.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 57 PL1_ENABLE, /* power limit 1, aka long term */ 59 PL2_ENABLE, /* power limit 2, aka short term, instantaneous */ 63 TIME_WINDOW1, /* long term */ 64 TIME_WINDOW2, /* short term */ 86 unsigned long timestamp; 161 /* maximum rapl package domain name: package-%d-die-%d */ 165 unsigned int id; /* logical die id, equals physical 1-die systems */ 167 unsigned long domain_map; /* bit map of active domains */ 170 unsigned long power_limit_irq; /* keep track of package power limit
|
| /kernel/linux/linux-6.6/lib/ |
| D | polynomial.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 * Originally this was part of drivers/hwmon/bt1-pvt.c. 22 * to PVT data and vice-versa are following: 24 * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) + 26 * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) + 27 * 3.1020e-1*(N^1) - 4.838e1 29 * where T = [-48.380, 147.438]C and N = [0, 1023]. 38 * N = (18322e-20*(T^4) + 2343e-13*(T^3) + 87018e-9*(T^2) + 39269e-3*T + 40 * T = -16743e-12*(D^4) + 81542e-9*(D^3) - 182010e-6*(D^2) + 310200e-3*D - 42 * where T = [-48380, 147438] mC and N = [0, 1023]. [all …]
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | pmu.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include "parse-events.h" 55 return -EINVAL; in perf_pmu__format_parse() 59 char *name = evt_ent->d_name; in perf_pmu__format_parse() 67 ret = -EINVAL; in perf_pmu__format_parse() 92 return -1; in pmu_format() 101 return -1; in pmu_format() 123 ret = -ENOMEM; in perf_pmu__convert_scale() 148 int fd, ret = -1; in perf_pmu__parse_scale() 154 if (fd == -1) in perf_pmu__parse_scale() [all …]
|
| /kernel/linux/linux-6.6/lib/math/ |
| D | rational-test.c | 1 // SPDX-License-Identifier: GPL-2.0 8 unsigned long num, den; 9 unsigned long max_num, max_den; 10 unsigned long exp_num, exp_den; 16 { 1230, 10, 100, 20, 100, 1, "Exceeds bounds, semi-convergent term > 1/2 last term" }, 17 { 34567,100, 120, 20, 120, 1, "Exceeds bounds, semi-convergent term < 1/2 last term" }, 19 { 1, 19, 100, 10, 1, 10, "Closest to smallest non-zero" }, 28 strscpy(desc, param->name, KUNIT_PARAM_DESC_SIZE); in get_desc() 36 const struct rational_test_param *param = (const struct rational_test_param *)test->param_value; in rational_test() 37 unsigned long n = 0, d = 0; in rational_test() [all …]
|
| D | rational.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * (1 << 8) - 1, (1 << 5) - 1, &n, &d); 36 unsigned long given_numerator, unsigned long given_denominator, in rational_best_approximation() 37 unsigned long max_numerator, unsigned long max_denominator, in rational_best_approximation() 38 unsigned long *best_numerator, unsigned long *best_denominator) in rational_best_approximation() 49 * a is current term of the continued fraction. in rational_best_approximation() 51 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation() 58 unsigned long dp, a; in rational_best_approximation() 62 /* Find next term in continued fraction, 'a', via in rational_best_approximation() 71 * convergent), n2/d2, using the term just found and in rational_best_approximation() [all …]
|
| /kernel/linux/linux-6.6/drivers/pinctrl/intel/ |
| D | pinctrl-tangier.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <linux/pinctrl/pinconf-generic.h> 31 #include "pinctrl-intel.h" 32 #include "pinctrl-tangier.h" 65 #define pin_to_bufno(f, p) ((p) - (f)->pin_base) 73 for (i = 0; i < tp->nfamilies; i++) { in tng_get_family() 74 family = &tp->families[i]; in tng_get_family() 75 if (pin >= family->pin_base && in tng_get_family() 76 pin < family->pin_base + family->npins) in tng_get_family() 80 dev_warn(tp->dev, "failed to find family for pin %u\n", pin); in tng_get_family() [all …]
|
| /kernel/linux/linux-5.10/lib/math/ |
| D | rational.c | 1 // SPDX-License-Identifier: GPL-2.0 25 * (1 << 8) - 1, (1 << 5) - 1, &n, &d); 35 unsigned long given_numerator, unsigned long given_denominator, in rational_best_approximation() 36 unsigned long max_numerator, unsigned long max_denominator, in rational_best_approximation() 37 unsigned long *best_numerator, unsigned long *best_denominator) in rational_best_approximation() 48 * a is current term of the continued fraction. in rational_best_approximation() 50 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation() 57 unsigned long dp, a; in rational_best_approximation() 61 /* Find next term in continued fraction, 'a', via in rational_best_approximation() 70 * convergent), n2/d2, using the term just found and in rational_best_approximation() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
| D | v4l2-h264.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <media/v4l2-h264.h> 16 * v4l2_h264_init_reflist_builder() - Initialize a P/B0/B1 reference list 33 max_frame_num = 1 << (sps->log2_max_frame_num_minus4 + 4); in v4l2_h264_init_reflist_builder() 34 cur_frame_num = dec_params->frame_num; in v4l2_h264_init_reflist_builder() 37 if (!(dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) in v4l2_h264_init_reflist_builder() 38 b->cur_pic_order_count = min(dec_params->bottom_field_order_cnt, in v4l2_h264_init_reflist_builder() 39 dec_params->top_field_order_cnt); in v4l2_h264_init_reflist_builder() 40 else if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) in v4l2_h264_init_reflist_builder() 41 b->cur_pic_order_count = dec_params->bottom_field_order_cnt; in v4l2_h264_init_reflist_builder() [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/thermal/ |
| D | power_allocator.rst | 6 ----------- 20 -------------- 23 Proportional-Integral-Derivative controller (PID controller) with 29 - e = desired_temperature - current_temperature 30 - err_integral is the sum of previous errors 31 - diff_err = e - previous_error 39 | +----------+ +---+ 40 | +----->| diff_err |-->| X |------+ 41 | | +----------+ +---+ | 47 +---+ | +-------+ +---+ +---+ +---+ +----------+ [all …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/thermal/ |
| D | power_allocator.rst | 6 ----------- 20 -------------- 23 Proportional-Integral-Derivative controller (PID controller) with 29 - e = desired_temperature - current_temperature 30 - err_integral is the sum of previous errors 31 - diff_err = e - previous_error 39 | +----------+ +---+ 40 | +----->| diff_err |-->| X |------+ 41 | | +----------+ +---+ | 47 +---+ | +-------+ +---+ +---+ +---+ +----------+ [all …]
|
| /kernel/linux/linux-6.6/drivers/media/v4l2-core/ |
| D | v4l2-h264.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <media/v4l2-h264.h> 22 * v4l2_h264_init_reflist_builder() - Initialize a P/B0/B1 reference list 39 max_frame_num = 1 << (sps->log2_max_frame_num_minus4 + 4); in v4l2_h264_init_reflist_builder() 40 cur_frame_num = dec_params->frame_num; in v4l2_h264_init_reflist_builder() 43 if (!(dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) { in v4l2_h264_init_reflist_builder() 44 b->cur_pic_order_count = min(dec_params->bottom_field_order_cnt, in v4l2_h264_init_reflist_builder() 45 dec_params->top_field_order_cnt); in v4l2_h264_init_reflist_builder() 46 b->cur_pic_fields = V4L2_H264_FRAME_REF; in v4l2_h264_init_reflist_builder() 47 } else if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) { in v4l2_h264_init_reflist_builder() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/math-emu/ |
| D | polynom_Xsig.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /*---------------------------------------------------------------------------+ 9 | Australia. E-mail billm@jacobi.maths.monash.edu.au | 12 | void polynomial_Xsig(Xsig *accum, unsigned long long x, | 13 | unsigned long long terms[], int n) | 16 | terms[0] + (terms[1] + (terms[2] + ... + (terms[n-1]*x)*x)*x)*x) ... )*x | 24 +---------------------------------------------------------------------------*/ 31 #define SUM_MS -20(%ebp) /* sum ms long */ 32 #define SUM_MIDDLE -24(%ebp) /* sum middle long */ 33 #define SUM_LS -28(%ebp) /* sum ls long */ [all …]
|
| /kernel/linux/linux-6.6/arch/x86/math-emu/ |
| D | polynom_Xsig.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /*---------------------------------------------------------------------------+ 9 | Australia. E-mail billm@jacobi.maths.monash.edu.au | 12 | void polynomial_Xsig(Xsig *accum, unsigned long long x, | 13 | unsigned long long terms[], int n) | 16 | terms[0] + (terms[1] + (terms[2] + ... + (terms[n-1]*x)*x)*x)*x) ... )*x | 24 +---------------------------------------------------------------------------*/ 31 #define SUM_MS -20(%ebp) /* sum ms long */ 32 #define SUM_MIDDLE -24(%ebp) /* sum middle long */ 33 #define SUM_LS -28(%ebp) /* sum ls long */ [all …]
|
| /kernel/linux/linux-6.6/tools/perf/util/ |
| D | pmu.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <util/pmu-bison.h> 23 #include <util/pmu-flex.h> 24 #include "parse-events.h" 25 #include "print-events.h" 52 * struct perf_pmu_alias - An event either read from sysfs or builtin in 53 * pmu-events.c, created by parsing the pmu-events json files. 56 /** @name: Name of the event like "mem-loads". */ 60 /** @long_desc: Optional long description. */ 82 * <sysfs>/bus/event_source/devices/<pmu_name>/events/<name>.per-pkg or [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | intel_rapl.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 45 PL1_ENABLE, /* power limit 1, aka long term */ 47 PL2_ENABLE, /* power limit 2, aka short term, instantaneous */ 51 TIME_WINDOW1, /* long term */ 52 TIME_WINDOW2, /* short term */ 68 unsigned long timestamp; 130 /* maximum rapl package domain name: package-%d-die-%d */ 134 unsigned int id; /* logical die id, equals physical 1-die systems */ 136 unsigned long domain_map; /* bit map of active domains */ 142 unsigned long power_limit_irq; /* keep track of package power limit
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/ |
| D | iqs269a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 28 "#address-cells": 31 "#size-cells": 34 azoteq,hall-enable: 37 Enables Hall-effect sensing on channels 6 and 7. In this case, keycodes [all …]
|
| D | iqs626a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS626A is a 14-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 19 - $ref: touchscreen/touchscreen.yaml# 31 "#address-cells": 34 "#size-cells": 37 azoteq,suspend-mode: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | iqs269a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 28 "#address-cells": 31 "#size-cells": 34 azoteq,hall-enable: 37 Enables Hall-effect sensing on channels 6 and 7. In this case, keycodes [all …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/sw/siw/ |
| D | siw_qp.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 4 /* Copyright (c) 2008-2019, IBM Corporation */ 30 * per-RDMAP message basis. Please keep order of initializer. All MPA len 36 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_write) - 2), 44 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rreq) - 2), 51 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rresp) - 2), 59 .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2), 66 .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2), 73 .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2), 80 .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2), [all …]
|
| D | siw_qp_rx.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 4 /* Copyright (c) 2008-2019, IBM Corporation */ 44 (void *)(uintptr_t)umem->fp_addr); in siw_rx_umem() 46 srx->skb_copied += copied; in siw_rx_umem() 47 srx->skb_new -= copied; in siw_rx_umem() 49 return -EFAULT; in siw_rx_umem() 52 bytes = min(len, (int)PAGE_SIZE - pg_off); in siw_rx_umem() 57 rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, in siw_rx_umem() 62 srx->skb_copied += copied; in siw_rx_umem() 63 srx->skb_new -= copied; in siw_rx_umem() [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/sw/siw/ |
| D | siw_qp.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 4 /* Copyright (c) 2008-2019, IBM Corporation */ 29 * per-RDMAP message basis. Please keep order of initializer. All MPA len 35 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_write) - 2), 43 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rreq) - 2), 50 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rresp) - 2), 58 .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2), 65 .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2), 72 .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2), 79 .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2), [all …]
|
| D | siw_qp_rx.c | 1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause 4 /* Copyright (c) 2008-2019, IBM Corporation */ 44 (void *)(uintptr_t)umem->fp_addr); in siw_rx_umem() 46 srx->skb_copied += copied; in siw_rx_umem() 47 srx->skb_new -= copied; in siw_rx_umem() 49 return -EFAULT; in siw_rx_umem() 52 bytes = min(len, (int)PAGE_SIZE - pg_off); in siw_rx_umem() 57 rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, in siw_rx_umem() 62 srx->skb_copied += copied; in siw_rx_umem() 63 srx->skb_new -= copied; in siw_rx_umem() [all …]
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-class-thermal | 61 E.g. it can be one of critical, hot, passive, `active[0-*]` 84 The trip point in this thermal zone which `cdev[0-*]` is 85 associated with; -1 means the cooling device is not 92 The influence of `cdev[0-*]` in this thermal zone. This value 122 The derivative term of the power allocator governor's PID 124 Documentation/driver-api/thermal/power_allocator.rst 130 The integral term of the power allocator governor's PID 131 controller. This term allows the PID controller to compensate 132 for long term drift. For more information see 133 Documentation/driver-api/thermal/power_allocator.rst [all …]
|
| /kernel/linux/linux-6.6/drivers/pwm/ |
| D | pwm-ep93xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * platform device ep93xx-pwm.1 - PWMOUT1 (EGPIO14) 12 * platform device ep93xx-pwm.0 - PWMOUT 15 * platform device ep93xx-pwm.0 - PWMOUT 16 * platform device ep93xx-pwm.1 - PWMOUT1 (EGPIO14) 49 struct platform_device *pdev = to_platform_device(chip->dev); in ep93xx_pwm_request() 56 struct platform_device *pdev = to_platform_device(chip->dev); in ep93xx_pwm_free() 66 bool enabled = state->enabled; in ep93xx_pwm_apply() 67 void __iomem *base = ep93xx_pwm->base; in ep93xx_pwm_apply() 68 unsigned long long c; in ep93xx_pwm_apply() [all …]
|