Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/bpf/progs/
H A Ddynptr_success.c1 // SPDX-License-Identifier: GPL-2.0
49 /* Write data into the dynptr */ in test_read_write()
52 /* Read the data that was written into the dynptr */ in test_read_write()
55 /* Ensure the data we read matches the data we wrote */ in test_read_write()
73 void *data; in test_dynptr_data() local
90 /* Try getting a data slice that is out of range */ in test_dynptr_data()
91 data = bpf_dynptr_data(&ptr, map_val_size + 1, 1); in test_dynptr_data()
92 if (data) { in test_dynptr_data()
98 data = bpf_dynptr_data(&ptr, 0, map_val_size + 1); in test_dynptr_data()
99 if (data) { in test_dynptr_data()
[all …]
/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 …]
/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 */
294 /* true if PHY default clk scheme is single-ended */
373 "vdd", "vdda-pll", "vdda-phy-dpdm",
378 /* struct override_param - structure holding qusb2 v2 phy overriding param
387 /*struct override_params - structure holding qusb2 v2 phy overriding params
390 * @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 …]
H A Dsdhci-tegra.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/dma-mapping.h>
20 #include <linux/mmc/slot-gpio.h>
32 #include "sdhci-cqhci.h"
33 #include "sdhci-pltfm.h"
123 * SDMMC hardware data timeout.
192 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_readw()
194 if (unlikely((soc_data->nvquirks & NVQUIRK_FORCE_SDHCI_SPEC_200) && in tegra_sdhci_readw()
200 return readw(host->ioaddr + reg); in tegra_sdhci_readw()
213 pltfm_host->xfer_mode_shadow = val; in tegra_sdhci_writew()
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b_common.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
177 ether_addr_copy(efuse->addr, map->e.mac_addr); in rtw8852be_efuse_parsing()
178 efuse->rfe_type = map->rfe_type; in rtw8852be_efuse_parsing()
179 efuse->xtal_cap = map->xtal_k; in rtw8852be_efuse_parsing()
185 struct rtw89_tssi_info *tssi = &rtwdev->tssi; in rtw8852bx_efuse_parsing_tssi()
186 struct rtw8852bx_tssi_offset *ofst[] = {&map->path_a_tssi, &map->path_b_tssi}; in rtw8852bx_efuse_parsing_tssi()
189 tssi->thermal[RF_PATH_A] = map->path_a_therm; in rtw8852bx_efuse_parsing_tssi()
190 tssi->thermal[RF_PATH_B] = map->path_b_therm; in rtw8852bx_efuse_parsing_tssi()
193 memcpy(tssi->tssi_cck[i], ofst[i]->cck_tssi, in rtw8852bx_efuse_parsing_tssi()
194 sizeof(ofst[i]->cck_tssi)); in rtw8852bx_efuse_parsing_tssi()
[all …]
H A Drtw8852c.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2022 Realtek Corporation
20 RTW8852C_FW_BASENAME "-" __stringify(RTW8852C_FW_FORMAT_MAX) ".bin"
393 ether_addr_copy(efuse->addr, map->e.mac_addr); in rtw8852c_e_efuse_parsing()
394 efuse->rfe_type = map->rfe_type; in rtw8852c_e_efuse_parsing()
395 efuse->xtal_cap = map->xtal_k; in rtw8852c_e_efuse_parsing()
401 struct rtw89_tssi_info *tssi = &rtwdev->tssi; in rtw8852c_efuse_parsing_tssi()
402 struct rtw8852c_tssi_offset *ofst[] = {&map->path_a_tssi, &map->path_b_tssi}; in rtw8852c_efuse_parsing_tssi()
403 u8 *bw40_1s_tssi_6g_ofst[] = {map->bw40_1s_tssi_6g_a, map->bw40_1s_tssi_6g_b}; in rtw8852c_efuse_parsing_tssi()
406 tssi->thermal[RF_PATH_A] = map->path_a_therm; in rtw8852c_efuse_parsing_tssi()
[all …]
H A Drtw8851b.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2022-2023 Realtek Corporation
236 {255, 0, 0, 7}, /* 0 -> original */
237 {255, 2, 0, 7}, /* 1 -> for BT-connected ACI issue && BTG co-rx */
238 {255, 0, 0, 7}, /* 2 ->reserved for shared-antenna */
239 {255, 0, 0, 7}, /* 3- >reserved for shared-antenna */
240 {255, 0, 0, 7}, /* 4 ->reserved for shared-antenna */
241 {255, 1, 0, 7}, /* the below id is for non-shared-antenna free-run */
248 {255, 0, 0, 7}, /* 0 -> original */
249 {255, 2, 0, 7}, /* 1 -> reserved for shared-antenna */
[all …]
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2020 Realtek Corporation
19 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def; in rtw89_phy0_phy1_offset()
21 return phy->phy0_phy1_offset(rtwdev, addr); in rtw89_phy0_phy1_offset()
27 u32 bit_rate = report->bit_rate; in get_max_amsdu_len()
34 if (report->might_fallback_legacy) in get_max_amsdu_len()
49 return rtwdev->chip->max_amsdu_limit; in get_max_amsdu_len()
65 ra_mask |= GENMASK_ULL(highest_mcs - gap, 0) << nss; in get_mcs_ra_mask()
68 ra_mask |= GENMASK_ULL(highest_mcs - gap * 2, 0) << nss; in get_mcs_ra_mask()
80 struct ieee80211_sta_he_cap cap = link_sta->he_cap; in get_he_ra_mask()
[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/Documentation/devicetree/bindings/mmc/
H A Dsdhci-am654.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
4 ---
5 $id: http://devicetree.org/schemas/mmc/sdhci-am654.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Ulf Hansson <ulf.hansson@linaro.org>
14 - $ref: sdhci-common.yaml#
19 - enum:
20 - ti,am62-sdhci
21 - ti,am64-sdhci-4bit
[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 …]
/linux/kernel/irq/
H A Dirqdomain.c1 // SPDX-License-Identifier: GPL-2.0
53 return fwid->name; in irqchip_fwnode_get_name()
62 * __irq_domain_alloc_fwnode - Allocate a fwnode_handle suitable for
67 * @pa: Optional user-provided physical address
91 n = kasprintf(GFP_KERNEL, "%s-%d", name, id); in __irq_domain_alloc_fwnode()
104 fwid->type = type; in __irq_domain_alloc_fwnode()
105 fwid->name = n; in __irq_domain_alloc_fwnode()
106 fwid->pa = pa; in __irq_domain_alloc_fwnode()
107 fwnode_init(&fwid->fwnode, &irqchip_fwnode_ops); in __irq_domain_alloc_fwnode()
108 return &fwid->fwnode; in __irq_domain_alloc_fwnode()
[all …]
/linux/fs/xfs/
H A Dxfs_aops.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4 * Copyright (c) 2016-2018 Christoph Hellwig.
36 * Fast and loose check if this write could update the on-disk inode size.
40 return ioend->io_offset + ioend->io_size > in xfs_ioend_is_append()
41 XFS_I(ioend->io_inode)->i_disk_size; in xfs_ioend_is_append()
45 * Update on-disk file size now that data has been written to disk.
53 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize()
58 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp); in xfs_setfilesize()
72 ip->i_disk_size = isize; in xfs_setfilesize()
[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/drivers/nvdimm/
H A Dbtt.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2014-2015, Intel Corporation.
9 #include <linux/blk-integrity.h>
19 #include <linux/backing-dev.h>
31 return &arena->nd_btt->dev; in to_dev()
36 return offset + nd_btt->initial_offset; in adjust_initial_offset()
42 struct nd_btt *nd_btt = arena->nd_btt; in arena_read_bytes()
43 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_read_bytes()
53 struct nd_btt *nd_btt = arena->nd_btt; in arena_write_bytes()
54 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_write_bytes()
[all …]
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/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/fs/ntfs3/
H A Dattrib.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
47 align_shift = NTFS_MIN_LOG2_OF_CLUMP - 1 + in get_pre_allocated()
52 ret = (((size + clump - 1) >> align_shift)) << align_shift; in get_pre_allocated()
58 * attr_load_runs - Load all runs stored in @attr.
64 CLST svcn = le64_to_cpu(attr->nres.svcn); in attr_load_runs()
65 CLST evcn = le64_to_cpu(attr->nres.evcn); in attr_load_runs()
73 return -EINVAL; in attr_load_runs()
75 asize = le32_to_cpu(attr->size); in attr_load_runs()
76 run_off = le16_to_cpu(attr->nres.run_off); in attr_load_runs()
[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/drivers/iio/light/
H A Dmax44000.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Data sheet: https://datasheets.maximintegrated.com/en/ds/MAX44000.pdf
9 * 7-bit I2C slave address 0x4a
165 .scan_index = -1,
169 static int max44000_read_alstim(struct max44000_data *data) in max44000_read_alstim() argument
174 ret = regmap_read(data->regmap, MAX44000_REG_CFG_RX, &val); in max44000_read_alstim()
180 static int max44000_write_alstim(struct max44000_data *data, int val) in max44000_write_alstim() argument
182 return regmap_write_bits(data->regmap, MAX44000_REG_CFG_RX, in max44000_write_alstim()
187 static int max44000_read_alspga(struct max44000_data *data) in max44000_read_alspga() argument
192 ret = regmap_read(data->regmap, MAX44000_REG_CFG_RX, &val); in max44000_read_alspga()
[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 …]

123456