/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_restrictions.sh | 2 # SPDX-License-Identifier: GPL-2.0 41 # It is forbidden in mlxsw driver to have mixed-bound 42 # shared block with a drop rule. 45 check_err $? "Failed to create clsact with ingress block" 47 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 49 check_err $? "Failed to add drop rule to ingress bound block" 52 check_err $? "Failed to create another clsact with ingress shared block" 57 check_fail $? "Incorrect success to create another clsact with egress shared block" 59 tc filter del block 22 protocol ip pref 1 handle 101 flower 62 …check_err $? "Failed to create another clsact with egress shared block after blocker drop rule rem… [all …]
|
/linux/fs/freevxfs/ |
H A D | vxfs_bmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2000-2001 Christoph Hellwig. 7 * Veritas filesystem driver - filesystem to disk block mapping. 22 printk(KERN_DEBUG "type=%Lu ", typ->vt_hdr >> VXFS_TYPED_TYPESHIFT); in vxfs_typdump() 23 printk("offset=%Lx ", typ->vt_hdr & VXFS_TYPED_OFFSETMASK); in vxfs_typdump() 24 printk("block=%x ", typ->vt_block); in vxfs_typdump() 25 printk("size=%x\n", typ->vt_size); in vxfs_typdump() 30 * vxfs_bmap_ext4 - do bmap for ext4 extents 31 * @ip: pointer to the inode we do bmap for 32 * @bn: logical block. [all …]
|
H A D | vxfs_subr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2000-2001 Christoph Hellwig. 7 * Veritas filesystem driver - shared subroutines. 33 * vxfs_get_page - read a page into memory. 38 * vxfs_get_page reads the @n th page of @ip into the pagecache. 60 * vxfs_bread - read buffer for a give inode,block tuple 61 * @ip: inode 62 * @block: logical block 65 * The vxfs_bread function reads block no @block of 66 * @ip into the buffercache. [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_shblocks.sh | 2 # SPDX-License-Identifier: GPL-2.0 53 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 56 $MZ $h1 -c 1 -p 64 -a $h1mac -b $swmac -A 192.0.2.1 -B 192.0.2.2 \ 57 -t ip -q 59 tc_check_packets "block 22" 101 1 60 check_err $? "Did not match first incoming packet on a block" 62 $MZ $h2 -c 1 -p 64 -a $h2mac -b $swmac -A 192.0.2.1 -B 192.0.2.2 \ 63 -t ip -q 65 tc_check_packets "block 22" 101 2 66 check_err $? "Did not match second incoming packet on a block" [all …]
|
/linux/drivers/mtd/ |
H A D | inftlmount.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * inftlmount.c -- INFTL mount code with extensive checks. 6 * Copyright © 2002-2003, Greg Ungerer (gerg@snapgear.com) 35 unsigned int i, block; in find_boot_record() local 37 struct INFTLMediaHeader *mh = &inftl->MediaHdr; in find_boot_record() 38 struct mtd_info *mtd = inftl->mbd.mtd; in find_boot_record() 39 struct INFTLPartition *ip; in find_boot_record() local 49 inftl->EraseSize = inftl->mbd.mtd->erasesize; in find_boot_record() 50 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 52 inftl->MediaUnit = BLOCK_NIL; in find_boot_record() [all …]
|
/linux/fs/gfs2/ |
H A D | rgrp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 47 return rbm->rgd->rd_bits + rbm->bii; in rbm_bi() 52 BUG_ON(rbm->offset >= rbm->rgd->rd_data); in gfs2_rbm_to_block() 53 return rbm->rgd->rd_data0 + (rbm_bi(rbm)->bi_start * GFS2_NBBY) + in gfs2_rbm_to_block() 54 rbm->offset; in gfs2_rbm_to_block() 59 * to keep track of block allocation. Each block is represented by two 86 * gfs2_setbit - Set a bit in the bitmaps 89 * @new_state: the new state of the block [all …]
|
H A D | bmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 33 * block is 512, so __u16 is fine for that. It saves stack space to 43 static int punch_hole(struct gfs2_inode *ip, u64 offset, u64 length); 46 * gfs2_unstuffer_folio - unstuff a stuffed inode into a block cached by a folio 47 * @ip: the inode 49 * @block: the block number that was allocated 54 static int gfs2_unstuffer_folio(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_folio() argument 55 u64 block, struct folio *folio) in gfs2_unstuffer_folio() argument [all …]
|
H A D | meta_io.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 49 * If it's a fully non-blocking write attempt and we cannot in gfs2_aspace_write_folio() 51 * potentially cause a busy-wait loop from flusher thread and kswapd in gfs2_aspace_write_folio() 52 * activity, but those code paths have their own higher-level in gfs2_aspace_write_folio() 55 if (wbc->sync_mode != WB_SYNC_NONE) { in gfs2_aspace_write_folio() 66 } while ((bh = bh->b_this_page) != head); in gfs2_aspace_write_folio() 76 struct buffer_head *next = bh->b_this_page; in gfs2_aspace_write_folio() 116 * gfs2_getbuf - Get a buffer with a given address space [all …]
|
H A D | rgrp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 13 /* Since each block in the file system is represented by two bits in the 14 * bitmap, one 64-bit word in the bitmap will represent 32 blocks. 37 struct gfs2_alloc *gfs2_alloc_get(struct gfs2_inode *ip); 40 int gfs2_inplace_reserve(struct gfs2_inode *ip, 42 void gfs2_inplace_release(struct gfs2_inode *ip); 44 int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n, 48 void gfs2_rs_delete(struct gfs2_inode *ip); [all …]
|
H A D | dir.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 14 * within a single block. The field de_name_len is the number of bytes 17 * dirent in the block is (dirent + dirent->de_rec_len). When a dirent is 19 * prev->de_rec_len += deleted->de_rec_len. Since the next dirent is obtained 23 * When deleting the first dirent in a block, there is no previous dirent so 25 * a dirent, gfs2_dirent_alloc iterates through the dirents in a block. If the 33 * the block. In leaves, they begin at offset sizeof(struct gfs2_leaf) from the 34 * beginning of the leaf block. The dirents reside in leaves when [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | xfrm_policy.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 # ns1 ---- ns3 ----- ns4 ---- ns2 38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 52 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 53 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 60 # re-built. 75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 78 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 81 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 62 int maxrootrecs; /* max records in root block */ in xfs_bmap_compute_maxlevels() 63 int minleafrecs; /* min records in leaf block */ in xfs_bmap_compute_maxlevels() 64 int minnoderecs; /* min records in node block */ in xfs_bmap_compute_maxlevels() 65 int sz; /* root block size */ in xfs_bmap_compute_maxlevels() 69 * leaf entries, is controlled by the size of the on-disk extent count. in xfs_bmap_compute_maxlevels() 73 * (xfs_default_attroffset(ip) >> 3) because we could have mounted with in xfs_bmap_compute_maxlevels() 87 minleafrecs = mp->m_bmap_dmnr[0]; in xfs_bmap_compute_maxlevels() 88 minnoderecs = mp->m_bmap_dmnr[1]; in xfs_bmap_compute_maxlevels() [all …]
|
H A D | xfs_rtbitmap.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 58 if (args->rbmbp) { in xfs_rtbuf_cache_relse() 59 xfs_trans_brelse(args->tp, args->rbmbp); in xfs_rtbuf_cache_relse() 60 args->rbmbp = NULL; in xfs_rtbuf_cache_relse() 61 args->rbmoff = NULLFILEOFF; in xfs_rtbuf_cache_relse() 63 if (args->sumbp) { in xfs_rtbuf_cache_relse() 64 xfs_trans_brelse(args->tp, args->sumbp); in xfs_rtbuf_cache_relse() 65 args->sumbp = NULL; in xfs_rtbuf_cache_relse() 66 args->sumoff = NULLFILEOFF; in xfs_rtbuf_cache_relse() [all …]
|
/linux/arch/arm/crypto/ |
H A D | aes-ce-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * aes-ce-core.S - AES in CBC/CTR/XTS mode using ARMv8 Crypto Extensions 12 .arch armv8-a 13 .fpu crypto-neon-fp-armv8 102 vld1.32 {q10-q11}, [ip]! 104 vld1.32 {q12-q13}, [ip]! 106 vld1.32 {q10-q11}, [ip]! 108 vld1.32 {q12-q13}, [ip]! 110 blo 0f @ AES-128: 10 rounds 111 vld1.32 {q10-q11}, [ip]! [all …]
|
/linux/fs/xfs/ |
H A D | xfs_reflink.c | 1 // SPDX-License-Identifier: GPL-2.0+ 40 * through the use of a copy-on-write mechanism. At a high level, that 41 * means that when we want to write to a shared block, we allocate a new 42 * block, write the data to the new block, and if that succeeds we map the 43 * new block into the file. 46 * of disk blocks to dirty-but-not-yet-mapped file blocks as long as 50 * The delalloc mechanism begins when the kernel wants to make a block 52 * create a delalloc mapping, which is a regular in-core extent, but without 54 * a flag that this is a delalloc mapping, and a worst-case estimate of how 64 * D: --RRRRRRSSSRRRRRRRR--- (data fork) [all …]
|
H A D | xfs_bmap_util.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 36 * Convert the given file system block to a disk block. We have to treat it 41 xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) in xfs_fsb_to_db() argument 43 if (XFS_IS_REALTIME_INODE(ip)) in xfs_fsb_to_db() 44 return XFS_FSB_TO_BB(ip->i_mount, fsb); in xfs_fsb_to_db() 45 return XFS_FSB_TO_DADDR(ip->i_mount, fsb); in xfs_fsb_to_db() 51 * The VFS functions take a linearised filesystem block offset, so we have to 57 struct xfs_inode *ip, in xfs_zero_extent() argument 61 struct xfs_mount *mp = ip->i_mount; in xfs_zero_extent() [all …]
|
H A D | xfs_file.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 31 #include <linux/backing-dev.h> 44 struct xfs_inode *ip, in xfs_is_falloc_aligned() argument 48 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip); in xfs_is_falloc_aligned() 54 return !((pos | len) & (alloc_unit - 1)); in xfs_is_falloc_aligned() 60 * cache flush operations, and there are no non-transaction metadata updates 70 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync() local 72 trace_xfs_dir_fsync(ip); in xfs_dir_fsync() 73 return xfs_log_force_inode(ip); in xfs_dir_fsync() [all …]
|
/linux/Documentation/networking/dsa/ |
H A D | configuration.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 .. _dsa-config-showcases: 13 ----------------------- 42 - when a DSA user interface is brought up, the conduit interface is 44 - when the conduit interface is brought down, all DSA user interfaces are 71 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3) 72 * lan2: 192.0.2.5/30 (192.0.2.4 - 192.0.2.7) 73 * lan3: 192.0.2.9/30 (192.0.2.8 - 192.0.2.11) 76 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255) 79 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255) [all …]
|
/linux/Documentation/devicetree/bindings/sifive/ |
H A D | sifive-blocks-ip-versioning.txt | 1 DT compatible string versioning for SiFive open-source IP blocks 4 strings for open-source SiFive IP blocks. HDL for these IP blocks 7 https://github.com/sifive/sifive-blocks 9 IP block-specific DT compatible strings are contained within the HDL, 10 in the form "sifive,<ip-block-name><integer version number>". 14 https://github.com/sifive/sifive-blocks/blob/v1.0/src/main/scala/devices/uart/UART.scala#L43 16 Until these IP blocks (or IP integration) support version 17 auto-discovery, the maintainers of these IP blocks intend to increment 19 interface to these IP blocks changes, or when the functionality of the 20 underlying IP blocks changes in a way that software should be aware of. [all …]
|
/linux/drivers/gpu/drm/amd/include/ |
H A D | amd_shared.h | 55 * DOC: IP Blocks 57 * GPUs are composed of IP (intellectual property) blocks. These 58 * IP blocks provide various functionalities: display, graphics, 59 * video decode, etc. The IP blocks that comprise a particular GPU 61 * acquires the list of IP blocks for the GPU in use on initialization. 66 * IP block implementations are named using the following convention: 71 * enum amd_ip_block_type - Used to classify IP blocks by functionality. 83 * @AMD_IP_BLOCK_TYPE_ACP: Audio Co-Processor 85 * @AMD_IP_BLOCK_TYPE_MES: Micro-Engine Scheduler 90 * @AMD_IP_BLOCK_TYPE_NUM: Total number of IP block types [all …]
|
/linux/fs/xfs/scrub/ |
H A D | reap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2022-2023 Oracle. All Rights Reserved. 58 * if the rmapbt says there is an owner of this block other than @oinfo, then 59 * the block is crosslinked. Remove the reverse mapping and continue. 61 * If there is one rmap record, we can free the block, which removes the 62 * reverse mapping but doesn't add the block to the free space. Our repair 63 * strategy is to hope the other metadata objects crosslinked on this block 67 * If there are no rmap records at all, we also free the block. If the btree 70 * had to have been an rmap entry for the block to have ended up on @bitmap, 74 * the btree we're trying to rebuild and the block is indeed owned by another [all …]
|
/linux/Documentation/admin-guide/nfs/ |
H A D | nfs-rdma.rst | 29 nfs-rdma-devel@lists.sourceforge.net mailing list. 37 - Install an RDMA device 41 Testing has been performed using several Mellanox-based IB cards, the 44 - Install a Linux distribution and tools 53 - Install nfs-utils-1.1.2 or greater on the client 56 nfs-utils-1.1.2 or greater (nfs-utils-1.1.1 was the first nfs-utils 58 recommend using nfs-utils-1.1.2 or greater). To see which version of 61 .. code-block:: sh 63 $ /sbin/mount.nfs -V 66 you should install the latest version of nfs-utils. [all …]
|
/linux/drivers/phy/rockchip/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 22 will be called phy-rockchip-dphy-rx0. 49 Support for Rockchip USB2.0 PHY with Innosilicon IP block. 58 Innosilicon IP block. 67 Innosilicon IP block. 75 combo PHY with NaNeng IP block. 96 with Samsung IP block. 130 Samsung IP block. This is required for USB3 support on RK3588. 133 will be called phy-rockchip-usbdp
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-rnbd-client | 1 What: /sys/class/rnbd-client 5 Description: Provide information about RNBD-client. 6 All sysfs files that are not read-only provide the usage information on read: 10 # cat /sys/class/rnbd-client/ctl/map_device 16 > addr ::= [ ip:<ipv4> | ip:<ipv6> | gid:<gid> ] 18 What: /sys/class/rnbd-client/ctl/map_device 34 I.e. "clt_hostname-srv_hostname" could be a natural choice. 41 ip:<IPv6> 42 ip:<IPv4> 47 path=ip:10.0.0.66 [all …]
|
/linux/fs/jfs/ |
H A D | jfs_dtree.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2002 9 * jfs_dtree.h: directory B+-tree manager 17 struct inode *ip; member 29 * N.B. last/only segment of entry is terminated by next = -1; 57 __le16 name[11]; /* 22: 2-byte aligned */ 70 * For legacy filesystems, name contains 13 wchars -- no index field 73 __le32 inumber; /* 4: 4-byte aligned */ 76 __le16 name[11]; /* 22: 2-byte aligned */ 91 #define DO_INDEX(INODE) (JFS_SBI((INODE)->i_sb)->mntflag & JFS_DIR_INDEX) [all …]
|