/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Ohad Ben-Cohen <ohad@wizery.com> 9 * Mark Grosen <mgrosen@ti.com> 10 * Brian Swetland <swetland@google.com> 11 * Fernando Guzman Lugo <fernando.lugo@ti.com> 12 * Suman Anna <s-anna@ti.com> 13 * Robert Tivy <rtivy@ti.com> 14 * Armando Uribe De Leon <x0095078@ti.com> 31 * A coredump-configuration-to-string lookup table, for exposing a 45 struct rproc *rproc = filp->private_data; in rproc_coredump_read() [all …]
|
/openbmc/linux/drivers/char/tpm/eventlog/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Kent Yoder <key@linux.vnet.ibm.com> 7 * Seiji Munetoh <munetoh@jp.ibm.com> 8 * Stefan Berger <stefanb@us.ibm.com> 9 * Reiner Sailer <sailer@watson.ibm.com> 10 * Kylene Hall <kjhall@us.ibm.com> 11 * Nayna Jain <nayna@linux.vnet.ibm.com> 29 struct seq_file *seq; in tpm_bios_measurements_open() local 35 if (!inode->i_private) { in tpm_bios_measurements_open() 37 return -ENODEV; in tpm_bios_measurements_open() [all …]
|
/openbmc/linux/drivers/platform/x86/intel/ |
H A D | bytcrc_pwrsrc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Power-source driver for Bay Trail Crystal Cove PMIC 5 * Copyright (c) 2023 Hans de Goede <hdegoede@redhat.com> 63 static void crc_pwrsrc_log(struct seq_file *seq, const char *prefix, in crc_pwrsrc_log() argument 70 seq_printf(seq, "%s by %s\n", prefix, info[i]); in crc_pwrsrc_log() 74 static int pwrsrc_show(struct seq_file *seq, void *unused) in pwrsrc_show() argument 76 struct crc_pwrsrc_data *data = seq->private; in pwrsrc_show() 80 ret = regmap_read(data->regmap, CRYSTALCOVE_SPWRSRC_REG, ®_val); in pwrsrc_show() 84 crc_pwrsrc_log(seq, "System powered", pwrsrc_pwrsrc_info, reg_val); in pwrsrc_show() 88 static int resetsrc_show(struct seq_file *seq, void *unused) in resetsrc_show() argument [all …]
|
/openbmc/linux/net/8021q/ |
H A D | vlanproc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * This module is completely hardware-independent and provides 8 * Author: Ben Greear, <greearb@candelatech.com> coppied from wanproc.c 9 * by: Gene Kozin <genek@compuserve.com> 36 static int vlan_seq_show(struct seq_file *seq, void *v); 37 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos); 38 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos); 39 static void vlan_seq_stop(struct seq_file *seq, void *); 40 static int vlandev_seq_show(struct seq_file *seq, void *v); 96 if (vn->proc_vlan_conf) in vlan_proc_cleanup() [all …]
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH. 8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>. 9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. 26 static void seq_printf_with_thousands_grouping(struct seq_file *seq, long v) in seq_printf_with_thousands_grouping() argument 31 seq_printf(seq, "%ld,", v / 1000000); in seq_printf_with_thousands_grouping() 33 seq_printf(seq, "%03ld,%03ld", v/1000, v % 1000); in seq_printf_with_thousands_grouping() 35 seq_printf(seq, "%ld,%03ld", v/1000, v % 1000); in seq_printf_with_thousands_grouping() 37 seq_printf(seq, "%ld", v); in seq_printf_with_thousands_grouping() 46 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 038 | 23 owner=kwolf@redhat.com 25 seq=`basename $0` 26 echo "QA output created by $seq" 63 for i in $(seq 0 $((sectors - 1))); do 67 echo "$op -P $pattern $((cur_sec * 64))k 64k" 75 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G 83 echo aio_write -P 0x80 2020k 80k 86 for i in $(seq 0 15; seq 17 31; seq 33 47); do 87 echo aio_write -P $((0x81 + i)) $((i * 128))k 64k 91 for i in $( (seq 0 15; seq 17 31; seq 33 47) | tac); do [all …]
|
H A D | 113 | 24 owner=hreitz@redhat.com 26 seq="$(basename $0)" 27 echo "QA output created by $seq" 48 echo '=== Unsupported image creation in qemu-img create ===' 51 $QEMU_IMG create -f bochs nbd://example.com 2>&1 64M 54 echo '=== Unsupported image creation in qemu-img convert ===' 60 $QEMU_IMG convert -f bochs -O bochs "$TEST_IMG" nbd://example.com 63 echo '=== Unsupported format in qemu-img amend ===' 68 $QEMU_IMG amend -f $IMGFMT -o size=2M "$TEST_IMG" 2>&1 | _filter_imgfmt 73 rm -f $seq.full
|
H A D | 239 | 6 # Copyright (C) 2019 yuchenlin <npes87184@gmail.com> 23 owner=npes87184@gmail.com 25 seq=`basename $0` 26 echo "QA output created by $seq" 32 rm -f "$TEST_IMG.raw" 46 _use_sample_img simple-dmg.dmg.bz2 47 if ! $QEMU_IMG convert -f $IMGFMT -O raw "$TEST_IMG" "$TEST_IMG.raw" ; then 53 rm -f $seq.full
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_unix.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright Amazon.com Inc. or its affiliates. */ 12 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() 19 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino() 20 bpf_probe_read_kernel(&ino, sizeof(ino), &inode->i_ino); in sock_i_ino() 27 struct unix_sock *unix_sk = ctx->unix_sk; in dump_unix() 29 struct seq_file *seq; in dump_unix() local 35 seq = ctx->meta->seq; in dump_unix() 36 seq_num = ctx->meta->seq_num; in dump_unix() 38 BPF_SEQ_PRINTF(seq, "Num RefCount Protocol Flags Type St Inode Path\n"); in dump_unix() [all …]
|
/openbmc/linux/lib/kunit/ |
H A D | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Alan Maguire <alan.maguire@oracle.com> 12 #include "string-stream.h" 40 static void debugfs_print_result(struct seq_file *seq, in debugfs_print_result() argument 44 if (!test_case || !test_case->log) in debugfs_print_result() 47 seq_printf(seq, "%s", test_case->log); in debugfs_print_result() 53 static int debugfs_print_results(struct seq_file *seq, void *v) in debugfs_print_results() argument 55 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_results() 65 seq_puts(seq, "KTAP version 1\n"); in debugfs_print_results() 66 seq_puts(seq, "1..1\n"); in debugfs_print_results() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3-hypothesis/ |
H A D | test_rle.py | 2 # https://github.com/HypothesisWorks/hypothesis/ 4 # Most of this work is copyright (C) 2013-2021 David R. MacIver 5 # (david@drmaciver.com), but it contains contributions by others. See 16 # SPDX-License-Identifier: MPL-2.0 35 def run_length_encode(seq): argument 36 """Encode a sequence as a new run-length encoded sequence.""" 37 if not seq: 41 result = [[seq[0], 0]] 42 for s in seq: 48 == result[-1][0] [all …]
|
/openbmc/linux/ipc/ |
H A D | compat.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 1999 Arun Sharma <arun.sharma@intel.com> 9 * Copyright (C) 2000 Don Dugger <n0ano@valinux.com> 10 * Copyright (C) 2000 Hewlett-Packard Co. 11 * Copyright (C) 2000 David Mosberger-Tang <davidm@hpl.hp.com> 12 * Copyright (C) 2000 Gerhard Tonn (ton@de.ibm.com) 13 * Copyright (C) 2000-2002 Andi Kleen, SuSE Labs (x86-64 port) 43 return -EFAULT; in get_compat_ipc64_perm() 44 to->uid = v.uid; in get_compat_ipc64_perm() 45 to->gid = v.gid; in get_compat_ipc64_perm() [all …]
|
/openbmc/linux/net/rxrpc/ |
H A D | txbuf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Written by David Howells (dhowells@redhat.com) 11 #include "ar-internal.h" 26 INIT_LIST_HEAD(&txb->call_link); in rxrpc_alloc_txbuf() 27 INIT_LIST_HEAD(&txb->tx_link); in rxrpc_alloc_txbuf() 28 refcount_set(&txb->ref, 1); in rxrpc_alloc_txbuf() 29 txb->call_debug_id = call->debug_id; in rxrpc_alloc_txbuf() 30 txb->debug_id = atomic_inc_return(&rxrpc_txbuf_debug_ids); in rxrpc_alloc_txbuf() 31 txb->space = sizeof(txb->data); in rxrpc_alloc_txbuf() 32 txb->len = 0; in rxrpc_alloc_txbuf() [all …]
|
/openbmc/linux/include/net/sctp/ |
H A D | command.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 1999-2001 Cisco, Motorola 12 * lksctp developers <linux-sctp@vger.kernel.org> 17 * Ardelle Fan <ardelle.fan@intel.com> 18 * Sridhar Samudrala <sri@us.ibm.com> 55 SCTP_CMD_COOKIEECHO_RESTART, /* High level, do cookie-echo timer work. */ 73 SCTP_CMD_SETUP_T2, /* Hi-level, setup T2-shutdown parms. */ 82 SCTP_CMD_DEL_NON_PRIMARY, /* Removes non-primary peer transports. */ 83 SCTP_CMD_T3_RTX_TIMERS_STOP, /* Stops T3-rtx pending timers */ 199 static inline int sctp_init_cmd_seq(struct sctp_cmd_seq *seq) in sctp_init_cmd_seq() argument [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | esp4_offload.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Author: Steffen Klassert <steffen.klassert@secunet.com> 36 __be32 seq; in esp4_gro_receive() local 42 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp4_gro_receive() 46 if (!xo || !(xo->flags & CRYPTO_DONE)) { in esp4_gro_receive() 52 if (sp->len == XFRM_MAX_DEPTH) in esp4_gro_receive() 55 x = xfrm_state_lookup(dev_net(skb->dev), skb->mark, in esp4_gro_receive() 56 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive() 61 skb->mark = xfrm_smark_get(skb->mark, x); in esp4_gro_receive() 63 sp->xvec[sp->len++] = x; in esp4_gro_receive() [all …]
|
/openbmc/qemu/crypto/ |
H A D | rsakey-builtin.c.inc | 5 * Author: lei he <helei.sig11@bytedance.com> 31 return -1; 33 mpi->data = g_memdup2(value, vlen); 34 mpi->len = vlen; 44 return -1; 56 return -1; 73 const uint8_t *seq; 78 extract_seq_content, &seq, errp); 84 if (qcrypto_der_decode_int(&seq, &seq_length, extract_mpi, 85 &rsa->n, errp) < 0 || [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_usb_mcu.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> 23 struct mt76_usb *usb = &dev->usb; in mt76x02u_multiple_mcu_reads() 26 WARN_ON_ONCE(len / 8 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads() 28 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads() 29 u32 reg = get_unaligned_le32(data + 8 * i) - usb->mcu.base; in mt76x02u_multiple_mcu_reads() 32 WARN_ON_ONCE(usb->mcu.rp[i].reg != reg); in mt76x02u_multiple_mcu_reads() 33 usb->mcu.rp[i].value = val; in mt76x02u_multiple_mcu_reads() 37 static int mt76x02u_mcu_wait_resp(struct mt76_dev *dev, u8 seq) in mt76x02u_mcu_wait_resp() argument 39 struct mt76_usb *usb = &dev->usb; in mt76x02u_mcu_wait_resp() [all …]
|
H A D | mt76x02_mcu.c | 1 // SPDX-License-Identifier: ISC 4 * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> 14 struct sk_buff *skb, int seq) in mt76x02_mcu_parse_response() argument 20 dev_err(mdev->dev, "MCU message %02x (seq %d) timed out\n", in mt76x02_mcu_parse_response() 21 abs(cmd), seq); in mt76x02_mcu_parse_response() 22 dev->mcu_timeout = 1; in mt76x02_mcu_parse_response() 23 return -ETIMEDOUT; in mt76x02_mcu_parse_response() 26 rxfce = (u32 *)skb->cb; in mt76x02_mcu_parse_response() 27 if (seq != FIELD_GET(MT_RX_FCE_INFO_CMD_SEQ, *rxfce)) in mt76x02_mcu_parse_response() 28 return -EAGAIN; in mt76x02_mcu_parse_response() [all …]
|
/openbmc/linux/fs/hfsplus/ |
H A D | options.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Brad Boyer (flar@allandria.com) 7 * (C) 2003 Ardis Technologies <roman@ardistech.com> 54 opts->creator = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults() 55 opts->type = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults() 56 opts->umask = current_umask(); in hfsplus_fill_defaults() 57 opts->uid = current_uid(); in hfsplus_fill_defaults() 58 opts->gid = current_gid(); in hfsplus_fill_defaults() 59 opts->part = -1; in hfsplus_fill_defaults() 60 opts->session = -1; in hfsplus_fill_defaults() [all …]
|
/openbmc/linux/net/appletalk/ |
H A D | atalk_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * atalk_proc.c - proc support for Appletalk 5 * Copyright(c) Arnaldo Carvalho de Melo <acme@conectiva.com.br> 21 for (i = atalk_interfaces; pos && i; i = i->next) in atalk_get_interface_idx() 22 --pos; in atalk_get_interface_idx() 27 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start() argument 33 return l ? atalk_get_interface_idx(--l) : SEQ_START_TOKEN; in atalk_seq_interface_start() 36 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument 48 i = i->next; in atalk_seq_interface_next() 53 static void atalk_seq_interface_stop(struct seq_file *seq, void *v) in atalk_seq_interface_stop() argument [all …]
|
/openbmc/linux/drivers/iommu/intel/ |
H A D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Author: Lu Baolu <baolu.lu@linux.intel.com> 31 __string(iommu, iommu->name) 35 __assign_str(iommu, iommu->name); 36 __entry->qw0 = qw0; 37 __entry->qw1 = qw1; 38 __entry->qw2 = qw2; 39 __entry->qw3 = qw3; 43 __print_symbolic(__entry->qw0 & 0xf, 54 __entry->qw0, __entry->qw1, __entry->qw2, __entry->qw3 [all …]
|
/openbmc/linux/net/sctp/ |
H A D | objcnt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * lksctp developers <linux-sctp@vger.kernel.org> 16 * Jon Grimm <jgrimm@us.ibm.com> 62 static int sctp_objcnt_seq_show(struct seq_file *seq, void *v) in sctp_objcnt_seq_show() argument 67 seq_setwidth(seq, 127); in sctp_objcnt_seq_show() 68 seq_printf(seq, "%s: %d", sctp_dbg_objcnt[i].label, in sctp_objcnt_seq_show() 70 seq_pad(seq, '\n'); in sctp_objcnt_seq_show() 74 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) in sctp_objcnt_seq_start() argument 79 static void sctp_objcnt_seq_stop(struct seq_file *seq, void *v) in sctp_objcnt_seq_stop() argument 83 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next() argument [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | esp6_offload.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Author: Steffen Klassert <steffen.klassert@secunet.com> 37 if (likely(ipv6_hdr->nexthdr == NEXTHDR_ESP)) in esp6_nexthdr_esp_offset() 42 if (exthdr->nexthdr == NEXTHDR_ESP) in esp6_nexthdr_esp_offset() 57 __be32 seq; in esp6_gro_receive() local 64 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp6_gro_receive() 68 if (!xo || !(xo->flags & CRYPTO_DONE)) { in esp6_gro_receive() 74 if (sp->len == XFRM_MAX_DEPTH) in esp6_gro_receive() 77 x = xfrm_state_lookup(dev_net(skb->dev), skb->mark, in esp6_gro_receive() 78 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in esp6_gro_receive() [all …]
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | detect-zeroes-registered-buf | 4 # Check that detect-zeroes=unmap works on writes with registered I/O buffers. 6 # https://gitlab.com/qemu-project/qemu/-/issues/1404 where I/O requests failed 26 owner=stefanha@redhat.com 28 seq=`basename $0` 29 echo "QA output created by $seq" 51 IMGSPEC="$TEST_IMG,discard=unmap,detect-zeroes=unmap" 55 QEMU_IO_OPTIONS="$QEMU_IO_OPTIONS_NO_FMT" $QEMU_IO -c "write -r -P 0 0 4k" --image-opts "$IMGSPEC" … 59 rm -f $seq.full
|
/openbmc/linux/net/wireless/ |
H A D | wext-proc.c | 4 * Authors : Jean Tourrilhes - HPL - <jt@hpl.hp.com> 5 * Copyright (c) 1997-2007 Jean Tourrilhes, All Rights Reserved. 11 * The /proc/net/wireless file is a human readable user-space interface 13 * This is the most popular part of the Wireless Extensions ;-) 29 static void wireless_seq_printf_stats(struct seq_file *seq, in wireless_seq_printf_stats() argument 39 if (dev->wireless_handlers) in wireless_seq_printf_stats() 43 if (dev->ieee80211_ptr) in wireless_seq_printf_stats() 49 seq_printf(seq, "%6s: %04x %3d%c %3d%c %3d%c %6d %6d %6d " in wireless_seq_printf_stats() 51 dev->name, stats->status, stats->qual.qual, in wireless_seq_printf_stats() 52 stats->qual.updated & IW_QUAL_QUAL_UPDATED in wireless_seq_printf_stats() [all …]
|