| /linux/arch/s390/crypto/ |
| H A D | phmac_s390.c | 1 // SPDX-License-Identifier: GPL-2.0+ 45 hwh->walkbytes = crypto_hash_walk_first(req, &hwh->walk); in hwh_prepare() 46 if (hwh->walkbytes < 0) in hwh_prepare() 47 return hwh->walkbytes; in hwh_prepare() 48 hwh->walkaddr = hwh->walk.data; in hwh_prepare() 63 return crypto_hash_walk_done(&hwh->walk, n); in hwh_advance() 65 hwh->walkbytes -= n; in hwh_advance() 66 hwh->walkaddr += n; in hwh_advance() 67 if (hwh->walkbytes > 0) in hwh_advance() 70 hwh->walkbytes = crypto_hash_walk_done(&hwh->walk, 0); in hwh_advance() [all …]
|
| /linux/security/integrity/ |
| H A D | digsig_asymmetric.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/key-type.h> 14 #include <keys/asymmetric-type.h> 39 return ERR_PTR(-EKEYREJECTED); in request_asymmetric_key() 60 name, keyring->description, in request_asymmetric_key() 68 case -EACCES: in request_asymmetric_key() 69 case -ENOTDIR: in request_asymmetric_key() 70 case -EAGAIN: in request_asymmetric_key() 71 return ERR_PTR(-ENOKEY); in request_asymmetric_key() 87 const struct public_key *pk; in asymmetric_verify() local [all …]
|
| /linux/arch/m68k/68000/ |
| H A D | dragen2.c | 1 // SPDX-License-Identifier: GPL-2.0 54 PKSEL |= PK(3); /* select pin as I/O */ in init_dragen2() 55 PKDIR |= PK(3); /* select pin as output */ in init_dragen2() 56 PKDATA |= PK(3); /* set pin high */ in init_dragen2()
|
| /linux/Documentation/devicetree/bindings/interrupt-controller/ |
| H A D | mstar,mst-intc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/mstar,mst-intc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mark-PK Tsai <mark-pk.tsai@mediatek.com> 21 const: mstar,mst-intc 23 interrupt-controller: true 25 "#interrupt-cells": 33 mstar,irqs-map-range: 37 $ref: /schemas/types.yaml#/definitions/uint32-matrix [all …]
|
| /linux/kernel/cgroup/ |
| H A D | debug.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "cgroup-internal.h" 20 return ERR_PTR(-ENOMEM); in debug_css_alloc() 31 * debug_taskcount_read - return the number of tasks in a cgroup. 37 return cgroup_task_count(css->cgroup); in debug_taskcount_read() 42 struct kernfs_open_file *of = seq->private; in current_css_set_read() 48 if (!cgroup_kn_lock_live(of->kn, false)) in current_css_set_read() 49 return -ENODEV; in current_css_set_read() 53 refcnt = refcount_read(&cset->refcount); in current_css_set_read() 54 seq_printf(seq, "css_set %pK %d", cset, refcnt); in current_css_set_read() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_iter_tcp4.c | 1 // SPDX-License-Identifier: GPL-2.0 12 return !(h->pprev); in hlist_unhashed_lockless() 17 return !hlist_unhashed_lockless(&timer->entry); in timer_pending() 51 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() 58 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino() 59 bpf_probe_read_kernel(&ino, sizeof(ino), &inode->i_ino); in sock_i_ino() 66 return icsk->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode() 71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart() 88 icsk = &tp->inet_conn; in dump_tcp_sock() 89 inet = &icsk->icsk_inet; in dump_tcp_sock() [all …]
|
| H A D | bpf_iter_tcp6.c | 1 // SPDX-License-Identifier: GPL-2.0 12 return !(h->pprev); in hlist_unhashed_lockless() 17 return !hlist_unhashed_lockless(&timer->entry); in timer_pending() 51 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() 58 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino() 59 bpf_probe_read_kernel(&ino, sizeof(ino), &inode->i_ino); in sock_i_ino() 66 return icsk->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode() 71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart() 88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock() 89 inet = &icsk->icsk_inet; in dump_tcp6_sock() [all …]
|
| H A D | test_snprintf.c | 1 // SPDX-License-Identifier: GPL-2.0 40 /* Convenient values to pretty-print */ in handler() 52 -8, 9, 150, -424242, 1337, 0xDABBAD00); in handler() 60 addr_ret = BPF_SNPRINTF(addr_out, sizeof(addr_out), "%pK %px %p", in handler() 62 /* Strings and single-byte character embedding */ in handler() 63 str_ret = BPF_SNPRINTF(str_out, sizeof(str_out), "%s % 9c %+2c %-3c %04c %0c %+05s", in handler()
|
| /linux/net/sctp/ |
| H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * lksctp developers <linux-sctp@vger.kernel.org> 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() 85 if (epb->typ in sctp_seq_dump_local_addrs() [all...] |
| /linux/Documentation/devicetree/bindings/phy/ |
| H A D | fsl,imx8mq-usb-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Li Jun <jun.li@nxp.com> 15 - enum: 16 - fsl,imx8mq-usb-phy 17 - fsl,imx8mp-usb-phy 18 - items: 19 - const: fsl,imx95-usb-phy [all …]
|
| /linux/arch/m68k/include/asm/ |
| H A D | MC68VZ328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* include/asm-m68knommu/MC68VZ328.h: 'VZ328 control registers 5 * Copyright (c) 2000-2001 Lineo Inc. <www.lineo.com> 6 * Copyright (c) 2000-2001 Lineo Canada Corp. <www.lineo.ca> 9 * Based on include/asm-m68knommu/MC68332.h 29 * 0xFFFFF0xx -- System Control 39 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */ 42 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */ 45 #define SCR_BETO 0x80 /* Bus-Error TimeOut */ 55 * 0xFFFFF1xx -- Chip-Select logic [all …]
|
| /linux/net/can/ |
| H A D | proc.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * proc.c - procfs support for Protocol family CAN core module 5 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research 48 #include <linux/can/can-ml.h> 81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats() 82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats() 89 pkg_stats->jiffies_init = jiffies; in can_init_stats() 91 rcv_lists_stats->stats_reset++; in can_init_stats() 95 rcv_lists_stats->user_reset++; in can_init_stats() 105 /* see can_stat_update() - this should NEVER happen! */ in calc_rate() [all …]
|
| /linux/drivers/bus/mhi/host/ |
| H A D | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 18 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_states_show() 22 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_states_show() 24 mhi_state_str(mhi_cntrl->dev_state), in mhi_debugfs_states_show() 25 TO_MHI_EXEC_STR(mhi_cntrl->ee), in mhi_debugfs_states_show() 26 str_true_false(mhi_cntrl->wake_set)); in mhi_debugfs_states_show() 29 seq_printf(m, "M0: %u M2: %u M3: %u", mhi_cntrl->M0, mhi_cntrl->M2, in mhi_debugfs_states_show() 30 mhi_cntrl->M3); in mhi_debugfs_states_show() 33 atomic_read(&mhi_cntrl->dev_wake), in mhi_debugfs_states_show() 34 atomic_read(&mhi_cntrl->pending_pkts)); in mhi_debugfs_states_show() [all …]
|
| /linux/net/atm/ |
| H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* net/atm/proc.c - ATM /proc interface 4 * Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA 34 #include "signaling.h" /* to get sigd - ugly too */ 48 atomic_read(&stats->tx), atomic_read(&stats->tx_err), in add_stats() 49 atomic_read(&stats->rx), atomic_read(&stats->rx_err), in add_stats() 50 atomic_read(&stats->rx_drop)); in add_stats() 57 seq_printf(seq, "%3d %-8s", dev->number, dev->type); in atm_dev_info() 59 seq_printf(seq, "%02x", dev->esi[i]); in atm_dev_info() 61 add_stats(seq, "0", &dev->stats.aal0); in atm_dev_info() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-mst-intc.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 4 * Author Mark-PK Tsai <mark-pk.tsai@mediatek.com> 49 raw_spin_lock_irqsave(&cd->lock, flags); in mst_set_irq() 50 val = readw_relaxed(cd->base + offset) | mask; in mst_set_irq() 51 writew_relaxed(val, cd->base + offset); in mst_set_irq() 52 raw_spin_unlock_irqrestore(&cd->lock, flags); in mst_set_irq() 65 raw_spin_lock_irqsave(&cd->lock, flags); in mst_clear_irq() 66 val = readw_relaxed(cd->base + offset) & ~mask; in mst_clear_irq() 67 writew_relaxed(val, cd->base + offset); in mst_clear_irq() 68 raw_spin_unlock_irqrestore(&cd->lock, flags); in mst_clear_irq() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | plpks-secvar.c | 1 // SPDX-License-Identifier: GPL-2.0-only 63 "PK", 70 "PK", 90 var.name = kcalloc(key_len - 1, sizeof(wchar_t), GFP_KERNEL); in plpks_get_variable() 92 return -ENOMEM; in plpks_get_variable() 93 rc = utf8s_to_utf16s(key, key_len - 1, UTF16_LITTLE_ENDIAN, (wchar_t *)var.name, in plpks_get_variable() 94 key_len - 1); in plpks_get_variable() 113 if (rc && rc != -ENOENT) { in plpks_get_variable() 115 // Return -EIO since userspace probably doesn't care about the in plpks_get_variable() 117 rc = -EIO; in plpks_get_variable() [all …]
|
| /linux/arch/arm/mm/ |
| H A D | physaddr.c | 1 // SPDX-License-Identifier: GPL-2.0 41 "virt_to_phys used for non-linear address: %pK (%pS)\n", in __virt_to_phys()
|
| /linux/fs/btrfs/ |
| H A D | file-item.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "disk-io.h" 20 #include "file-item.h" 22 #define __MAX_CSUM_ITEMS(r, size) ((unsigned long)(((BTRFS_LEAF_DATA_SIZE(r) - \ 24 size) - 1)) 51 spin_lock(&inode->lock); in btrfs_inode_safe_disk_i_size_write() 52 i_size = new_i_size ?: i_size_read(&inode->vfs_inode); in btrfs_inode_safe_disk_i_size_write() 53 if (!inode->file_extent_tree) { in btrfs_inode_safe_disk_i_size_write() 54 inode->disk_i_size = i_size; in btrfs_inode_safe_disk_i_size_write() 58 found = btrfs_find_contiguous_extent_bit(inode->file_extent_tree, 0, &start, in btrfs_inode_safe_disk_i_size_write() [all …]
|
| /linux/net/dsa/ |
| H A D | tag_qca.c | 1 // SPDX-License-Identifier: GPL-2.0 29 hdr |= FIELD_PREP(QCA_HDR_XMIT_DP_BIT, BIT(dp->index)); in qca_tag_xmit() 39 struct dsa_port *dp = dev->dsa_ptr; in qca_tag_rcv() 40 struct dsa_switch *ds = dp->ds; in qca_tag_rcv() 48 tagger_data = ds->tagger_data; in qca_tag_rcv() 61 /* Get pk type */ in qca_tag_rcv() 66 if (likely(tagger_data->rw_reg_ack_handler)) in qca_tag_rcv() 67 tagger_data->rw_reg_ack_handler(ds, skb); in qca_tag_rcv() 73 if (likely(tagger_data->mib_autocast_handler)) in qca_tag_rcv() 74 tagger_data->mib_autocast_handler(ds, skb); in qca_tag_rcv() [all …]
|
| /linux/arch/sh/include/cpu-sh4/cpu/ |
| H A D | sh7785.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * MODE0: CPG - Initial Pck/Bck Frequency [FRQMR1] 8 * MODE1: CPG - Initial Uck/SHck/DDRck Frequency [FRQMR1] 9 * MODE2: CPG - Reserved (L: Normal operation) 10 * MODE3: CPG - Reserved (L: Normal operation) 11 * MODE4: CPG - Initial PLL setting (72x/36x) 12 * MODE5: LBSC - Area0 Memory Type / Bus Width [CS0BCR.8] 13 * MODE6: LBSC - Area0 Memory Type / Bus Width [CS0BCR.9] 14 * MODE7: LBSC - Area0 Memory Type / Bus Width [CS0BCR.3] 15 * MODE8: LBSC - Endian Mode (L: Big, H: Little) [BCR.31] [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Ohad Ben-Cohen <ohad@wizery.com> 12 * Suman Anna <s-anna@ti.com> 31 * A coredump-configuration-to-string lookup table, for exposing a 45 struct rproc *rproc = filp->private_data; in rproc_coredump_read() 50 rproc_coredump_str[rproc->dump_conf]); in rproc_coredump_read() 75 struct rproc *rproc = filp->private_data; in rproc_coredump_write() 80 return -EINVAL; in rproc_coredump_write() 84 return -EFAULT; in rproc_coredump_write() 87 if (buf[count - 1] == '\n') in rproc_coredump_write() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-secvar | 22 and is expected to be "ibm,edk2-compat-v1". 27 format string takes the form "ibm,plpks-sb-v<version>" in the 30 the form "ibm,plpks-sb-v0", indicating that the key management 45 static key management mode. PK, trustedcadb and moduledb are the 57 Description: A read-only file containing the value of the variable. The size 63 Description: A write-only file that is used to submit the new value for the 70 Description: This optional directory contains read-only config attributes as
|
| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun55i-h728-x96qpro+.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT) 4 /dts-v1/; 6 #include "sun55i-a523.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 12 compatible = "amediatech,x96q-pro-plus", "allwinner,sun55i-h728"; 19 stdout-path = "serial0:115200n8"; 22 ext_osc32k: ext-osc32k-clk { 23 #clock-cells = <0>; 24 compatible = "fixed-clock"; 25 clock-frequency = <32768>; [all …]
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | st,stm32-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/pinctrl/st,stm32-pinctrl.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Alexandre TORGUE <alexandre.torgue@foss.st.com> 17 on-chip controllers onto these pads. 22 - st,stm32f429-pinctrl 23 - st,stm32f469-pinctrl 24 - st,stm32f746-pinctrl 25 - st,stm32f769-pinctrl [all …]
|
| /linux/Documentation/admin-guide/sysctl/ |
| H A D | kernel.rst | 5 .. See scripts/check-sysctl-docs to keep this up to date 13 Documentation/admin-guide/sysctl/index.rst. 15 ------------------------------------------------------------------------------ 39 If BSD-style process accounting is enabled these values control 71 The machine hardware name, the same output as ``uname -m`` 129 Ctrl-Alt-Delete). Writing a value to this file which doesn't 130 correspond to a running process will result in ``-ESRCH``. 132 See also `ctrl-alt-del`_. 237 ctrl-alt-del 240 When the value in this file is 0, ctrl-alt-del is trapped and [all …]
|