/linux-6.12.1/drivers/remoteproc/ ! |
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 …]
|
/linux-6.12.1/drivers/char/tpm/eventlog/ ! |
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 …]
|
/linux-6.12.1/drivers/platform/x86/intel/ ! |
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 …]
|
/linux-6.12.1/net/8021q/ ! |
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 …]
|
/linux-6.12.1/drivers/block/drbd/ ! |
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 …]
|
/linux-6.12.1/ipc/ ! |
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 …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ ! |
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 …]
|
D | iters_css_task.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2023 Chuyi Zhou <zhouchuyi@bytedance.com> */ 30 if (cur_task->pid != target_pid) in BPF_PROG() 36 return -EPERM; in BPF_PROG() 38 css = &cgrp->self; in BPF_PROG() 42 if (task->pid == target_pid) in BPF_PROG() 47 return -EPERM; in BPF_PROG() 52 return cgrp->kn->id; in cgroup_id() 58 struct seq_file *seq = ctx->meta->seq; in cgroup_id_printer() local 59 struct cgroup *cgrp = ctx->cgroup; in cgroup_id_printer() [all …]
|
/linux-6.12.1/include/net/sctp/ ! |
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 …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/ ! |
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 …]
|
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 …]
|
/linux-6.12.1/fs/hfsplus/ ! |
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 …]
|
/linux-6.12.1/net/ipv4/ ! |
D | esp4_offload.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Author: Steffen Klassert <steffen.klassert@secunet.com> 37 __be32 seq; in esp4_gro_receive() local 43 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp4_gro_receive() 47 if (!xo || !(xo->flags & CRYPTO_DONE)) { in esp4_gro_receive() 53 if (sp->len == XFRM_MAX_DEPTH) in esp4_gro_receive() 56 x = xfrm_state_lookup(dev_net(skb->dev), skb->mark, in esp4_gro_receive() 57 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive() 60 if (unlikely(x && x->dir && x->dir != XFRM_SA_DIR_IN)) { in esp4_gro_receive() 61 /* non-offload path will record the error and audit log */ in esp4_gro_receive() [all …]
|
/linux-6.12.1/net/appletalk/ ! |
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 …]
|
/linux-6.12.1/net/ipv6/ ! |
D | esp6_offload.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Author: Steffen Klassert <steffen.klassert@secunet.com> 38 if (likely(ipv6_hdr->nexthdr == NEXTHDR_ESP || in esp6_nexthdr_esp_offset() 39 ipv6_hdr->nexthdr == NEXTHDR_UDP)) in esp6_nexthdr_esp_offset() 44 if (exthdr->nexthdr == NEXTHDR_ESP) in esp6_nexthdr_esp_offset() 60 __be32 seq; in esp6_gro_receive() local 64 if (NAPI_GRO_CB(skb)->proto == IPPROTO_UDP) in esp6_gro_receive() 70 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp6_gro_receive() 74 if (!xo || !(xo->flags & CRYPTO_DONE)) { in esp6_gro_receive() 80 if (sp->len == XFRM_MAX_DEPTH) in esp6_gro_receive() [all …]
|
/linux-6.12.1/net/sctp/ ! |
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 …]
|
D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * lksctp developers <linux-sctp@vger.kernel.org> 12 * Sridhar Samudrala <sri@us.ibm.com> 59 static int sctp_snmp_seq_show(struct seq_file *seq, void *v) in sctp_snmp_seq_show() argument 62 struct net *net = seq->private; in sctp_snmp_seq_show() 68 net->sctp.sctp_statistics); in sctp_snmp_seq_show() 70 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, in sctp_snmp_seq_show() 77 static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_common *epb) in sctp_seq_dump_local_addrs() argument 85 if (epb->type == SCTP_EP_TYPE_ASSOCIATION) { in sctp_seq_dump_local_addrs() 88 peer = asoc->peer.primary_path; in sctp_seq_dump_local_addrs() [all …]
|
/linux-6.12.1/net/wireless/ ! |
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 …]
|
/linux-6.12.1/kernel/gcov/ ! |
D | fs.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Author(s): Peter Oberparleiter <oberpar@linux.vnet.ibm.com> 8 * Uses gcc-internal data definitions. 9 * Based on the gcov-kernel patch by: 10 * Hubertus Franke <frankeh@us.ibm.com> 11 * Nigel Hinds <nhinds@us.ibm.com> 12 * Rajan Ravindran <rajancr@us.ibm.com> 13 * Peter Oberparleiter <oberpar@linux.vnet.ibm.com> 33 * struct gcov_node - represents a debugfs entry 71 /* If non-zero, keep copies of profiling data for unloaded modules. */ [all …]
|
/linux-6.12.1/lib/kunit/ ! |
D | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Alan Maguire <alan.maguire@oracle.com> 11 #include <kunit/test-bug.h> 13 #include "string-stream.h" 44 static void debugfs_print_result(struct seq_file *seq, struct string_stream *log) in debugfs_print_result() argument 55 spin_lock(&log->lock); in debugfs_print_result() 56 list_for_each_entry(frag_container, &log->fragments, node) in debugfs_print_result() 57 seq_printf(seq, "%s", frag_container->fragment); in debugfs_print_result() 58 spin_unlock(&log->lock); in debugfs_print_result() 64 static int debugfs_print_results(struct seq_file *seq, void *v) in debugfs_print_results() argument [all …]
|
/linux-6.12.1/net/core/ ! |
D | secure_seq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 39 static u32 seq_scale(u32 seq) in seq_scale() argument 47 * we also need to limit the resolution so that the u32 seq in seq_scale() 51 return seq + (ktime_get_real_ns() >> 6); in seq_scale() 67 if (READ_ONCE(net->ipv4.sysctl_tcp_timestamps) != 1) in secure_tcpv6_ts_off() 123 if (READ_ONCE(net->ipv4.sysctl_tcp_timestamps) != 1) in secure_tcp_ts_off() 164 u64 seq; in secure_dccp_sequence_number() local 166 seq = siphash_3u32((__force u32)saddr, (__force u32)daddr, in secure_dccp_sequence_number() 169 seq += ktime_get_real_ns(); in secure_dccp_sequence_number() [all …]
|
/linux-6.12.1/arch/m68k/atari/ ! |
D | nvram.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * CMOS/NV-RAM driver for Atari. Adapted from drivers/char/nvram.c. 4 * Copyright (C) 1997 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> 6 * Portions copyright (c) 2001,2002 Sun Microsystems (thockin@sun.com) 26 * purpose memory in the NVRAM - that is to say, they all add the 32 * rtc_lock held. Due to the index-port/data-port design of the RTC, we 105 return -EIO; in atari_nvram_read() 107 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in atari_nvram_read() 112 return p - buf; in atari_nvram_read() 123 return -EIO; in atari_nvram_write() [all …]
|
/linux-6.12.1/drivers/usb/storage/ ! |
D | karma.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (c) 2006 Bob Copeland <me@bobcopeland.com> 6 * (c) 2006 Keith Bennett <keith@mcs.st-and.ac.uk> 21 #define DRV_NAME "ums-karma" 24 MODULE_AUTHOR("Bob Copeland <me@bobcopeland.com>, Keith Bennett <keith@mcs.st-and.ac.uk>"); 89 * with a 512-byte packet with the high four bits set and everything 98 static unsigned char seq = 1; in rio_karma_send_command() local 99 struct karma_data *data = (struct karma_data *) us->extra; in rio_karma_send_command() 102 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command() 103 memcpy(us->iobuf, RIO_PREFIX, RIO_PREFIX_LEN); in rio_karma_send_command() [all …]
|
/linux-6.12.1/net/llc/ ! |
D | llc_proc.c | 2 * proc_llc.c - proc interface for LLC 5 * 2002-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 29 static void llc_ui_format_mac(struct seq_file *seq, const u8 *addr) in llc_ui_format_mac() argument 31 seq_printf(seq, "%pM", addr); in llc_ui_format_mac() 41 spin_lock_bh(&sap->sk_lock); in llc_get_sk_idx() 43 struct hlist_nulls_head *head = &sap->sk_laddr_hash[i]; in llc_get_sk_idx() 49 --pos; in llc_get_sk_idx() 52 spin_unlock_bh(&sap->sk_lock); in llc_get_sk_idx() 59 static void *llc_seq_start(struct seq_file *seq, loff_t *pos) __acquires(RCU) in llc_seq_start() argument 64 return l ? llc_get_sk_idx(--l) : SEQ_START_TOKEN; in llc_seq_start() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/cxgb4/ ! |
D | device.c | 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 87 struct c4iw_debugfs_data *d = file->private_data; in debugfs_read() 89 return simple_read_from_buffer(buf, count, ppos, d->buf, d->pos); in debugfs_read() 97 if (!wq->rdev->wr_log) in c4iw_log_wr_stats() 100 idx = (atomic_inc_return(&wq->rdev->wr_log_idx) - 1) & in c4iw_log_wr_stats() 101 (wq->rdev->wr_log_size - 1); in c4iw_log_wr_stats() 102 le.poll_sge_ts = cxgb4_read_sge_timestamp(wq->rdev->lldi.ports[0]); in c4iw_log_wr_stats() 107 le.qid = wq->sq.qid; in c4iw_log_wr_stats() [all …]
|