/openbmc/openbmc/poky/scripts/ |
H A D | cve-json-to-text.py | 2 # SPDX-FileCopyrightText: OpenEmbedded Contributors 4 # SPDX-License-Identifier: MIT 7 # Derived from cve-report.py from Oniro (MIT, by Huawei Inc) 22 print("Syntax: %s [-h] [-i inputJSONfile][-o outputfile]" % sys.argv[0]) 51 if opt in ("-h", "--help"): 53 elif opt in ("-a", "--all"): 56 elif opt in ("-i", "--input"): 80 def process_data(filename, data): argument 85 data: dictionary from parsing the JSON file 89 if not "version" in data or data["version"] != "1": [all …]
|
/openbmc/linux/Documentation/dev-tools/ |
H A D | ktap.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 (KTAP) format is specified to extend and alter TAP to support these use-cases. 17 can have subtests), each of which can contain both diagnostic data -- e.g., log 18 lines -- and a final result. The test structure and results are 19 machine-readable, whereas the diagnostic data is unstructured and is there to 22 KTAP output is built from four different types of lines: 23 - Version lines 24 - Plan lines 25 - Test case result lines 26 - Diagnostic lines [all …]
|
/openbmc/gpioplus/src/gpioplus/ |
H A D | handle.cpp | 44 static int build(const Chip& chip, const std::vector<Handle::Line>& lines, in build() argument 47 if (lines.size() > GPIOHANDLES_MAX) in build() 54 for (size_t i = 0; i < lines.size(); ++i) in build() 56 req.lineoffsets[i] = lines[i].offset; in build() 57 req.default_values[i] = lines[i].default_value; in build() 64 memcpy(req.consumer_label, consumer_label.data(), consumer_label.size()); in build() 65 req.lines = lines.size(); in build() 67 int r = chip.getFd().getSys()->gpio_get_linehandle(*chip.getFd(), &req); in build() 70 throw std::system_error(-r, std::generic_category(), in build() 77 Handle::Handle(const Chip& chip, const std::vector<Line>& lines, in Handle() argument [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/ivybridge/ |
H A D | cache.json | 3 "BriefDescription": "L1D data line replacements", 6 "PublicDescription": "Counts the number of lines brought into the L1 data cache.", 46 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in any state.", 53 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in E state", 56 "PublicDescription": "Not rejected writebacks from L1D to L2 cache lines in E state.", 61 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in M state", 64 "PublicDescription": "Not rejected writebacks from L1D to L2 cache lines in M state.", 69 …"BriefDescription": "Count the number of modified Lines evicted from L1 and missed L2. (Non-reject… 77 "BriefDescription": "L2 cache lines filling L2", 80 "PublicDescription": "L2 cache lines filling L2.", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | cache.json | 3 "BriefDescription": "L1D data line replacements", 6 "PublicDescription": "Counts the number of lines brought into the L1 data cache.", 46 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in any state.", 53 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in E state", 56 "PublicDescription": "Not rejected writebacks from L1D to L2 cache lines in E state.", 61 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in M state", 64 "PublicDescription": "Not rejected writebacks from L1D to L2 cache lines in M state.", 69 …"BriefDescription": "Count the number of modified Lines evicted from L1 and missed L2. (Non-reject… 77 "BriefDescription": "L2 cache lines filling L2", 80 "PublicDescription": "L2 cache lines filling L2.", [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | dev-sliced-vbi.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 7 Sliced VBI Data Interface 11 lines of an analog video signal. During VBI no picture information is 15 Sliced VBI devices use hardware to demodulate data transmitted in the 17 :ref:`raw VBI interface <raw-vbi>`. The data is passed as short 28 Different file descriptors must be used to pass raw and sliced VBI data 51 .. _sliced-vbi-format-negotitation: 56 To find out which data services are supported by the hardware 62 lines the hardware can capture or output per frame, or the number of 82 all services may be supported by the hardware on all lines (this is [all …]
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-vbi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2004-2007 Hans Verkuil <hverkuil@xs4all.nl> 8 #include "ivtv-driver.h" 9 #include "ivtv-i2c.h" 10 #include "ivtv-ioctl.h" 11 #include "ivtv-queue.h" 12 #include "ivtv-cards.h" 13 #include "ivtv-vbi.h" 17 struct v4l2_sliced_vbi_data data; in ivtv_set_vps() local 19 if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) in ivtv_set_vps() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | dwarf-aux.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dwarf-aux.c : libdw auxiliary interfaces 11 #include "dwarf-aux.h" 16 * cu_find_realpath - Find the realpath of the target file 47 * cu_get_comp_dir - Get the path of compilation directory 66 Dwarf_Lines *lines; in cu_getsrc_die() local 71 if (dwarf_getsrclines(cu_die, &lines, &nlines) != 0 || in cu_getsrc_die() 75 /* Lines are sorted by address, use binary search */ in cu_getsrc_die() 76 l = 0; u = nlines - 1; in cu_getsrc_die() 78 n = u - (u - l) / 2; in cu_getsrc_die() [all …]
|
/openbmc/qemu/crypto/ |
H A D | tlscredspsk.c | 2 * QEMU crypto TLS Pre-Shared Keys (PSK) support 41 char **lines = NULL; in lookup_key() local 43 int ret = -1; in lookup_key() 47 pskfile, gerr->message); in lookup_key() 49 return -1; in lookup_key() 52 lines = g_strsplit(content, "\n", -1); in lookup_key() 53 for (i = 0; lines[i] != NULL; ++i) { in lookup_key() 54 if (strncmp(lines[i], username, ulen) == 0 && lines[i][ulen] == ':') { in lookup_key() 55 key->data = (unsigned char *) g_strdup(&lines[i][ulen + 1]); in lookup_key() 56 key->size = strlen(lines[i]) - ulen - 1; in lookup_key() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/ |
H A D | generate-srcuri.py | 14 if re.match(r"[a-z0-9]{40}", ref): 18 cmd = ("git", "ls-remote", "--tags", "--exit-code", repo, ref) 47 Convert the external/fetch_sources.py data 50 lines = [] 58 lines.append(f" {url} \\") 62 lines.append(f" {url} \\") 65 return lines 71 filename = os.path.join(basedir, "vulkan-validationlayers/src/scripts/known_good.json") 74 data = json.load(fp, object_hook=lambda x: types.SimpleNamespace(**x)) 78 lines = [] [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-vbi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Derived from ivtv-vbi.c 10 #include "cx18-driver.h" 11 #include "cx18-vbi.h" 12 #include "cx18-ioctl.h" 13 #include "cx18-queue.h" 18 * of VBI sample or VBI ancillary data regions in the digital ratser line. 25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument 32 /* MPEG-2 Program Pack */ in copy_vbi_data() 37 /* MPEG-2 Private Stream 1 PES Packet */ in copy_vbi_data() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/drivers/ |
H A D | cx2341x-uapi.rst | 1 .. SPDX-License-Identifier: GPL-2.0 6 Non-compressed file format 7 -------------------------- 15 The data is encoded as two macroblock planes, the first containing the Y 19 and from top to bottom. Each block is transmitted in turn, line-by-line. 21 So the first 16 bytes are the first line of the top-left block, the 22 second 16 bytes are the second line of the top-left block, etc. After 27 to right, top to bottom. Each block is transmitted in turn, line-by-line. 29 So the first 16 bytes are the first line of the top-left block and 31 second line of 8 UV pairs of the top-left block, etc. After transmitting [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/amdzen4/ |
H A D | cache.json | 5 …iption": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for load-store all… 11 …"BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for har… 17 …"BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for all… 23 "BriefDescription": "Demand data cache fills from local L2 cache.", 29 …"BriefDescription": "Demand data cache fills from L3 cache or different L2 cache in the same CCX.", 35 …"BriefDescription": "Demand data cache fills from cache of another CCX when the address was in the… 41 "BriefDescription": "Demand data cache fills from either DRAM or MMIO in the same NUMA node.", 47 …"BriefDescription": "Demand data cache fills from cache of another CCX when the address was in a d… 53 …"BriefDescription": "Demand data cache fills from either DRAM or MMIO in a different NUMA node (sa… 59 "BriefDescription": "Demand data cache fills from extension memory.", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/jaketown/ |
H A D | cache.json | 3 "BriefDescription": "Allocated L1D data cache lines in M state.", 10 …"BriefDescription": "Cache lines in M state evicted out of L1D due to Snoop HitM or dirty line rep… 17 "BriefDescription": "L1D data cache lines in M state evicted due to replacement.", 24 "BriefDescription": "L1D data line replacements.", 27 …"PublicDescription": "This event counts L1D data line replacements. Replacements occur when a new… 72 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in any state.", 79 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in E state.", 86 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in M state.", 93 "BriefDescription": "Not rejected writebacks from L1D to L2 cache lines in S state.", 100 …"BriefDescription": "Count the number of modified Lines evicted from L1 and missed L2. (Non-reject… [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ak881x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for AK8813 / AK8814 TV-ecoders from Asahi Kasei Microsystems Co., Ltd. (AKM) 16 #include <media/v4l2-common.h> 17 #include <media/v4l2-device.h> 31 unsigned int lines; member 41 const u8 data) in reg_write() argument 43 return i2c_smbus_write_byte_data(client, reg, data); in reg_write() 47 const u8 data, u8 mask) in reg_set() argument 52 return reg_write(client, reg, (ret & ~mask) | (data & mask)); in reg_set() 66 if (reg->reg > 0x26) in ak881x_g_register() [all …]
|
H A D | vpx3220.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <media/v4l2-device.h> 17 #include <media/v4l2-ctrls.h> 25 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 30 /* ----------------------------------------------------------------------- */ 49 return &container_of(ctrl->handler, struct vpx3220, hdl)->sd; in to_sd() 54 /* ----------------------------------------------------------------------- */ 61 decoder->reg[reg] = value; in vpx3220_write() 89 return -1; in vpx3220_fp_status() 92 static int vpx3220_fp_write(struct v4l2_subdev *sd, u8 fpaddr, u16 data) in vpx3220_fp_write() argument [all …]
|
/openbmc/qemu/scripts/modules/ |
H A D | module_block.py | 5 # Copyright Red Hat, Inc. 2015 - 2016 11 # See the COPYING file in the top-level directory. 17 data = line.split() 19 # data[0] -> struct element name 20 # data[1] -> = 21 # data[2] -> value 23 return data[2].replace('"', '')[:-1] 26 lines = [] 27 lines.append('.library_name = "' + library + '",') 29 lines.append('.format_name = "' + format_name + '",') [all …]
|
/openbmc/openpower-hw-diags/util/ |
H A D | ffdc.cpp | 14 * data for that field. 16 * @param journal - The journal to parse 17 * @param field - Field containing the data to retrieve 18 * @return Data for the speciefied field 22 const char* data{nullptr}; in sdjGetFieldValue() local 26 if (0 == sd_journal_get_data(journal, field, (const void**)&data, &length)) in sdjGetFieldValue() 30 // The data returned by sd_journal_get_data will be prefixed with the in sdjGetFieldValue() 32 const void* eq = memchr(data, '=', length); in sdjGetFieldValue() 35 // get just data following the "=" in sdjGetFieldValue() 36 prefix = (const char*)eq - data + 1; in sdjGetFieldValue() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | qcom,q6dsp-lpass-ports.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-ports.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 18 - qcom,q6afe-dais 20 '#sound-dai-cells': 23 '#address-cells': 26 '#size-cells': 31 '^dai@[0-9]+$': [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | of_unittest_expect | 2 # SPDX-License-Identifier: GPL-2.0 40 $expect =~ s/^.*?>>//; # '?' is non-greedy, minimal match 54 if ($got =~ /^[+-]*[0-9]+/) { 55 $got =~ s/^[+-]*[0-9]+//; 60 if ($got =~ /^(0x)*[0-9a-f]+/) { 61 $got =~ s/^(0x)*[0-9a-f]+//; 100 -h print program usage 101 --help print program usage 102 --hide-expect suppress output of EXPECTed lines 103 --line-num report line number of CONSOLE_LOG [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | ptest-cargo.bbclass | 4 RUST_TEST_ARGS[doc] = "Arguments to give to the test binaries (e.g. --shuffle)" 6 # I didn't find a cleaner way to share data between compile and install tasks 9 # Sadly, generated test binaries have no deterministic names (https://github.com/rust-lang/cargo/is… 24 cmd = f"{cargo} build --tests --message-format json {cargo_build_flags}" 32 lines = [] 34 data = line.strip('\n') 35 lines.append(data) 36 bb.note(data) 41 …# Definition of the format: https://doc.rust-lang.org/cargo/reference/external-tools.html#json-mes… 43 for line in lines: [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | line.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 19 static irqreturn_t line_interrupt(int irq, void *data) in line_interrupt() argument 21 struct chan *chan = data; in line_interrupt() 22 struct line *line = chan->line; in line_interrupt() 33 * Should be called while holding line->lock (this does not modify data). 39 if (line->buffer == NULL) in write_room() 40 return LINE_BUFSIZE - 1; in write_room() 43 n = line->head - line->tail; in write_room() 47 return n - 1; in write_room() [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | cache.json | 3 "BriefDescription": "L1D data line replacements", 6 …escription": "This event counts when new data lines are brought into the L1 Data cache, which caus… 59 "BriefDescription": "L2 cache lines filling L2", 62 …cDescription": "This event counts the number of L2 cache lines brought into the L2 cache. Lines a… 67 "BriefDescription": "L2 cache lines in E state filling L2", 70 "PublicDescription": "L2 cache lines in E state filling L2.", 75 "BriefDescription": "L2 cache lines in I state filling L2", 78 "PublicDescription": "L2 cache lines in I state filling L2.", 83 "BriefDescription": "L2 cache lines in S state filling L2", 86 "PublicDescription": "L2 cache lines in S state filling L2.", [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | video-interfaces.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/video-interfaces.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sakari Ailus <sakari.ailus@linux.intel.com> 11 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 14 Video data pipelines usually consist of external devices, e.g. camera sensors, 16 video DMA engines and video data processors. 22 Data interfaces on all video devices are described by their child 'port' nodes. 23 Configuration of a port depends on other devices participating in the data [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/haswell/ |
H A D | cache.json | 3 "BriefDescription": "L1D data line replacements", 6 …escription": "This event counts when new data lines are brought into the L1 Data cache, which caus… 59 "BriefDescription": "L2 cache lines filling L2", 62 …cDescription": "This event counts the number of L2 cache lines brought into the L2 cache. Lines a… 67 "BriefDescription": "L2 cache lines in E state filling L2", 70 "PublicDescription": "L2 cache lines in E state filling L2.", 75 "BriefDescription": "L2 cache lines in I state filling L2", 78 "PublicDescription": "L2 cache lines in I state filling L2.", 83 "BriefDescription": "L2 cache lines in S state filling L2", 86 "PublicDescription": "L2 cache lines in S state filling L2.", [all …]
|