/linux-6.12.1/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | gdc.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2010-2015, Intel Corporation. 47 for (i = 0; i < HRT_GDC_N; i++) { in gdc_lut_store() 48 hrt_data entry_0 = data[0][i] & HRT_GDC_BCI_COEF_MASK; in gdc_lut_store() 66 * c0[0-1023], c1[0-1023], c2[0-1023] c3[0-1023] 69 * c0[0], c1[0], c2[0], c3[0], c0[1], c1[1], c2[1], c3[1], .... 70 * c0[1023], c1[1023], c2[1023], c3[1023] 72 * The first format needs c0[0], c1[0] (which are 1024 words apart) 88 for (i = 0; i < HRT_GDC_N; i++) { in gdc_lut_convert_to_isp_format() 89 out[0] = in_lut[0][i]; in gdc_lut_convert_to_isp_format()
|
/linux-6.12.1/drivers/hid/bpf/progs/ |
D | FR-TEC__Raptor-Mach-2.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #define VID_BETOP_2185PC 0x11C0 11 #define PID_RAPTOR_MACH_2 0x5606 21 * 0x05, 0x01, // Usage Page (Generic Desktop) 0 22 * 0x09, 0x04, // Usage (Joystick) 2 23 * 0xa1, 0x01, // Collection (Application) 4 24 * 0x05, 0x01, // Usage Page (Generic Desktop) 6 25 * 0x85, 0x01, // Report ID (1) 8 26 * 0x05, 0x01, // Usage Page (Generic Desktop) 10 27 * 0x09, 0x30, // Usage (X) 12 [all …]
|
/linux-6.12.1/drivers/iio/adc/ |
D | cpcap-adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2009-2010 Motorola, Inc. 27 #include <linux/mfd/motorola-cpcap.h> 45 #define CPCAP_BIT_ADEN BIT(0) /* Currently unused */ 67 #define CPCAP_BIT_TS_M0 BIT(0) /* Currently unused */ 86 * struct cpcap_adc_ato - timing settings for cpcap adc 103 * struct cpcap_adc - cpcap adc device driver data 125 * enum cpcap_adc_channel - cpcap adc channels 156 * enum cpcap_adc_timing - cpcap adc timing options 168 * struct cpcap_adc_phasing_tbl - cpcap phasing table [all …]
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_rcb.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2014-2015 Hisilicon Limited. 18 #define HNS_RCB_IRQ_IDX_TX 0 20 #define HNS_RCB_TX_REG_OFFSET 0x40 32 #define HNS_RCB_REG_OFFSET 0x10000 36 #define HNS_RCB_TX_FRAMES_HIGH 1023 37 #define HNS_RCB_RX_FRAMES_HIGH 1023 40 #define HNS_RCB_TX_USECS_HIGH 1023 41 #define HNS_RCB_RX_USECS_HIGH 1023 42 #define HNS_RCB_MAX_COALESCED_FRAMES 1023 [all …]
|
/linux-6.12.1/fs/affs/ |
D | symlink.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * 1995 Hans-Joachim Widmaier - Modified for affs. 17 struct inode *inode = folio->mapping->host; in affs_symlink_read_folio() 24 pr_debug("get_link(ino=%lu)\n", inode->i_ino); in affs_symlink_read_folio() 26 bh = affs_bread(inode->i_sb, inode->i_ino); in affs_symlink_read_folio() 29 i = 0; in affs_symlink_read_folio() 30 j = 0; in affs_symlink_read_folio() 31 lf = (struct slink_front *)bh->b_data; in affs_symlink_read_folio() 32 lc = 0; in affs_symlink_read_folio() 34 if (strchr(lf->symname,':')) { /* Handle assign or volume name */ in affs_symlink_read_folio() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/rockchip/ |
D | rk3566-anbernic-rg353x.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rgxx3.dtsi" 11 adc-joystick { 12 compatible = "adc-joystick"; 13 io-channels = <&adc_mux 0>, 17 pinctrl-0 = <&joy_mux_en>; [all …]
|
D | rk3566-anbernic-rg503.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rgxx3.dtsi" 20 adc-joystick { 21 compatible = "adc-joystick"; 22 io-channels = <&adc_mux 0>, 26 pinctrl-0 = <&joy_mux_en>; [all …]
|
/linux-6.12.1/drivers/gpu/drm/tests/ |
D | drm_plane_helper_test.c | 1 // SPDX-License-Identifier: GPL-2.0 20 DRM_MODE("1024x768", 0, 65000, 1024, 1048, 21 1184, 1344, 0, 768, 771, 777, 806, 0, 49 const struct drm_check_plane_state_test *params = test->param_value; in drm_plane_helper_init() 59 fb->width = 2048; in drm_plane_helper_init() 60 fb->height = 2048; in drm_plane_helper_init() 64 mock->plane = plane; in drm_plane_helper_init() 65 mock->crtc = ZERO_SIZE_PTR; in drm_plane_helper_init() 66 mock->fb = fb; in drm_plane_helper_init() 67 mock->rotation = params->rotation; in drm_plane_helper_init() [all …]
|
/linux-6.12.1/lib/ |
D | test_ida.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (c) 2016-2018 Microsoft Corporation 26 } while (0) 35 for (i = 0; i < 10000; i++) in ida_check_alloc() 40 for (i = 0; i < 3; i++) { in ida_check_alloc() 42 IDA_BUG_ON(ida, id < 0); in ida_check_alloc() 47 for (i = 0; i < 5000; i++) in ida_check_alloc() 68 /* Destroy an already-empty IDA */ in ida_check_destroy() 73 ida_check_destroy_1(ida, 0); in ida_check_destroy() 75 ida_check_destroy_1(ida, 1023); in ida_check_destroy() [all …]
|
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 …]
|
/linux-6.12.1/arch/arm/vfp/ |
D | vfpdouble.c | 8 * This C source file is part of the SoftFloat IEC/IEEE Floating-point 14 * National Science Foundation under grant MIP-9311980. The original version 15 * of this code was written as part of a project to build a fixed-point vector 44 .sign = 0, 51 str, d->sign != 0, d->exponent, d->significand); in vfp_double_dump() 56 int bits = 31 - fls(vd->significand >> 32); in vfp_double_normalise_denormal() 58 bits = 63 - fls(vd->significand); in vfp_double_normalise_denormal() 63 vd->exponent -= bits - 1; in vfp_double_normalise_denormal() 64 vd->significand <<= bits; in vfp_double_normalise_denormal() 81 if (vd->exponent == 2047 && (vd->significand == 0 || exceptions)) in vfp_double_normaliseround() [all …]
|
/linux-6.12.1/drivers/hid/ |
D | wacom_wac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * USB Wacom tablet support - Wacom specific code 25 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo 43 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout() 45 wacom_wac->shared->stylus_in_proximity = 0; in wacom_force_proxout() 47 input_report_key(input, BTN_TOUCH, 0); in wacom_force_proxout() 48 input_report_key(input, BTN_STYLUS, 0); in wacom_force_proxout() 49 input_report_key(input, BTN_STYLUS2, 0); in wacom_force_proxout() 50 input_report_key(input, BTN_STYLUS3, 0); in wacom_force_proxout() 51 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout() [all …]
|
D | hid-kye.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hid-ids.h" 21 * - Add battery and sleep support for EasyPen M406W and MousePen M508WX 22 * - Investigate ScrollZ.MiceFMT buttons of EasyPen M406 26 0x05, 0x0C, /* Usage Page (Consumer), */ 27 0x09, 0x01, /* Usage (Consumer Control), */ 28 0xA1, 0x01, /* Collection (Application), */ 29 0x85, 0x12, /* Report ID (18), */ 30 0x0A, 0x45, 0x02, /* Usage (AC Rotate), */ 31 0x09, 0x40, /* Usage (Menu), */ [all …]
|
D | hid-lg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 8 * Copyright (c) 2006-2007 Jiri Kosina 25 #include "hid-ids.h" 26 #include "hid-lg.h" 27 #include "hid-lg4ff.h" 29 #define LG_RDESC 0x001 30 #define LG_BAD_RELATIVE_KEYS 0x002 31 #define LG_DUPLICATE_USAGES 0x004 [all …]
|
/linux-6.12.1/net/phonet/ |
D | sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Author: Rémi Denis-Courmont 21 #define DYNAMIC_PORT_MIN 0x40 22 #define DYNAMIC_PORT_MAX 0x7f 25 static int local_port_range_min[2] = {0, 0}; 26 static int local_port_range_max[2] = {1023, 1023}; 33 local_port_range[0] = range[0]; in set_local_port_range() 45 *min = local_port_range[0]; in phonet_get_local_port_range() 55 int range[2] = {local_port_range[0], local_port_range[1]}; in proc_local_port_range() 59 .mode = table->mode, in proc_local_port_range() [all …]
|
/linux-6.12.1/arch/mips/math-emu/ |
D | ieee754dp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * Copyright (C) 1994-2000 Algorithmics Ltd. 15 #define assert(expr) ((void)0) 17 #define DP_EBIAS 1023 18 #define DP_EMIN (-1022) 19 #define DP_EMAX 1023 38 ((rs > (DP_FBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0)) 51 while ((m >> DP_FBITS) == 0) { m <<= 1; e--; } 60 assert((s) == 0 || (s) == 1); in builddp() 61 assert((bx) >= DP_EMIN - 1 + DP_EBIAS in builddp() [all …]
|
/linux-6.12.1/drivers/net/ethernet/ibm/ehea/ |
D | ehea.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Jan-Bernd Themann <themann@de.ibm.com> 48 #define EHEA_MAX_CQE_COUNT 1023 49 #define EHEA_DEF_ENTRIES_SQ 1023 50 #define EHEA_DEF_ENTRIES_RQ1 1023 51 #define EHEA_DEF_ENTRIES_RQ2 1023 65 #define EHEA_SG_RQ2 0 66 #define EHEA_SG_RQ3 0 75 #define EHEA_PD_ID 0xaabcdeff 84 #define EHEA_SPEED_AUTONEG 0 [all …]
|
/linux-6.12.1/Documentation/misc-devices/ |
D | apds990x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 ----------- 48 ----- 52 RO - shows detected chip type and version 55 RW - enable / disable chip. Uses counting logic 58 0 disables the chip 60 RO - measured lux value 65 RO - lux0_input max value. 72 RW - measurement rate in Hz 75 RO - supported measurement rates [all …]
|
/linux-6.12.1/drivers/net/ethernet/pasemi/ |
D | pasemi_mac_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2006-2008 PA Semi, Inc 19 { "rx-drops" }, 20 { "rx-bytes" }, 21 { "rx-packets" }, 22 { "rx-broadcast-packets" }, 23 { "rx-multicast-packets" }, 24 { "rx-crc-errors" }, 25 { "rx-undersize-errors" }, 26 { "rx-oversize-errors" }, [all …]
|
/linux-6.12.1/drivers/hwmon/ |
D | da9052-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/hwmon-sysfs.h> 42 [DA9052_ADC_TSI_XN] = "ADC TS X-", 43 [DA9052_ADC_TSI_YN] = "ADC TS Y-", 45 [DA9052_ADC_VBBAT] = "BACK-UP BATTERY VOLTAGE", 51 return DIV_ROUND_CLOSEST(value * 2000, 1023) + 2500; in volt_reg_to_mv() 57 return DIV_ROUND_CLOSEST(value * 2500, 1023); in input_reg_to_mv() 63 return DIV_ROUND_CLOSEST(value * 5000, 1023); in vbbat_reg_to_mv() 68 return DIV_ROUND_CLOSEST(value * hwmon->tsiref_mv, 1023); in input_tsireg_to_mv() 81 DA9052_ADCCONT_AUTOVDDEN, 0); in da9052_disable_vddout_channel() [all …]
|
/linux-6.12.1/drivers/gpu/drm/meson/ |
D | meson_viu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 * - OSD1 RGB565/RGB888/xRGB8888 scanout 25 * - RGB conversion to x/cb/cr 26 * - Progressive or Interlace buffer scanout 27 * - OSD1 Commit on Vsync 28 * - HDR OSD matrix for GXL/GXM 32 * - BGR888/xBGR8888/BGRx8888/BGRx8888 modes 33 * - YUV4:2:2 Y0CbY1Cr scanout 34 * - Conversion to YUV 4:4:4 from 4:2:2 input 35 * - Colorkey Alpha matching [all …]
|
/linux-6.12.1/drivers/input/touchscreen/ |
D | da9052_tsi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #define TSI_PEN_DOWN_STATUS 0x40 30 da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 0, on); in da9052_ts_adc_toggle() 31 tsi->adc_on = on; in da9052_ts_adc_toggle() 38 if (!tsi->stopped) { in da9052_ts_pendwn_irq() 40 da9052_disable_irq_nosync(tsi->da9052, DA9052_IRQ_PENDOWN); in da9052_ts_pendwn_irq() 41 da9052_enable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); in da9052_ts_pendwn_irq() 45 schedule_delayed_work(&tsi->ts_pen_work, HZ / 50); in da9052_ts_pendwn_irq() 53 struct input_dev *input = tsi->dev; in da9052_ts_read() 58 ret = da9052_reg_read(tsi->da9052, DA9052_TSI_X_MSB_REG); in da9052_ts_read() [all …]
|
D | ipaq-micro-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <linux/mfd/ipaq-micro.h> 32 input_report_abs(ts->input, ABS_X, in micro_ts_receive() 34 input_report_abs(ts->input, ABS_Y, in micro_ts_receive() 35 be16_to_cpup((__be16 *) &msg[0])); in micro_ts_receive() 36 input_report_key(ts->input, BTN_TOUCH, 1); in micro_ts_receive() 37 input_sync(ts->input); in micro_ts_receive() 38 } else if (len == 0) { in micro_ts_receive() 39 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive() 40 input_report_abs(ts->input, ABS_Y, 0); in micro_ts_receive() [all …]
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | f_sourcesink.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_sourcesink.c - USB peripheral source/sink configuration driver 5 * Copyright (C) 2003-2008 David Brownell 30 * plus two that support control-OUT tests. If the optional "autoresume" 32 * test harness from USB-IF. 58 /*-------------------------------------------------------------------------*/ 64 .bAlternateSetting = 0, 104 .wMaxPacketSize = cpu_to_le16(1023), 114 .wMaxPacketSize = cpu_to_le16(1023), 194 .bMaxBurst = 0, [all …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | configfs-usb-gadget-sourcesink | 1 What: /config/usb-gadget/gadget/functions/SourceSink.name 8 pattern 0 (all zeros), 1 (mod63), 2 (none) 10 isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss) 11 isoc_mult 0..2 (hs/ss only) 12 isoc_maxburst 0..15 (ss only)
|