| /linux/fs/erofs/ |
| H A D | decompressor_zstd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 z_erofs_zstd_head = all ? NULL : strm->next; in z_erofs_isolate_strms() 43 n = strm->next; in z_erofs_zstd_exit() 45 kvfree(strm->wksp); in z_erofs_zstd_exit() 47 --z_erofs_zstd_avail_strms; in z_erofs_zstd_exit() 65 return -ENOMEM; in z_erofs_zstd_init() 68 strm->next = z_erofs_zstd_head; in z_erofs_zstd_init() 84 if (!zstd || size < sizeof(struct z_erofs_zstd_cfgs) || zstd->format) { in z_erofs_load_zstd_config() 86 return -EINVAL; in z_erofs_load_zstd_config() 89 if (zstd->windowlog > ilog2(Z_EROFS_ZSTD_MAX_DICT_SIZE) - 10) { in z_erofs_load_zstd_config() [all …]
|
| H A D | decompressor_lzma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 struct z_erofs_lzma *n = strm->next; in z_erofs_lzma_exit() 39 if (strm->state) in z_erofs_lzma_exit() 40 xz_dec_microlzma_end(strm->state); in z_erofs_lzma_exit() 42 --z_erofs_lzma_avail_strms; in z_erofs_lzma_exit() 61 return -ENOMEM; in z_erofs_lzma_init() 64 strm->next = z_erofs_lzma_head; in z_erofs_lzma_init() 83 return -EINVAL; in z_erofs_load_lzma_config() 85 if (lzma->format) { in z_erofs_load_lzma_config() 87 le16_to_cpu(lzma->format)); in z_erofs_load_lzma_config() [all …]
|
| /linux/include/trace/events/ |
| H A D | ceph.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Written by Max Kellermann (max.kellermann@ionos.com) 16 EM(ceph_mdsc_suspend_reason_no_mdsmap, "no-mdsmap") \ 17 EM(ceph_mdsc_suspend_reason_no_active_mds, "no-active-mds") \ 68 __entry->tid = req->r_tid; 69 __entry->op = req->r_op; 71 inode = req->r_inode; 72 if (inode == NULL && req->r_dentry) 73 inode = d_inode(req->r_dentry); 76 __entry->ino = ceph_ino(inode); [all …]
|
| /linux/drivers/misc/sgi-xp/ |
| H A D | xp.h | 7 * Copyright (C) 2004-2008 Silicon Graphics, Inc. All rights reserved. 45 * other partition that is currently up. Over these channels, kernel-level 56 * interface-shared info to fit in one 128-byte cacheline. 61 #define XPC_MAX_NCHANNELS 2 /* max #of channels allowed */ 74 #define XPC_MSG_PAYLOAD_MAX_SIZE (XPC_MSG_MAX_SIZE - XPC_MSG_HDR_MAX_SIZE) 147 xpOtherGoingDown, /* 44: other side going down, reason unknown */ 148 xpSystemGoingDown, /* 45: system is going down, reason unknown */ 174 xpUnknownReason /* 63: unknown reason - must be last in enum */ 184 * reason - reason code. 185 * partid - partition ID associated with condition. [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | msm8916-longcheer-l8150.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8916-pm8916.dtsi" 6 #include "msm8916-modem-qdsp6.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/leds/common.h> 16 chassis-type = "handset"; 25 stdout-path = "serial0"; [all …]
|
| /linux/include/uapi/scsi/fc/ |
| H A D | fc_fs.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Maintained at www.Open-FCoE.org 15 * From T11 FC-FS-2 Rev 0.90 - 9 August 2005. 42 #define FC_MAX_PAYLOAD 2112U /* max payload length in bytes */ 43 #define FC_MIN_MAX_PAYLOAD 256U /* lower limit on max payload */ 49 * fh_r_ctl - Routing control definitions. 52 * FC-4 device_data. 72 FC_RCTL_ELS4_REQ = 0x32, /* FC-4 ELS request */ 73 FC_RCTL_ELS4_REP = 0x33, /* FC-4 ELS reply */ 78 FC_RCTL_IFRH = 0x51, /* inter-fabric routing header */ [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | powernv-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #define pr_fmt(fmt) "powernv-cpufreq: " fmt 33 #include "powernv-trace.h" 46 * On an idle system we want the global pstate to ramp-down from max value to 47 * min over a span of ~5 secs. Also we want it to initially ramp-down slowly and 48 * then ramp-down rapidly later on. 63 * struct global_pstate_info - Per policy data structure to maintain history of 143 int reason[OCC_MAX_REASON]; member 153 * max, min and nominal frequencies. It also stores number of 157 * non-turbo frequency. [all …]
|
| /linux/net/ipv4/ |
| H A D | ip_fragment.c | 1 // SPDX-License-Identifier: GPL-2.0 56 * as well. Or notify me, at least. --ANK 58 static const char ip_frag_cache_name[] = "ip4-frags"; 87 struct net *net = q->fqdir->net; in ip4_frag_init() 90 q->key.v4 = *key; in ip4_frag_init() 91 qp->ecn = 0; in ip4_frag_init() 92 if (q->fqdir->max_dist) { in ip4_frag_init() 94 p = inet_getpeer_v4(net->ipv4.peers, key->saddr, key->vif); in ip4_frag_init() 95 if (p && !refcount_inc_not_zero(&p->refcnt)) in ip4_frag_init() 99 qp->peer = p; in ip4_frag_init() [all …]
|
| /linux/include/net/ |
| H A D | rstreason.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 #include <net/dropreason-core.h> 34 FNe(MAX) 37 * enum sk_rst_reason - the reasons of socket reset 47 /* Refer to include/net/dropreason-core.h 51 /** @SK_RST_REASON_NOT_SPECIFIED: reset reason i 195 sk_rst_convert_drop_reason(enum skb_drop_reason reason) sk_rst_convert_drop_reason() argument [all...] |
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | tx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1998-2009 Texas Instruments. All rights reserved. 98 (1u << (8 * sizeof(((struct wl128x_tx_mem *) 0)->extra_bytes)))) 111 * Max delay in TUs until transmission. The last device time the 115 /* Bitwise fields - see TX_ATTR... definitions above. */ 117 /* Packet identifier used also in the Tx-Result. */ 119 /* The packet TID value (as User-Priority) */ 128 * bit 0 -> 0 = udp, 1 = tcp 129 * bit 1:7 -> IP header offset 148 /* Packet Identifier - same value used in the Tx descriptor.*/ [all …]
|
| /linux/drivers/media/platform/samsung/s5p-mfc/ |
| H A D | s5p_mfc_opr_v5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Samsung MFC (Multi Function Codec - FIMV) driver 22 #include <linux/dma-mapping.h> 30 #define OFFSETA(x) (((x) - dev->dma_base[BANK_L_CTX]) >> MFC_OFFSET_SHIFT) 31 #define OFFSETB(x) (((x) - dev->dma_base[BANK_R_CTX]) >> MFC_OFFSET_SHIFT) 36 struct s5p_mfc_dev *dev = ctx->dev; in s5p_mfc_alloc_dec_temp_buffers_v5() 37 const struct s5p_mfc_buf_size_v5 *buf_size = dev->variant->buf_size->priv; in s5p_mfc_alloc_dec_temp_buffers_v5() 40 ctx->dsc.size = buf_size->dsc; in s5p_mfc_alloc_dec_temp_buffers_v5() 41 ret = s5p_mfc_alloc_priv_buf(dev, BANK_L_CTX, &ctx->dsc); in s5p_mfc_alloc_dec_temp_buffers_v5() 47 BUG_ON(ctx->dsc.dma & ((1 << MFC_BANK1_ALIGN_ORDER) - 1)); in s5p_mfc_alloc_dec_temp_buffers_v5() [all …]
|
| /linux/Documentation/devicetree/bindings/reserved-memory/ |
| H A D | ramoops.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reserved-memory/ramoops.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 recovered after a reboot. This is a child-node of "/reserved-memory", and 16 as kernel log messages, or for optional ECC error-correction data. The total 23 At least one of "record-size", "console-size", "ftrace-size", or "pmsg-size" 24 must be set non-zero, but are otherwise optional as listed below. 27 - Kees Cook <keescook@chromium.org> 30 - $ref: reserved-memory.yaml [all …]
|
| /linux/drivers/power/reset/ |
| H A D | at91-reset.c | 6 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcosoft.com> 20 #include <linux/reset-controller.h> 26 #include <dt-bindings/reset/sama7g5-reset.h> 47 * enum reset_type - reset types 48 * @RESET_TYPE_GENERAL: first power-up reset 69 * struct at91_reset - AT91 reset specific data structure 97 * struct at91_reset_data - AT91 reset data 101 * @device_reset_max_id: max id for device reset 140 : "r" (reset->ramc_base[0]), in at91_reset() 141 "r" (reset->ramc_base[1]), in at91_reset() [all …]
|
| /linux/rust/kernel/ |
| H A D | maple_tree.rs | 1 // SPDX-License-Identifier: GPL-2.0 7 //! Reference: <https://docs.kernel.org/core-api/maple_tree.html> 22 /// A maple tree optimized for storing non-overlapping ranges. 50 fn deref(&self) -> &MapleTree<T> { in deref() 56 fn to_maple_range(range: impl RangeBounds<usize>) -> Option<(usize, usize)> { in to_maple_range() 66 Bound::Unbounded => usize::MAX, in to_maple_range() 82 pub fn new() -> impl PinInit<Self> { in new() 86 tree <- Opaque::ffi_init(|slot| unsafe { bindings::mt_init_flags(slot, 0) }), in new() 121 pub fn insert(&self, index: usize, value: T, gfp: Flags) -> Result<(), InsertError<T>> { in insert() 162 /// // non-empty. [all …]
|
| /linux/tools/testing/selftests/damon/ |
| H A D | sysfs.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 # Kselftest frmework requirement - SKIP code is 4. 13 reason=$3 18 echo "expected success because $reason" 27 reason=$3 32 echo "expected failure because $reason" 41 if [ "$to_ensure" = "exist" ] && [ ! -d "$dir" ] 45 elif [ "$to_ensure" = "not_exist" ] && [ - [all...] |
| /linux/drivers/char/ipmi/ |
| H A D | ipmi_bt_sm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * The state machine for an Open IPMI BT sub-driver under ipmi_si.c, part 35 * Typical "Get BT Capabilities" values are 2-3 retries, 5-10 seconds, 37 * buffer (with a documented message of 160 bytes) so go for the max. 38 * Since the Open IPMI architecture is single-message oriented at this 64 BT_STATE_LONG_BUSY /* BT doesn't get hosed :-) */ 72 #define BT_STATE_CHANGE(X, Y) { bt->state = X; return Y; } 110 #define BT_STATUS bt->io->inputb(bt->io, 0) 111 #define BT_CONTROL(x) bt->io->outputb(bt->io, 0, x) 113 #define BMC2HOST bt->io->inputb(bt->io, 1) [all …]
|
| /linux/Documentation/trace/ |
| H A D | osnoise-tracer.rst | 5 In the context of high-performance computing (HPC), the Operating System 9 system. Moreover, hardware-related jobs can also cause noise, for example, 22 interrupts and reports the max observed gap between the reads. It also 32 source of interferences, increasing a per-cpu interference counter. The 38 hardware-related noise. In this way, osnoise can account for any 40 prints the sum of all noise, the max single noise, the percentage of CPU 44 ----- 59 # _-----=> irqs-off 60 # / _----=> need-resched 61 # | / _---=> hardirq/softirq [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/link/ |
| H A D | link_detection.c | 55 link->ctx->logger 71 static const u8 dp_hdmi_dongle_signature_str[] = "DP-HDMI ADAPTOR"; 163 enum dc_detect_reason reason) in link_detect_sink_signal_type() argument 170 if (link->ext_enc_id.id) in link_detect_sink_signal_type() 173 if (link->is_dig_mapping_flexible) in link_detect_sink_signal_type() 176 enc_id = link->link_enc->id; in link_detect_sink_signal_type() 177 result = get_basic_signal_type(enc_id, link->link_id); in link_detect_sink_signal_type() 180 if (link->ep_type != DISPLAY_ENDPOINT_PHY) in link_detect_sink_signal_type() 196 switch (link->link_id.id) { in link_detect_sink_signal_type() 202 aud_support = &link->dc->res_pool->audio_support; in link_detect_sink_signal_type() [all …]
|
| /linux/fs/pstore/ |
| H A D | zone.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * struct psz_buffer - header of zone to flush to storage 28 * @sig: signature to indicate header (PSZ_SIG xor PSZONE-type value) 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 48 * @reason: the kmsg dump reason (e.g. oops, panic, etc) 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 59 enum kmsg_dump_reason reason; member 64 * struct pstore_zone - single stored buffer 67 * @type: front-end type for this zone 68 * @name: front-end name for this zone [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | sysfs-interface.rst | 5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is 6 completely chip-independent. It assumes that all the kernel drivers 10 This is a major improvement compared to lm-sensors 2. 22 For this reason, even if we aim at a chip-independent libsensors, it will 31 this reason, it is still not recommended to bypass the library. 37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes 38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found 49 "fan" (fan). Usual items are "input" (measured value), "max" (high 61 to cause an alarm) is chip-dependent. 69 ---------------- [all …]
|
| /linux/drivers/net/fddi/skfp/h/ |
| H A D | smt.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 89 #define SMT_MAX_ECHO_LEN 4458 /* max length of SMT Echo */ 96 #define SMT_MAX_INFO_LEN (4352-20) /* max length for SMT info */ 110 #define SMTSETPARA(p,t) (p)->para.p_type = (t),\ 111 (p)->para.p_len = sizeof(*(p)) - PARA_LEN 156 #define SMT_ST_TWISTED_A (1<<2) /* A-A connection, twisted ring */ 157 #define SMT_ST_TWISTED_B (1<<3) /* B-B connection, twisted ring */ 294 * units of lem_cutoff,lem_alarm,lem_estimate : 10**-x 394 u_char ec_data[SMT_MAX_ECHO_LEN-4] ; /* echo data */ 398 * P12 : reason code [all …]
|
| /linux/net/sctp/ |
| H A D | transport.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1999-2000 Cisco, Inc. 4 * Copyright (c) 1999-2001 Motorola, Inc. 5 * Copyright (c) 2001-2003 International Business Machines Corp. 17 * lksctp developers <linux-sctp@vger.kernel.org> 46 peer->af_specific = sctp_get_af_specific(addr->sa.sa_family); in sctp_transport_init() 47 memcpy(&peer->ipaddr, addr, peer->af_specific->sockaddr_len); in sctp_transport_init() 48 memset(&peer->saddr, 0, sizeof(union sctp_addr)); in sctp_transport_init() 50 peer->sack_generation = 0; in sctp_transport_init() 58 peer->rto = msecs_to_jiffies(net->sctp.rto_initial); in sctp_transport_init() [all …]
|
| /linux/drivers/infiniband/ulp/srp/ |
| H A D | ib_srp.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 80 "Default number of gather/scatter entries in the SRP command (default is 12, max 255)"); 84 …"Default max number of gather/scatter entries (default is 12, max is " __stringify(SG_MAX_SEGMENTS… 166 int tmo = *(int *)kp->arg; in srp_tmo_get() 182 if (kp->arg == &srp_reconnect_delay) in srp_tmo_set() 185 else if (kp->arg == &srp_fast_io_fail_tmo) in srp_tmo_set() 192 *(int *)kp->arg = tmo; in srp_tmo_set() 205 return (struct srp_target_port *) host->hostdata; in host_to_target() 210 return host_to_target(host)->target_name; in srp_target_info() [all …]
|
| /linux/drivers/char/hw_random/ |
| H A D | xiphera-trng.c | 1 // SPDX-License-Identifier: GPL-2.0 35 static int xiphera_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in xiphera_trng_read() argument 40 while (max >= sizeof(u32)) { in xiphera_trng_read() 42 if (readl(trng->mem + STATUS_REG) == TRNG_NEW_RAND_AVAILABLE) { in xiphera_trng_read() 43 *(u32 *)buf = readl(trng->mem + RAND_REG); in xiphera_trng_read() 46 * and re-enable it to produce a new random number in xiphera_trng_read() 48 writel(HOST_TO_TRNG_READ, trng->mem + CONTROL_REG); in xiphera_trng_read() 49 writel(HOST_TO_TRNG_ENABLE, trng->mem + CONTROL_REG); in xiphera_trng_read() 52 max -= sizeof(u32); in xiphera_trng_read() 64 struct device *dev = &pdev->dev; in xiphera_trng_probe() [all …]
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | qlink.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 31 * enum qlink_msg_type - QLINK message types 49 * struct qlink_msg_header - common QLINK protocol message header 65 * enum qlink_hw_capab - device capabilities. 68 * @QLINK_HW_CAPAB_STA_INACT_TIMEOUT: device implements a logic to kick-out 91 * enum qlink_driver_capab - host driver capabilities. 108 * struct qlink_intf_info - information on virtual interface. 147 * struct qlink_channel - qlink control channel definition 149 * @hw_value: hardware-specific value for the channel [all …]
|