/Linux-v5.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 …]
|
D | parse-events.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "term.h" 13 #include "build-id.h" 17 #include <subcmd/parse-options.h> 18 #include "parse-events.h" 19 #include <subcmd/exec-cmd.h> 24 #include "bpf-loader.h" 28 #include "parse-events-bison.h" 30 #include "parse-events-flex.h" 33 #include "probe-file.h" [all …]
|
/Linux-v5.10/lib/math/ |
D | rational.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * (1 << 8) - 1, (1 << 5) - 1, &n, &d); 34 unsigned long given_numerator, unsigned long given_denominator, in rational_best_approximation() 35 unsigned long max_numerator, unsigned long max_denominator, in rational_best_approximation() 36 unsigned long *best_numerator, unsigned long *best_denominator) in rational_best_approximation() 47 * a is current term of the continued fraction. in rational_best_approximation() 49 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation() 56 unsigned long dp, a; in rational_best_approximation() 60 /* Find next term in continued fraction, 'a', via in rational_best_approximation() 69 * convergent), n2/d2, using the term just found and in rational_best_approximation() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | sysfs-api.rst | 19 This how-to focuses on enabling new thermal zone and cooling devices to 30 - `[0-*]` denotes any positive number starting from 0 31 - `[1-*]` denotes any positive number starting from 1 37 --------------------------------- 49 /sys/class/thermal folder as `thermal_zone[0-*]`. It tries to bind all the 61 thermal zone device call-backs. 76 - "enabled" means the kernel thermal management is 78 - "disabled" will prevent kernel thermal driver action 118 pointed by dev->of_node as temperature providers. For the zone 126 dev->of_node. [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.10/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() 65 void __iomem *base = ep93xx_pwm->base; in ep93xx_pwm_config() 66 unsigned long long c; in ep93xx_pwm_config() 67 unsigned long period_cycles; in ep93xx_pwm_config() [all …]
|
/Linux-v5.10/drivers/scsi/arm/ |
D | eesox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1997-2005 Russell King 12 * 01-10-1997 RMK Created, READONLY version 13 * 15-02-1998 RMK READ/WRITE version 15 * 14-03-1998 RMK Updated DMA support 17 * 15-04-1998 RMK Only do PIO if FAS216 will allow it. 18 * 27-06-1998 RMK Changed asm/delay.h to linux/delay.h 19 * 02-04-2000 RMK 0.0.3 Fixed NO_IRQ/NO_DMA problem, updated for new 31 #include <linux/dma-mapping.h> 62 * Use term=0,1,0,0,0 to turn terminators on/off [all …]
|
D | cumana_2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1997-2005 Russell King 8 * 30-08-1997 RMK 0.0.0 Created, READONLY version. 9 * 22-01-1998 RMK 0.0.1 Updated to 2.1.80. 10 * 15-04-1998 RMK 0.0.1 Only do PIO if FAS216 will allow it. 11 * 02-05-1998 RMK 0.0.2 Updated & added DMA support. 12 * 27-06-1998 RMK Changed asm/delay.h to linux/delay.h 13 * 18-08-1998 RMK 0.0.3 Fixed synchronous transfer depth. 14 * 02-04-2000 RMK 0.0.4 Updated for new error handling code. 25 #include <linux/dma-mapping.h> [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/ |
D | TODO | 5 1. Base this on drm-next - WIP 11 3. WIP - Drop page flip helper and use DRM's version 14 4. DONE - Flatten all DC objects 28 5. DONE - Rename DC objects to align more with DRM 29 * dc_surface -> dc_plane_state 30 * dc_stream -> dc_stream_state 33 6. DONE - Per-plane and per-stream validation 36 7. WIP - Per-plane and per-stream commit 39 8. WIP - Split pipe_ctx into plane and stream resource structs 49 "Making sure you use the sink-specific helper libraries and kernel [all …]
|
/Linux-v5.10/Documentation/process/ |
D | 2.Process.rst | 14 --------------- 16 The kernel developers use a loosely time-based release process, with a new 53 be called 5.6-rc1. The -rc1 release is the signal that the time to 63 exception is made for drivers for previously-unsupported hardware; if they 64 touch no in-tree code, they cannot cause regressions and should be safe to 68 time. Linus releases new -rc kernels about once a week; a normal series 69 will get up to somewhere between -rc6 and -rc9 before the kernel is 78 September 30 5.4-rc1, merge window closes 79 October 6 5.4-rc2 80 October 13 5.4-rc3 [all …]
|
/Linux-v5.10/drivers/net/wireless/zydas/zd1211rw/ |
D | zd_mac.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* ZD1211 USB-WLAN driver for Linux 4 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de> 5 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org> 30 * of short or long preambles in 802.11b (CCK mode) or the use of 802.11a or 33 * The term zd-rate is used for the combination of the modulation type flag 44 * codeing for the 1 and 2 MBit/s rate. We stay with the term here to remain 45 * consistent with uses the term at other places. 52 * with the modulation type flag and call the resulting values zd-rates. 156 unsigned long last_update; [all …]
|
/Linux-v5.10/drivers/spi/ |
D | spi-ar934x.c | 1 // SPDX-License-Identifier: GPL-2.0 7 // Based on spi-mt7621.c: 9 // Copyright (C) 2011-2013 Gabor Juhos <juhosg@openwrt.org> 10 // Copyright (C) 2014-2015 Felix Fietkau <nbd@nbd.name> 20 #define DRIVER_NAME "spi-ar934x" 37 #define AR934X_SPI_SHIFT_VAL(cs, term, count) \ argument 39 (term) << AR934X_SPI_SHIFT_TERM | (count)) 52 int div = DIV_ROUND_UP(sp->clk_freq, freq * 2) - 1; in ar934x_spi_clk_div() 57 return -EINVAL; in ar934x_spi_clk_div() 64 struct ar934x_spi *sp = spi_controller_get_devdata(spi->master); in ar934x_spi_setup() [all …]
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | hvcserver.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 * hvcs_partner_info - an element in a list of partner info 25 * null-term. 35 char location_code[HVCS_CLC_LENGTH + 1]; /* CLC + 1 null-term char */ 40 struct list_head *head, unsigned long *pi_buff);
|
/Linux-v5.10/Documentation/core-api/ |
D | pin_user_pages.rst | 1 .. SPDX-License-Identifier: GPL-2.0 35 In other words, use pin_user_pages*() for DMA-pinned pages, and 54 flags the caller provides. The caller is required to pass in a non-null struct 73 -------- 80 but the caller passed in a non-null struct pages* array, then the function 85 -------- 90 Tracking dma-pinned pages 93 Some of the key design constraints, and solutions, for tracking dma-pinned 99 * False positives (reporting that a page is dma-pinned, when in fact it is not) 105 * Given the above, we can overload the page->_refcount field by using, sort of, [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | tegra124-nyan-blaze-emc.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 emc-timings-1 { 5 nvidia,ram-code = <1>; 7 timing-12750000 { 8 clock-frequency = <12750000>; 9 nvidia,parent-clock-frequency = <408000000>; 11 clock-names = "emc-parent"; 13 timing-20400000 { 14 clock-frequency = <20400000>; 15 nvidia,parent-clock-frequency = <408000000>; [all …]
|
D | tegra124-apalis-emc.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR X11 3 * Copyright 2016-2019 Toradex AG 9 emc-timings-1 { 10 nvidia,ram-code = <1>; 12 timing-12750000 { 13 clock-frequency = <12750000>; 14 nvidia,parent-clock-frequency = <408000000>; 16 clock-names = "emc-parent"; 18 timing-20400000 { 19 clock-frequency = <20400000>; [all …]
|
D | tegra124-jetson-tk1-emc.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 emc-timings-3 { 5 nvidia,ram-code = <3>; 7 timing-12750000 { 8 clock-frequency = <12750000>; 9 nvidia,parent-clock-frequency = <408000000>; 11 clock-names = "emc-parent"; 13 timing-20400000 { 14 clock-frequency = <20400000>; 15 nvidia,parent-clock-frequency = <408000000>; [all …]
|
/Linux-v5.10/drivers/hwmon/ |
D | bt1-pvt.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Baikal-T1 Process, Voltage, Temperature sensor driver 17 /* Baikal-T1 PVT registers and their bitfields */ 61 * PVT sensors-related limits and default values 73 * when one is determined for Baikal-T1 SoC). 84 #define PVT_TEMP_MIN -48380L 105 * enum pvt_sensor_type - Baikal-T1 PVT sensor types (correspond to each PVT 110 * @PVT_LVT: PVT Low-Voltage threshold sensor. 111 * @PVT_HVT: PVT High-Voltage threshold sensor. 112 * @PVT_SVT: PVT Standard-Voltage threshold sensor. [all …]
|
/Linux-v5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-scaler.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "dcss-dev.h" 101 #define PSC_PHASE_MASK (PSC_NUM_PHASES - 1) 103 #define PSC_Q_ROUND_OFFSET (1 << (PSC_Q_FRACTION - 1)) 106 * mult_q() - Performs fixed-point multiplication. 122 * div_q() - Performs fixed-point division. 135 temp -= B / 2; in div_q() 142 * exp_approx_q() - Compute approximation to exp(x) function using Taylor 144 * @x: fixed-point argument of exp function 149 int term = 1 << PSC_Q_FRACTION; in exp_approx_q() local [all …]
|