Home
last modified time | relevance | path

Searched +full:trim +full:- +full:data +full:- +full:valid (Results 1 – 25 of 128) sorted by relevance

123456

/linux/drivers/hwmon/
H A Dbt1-pvt.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Baikal-T1 Process, Voltage, Temperature sensor driver
18 #include <linux/hwmon-sysfs.h>
34 #include "bt1-pvt.h"
44 PVT_SENSOR_INFO(1, "CPU Core Low-Vt", hwmon_in, LVT, LTHRES),
45 PVT_SENSOR_INFO(2, "CPU Core High-Vt", hwmon_in, HVT, HTHRES),
46 PVT_SENSOR_INFO(3, "CPU Core Standard-Vt", hwmon_in, SVT, STHRES),
51 * to PVT data and vice-versa are following:
52 * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) +
54 * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) +
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_protocol.h1 /* SPDX-License-Identifier: GPL-2.0-only */
6 /* receiver (data socket) */
15 P_DATA_REQUEST = 0x08, /* Used to ask for a data block */
16 P_RS_DATA_REQUEST = 0x09, /* Used to ask for a data block for resync */
33 P_SUPERSEDED = 0x18, /* Used in proto C, two-primaries conflict detection */
42 P_OV_REQUEST = 0x1e, /* data socket */
45 P_CSUM_RS_REQUEST = 0x21, /* data socket */
47 P_SYNC_PARAM89 = 0x23, /* data socket, protocol version 89 replacement for P_SYNC_PARAM */
52 P_OUT_OF_SYNC = 0x28, /* Mark as out of sync (Outrunning), data socket */
54 P_CONN_ST_CHG_REQ = 0x2a, /* data sock: Connection wide state request */
[all …]
H A Ddrbd_receiver.c1 // 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>.
48 void *data; member
73 /* GFP_TRY, because we must not cause arbitrary write-out: in a DRBD in __drbd_alloc_pages()
74 * "criss-cros in __drbd_alloc_pages()
1670 unsigned long *data; read_in_block() local
1671 struct p_trim *trim = (pi->cmd == P_TRIM) ? pi->data : NULL; read_in_block() local
1773 void *data; drbd_drain_block() local
[all...]
/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qusb2.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/nvmem-consumer.h>
22 #include <dt-bindings/phy/phy-qcom-qusb2.h>
105 * if yes, then offset gives index in the reg-layout
123 /* set of registers with offsets different per-PHY */
307 /* true if PHY default clk scheme is single-ended */
397 "vdd", "vdda-pll", "vdda-phy-dpdm",
402 /* struct override_param - structure holding qusb2 v2 phy overriding param
411 /*struct override_params - structure holding qusb2 v2 phy overriding params
414 * @preemphasis: Amplitude Pre-Emphasis to be updated in TUNE1 register
[all …]
/linux/drivers/mmc/host/
H A Dsdhci-pci-arasan.c1 // SPDX-License-Identifier: GPL-2.0
3 * sdhci-pci-arasan.c - Driver for Arasan PCI Controller with
15 #include "sdhci-pci.h"
88 /* Arasan private data */
105 return -EBUSY; in arasan_phy_addr_poll()
109 static int arasan_phy_write(struct sdhci_host *host, u8 data, u8 offset) in arasan_phy_write() argument
111 sdhci_writew(host, data, PHY_DAT_REG); in arasan_phy_write()
116 static int arasan_phy_read(struct sdhci_host *host, u8 offset, u8 *data) in arasan_phy_read() argument
124 /* Masking valid data bits */ in arasan_phy_read()
125 *data = sdhci_readw(host, PHY_DAT_REG) & DATA_MASK; in arasan_phy_read()
[all …]
/linux/include/uapi/linux/media/amlogic/
H A Dc3-isp-config.h1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
14 #include <linux/media/v4l2-isp.h>
17 * Frames are split into zones of almost equal width and height - a zone is a
31 * struct c3_isp_awb_zone_stats - AWB statistics of a zone
46 * struct c3_isp_awb_stats - Auto white balance statistics information.
57 * struct c3_isp_ae_zone_stats - AE statistics of a zone
60 * This is a 5-bin histogram and the total sum is normalized to 0xffff.
61 * So hist2 = 0xffff - (hist0 + hist1 + hist3 + hist4)
76 * struct c3_isp_ae_stats - Exposure statistics information
78 * AE statistical information consists of all blocks information and a 1024-bin
[all …]
/linux/fs/xfs/
H A Dxfs_discard.c1 // SPDX-License-Identifier: GPL-2.0
33 * gathering extents to trim, we must hold the AGF lock to lock out other
51 * We can't do this exactly with free space - once we drop the AGF lock, the
57 * This is exactly how online discard works - free extents are marked busy when
87 xfs_extent_busy_clear(&extents->extent_list, false); in xfs_discard_endio_work()
88 kfree(extents->owner); in xfs_discard_endio_work()
92 * Queue up the actual completion to a thread to avoid IRQ-safe locking for
99 struct xfs_busy_extents *extents = bio->bi_private; in xfs_discard_endio()
101 INIT_WORK(&extents->endio_work, xfs_discard_endio_work); in xfs_discard_endio()
102 queue_work(xfs_discard_wq, &extents->endio_work); in xfs_discard_endio()
[all …]
H A Dxfs_aops.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4 * Copyright (c) 2016-2025 Christoph Hellwig.
39 * Fast and loose check if this write could update the on-disk inode size.
43 return ioend->io_offset + ioend->io_size > in xfs_ioend_is_append()
44 XFS_I(ioend->io_inode)->i_disk_size; in xfs_ioend_is_append()
48 * Update on-disk file size now that data has been written to disk.
56 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize()
61 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp); in xfs_setfilesize()
75 ip->i_disk_size = isize; in xfs_setfilesize()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Ddynptr_success.c1 // SPDX-License-Identifier: GPL-2.0
50 /* Write data into the dynptr */ in test_read_write()
53 /* Read the data that was written into the dynptr */ in test_read_write()
56 /* Ensure the data we read matches the data we wrote */ in test_read_write()
74 void *data; in test_dynptr_data() local
91 /* Try getting a data slice that is out of range */ in test_dynptr_data()
92 data in test_dynptr_data()
123 ringbuf_callback(__u32 index,void * data) ringbuf_callback() argument
197 __u64 *data; test_dynptr_skb_data() local
220 __u32 trim = 15; test_adjust() local
516 __u64 *data; test_dynptr_skb_no_buff() local
533 char *data; test_dynptr_skb_strcmp() local
586 char data[] = "hello there, world!!"; test_dynptr_copy() local
614 char data[] = "qwertyuiopasdfghjkl"; test_dynptr_copy_xdp() local
[all...]
/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b_common.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
178 struct rtw89_tssi_info *tssi = &rtwdev->tssi; in rtw8852bx_efuse_parsing_tssi()
179 struct rtw8852bx_tssi_offset *ofst[] = {&map->path_a_tssi, &map->path_b_tssi}; in rtw8852bx_efuse_parsing_tssi()
182 tssi->thermal[RF_PATH_A] = map->path_a_ther in rtw8852bx_efuse_parsing_tssi()
206 _decode_efuse_gain(u8 data,s8 * high,s8 * low) _decode_efuse_gain() argument
220 bool valid = false; rtw8852bx_efuse_parsing_gain_offset() local
419 bool valid = false; rtw8852bx_phycap_parsing_gain_comp() local
421 u8 data; rtw8852bx_phycap_parsing_gain_comp() local
[all...]
/linux/include/linux/
H A Diomap.h1 /* SPDX-License-Identifier: GPL-2.0 */
34 #define IOMAP_INLINE 4 /* data inline in the inode */
40 * zeroing for areas that no data is copied to.
43 * written data and requires fdatasync to commit them to persistent storage.
57 * rather than a file data extent.
94 * IOMAP_F_STALE indicates that the iomap is not valid any longer and the file
104 #define IOMAP_NULL_ADDR -1ULL /* addr is not valid */
121 if (iomap->flags & IOMAP_F_ANON_WRITE) in iomap_sector()
123 return (iomap->addr + pos - iomap->offset) >> SECTOR_SHIFT; in iomap_sector()
127 * Returns the inline data pointer for logical offset @pos.
[all …]
/linux/Documentation/devicetree/bindings/hwmon/
H A Dbaikal,bt1-pvt.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/hwmon/baikal,bt1-pvt.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Baikal-T1 PVT Sensor
11 - Serge Semin <fancer.lancer@gmail.com>
14 Baikal-T1 SoC provides an embedded process, voltage and temperature
17 which may cause the system instability and even damages. The IP-block
19 control wrapper, which provides a MMIO registers-based access to the
20 sensor core functionality (APB3-bus based) and exposes an additional
[all …]
/linux/net/sunrpc/
H A Dxdr.c1 // SPDX-License-Identifier: GPL-2.0-only
31 unsigned int quadlen = XDR_QUADLEN(obj->len); in xdr_encode_netobj()
34 *p++ = cpu_to_be32(obj->len); in xdr_encode_netobj()
35 memcpy(p, obj->data, obj->len); in xdr_encode_netobj()
36 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj()
41 * xdr_encode_opaque_fixed - Encode fixed length opaque data
43 * @ptr: pointer to data to encode (or NULL)
44 * @nbytes: size of data.
46 * Copy the array of data of length nbytes at ptr to the XDR buffer
47 * at position p, then align to the next 32-bit boundary by padding
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_ovs.c1 // SPDX-License-Identifier: GPL-2.0-only
27 helper = rcu_dereference(help->helper); in nf_ct_helper()
31 if (helper->tuple.src.l3num != NFPROTO_UNSPEC && in nf_ct_helper()
32 helper->tuple.src.l3num != proto) in nf_ct_helper()
38 proto = ip_hdr(skb)->protocol; in nf_ct_helper()
41 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in nf_ct_helper()
56 WARN_ONCE(1, "helper invoked on non-IP family!"); in nf_ct_helper()
60 if (helper->tuple.dst.protonum != proto) in nf_ct_helper()
63 err = helper->help(skb, protoff, ct, ctinfo); in nf_ct_helper()
69 * addresses and/or port numbers in the text-based control connection. in nf_ct_helper()
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-crypt.rst2 dm-crypt
5 Device-Mapper's "crypt" target provides transparent encryption of block devices
21 cipher[:keycount]-chainmode-ivmode[:ivopts]
25 aes-cbc-essiv:sha256
26 aes-xts-plain64
27 serpent-xts-plain64
36 capi:cipher_api_spec-ivmode[:ivopts]
40 capi:cbc(aes)-essiv:sha256
41 capi:xts(aes)-plain64
45 capi:gcm(aes)-random
[all …]
H A Ddm-integrity.rst2 dm-integrity
5 The dm-integrity target emulates a block device that has additional
6 per-sector tags that can be used for storing integrity information.
9 writing the sector and the integrity tag must be atomic - i.e. in case of
12 To guarantee write atomicity, the dm-integrity target uses journal, it
13 writes sector data and integrity tags into a journal, commits the journal
14 and then copies the data and integrity tags to their respective location.
16 The dm-integrity target can be used with the dm-crypt target - in this
17 situation the dm-crypt target creates the integrity data and passes them
18 to the dm-integrity target via bio_integrity_payload attached to the bio.
[all …]
H A Ddm-clone.rst1 .. SPDX-License-Identifier: GPL-2.0-only
4 dm-clone
10 dm-clone is a device mapper target which produces a one-to-one copy of an
11 existing, read-only source device into a writable destination device: It
12 presents a virtual block device which makes all data appear immediately, and
15 The main use case of dm-clone is to clone a potentially remote, high-latency,
16 read-only, archival-type block device into a writable, fast, primary-type device
17 for fast, low-latency I/O. The cloned device is visible/mountable immediately
21 For example, one could restore an application backup from a read-only copy,
26 When the cloning completes, the dm-clone table can be removed altogether and be
[all …]
/linux/fs/jfs/
H A Djfs_incore.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) International Business Machines Corp., 2000-2004
4 * Portions Copyright (C) Christoph Hellwig, 2001-2002
25 * JFS-private inode information
29 uint mode2; /* jfs-specific mode */
109 down_read_nested(&JFS_IP(ip)->rdwrlock, subclass)
110 #define IREAD_UNLOCK(ip) up_read(&JFS_IP(ip)->rdwrlock)
112 down_write_nested(&JFS_IP(ip)->rdwrlock, subclass)
113 #define IWRITE_UNLOCK(ip) up_write(&JFS_IP(ip)->rdwrlock)
124 COMMIT_Stale, /* data extent is no longer valid */
[all …]
/linux/include/linux/mmc/
H A Dmmc.h4 * Copyright 2002 Hewlett-Packard Company
10 * HEWLETT-PACKARD COMPANY MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
18 * Author: Yong-iL Joh <tolkien@mizi.com>
53 #define MMC_READ_SINGLE_BLOCK 17 /* adtc [31:0] data addr R1 */
54 #define MMC_READ_MULTIPLE_BLOCK 18 /* adtc [31:0] data addr R1 */
59 #define MMC_WRITE_DAT_UNTIL_STOP 20 /* adtc [31:0] data addr R1 */
62 #define MMC_SET_BLOCK_COUNT 23 /* adtc [31:0] data addr R1 */
63 #define MMC_WRITE_BLOCK 24 /* adtc [31:0] data addr R1 */
69 #define MMC_SET_WRITE_PROT 28 /* ac [31:0] data addr R1b */
70 #define MMC_CLR_WRITE_PROT 29 /* ac [31:0] data addr R1b */
[all …]
/linux/Documentation/driver-api/nvdimm/
H A Dbtt.rst2 BTT - Block Translation Table
14 using stored energy in capacitors to complete in-flight block writes, or perhaps
15 in firmware. We don't have this luxury with persistent memory - if a write is in
17 and new data. Applications may not be prepared to handle such a scenario.
23 the heart of it, is an indirection table that re-maps all the blocks on the
37 next arena). The following depicts the "On-disk" metadata layout::
40 Backing Store +-------> Arena
41 +---------------+ | +------------------+
43 | Arena 0 +---+ | 4K |
44 | 512G | +------------------+
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_rmap.c1 // SPDX-License-Identifier: GPL-2.0
50 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
51 cur->bc_rec.r.rm_blockcount = 0; in xfs_rmap_lookup_le()
52 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
53 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_le()
54 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_le()
65 return -EFSCORRUPTED; in xfs_rmap_lookup_le()
85 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
86 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq()
87 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
[all …]
/linux/drivers/nvdimm/
H A Dlabel.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
11 #include "nd-core.h"
47 return ndd->nslabel_size; in sizeof_namespace_label()
59 return (ndd->nsarea.config_size - index_size * 2) / in __nvdimm_num_label_slots()
67 tmp_nslot = ndd->nsarea.config_size / sizeof_namespace_label(ndd); in nvdimm_num_label_slots()
84 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd); in sizeof_namespace_index()
89 dev_err(ndd->dev, "label area (%d) too small to host (%d byte) labels\n", in sizeof_namespace_index()
90 ndd->nsarea.config_size, sizeof_namespace_label(ndd)); in sizeof_namespace_index()
103 * +------------+ in __nd_label_validate()
[all …]
/linux/drivers/comedi/drivers/
H A Dcb_pcidas.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Copyright (C) 2001-2003 Ivan Martinez <imr@oersted.dtu.dk>
10 * COMEDI - Linux Control and Measurement Device Interface
11 * Copyright (C) 1997-8 David A. Schleef <ds@schleef.org>
16 * Description: MeasurementComputing PCI-DAS series
18 * Devices: [Measurement Computing] PCI-DAS1602/16 (cb_pcidas),
19 * PCI-DAS1602/16jr, PCI-DAS1602/12, PCI-DAS1200, PCI-DAS1200jr,
20 * PCI-DAS1000, PCI-DAS1001, PCI_DAS1002
23 * Updated: 2003-3-11
36 * (i.e. 4-5-6-7, 2-3-4,...), and must all have the same
[all …]
/linux/fs/ntfs3/
H A Dntfs_fs.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
8 // clang-format off
19 #include <linux/page-flags.h>
42 #define MINUS_ONE_T ((size_t)(-1))
54 /* NTFS specific error code about resident->nonresident. */
58 /* NTFS specific error code when on-disk struct is corrupted. */
62 /* sbi->flag
[all...]
/linux/fs/ext4/
H A Dmballoc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
18 #include <linux/backing-dev.h>
25 * - test ext4_ext_search_left() and ext4_ext_search_right()
26 * - search for metadata in few groups
29 * - normalization should take into account whether file is still open
30 * - discard preallocations if no free space left (policy?)
31 * - do
1360 char *data; ext4_mb_init_cache() local
[all...]

123456