/linux-6.14.4/drivers/gpio/ |
D | gpio-sch311x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * GPIO driver for the SMSC SCH311x Super-I/O chips 20 #define DRV_NAME "gpio-sch311x" 39 struct sch311x_gpio_block { /* one GPIO block runtime data */ 44 spinlock_t lock; /* lock for this GPIO block */ 93 * Super-IO functions 102 return -EBUSY; in sch311x_sio_enter() 132 static int sch311x_gpio_request(struct gpio_chip *chip, unsigned offset) in sch311x_gpio_request() argument 134 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_request() local 136 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_request() [all …]
|
/linux-6.14.4/sound/pci/hda/ |
D | tas2781_spi_fwlib.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright 2024-2025 Texas Instruments, Inc. 19 #include <sound/tas2781-dsp.h> 22 #include "tas2781-spi.h" 44 /* should not include B0_P53_R44-R47 */ 79 unsigned char offset; member 161 * receiver, games, audio-to-haptics, PMIC record, bypass mode, in tasdevice_add_config() 164 * ultrasonic application. In order to support these variable-numbers in tasdevice_add_config() 170 *status = -ENOMEM; in tasdevice_add_config() 174 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config() [all …]
|
/linux-6.14.4/fs/squashfs/ |
D | inode.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 14 * Inodes in Squashfs are identified by a 48-bit inode which encodes the 15 * location of the compressed metadata block containing the inode, and the byte 16 * offset into that block where the inode is placed (<block, offset>). 51 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode() 52 if (inode->i_ino == 0) in squashfs_new_inode() 53 return -EINVAL; in squashfs_new_inode() 55 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid); in squashfs_new_inode() 59 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid); in squashfs_new_inode() [all …]
|
D | file.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 14 * compressed fragment block (tail-end packed block). The compressed size 15 * of each datablock is stored in a block list contained within the 20 * block index to datablock location on disk. 23 * retaining a simple and space-efficient block list on disk. The cache 45 * Locate cache slot in range [offset, index] for specified inode. If 48 static struct meta_index *locate_meta_index(struct inode *inode, int offset, in locate_meta_index() argument 52 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in locate_meta_index() 55 mutex_lock(&msblk->meta_index_mutex); in locate_meta_index() [all …]
|
D | namei.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 16 * the metablock containing the directory and the offset into the 17 * decompressed block (<block, offset>). 22 * compressed metadata block, and therefore, can share the start block. 24 * header containing the shared start block value, and a sequence of directory 25 * entries, each of which share the shared start block. A new directory header 26 * is written once/if the inode start block changes. The directory 32 * in each metadata block. Directories are sorted in alphabetical order, 35 * location of the metadata block the filename is in has been found. [all …]
|
D | cache.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 23 * are decompressed and cached in the page-cache in the normal way. The 29 * have been packed with it, these because of locality-of-reference may be read 49 * Look-up block in cache, and increment usage count. If not in cache, read 53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 58 spin_lock(&cache->lock); in squashfs_cache_get() 61 for (i = cache->curr_blk, n = 0; n < cache->entries; n++) { in squashfs_cache_get() 62 if (cache->entry[i].block == block) { in squashfs_cache_get() 63 cache->curr_blk = i; in squashfs_cache_get() [all …]
|
/linux-6.14.4/sound/soc/codecs/ |
D | tas2781-fmwlib.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // tas2781-fmwlib.c -- TASDEVICE firmware support 5 // Copyright 2023 - 2024 Texas Instruments, Inc. 7 // Author: Shenghao Ding <shenghao-[email protected]> 43 /*should not include B0_P53_R44-R47 */ 78 unsigned char offset; member 158 * receiver, games, audio-to-haptics, PMIC record, bypass mode, in tasdevice_add_config() 161 * ultrasonic application. In order to support these variable-numbers in tasdevice_add_config() 167 *status = -ENOMEM; in tasdevice_add_config() 171 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config() [all …]
|
/linux-6.14.4/drivers/md/dm-vdo/ |
D | encodings.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include "memory-alloc.h" 15 #include "status-codes.h" 109 * The current version for the data encoded in the super block. This must be changed any time there 129 /* This is the minimum size, if the super block contains no components. */ 130 .size = VDO_SUPER_BLOCK_FIXED_SIZE - VDO_ENCODED_HEADER_SIZE, 134 * validate_version() - Check whether a version matches an expected version. 162 * vdo_validate_header() - Check whether a header matches expectations. 181 if (expected_header->id != actual_header->id) { in vdo_validate_header() 184 name, expected_header->id, in vdo_validate_header() [all …]
|
/linux-6.14.4/fs/udf/ |
D | partition.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Partition handling routines for the OSTA-UDF(tm) filesystem. 9 * (C) 1998-2001 Ben Fennema 25 uint32_t udf_get_pblock(struct super_block *sb, uint32_t block, in udf_get_pblock() argument 26 uint16_t partition, uint32_t offset) in udf_get_pblock() argument 30 if (partition >= sbi->s_partitions) { in udf_get_pblock() 31 udf_debug("block=%u, partition=%u, offset=%u: invalid partition\n", in udf_get_pblock() 32 block, partition, offset); in udf_get_pblock() 35 map = &sbi->s_partmaps[partition]; in udf_get_pblock() 36 if (map->s_partition_func) in udf_get_pblock() [all …]
|
D | misc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Miscellaneous routines for the OSTA-UDF(tm) filesystem. 10 * (C) 1998-2004 Ben Fennema 11 * (C) 1999-2000 Stelias Computing Inc 22 #include <linux/crc-itu-t.h> 31 int offset; in udf_add_extendedattr() local 35 ea = iinfo->i_data; in udf_add_extendedattr() 36 if (iinfo->i_lenEAttr) { in udf_add_extendedattr() 37 ad = iinfo->i_data + iinfo->i_lenEAttr; in udf_add_extendedattr() 43 offset = inode->i_sb->s_blocksize - udf_file_entry_alloc_offset(inode) - in udf_add_extendedattr() [all …]
|
D | balloc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Block allocation handling routines for the OSTA-UDF(tm) filesystem. 9 * (C) 1999-2001 Ben Fennema 32 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap() argument 40 loc.logicalBlockNum = bitmap->s_extPosition; in read_block_bitmap() 41 loc.partitionReferenceNum = UDF_SB(sb)->s_partition; in read_block_bitmap() 43 bh = sb_bread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap() 44 bitmap->s_block_bitmap[bitmap_nr] = bh; in read_block_bitmap() 46 return -EIO; in read_block_bitmap() 49 max_bits = sb->s_blocksize * 8; in read_block_bitmap() [all …]
|
/linux-6.14.4/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 * allocate a sample block and copy data from userspace 32 int offset; in snd_emu10k1_sample_new() local 37 emu = rec->hw; in snd_emu10k1_sample_new() 39 return -EINVAL; in snd_emu10k1_sample_new() 41 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP | SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) { in snd_emu10k1_sample_new() 42 /* should instead return -ENOTSUPP; but compatibility */ in snd_emu10k1_sample_new() 43 dev_warn(emu->card->dev, in snd_emu10k1_sample_new() 45 sp->v.sample); in snd_emu10k1_sample_new() 48 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu10k1_sample_new() [all …]
|
/linux-6.14.4/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_catalog.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved. 4 * Copyright (c) 2015-2018, 2020 The Linux Foundation. All rights reserved. 16 * Max hardware block count: For ex: max 12 SSPP pipes or 32 * MDP TOP BLOCK features 35 * @DPU_MDP_PERIPH_0_REMOVED Indicates that access to periph top0 block results 38 * (moved into INTF block since DPU 5.0.0) 52 * SSPP sub-blocks/features 54 …* @DPU_SSPP_SCALER_QSEED3_COMPATIBLE, QSEED3-compatible alogorithm support (includes QSEED3, QSEE… 57 * @DPU_SSPP_CSC_10BIT, Support of 10-bit Color space conversion [all …]
|
/linux-6.14.4/fs/nilfs2/ |
D | dat.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2006-2008 Nippon Telegraph and Telephone Corporation. 24 * struct nilfs_dat_info - on-memory private data of DAT file 25 * @mi: on-memory private data of metadata file 45 ret = nilfs_palloc_get_entry_block(dat, req->pr_entry_nr, in nilfs_dat_prepare_entry() 46 create, &req->pr_entry_bh); in nilfs_dat_prepare_entry() 47 if (unlikely(ret == -ENOENT)) { in nilfs_dat_prepare_entry() 48 nilfs_err(dat->i_sb, in nilfs_dat_prepare_entry() 49 "DAT doesn't have a block to manage vblocknr = %llu", in nilfs_dat_prepare_entry() 50 (unsigned long long)req->pr_entry_nr); in nilfs_dat_prepare_entry() [all …]
|
/linux-6.14.4/drivers/net/ethernet/marvell/prestera/ |
D | prestera_counter.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 27 u32 offset; member 45 prestera_counter_is_ready(struct prestera_counter_block *block, u32 id) in prestera_counter_is_ready() argument 47 return block->counter_flag[id - block->offset] == COUNTER_FLAG_READY; in prestera_counter_is_ready() 52 mutex_lock(&counter->mtx); in prestera_counter_lock() 57 mutex_unlock(&counter->mtx); in prestera_counter_unlock() 60 static void prestera_counter_block_lock(struct prestera_counter_block *block) in prestera_counter_block_lock() argument 62 mutex_lock(&block->mtx); in prestera_counter_block_lock() 65 static void prestera_counter_block_unlock(struct prestera_counter_block *block) in prestera_counter_block_unlock() argument 67 mutex_unlock(&block->mtx); in prestera_counter_block_unlock() [all …]
|
/linux-6.14.4/fs/xfs/ |
D | xfs_dir2_readdir.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 51 struct xfs_inode *dp = args->dp; /* incore directory inode */ in xfs_dir2_sf_getdents() 52 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_getdents() 53 xfs_dir2_dataptr_t off; /* current entry's offset */ in xfs_dir2_sf_getdents() 55 struct xfs_dir2_sf_hdr *sfp = dp->i_df.if_data; in xfs_dir2_sf_getdents() 59 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() 61 ASSERT(dp->i_df.if_format == XFS_DINODE_FMT_LOCAL); in xfs_dir2_sf_getdents() 62 ASSERT(dp->i_df.if_bytes == dp->i_disk_size); in xfs_dir2_sf_getdents() 66 * If the block number in the offset is out of range, we're done. in xfs_dir2_sf_getdents() [all …]
|
/linux-6.14.4/fs/befs/ |
D | datastream.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Based on portions of file.c by Makoto Kato <[email protected]-net.ne.jp> 39 * befs_read_datastream - get buffer_head containing data, starting from pos. 43 * @off: offset of data in buffer_head->b_data 45 * Returns pointer to buffer_head containing data starting with offset @off, 46 * if you don't need to know offset just set @off = NULL. 54 befs_blocknr_t block; /* block coresponding to pos */ in befs_read_datastream() local 56 befs_debug(sb, "---> %s %llu", __func__, pos); in befs_read_datastream() 57 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream() 59 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream() [all …]
|
/linux-6.14.4/fs/isofs/ |
D | namei.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * (C) 1991 Linus Torvalds - minix filesystem 24 if (likely(!dentry->d_op)) in isofs_cmp() 25 return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen); in isofs_cmp() 26 return dentry->d_op->d_compare(NULL, dentry->d_name.len, dentry->d_name.name, &qstr); in isofs_cmp() 42 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local 44 struct isofs_sb_info *sbi = ISOFS_SB(dir->i_sb); in isofs_find_entry() 46 if (!ISOFS_I(dir)->i_first_extent) in isofs_find_entry() 50 offset = 0; in isofs_find_entry() 51 block = 0; in isofs_find_entry() [all …]
|
D | isofs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 * iso9660 super-block data in memory 39 int s_rock_offset; /* offset of SUSP fields within SU area */ 63 #define ISOFS_INVALID_MODE ((umode_t) -1) 67 return sb->s_fs_info; in ISOFS_SB() 125 unsigned long block, 126 unsigned long offset, 130 unsigned long block, in isofs_iget() argument 131 unsigned long offset) in isofs_iget() argument 133 return __isofs_iget(sb, block, offset, 0); in isofs_iget() [all …]
|
/linux-6.14.4/drivers/md/ |
D | dm-verity-fec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include "dm-verity-fec.h" 11 #define DM_MSG_PREFIX "verity-fec" 18 return v->fec && v->fec->dev; in verity_fec_is_enabled() 28 ((char *)io + io->v->ti->per_io_data_size - sizeof(struct dm_verity_fec_io)); in fec_io() 32 * Return an interleaved offset for a byte in RS block. 34 static inline u64 fec_interleave(struct dm_verity *v, u64 offset) in fec_interleave() argument 38 mod = do_div(offset, v->fec->rsn); in fec_interleave() 39 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave() 43 * Read error-correcting codes for the requested RS block. Returns a pointer [all …]
|
/linux-6.14.4/drivers/mtd/ |
D | rfd_ftl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rfd_ftl.c -- resident flash disk (flash translation layer) 28 MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size"); 57 struct block { struct 68 u_long offset; member 80 int reserved_block; /* block next up for reclaim */ argument 81 int current_block; /* block to write to */ 88 struct block *blocks; 95 struct block *block = &part->blocks[block_no]; in build_block_map() local 98 block->offset = part->block_size * block_no; in build_block_map() [all …]
|
/linux-6.14.4/fs/ext4/ |
D | balloc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Laboratoire MASI - Institut Blaise Pascal 10 * Enhanced block allocation by Stephen Tweedie ([email protected]), 1993 11 * Big-endian to little-endian byte-swapping/bitmaps by 34 * Calculate block group number for a given block number 37 ext4_fsblk_t block) in ext4_get_group_number() argument 42 group = (block - in ext4_get_group_number() 43 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >> in ext4_get_group_number() 46 ext4_get_group_no_and_offset(sb, block, &group, NULL); in ext4_get_group_number() 51 * Calculate the block group number and offset into the block/cluster [all …]
|
/linux-6.14.4/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 1 // SPDX-License-Identifier: GPL-2.0 28 struct rvu_block *block, int lf); 30 struct rvu_block *block, int lf); 63 struct rvu_hwinfo *hw = rvu->hw; in rvu_setup_hw_capabilities() 65 hw->cap.nix_tx_aggr_lvl = NIX_TXSCH_LVL_TL1; in rvu_setup_hw_capabilities() 66 hw->cap.nix_fixed_txschq_mapping = false; in rvu_setup_hw_capabilities() 67 hw->cap.nix_shaping = true; in rvu_setup_hw_capabilities() 68 hw->cap.nix_tx_link_bp = true; in rvu_setup_hw_capabilities() 69 hw->cap.nix_rx_multicast = true; in rvu_setup_hw_capabilities() 70 hw->cap.nix_shaper_toggle_wait = false; in rvu_setup_hw_capabilities() [all …]
|
/linux-6.14.4/fs/verity/ |
D | verify.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Data verification functions, i.e. hooks for ->readahead() 16 * Returns true if the hash block with index @hblock_idx in the tree, located in 26 * When the Merkle tree block size and page size are the same, then the in is_hash_block_verified() 27 * ->hash_block_verified bitmap isn't allocated, and we use PG_checked in is_hash_block_verified() 28 * to directly indicate whether the page's block has been verified. in is_hash_block_verified() 30 * Using PG_checked also guarantees that we re-verify hash pages that in is_hash_block_verified() 31 * get evicted and re-instantiated from the backing storage, as new in is_hash_block_verified() 34 if (!vi->hash_block_verified) in is_hash_block_verified() 38 * When the Merkle tree block size and page size differ, we use a bitmap in is_hash_block_verified() [all …]
|
/linux-6.14.4/arch/s390/include/asm/ |
D | elf.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Derived from "include/asm-i386/elf.h" 18 #define R_390_GOT12 6 /* 12 bit GOT offset. */ 19 #define R_390_GOT32 7 /* 32 bit GOT offset. */ 25 #define R_390_GOTOFF32 13 /* 32 bit offset to GOT. */ 26 #define R_390_GOTPC 14 /* 32 bit PC rel. offset to GOT. */ 27 #define R_390_GOT16 15 /* 16 bit GOT offset. */ 36 #define R_390_GOT64 24 /* 64 bit GOT offset. */ 39 #define R_390_GOTOFF16 27 /* 16 bit offset to GOT. */ 40 #define R_390_GOTOFF64 28 /* 64 bit offset to GOT. */ [all …]
|