/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A 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()
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | iov-padding | 23 seq=$(basename $0) 32 trap "_cleanup; exit \$status" 0 1 2 3 15 47 # - Offset 4096, length 1023 * 512 + 512: Fully aligned to 4k 48 # - Offset 4096, length 1023 * 512 + 4096: Head is aligned, tail is not 49 # - Offset 512, length 1023 * 512 + 512: Neither head nor tail are aligned 50 # - Offset 512, length 1023 * 512 + 4096: Tail is aligned, head is not 53 length=$((1023 * 512 + $last_element_length)) 56 …echo "== performing 1024-element vectored requests to image (offset: $start_offset; length: $lengt… 59 $QEMU_IO -c 'write -P 1 0 1M' "$TEST_IMG" | _filter_qemu_io 61 # 1023 512-byte buffers, and then one with length $last_element_length [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A 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 …]
|
/openbmc/linux/fs/affs/ |
H A 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 …]
|
/openbmc/u-boot/arch/arm/mach-socfpga/include/mach/ |
H A D | nic301.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 u32 remap; /* 0x0 */ 15 u32 l4mp; /* 0x10 */ 19 u32 lwhps2fpgaregs; /* 0x20 */ 24 u32 usb0; /* 0x80 */ 28 u32 hps2fpgaregs; /* 0x90 */ 32 u32 sdrdata; /* 0xA0 */ 35 u32 periph_id_4; /* 0x1FD0 */ 37 u32 periph_id_0; /* 0x1FE0 */ 41 u32 comp_id_0; /* 0x1FF0 */ [all …]
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A 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 …]
|
/openbmc/linux/lib/ |
H A 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 …]
|
/openbmc/linux/drivers/staging/media/atomisp/i2c/ov5693/ |
H A D | ad5823.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 24 #define AD5823_VCM_ADDR 0x0c 26 #define AD5823_REG_RESET 0x01 27 #define AD5823_REG_MODE 0x02 28 #define AD5823_REG_VCM_MOVE_TIME 0x03 29 #define AD5823_REG_VCM_CODE_MSB 0x04 30 #define AD5823_REG_VCM_CODE_LSB 0x05 31 #define AD5823_REG_VCM_THRESHOLD_MSB 0x06 32 #define AD5823_REG_VCM_THRESHOLD_LSB 0x07 34 #define AD5823_REG_LENGTH 0x1 [all …]
|
/openbmc/linux/arch/arm/vfp/ |
H A 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 …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | float_convd.ref | 2 from double: f64(nan:0x007ff4000000000000) 3 to single: f32(-nan:0xffffffff) (INVALID) 4 to int32: -1 (INVALID) 5 to int64: -1 (INVALID) 6 to uint32: -1 (INVALID) 7 to uint64: -1 (INVALID) 8 from double: f64(-nan:0x00fff8000000000000) 9 to single: f32(-nan:0xffffffff) (OK) 10 to int32: -1 (INVALID) 11 to int64: -1 (INVALID) [all …]
|
/openbmc/linux/net/phonet/ |
H A 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 …]
|
/openbmc/linux/drivers/hid/ |
H A 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 …]
|
H A D | hid-kye.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <asm-generic/unaligned.h> 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), */ [all …]
|
/openbmc/linux/arch/mips/math-emu/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/ibm/ehea/ |
H A 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 …]
|
/openbmc/linux/Documentation/misc-devices/ |
H A 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/eject/eject/ |
H A D | eject-2.1.5-spaces.patch | 3 Upstream-Status: Backport 7 occurrences off '\0##' with the ASCII value of 0##. Requires a writable 9 util-linux package. 11 Signed-off-by: Morgan Little <morgan.little@windriver.com> 12 --- eject/eject.c.ori 2007-06-24 00:08:44 -0700 13 +++ eject/eject.c 2007-06-24 00:12:44 -0700 14 @@ -370,6 +370,30 @@ 20 + * occurrences off '\0##' with the ASCII value of 0##. Requires a writable 22 + * util-linux package. 26 +#define isoctal(a) (((a) & ~7) == '0') [all …]
|
/openbmc/u-boot/include/ |
H A D | fsl_memac.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 4 * Roy Zang <tie-fei.zang@freescale.com> 16 u32 mac_addr_0; /* Lower 32 bits of 48-bit MAC address */ 17 u32 mac_addr_1; /* Upper 16 bits of 48-bit MAC address */ 23 u32 tx_ipg_length; /* Transmitter inter-packet-gap register */ 27 u32 cl_pause_quanta[4]; /* CL01-CL67 pause quanta register */ 28 u32 cl_pause_thresh[4]; /* CL01-CL67 pause thresh register */ 75 u32 rx_1023_l; /* Rx 512 to 1023 oct packet lower */ 76 u32 rx_1023_u; /* Rx 512 to 1023 oct packet upper */ 91 u32 res_1d0[0xc]; [all …]
|
/openbmc/u-boot/drivers/video/meson/ |
H A D | meson_vpu_init.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #define HHI_VDAC_CNTL0 0x2F4 /* 0xbd offset in data sheet */ 15 #define HHI_VDAC_CNTL1 0x2F8 /* 0xbe offset in data sheet */ 16 #define HHI_HDMI_PHY_CNTL0 0x3a0 /* 0xe8 offset in data sheet */ 24 writel(mux, priv->io_base + _REG(VPU_VIU_VENC_MUX_CTRL)); in meson_vpp_setup_mux() 28 0x15561500, 0x14561600, 0x13561700, 0x12561800, 29 0x11551a00, 0x11541b00, 0x10541c00, 0x0f541d00, 30 0x0f531e00, 0x0e531f00, 0x0d522100, 0x0c522200, 31 0x0b522300, 0x0b512400, 0x0a502600, 0x0a4f2700, 32 0x094e2900, 0x084e2a00, 0x084d2b00, 0x074c2c01, [all …]
|
/openbmc/linux/drivers/net/ethernet/pasemi/ |
H A 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 …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | da9052-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/hwmon-sysfs.h> 43 [DA9052_ADC_TSI_XN] = "ADC TS X-", 44 [DA9052_ADC_TSI_YN] = "ADC TS Y-", 46 [DA9052_ADC_VBBAT] = "BACK-UP BATTERY VOLTAGE", 52 return DIV_ROUND_CLOSEST(value * 2000, 1023) + 2500; in volt_reg_to_mv() 58 return DIV_ROUND_CLOSEST(value * 2500, 1023); in input_reg_to_mv() 64 return DIV_ROUND_CLOSEST(value * 5000, 1023); in vbbat_reg_to_mv() 69 return DIV_ROUND_CLOSEST(value * hwmon->tsiref_mv, 1023); in input_tsireg_to_mv() 82 DA9052_ADCCONT_AUTOVDDEN, 0); in da9052_disable_vddout_channel() [all …]
|
/openbmc/linux/drivers/gpu/drm/meson/ |
H A 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 …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | pmbus_utils_tests.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 // Linear format: Exponent is negative: 0b1'1111 in TEST() 31 voutModeValue = 0b0001'1111u; in TEST() 34 EXPECT_EQ(parameter, -1); in TEST() 36 // Linear format: Exponent is negative: 0b1'0000 in TEST() 37 voutModeValue = 0b1001'0000u; in TEST() 40 EXPECT_EQ(parameter, -16); in TEST() 42 // Linear format: Exponent is positive: 0b0'1111 in TEST() 43 voutModeValue = 0b1000'1111u; in TEST() 48 // Linear format: Exponent is positive: 0b0'0001 in TEST() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A 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 …]
|