/openbmc/linux/drivers/acpi/acpica/ |
H A D | acpredef.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 4 * Name: acpredef - Information table for ACPI predefined methods and objects 6 * Copyright (C) 2000 - 2023, Intel Corp. 19 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: 25 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed: 32 * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each 35 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length 44 * Zero-length parent package is allowed: 55 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length 59 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | samsung-sxgbe.txt | 4 - compatible: Should be "samsung,sxgbe-v2.0a" 5 - reg: Address and length of the register set for the device 6 - interrupts: Should contain the SXGBE interrupts 7 These interrupts are ordered by fixed and follows variable 9 index 0 - this is fixed common interrupt of SXGBE and it is always 11 index 1 to 25 - 8 variable transmit interrupts, variable 16 receive interrupts 13 - phy-mode: String, operation mode of the PHY interface. 15 - samsung,pbl: Integer, Programmable Burst Length. 17 - samsung,burst-map: Integer, Program the possible bursts supported by sxgbe 18 This is an integer and represents allowable DMA bursts when fixed burst. [all …]
|
H A D | fsl-tsec-phy.txt | 5 the definition of the PHY node in booting-without-of.txt for an example 9 - reg : Offset and length of the register set for the device, and optionally 10 the offset and length of the TBIPA register (TBI PHY address 14 - compatible : Should define the compatible device type for the 16 - "fsl,gianfar-tbi" 17 - "fsl,gianfar-mdio" 18 - "fsl,etsec2-tbi" 19 - "fsl,etsec2-mdio" 20 - "fsl,ucc-mdio" 21 - "fsl,fman-mdio" [all …]
|
/openbmc/linux/sound/usb/line6/ |
H A D | midibuf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at) 18 message_length = -1; in midibuf_message_length() 20 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 22 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 24 static const int length[] = { -1, 2, 2, 2, -1, -1, 1, 1, 1, -1, in midibuf_message_length() local 25 1, 1, 1, -1, 1, 1 in midibuf_message_length() 27 message_length = length[code & 0x0f]; in midibuf_message_length() 35 return (this->pos_read == this->pos_write) && !this->full; in midibuf_is_empty() 40 return this->full; in midibuf_is_full() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | verifier_log.c | 1 // SPDX-License-Identifier: GPL-2.0 61 bpf_object__for_each_program(prog, skel->obj) { in verif_log_subtest() 74 insns = bpf_program__insns(skel->progs.good_prog); in verif_log_subtest() 75 insn_cnt = bpf_program__insn_cnt(skel->progs.good_prog); in verif_log_subtest() 85 memset(logs.reference + fixed_log_sz, 0, sizeof(logs.reference) - fixed_log_sz); in verif_log_subtest() 88 * we get -ENOSPC and beginning of the full verifier log. This only in verif_log_subtest() 93 * But if provided too short log buf, kernel will NULL-out log->ubuf in verif_log_subtest() 96 * Long story short, we do the following -ENOSPC test only for in verif_log_subtest() 101 opts.log_level = log_level | 8; /* fixed-length log */ in verif_log_subtest() 106 if (!ASSERT_EQ(prog_fd, -ENOSPC, "unexpected_log_fixed_prog_load_result")) { in verif_log_subtest() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | smu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * These commands are used to retrieve the sdb-partition-XX datas from 26 * the SMU. The length is always 2. First byte is the subcommand code 31 * - 0..1 : partition address 32 * - 2 : a byte containing the partition ID 33 * - 3 : length (maybe other bits are rest of header ?) 53 * --------------------- 66 * ------------------------ 115 * 0: bus number (from device-tree usually, SMU has lots of busses !) 119 * 3: subaddress length (0..3) [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | wlan_bssdef.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 40 u32 length; /* Length of structure */ member 62 u8 length; member 66 /* Length is the 4 bytes multiples of the sum of 72 * Except for ie_length, all other fields are fixed length. Therefore, we can 113 u32 length; /* Length of this structure */ member 114 u32 key_index; /* 0 is the per-client key, 1-N are the global keys */ 115 u32 key_length; /* length of key in bytes */ 116 u8 key_material[16];/* variable length depending on above field */ [all …]
|
/openbmc/openbmc-tools/dbus-pcap/ |
H A D | dbus-pcap | 3 # SPDX-License-Identifier: Apache-2.0 18 "FixedHeader", "endian, type, flags, version, length, cookie" 20 CookedHeader = namedtuple("CookedHeader", "fixed, fields") 93 FIXED = { variable in DBusTypeCategory 150 if sig in DBusTypeCategory.FIXED.value: 189 prop.nature - (self.offset & (prop.nature - 1)) 200 assert tc.type.value in DBusTypeCategory.FIXED.value 210 if self.offset - self.stash[1] != len(self.stash[0]): 212 "(self.offset - self.stash[1]): %d, len(self.stash[0]): %d" 213 % (self.offset - self.stash[1], len(self.stash[0])), [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | firmware_update.h | 1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 22 /** @brief Length of QueryDownstreamDevices response defined in DSP0267_1.1.0 23 * Table 15 - QueryDownstreamDevices command format. 33 /** @brief Length of QueryDownstreamIdentifiers request defined in DSP0267_1.1.0 34 * Table 16 - QueryDownstreamIdentifiers command format. 41 /** @brief Minimum length of QueryDownstreamIdentifiers response from DSP0267_1.1.0 47 * 4 bytes for downstream devices length 52 /** @brief Minimum length of device descriptor, 2 bytes for descriptor type, 53 * 2 bytes for descriptor length and at least 1 byte of descriptor data 57 /** @brief Length of GetDownstreamFirmwareParameters request defined in DSP0267_1.1.0 [all …]
|
/openbmc/linux/drivers/staging/wlan-ng/ |
H A D | p80211mgmt.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */ 7 * -------------------------------------------------------------------- 9 * linux-wlan 11 * -------------------------------------------------------------------- 13 * Inquiries regarding the linux-wlan Open Source project can be 17 * info@linux-wlan.com 18 * http://www.linux-wlan.com 20 * -------------------------------------------------------------------- 25 * -------------------------------------------------------------------- 31 * - Constant values are always in HOST byte order. To assign [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | hugepage-mmap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * hugepage-mmap: 8 * like /mnt) using the command mount -t hugetlbfs nodev /mnt. In this 13 * huge pages. That means that if one requires a fixed address, a huge page 14 * aligned address starting with 0x800000... will be required. If a fixed 26 #define LENGTH (256UL*1024*1024) macro 47 for (i = 0; i < LENGTH; i++) in write_bytes() 56 for (i = 0; i < LENGTH; i++) in read_bytes() 69 fd = memfd_create("hugepage-mmap", MFD_HUGETLB); in main() 75 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); in main() [all …]
|
H A D | hugepage-shm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * hugepage-shm: 12 * huge pages. That means that if one requires a fixed address, a huge page 13 * aligned address starting with 0x800000... will be required. If a fixed 38 #define LENGTH (256UL*1024*1024) macro 57 shmid = shmget(2, LENGTH, SHM_HUGETLB | IPC_CREAT | SHM_R | SHM_W); in main() 65 if (shmaddr == (char *)-1) { in main() 73 for (i = 0; i < LENGTH; i++) { in main() 81 for (i = 0; i < LENGTH; i++) in main()
|
/openbmc/linux/drivers/misc/mei/ |
H A D | client.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2003-2018, Intel Corporation. All rights reserved. 37 * mei_me_cl_is_active - check whether me client is active in the fw 45 return !list_empty_careful(&me_cl->list); in mei_me_cl_is_active() 49 * mei_me_cl_uuid - return me client protocol name (uuid) 57 return &me_cl->props.protocol_name; in mei_me_cl_uuid() 61 * mei_me_cl_ver - return me client protocol version 69 return me_cl->props.protocol_version; in mei_me_cl_ver() 73 * mei_me_cl_max_conn - return me client max number of connections 81 return me_cl->props.max_number_of_connections; in mei_me_cl_max_conn() [all …]
|
/openbmc/linux/include/net/ |
H A D | nsh.h | 10 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 11 * |Ver|O|U| TTL | Length |U|U|U|U|MD Type| Next Protocol | 12 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 14 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 18 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 27 * discussion of MPLS-related forwarding requirements. 32 * example [I-D.ietf-sfc-oam-framework] for one approach). 34 * The O bit MUST be set for OAM packets and MUST NOT be set for non-OAM 65 * Length: The total length, in 4-byte words, of NSH including the Base 66 * Header, the Service Path Header, the Fixed Length Context Header or [all …]
|
/openbmc/qemu/qapi/ |
H A D | audio.json | 1 # -*- mode: python -*- 4 # Copyright (C) 2015-2019 Zoltán Kővágó <DirtY.iCE.hu@gmail.com> 7 # See the COPYING file in the top-level directory. 19 # @mixing-engine: use QEMU's mixing engine to mix all streams inside 21 # backend. When set to off, fixed-settings must be also off 24 # @fixed-settings: use fixed settings for host input/output. When 28 # @frequency: frequency to use when using fixed settings (default 31 # @channels: number of channels when using fixed settings (default 2) 35 # @format: sample format to use when using fixed settings (default 38 # @buffer-length: the buffer length in microseconds [all …]
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | wlan_bssdef.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. 37 u32 Length; /* Length of structure */ member 39 u32 HopSet; /* to one if non-802.11 */ 48 u32 Length; /* Length of structure */ member 70 u32 Length; member 132 u32 Length; member 145 u32 Length; /* Length of this structure */ member 147 u32 KeyLength; /* length of key in bytes */ 150 u8 KeyMaterial[32]; /* variable length */ [all …]
|
/openbmc/linux/include/linux/can/ |
H A D | length.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2020 Marc Kleine-Budde <kernel@pengutronix.de> 19 * --------------------------------------------------------- 27 * Data Length Code (DLC) 4 37 * --------------------------------------------------------- 48 * Data length code (DLC) 4 55 * Size of a CAN-FD Standard Frame in bits 58 * --------------------------------------------------------- 69 * Data length code (DLC) 4 76 * Size of a CAN-FD Extended Frame in bits [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | altera_tse.c | 19 #include <asm/dma-mapping.h> 41 next->descriptor_control = next->descriptor_control & in alt_sgdma_construct_descriptor() 45 desc->source = virt_to_phys(read_addr); in alt_sgdma_construct_descriptor() 46 desc->destination = virt_to_phys(write_addr); in alt_sgdma_construct_descriptor() 47 desc->next = virt_to_phys(next); in alt_sgdma_construct_descriptor() 48 desc->bytes_to_transfer = length_or_eop; in alt_sgdma_construct_descriptor() 52 * - Set "owned by hardware" bit in alt_sgdma_construct_descriptor() 53 * - Optionally set "generate EOP" bit in alt_sgdma_construct_descriptor() 54 * - Optionally set the "read from fixed address" bit in alt_sgdma_construct_descriptor() 55 * - Optionally set the "write to fixed address bit (which serves in alt_sgdma_construct_descriptor() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/nvmem/layouts/ |
H A D | fixed-cell.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/fixed-cell.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Fixed offset & size NVMEM cell 10 - Rafał Miłecki <rafal@milecki.pl> 11 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 16 - const: mac-base 20 It can be stored in a plain binary format (cell length 6) or as an 21 ASCII text like "00:11:22:33:44:55" (cell length 17). [all …]
|
/openbmc/linux/fs/smb/server/ |
H A D | smb2misc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 if (hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR) in check_smb2_hdr() 55 * The size of the variable area depends on the offset and length fields 57 * with no variable length info, show an offset of zero for the offset field. 82 * Set length of the data area and the offset to arguments. 95 * of the data buffer offset and data buffer length for the particular in smb2_get_data_area_len() 98 switch (hdr->Command) { in smb2_get_data_area_len() 100 *off = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferOffset); in smb2_get_data_area_len() 101 *len = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferLength); in smb2_get_data_area_len() 105 le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathOffset), in smb2_get_data_area_len() [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | radiotap-headers.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ------------------------------------ 10 Radiotap headers are variable-length and extensible, you can get most of the 19 ----------------------- 21 There is a fixed portion at the start which contains a u32 bitmap that defines 29 < 8-byte ieee80211_radiotap_header > 44 -------------------------- 46 After the fixed part of the header, the arguments follow for each argument 50 - the arguments are all stored little-endian! 52 - the argument payload for a given argument index has a fixed size. So [all …]
|
/openbmc/linux/Documentation/fb/ |
H A D | api.rst | 9 --------------- 12 with frame buffer devices. In-kernel APIs between device drivers and the frame 22 --------------- 24 Device and driver capabilities are reported in the fixed screen information 36 - FB_CAP_FOURCC 44 -------------------- 46 Pixels are stored in memory in hardware-dependent formats. Applications need 58 - FB_TYPE_PACKED_PIXELS 64 Padding at end of lines may be present and is then reported through the fixed 67 - FB_TYPE_PLANES [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | nuvoton,npcm750-clk.txt | 8 There are six fixed clocks that are generated outside the BMC. All clocks are of 9 a known fixed value that cannot be changed. clk_refclk, clk_mcbypck and 17 dt-bindings/clock/nuvoton,npcm7xx-clock.h 22 - compatible: "nuvoton,npcm750-clk" : for clock controller of Nuvoton 25 - reg: physical base address of the clock controller and length of 28 - #clock-cells: should be 1. 32 clk: clock-controller@f0801000 { 33 compatible = "nuvoton,npcm750-clk"; 34 #clock-cells = <1>; 36 clock-names = "refclk", "sysbypck", "mcbypck"; [all …]
|
/openbmc/linux/rust/kernel/ |
H A D | print.rs | 1 // SPDX-License-Identifier: GPL-2.0 7 //! Reference: <https://www.kernel.org/doc/html/latest/core-api/printk-basics.html> 25 ) -> *mut c_char { in rust_fmt_argument() 40 /// The length we copy from the `KERN_*` kernel prefixes. 43 /// The length of the fixed format strings. 44 pub const LENGTH: usize = 10; constant 46 /// Generates a fixed format string for the kernel's [`_printk`]. 52 const fn generate(is_cont: bool, prefix: &[u8; 3]) -> [u8; LENGTH] { in generate() argument 62 let suffix: &[u8; LENGTH - LENGTH_PREFIX] = if is_cont { 74 // Generate the format strings at compile-time. [all …]
|
/openbmc/linux/arch/x86/include/uapi/asm/ |
H A D | sgx.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright(c) 2016-20 Intel Corporation. 12 * enum sgx_page_flags - page control flags 40 * struct sgx_enclave_create - parameter structure for the 49 * struct sgx_enclave_add_pages - parameter structure for the 53 * @length: length of the data (multiple of the page size) 61 __u64 length; member 68 * struct sgx_enclave_init - parameter structure for the 77 * struct sgx_enclave_provision - parameter structure for the 86 * struct sgx_enclave_restrict_permissions - parameters for ioctl [all …]
|