/linux/Documentation/devicetree/bindings/gpu/host1x/ |
H A D | nvidia,tegra234-nvdec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra234-nvdec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Thierry Reding <treding@gmail.com> 16 - Mikko Perttunen <mperttunen@nvidia.com> 20 pattern: "^nvdec@[0-9a-f]*$" 24 - nvidia,tegra234-nvdec 32 clock-names: 34 - const: nvdec [all …]
|
/linux/Documentation/firmware-guide/acpi/ |
H A D | chromeos-acpi-device.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Chrome OS ACPI Device 7 Hardware functionality specific to Chrome OS is exposed through a Chrome OS ACPI device. 8 The plug and play ID of a Chrome OS ACPI device is GGL0001 and the hardware ID is 11 .. flat-table:: Supported ACPI Objects 13 :header-rows: 1 15 * - Object 16 - Description 18 * - CHSW 19 - Chrome OS switch positions [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | riscv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 static void riscv_writel(struct tegra_drm_riscv *riscv, u32 value, u32 offset) in riscv_writel() argument 34 writel(value, riscv->regs + offset); in riscv_writel() 39 struct tegra_drm_riscv_descriptor *bl = &riscv->bl_desc; in tegra_drm_riscv_read_descriptors() 40 struct tegra_drm_riscv_descriptor *os = &riscv->os_desc; in tegra_drm_riscv_read_descriptors() local 41 const struct device_node *np = riscv->dev->of_node; in tegra_drm_riscv_read_descriptors() 47 dev_err(riscv->dev, "failed to read " name ": %d\n", err); \ in tegra_drm_riscv_read_descriptors() 51 READ_PROP("nvidia,bl-manifest-offset", &bl->manifest_offset); in tegra_drm_riscv_read_descriptors() 52 READ_PROP("nvidia,bl-code-offset", &bl->code_offset); in tegra_drm_riscv_read_descriptors() 53 READ_PROP("nvidia,bl-data-offset", &bl->data_offset); in tegra_drm_riscv_read_descriptors() [all …]
|
H A D | falcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/dma-mapping.h> 20 static void falcon_writel(struct falcon *falcon, u32 value, u32 offset) in falcon_writel() argument 22 writel(value, falcon->regs + offset); in falcon_writel() 29 return readl_poll_timeout(falcon->regs + FALCON_IDLESTATE, value, in falcon_wait_idle() 37 return readl_poll_timeout(falcon->regs + FALCON_DMATRFCMD, value, in falcon_dma_wait_idle() 43 unsigned long offset, in falcon_copy_chunk() argument 59 falcon_writel(falcon, offset, FALCON_DMATRFMOFFS); in falcon_copy_chunk() 69 u32 *virt = falcon->firmware.virt; in falcon_copy_firmware_image() 73 for (i = 0; i < firmware->size / sizeof(u32); i++) in falcon_copy_firmware_image() [all …]
|
/linux/fs/adfs/ |
H A D | adfs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 /* Internal data structures for ADFS */ 14 /* RISC OS 12-bit filetype is stored in load_address[19:8] */ 30 * adfs file system inode data in memory 36 __u32 loadaddr; /* RISC OS load address */ 37 __u32 execaddr; /* RISC OS exec address */ 38 unsigned int attr; /* RISC OS permissions */ 49 return (ADFS_I(inode)->loadaddr & 0xfff00000) == 0xfff00000; in adfs_inode_is_stamped() 53 * Forward-declare this 59 * ADFS file system superblock data in memory [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | nvram.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 * lnx,oops-log partition max size is 4000, header version > 4000 will 29 long size; /* size of data portion (excluding err_log_info) */ 30 long index; /* offset of data portion of partition */ 31 bool os_partition; /* partition initialized by OS, not FW */ 58 return -ENODEV; in mmio_nvram_init() 70 /* Return partition offset in nvram */ 75 extern void pmac_xpram_write(int xpaddr, u8 data); 77 /* Initialize NVRAM OS partition */ 88 /* Write to NVRAM OS partition */
|
/linux/drivers/watchdog/ |
H A D | sa1100_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * "AS-IS" and at no charge. 34 #define REG_OSMR0 0x0000 /* OS timer Match Reg. 0 */ 35 #define REG_OSMR1 0x0004 /* OS timer Match Reg. 1 */ 36 #define REG_OSMR2 0x0008 /* OS timer Match Reg. 2 */ 37 #define REG_OSMR3 0x000c /* OS timer Match Reg. 3 */ 38 #define REG_OSCR 0x0010 /* OS timer Counter Reg. */ 39 #define REG_OSSR 0x0014 /* OS timer Status Reg. */ 40 #define REG_OWER 0x0018 /* OS timer Watch-dog Enable Reg. */ 41 #define REG_OIER 0x001C /* OS timer Interrupt Enable Reg. */ [all …]
|
/linux/arch/s390/appldata/ |
H A D | appldata_os.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Data gathering module for Linux-VM Monitor Stream, Stage 1. 4 * Collects misc. OS related data (CPU utilization, running processes). 29 * OS data 31 * This is accessed as binary data by z/VM. If changes to it can't be avoided, 54 u32 sync_count_1; /* after VM collected the record data, */ 58 (possibly corrupt) data */ 61 u32 per_cpu_size; /* size of the per-cpu data struct */ 62 u32 cpu_offset; /* offset of the first per-cpu data struct */ 73 /* per cpu data */ [all …]
|
/linux/tools/testing/selftests/drivers/sdsi/ |
H A D | sdsi_test.py | 2 # SPDX-License-Identifier: GPL-2.0 9 import os 38 return os.path.isfile(kmemleak) 43 result = subprocess.check_output(('grep', '-q', MODULE_NAME), stdin=lsmod_p.stdout) 59 assert os.path.isfile(folder + "guid") == True 60 assert os.path.isfile(folder + "provision_akc") == True 61 assert os.path.isfile(folder + "provision_cap") == True 62 assert os.path.isfile(folder + "state_certificate") == True 63 assert os.path.isfile(folder + "registers") == True 67 mode = os.stat(folder + "guid").st_mode & 0o777 [all …]
|
/linux/arch/powerpc/platforms/ps3/ |
H A D | os-area.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * PS3 flash memory os area. 34 * struct os_area_header - os area header segment. 37 * @db_area_offset: Starting segment number of other os database area. 43 * segments from the start of the os area (top of the header). These are 44 * better thought of as segment numbers. The os area of the os area is 45 * reserved for the os image. 70 * struct os_area_params - os area params segment. 83 * The ps3 rtc maintains a read-only value that approximates seconds since 84 * 2000-01-01 00:00:00 UTC. [all …]
|
/linux/include/linux/ |
H A D | pe.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * - 0x1: initrd loading from the LINUX_EFI_INITRD_MEDIA_GUID device path, 17 * - 0x2: initrd loading using the initrd= command line option, where the file 30 * (https://lore.kernel.org/all/efd6f2d4-547c-1378-1faa-53c044dbd297@gmail.com/) 36 * LINUX_PE_MAGIC appears at offset 0x38 into the MS-DOS header of EFI bootable 129 #define IMAGE_SCN_TYPE_NO_PAD 0x00000008 /* don't pad - obsolete */ 132 #define IMAGE_SCN_CNT_INITIALIZED_DATA 0x00000040 /* .data */ 137 #define IMAGE_SCN_LNK_REMOVE 0x00000800 /* .o only - scn to be rm'd*/ 138 #define IMAGE_SCN_LNK_COMDAT 0x00001000 /* .o only - COMDAT data */ 141 #define IMAGE_SCN_GPREL 0x00008000 /* global pointer referenced data */ [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_bpftool_synctypes.py | 2 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 8 import os, sys 10 LINUX_ROOT = os.path.abspath(os.path.join(__file__, 11 os.pardir, os.pardir, os.pardir, os.pardir, os.pardir)) 12 BPFTOOL_DIR = os.getenv('BPFTOOL_DIR', 13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')) 14 BPFTOOL_BASHCOMP_DIR = os.getenv('BPFTOOL_BASHCOMP_DIR', 15 os.path.join(BPFTOOL_DIR, 'bash-completion')) 16 BPFTOOL_DOC_DIR = os.getenv('BPFTOOL_DOC_DIR', 17 os.path.join(BPFTOOL_DIR, 'Documentation')) [all …]
|
/linux/drivers/hid/ |
H A D | hid-wiimote.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 7 * Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com> 54 #define WIIPROTO_FLAG_LED(num) (WIIPROTO_FLAG_LED1 << (num - 1)) 104 __u8 data[HID_MAX_BUFFER_SIZE]; member 137 /* calibration/cache data */ 273 extern int wiimote_cmd_write(struct wiimote_data *wdata, __u32 offset, 275 extern ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, 278 #define wiiproto_req_rreg(wdata, os, sz) \ argument 279 wiiproto_req_rmem((wdata), false, (os), (sz)) 280 #define wiiproto_req_reeprom(wdata, os, sz) \ argument [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | omap_hwmod.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2011 Nokia Corporation 6 * Copyright (C) 2011-2012 Texas Instruments, Inc. 15 * ------------ 21 * TI's documentation, on-chip devices are referred to as "OMAP 26 * Most of the address and data flow between modules is via OCP-based 32 * OMAP hwmod provides a consistent way to describe the on-chip 42 * ----------- 46 * build a struct platform_device using omap_hwmod data, and that is 47 * currently how hwmod data is communicated to drivers and to the [all …]
|
/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_main.c | 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 49 * rsi_dbg() - This function outputs informational messages. 51 * @fmt: printf-style format for output message. 75 return "Wi-Fi alone"; in opmode_str() 83 return "Wi-Fi STA + BT EDR"; in opmode_str() 85 return "Wi-Fi STA + BT LE"; in opmode_str() 87 return "Wi-Fi STA + BT DUAL"; in opmode_str() 89 return "Wi-Fi AP + BT EDR"; in opmode_str() 91 return "Wi-Fi AP + BT DUAL"; in opmode_str() 103 common->lmac_ver.major, common->lmac_ver.minor, in rsi_print_version() [all …]
|
/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_admin_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved. 13 /* customer metrics - in correlation with 101 /* current queue head pointer is updated in OS memory upon sq 105 /* current queue head pointer is updated in OS memory for each sq 150 * 1 : ctrl_data - control buffer address valid 151 * 2 : ctrl_data_indirect - control buffer address 159 /* used in ena_admin_aq_entry. Can point directly to control data, or to a 173 * 7:5 : sq_direction - 0x1 - Tx; 0x2 - Rx 224 * 7:5 : sq_direction - 0x1 - Tx, 0x2 - Rx [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-chromeos-acpi | 32 Returns switch position for Chrome OS specific hardware 56 Returns firmware version for the read-only portion of the 72 Returns type of the GPIO signal for the Chrome OS specific 121 Returns the SHA-1 or SHA-256 hash that is read out of the 123 is exported via ACPI so the OS can verify that the Management 132 Returns offset in CMOS bank 0 of the verified boot non-volatile 134 (that is, 'offset = 0' is the byte following the 14 bytes of 135 clock data). 142 Return the size in bytes of the verified boot non-volatile 150 Returns the verified boot data block shared between the
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_rogue_fwif.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 42 /* String used in pvrdebug -h output */ 100 u32 data __aligned(8); 140 /* Firmware per-DM HWR states */ 155 /* DM was identified as over-running and causing HWR */ 157 /* DM was innocently affected by another DM over-running which caused HWR */ 172 /* Firmware is clearing up connection data*/ 177 /* OS' connection state */ 179 /* OS is offline */ 181 /* OS's KM driver is setup and waiting */ [all …]
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_osdep.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 4 /* glue for the OS independent part of e1000 22 #define GBE_CONFIG_FLASH_WRITE(base, offset, count, data) \ argument 23 (iowrite16_rep(base + offset, data, count)) 25 #define GBE_CONFIG_FLASH_READ(base, offset, count, data) \ argument 26 (ioread16_rep(base + (offset << 1), data, count)) 29 (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \ 33 (writel((value), (hw->hw_addr + ((hw->mac_type >= e1000_82543) \ 36 #define E1000_WRITE_REG_ARRAY(a, reg, offset, value) ( \ argument [all …]
|
/linux/drivers/usb/typec/ucsi/ |
H A D | displayport.c | 1 // SPDX-License-Identifier: GPL-2.0 19 struct typec_displayport_data data; member 23 int offset; member 35 * if the system supports alternate modes, the OS may not be aware of them. 37 * In most cases however, the OS will be able to see the supported alternate 45 * -EOPNOTSUPP. 51 struct ucsi *ucsi = dp->con->ucsi; in ucsi_displayport_enter() 57 mutex_lock(&dp->con->lock); in ucsi_displayport_enter() 59 if (!dp->override && dp->initialized) { in ucsi_displayport_enter() 62 dev_warn(&p->dev, in ucsi_displayport_enter() [all …]
|
/linux/drivers/iio/common/cros_ec_sensors/ |
H A D | cros_ec_sensors.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cros_ec_sensors - Driver for Chrome OS Embedded Controller sensors. 7 * This driver uses the cros-ec interface to communicate with the Chrome OS 8 * EC about sensors data. Data access is presented through iio sysfs. 28 /* State data for ec_sensors iio driver. */ 41 s16 data = 0; in cros_ec_sensors_read() local 45 int idx = chan->scan_index; in cros_ec_sensors_read() 47 mutex_lock(&st->core.cmd_lock); in cros_ec_sensors_read() 51 ret = st->core.read_ec_sensors_data(indio_dev, 1 << idx, &data); in cros_ec_sensors_read() 55 *val = data; in cros_ec_sensors_read() [all …]
|
/linux/tools/perf/scripts/python/ |
H A D | intel-pt-events.py | 1 # SPDX-License-Identifier: GPL-2.0 2 # intel-pt-events.py: Print Intel PT Events including Power Events and PTWRITE 3 # Copyright (c) 2017-2021, Intel Corporation. 17 import os 26 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 27 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') 47 glb_cpu = -1 77 ap.add_argument("--insn-trace", action='store_true') 78 ap.add_argument("--src-trace", action='store_true') 79 ap.add_argument("--all-switch-events", action='store_true') [all …]
|
H A D | net_dropmonitor.py | 2 # SPDX-License-Identifier: GPL-2.0 6 import os 9 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 10 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') 38 start, end = -1, len(kallsyms) 46 # Now (start == -1 or kallsyms[start][0] <= loc) 47 # and (start == len(kallsyms) - 1 or loc < kallsyms[start + 1][0]) 50 return (name, loc - symloc) 55 print("%25s %25s %25s" % ("LOCATION", "OFFSET", "COUNT")) 64 print("Starting trace (Ctrl-C to dump results)") [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_rx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * NXP Wireless LAN device driver: station RX data handling 5 * Copyright 2011-2020 NXP 31 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp() 32 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp() 34 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 35 if (arp->hdr.ar_op == htons(ARPOP_REPLY) || in mwifiex_discard_gratuitous_arp() 36 arp->hdr.ar_op == htons(ARPOP_REQUEST)) { in mwifiex_discard_gratuitous_arp() 37 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp() 42 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() [all …]
|
/linux/drivers/platform/x86/intel/ |
H A D | vsec_tpmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 * Intel Out-of-Band (OOB) device, which is handled by the Intel VSEC 42 * "intel_vsec.tpmi-" prefix which is followed by a specific name of the 43 * given PM feature (for example, "intel_vsec.tpmi-rapl.0"). 64 * struct intel_tpmi_pfs_entry - TPMI PM Feature Structure (PFS) entry 65 * @tpmi_id: TPMI feature identifier (what the feature is and its data format). 68 * @entry_size: Interface instance entry size in 32-bit words. 69 * @cap_offset: Offset from the PM_Features base address to the base of the PM VSEC 71 * @attribute: Feature attribute: 0=BIOS. 1=OS. 2-3=Reserved. 74 * Represents one TPMI feature entry data in the PFS retrieved as is [all …]
|