Home
last modified time | relevance | path

Searched +full:xlen +full:- +full:1 (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.12.1/net/ceph/
Dstriper.c1 /* SPDX-License-Identifier: GPL-2.0 */
14 * number of bytes mapped, less than or equal to @l->stripe_unit).
18 * blockno | 0 3 6 9 | 1 4 7 10 | 2 5 8 11 | 12 15 18 21 | 13 16 19
19 * stripeno | 0 1 2 3 | 0 1 2 3 | 0 1 2 3 | 4 5 6 7 | 4 5 6
20 * stripepos | 0 | 1 | 2 | 0 | 1
21 * objno | 0 | 1 | 2 | 3 | 4
22 * objsetno | 0 | 1
26 u64 *objno, u64 *objoff, u32 *xlen) in ceph_calc_file_object_mapping() argument
28 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_calc_file_object_mapping()
37 blockno = div_u64_rem(off, l->stripe_unit, &blockoff); in ceph_calc_file_object_mapping()
[all …]
/linux-6.12.1/arch/parisc/lib/
Dmemset.c1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 size_t xlen; in memset() local
31 dstp += 1; in memset()
32 len -= 1; in memset()
36 xlen = len / (OPSIZ * 8); in memset()
37 while (xlen > 0) in memset()
40 ((op_t *) dstp)[1] = cccc; in memset()
48 xlen -= 1; in memset()
52 /* Write 1 `op_t' per iteration until less than OPSIZ bytes remain. */ in memset()
53 xlen = len / OPSIZ; in memset()
[all …]
/linux-6.12.1/fs/cachefiles/
Dxattr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #define CACHEFILES_COOKIE_TYPE_DATA 1
43 struct file *file = object->file; in cachefiles_set_object_xattr()
44 unsigned int len = object->cookie->aux_len; in cachefiles_set_object_xattr()
48 return -ESTALE; in cachefiles_set_object_xattr()
49 dentry = file->f_path.dentry; in cachefiles_set_object_xattr()
51 _enter("%x,#%d", object->debug_id, len); in cachefiles_set_object_xattr()
55 return -ENOMEM; in cachefiles_set_object_xattr()
57 buf->object_size = cpu_to_be64(object->cookie->object_size); in cachefiles_set_object_xattr()
58 buf->zero_point = 0; in cachefiles_set_object_xattr()
[all …]
/linux-6.12.1/fs/jfs/
Djfs_xtree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2005
6 * jfs_xtree.c: extent allocation descriptor B+-tree manager
30 * -1: k < start of extent
32 * 1: k > end_of_extent
37 (CMP) = ((K) >= OFFSET64 + lengthXAD(X)) ? 1 :\
38 ((K) < OFFSET64) ? -1 : 0;\
44 (XAD)->flag = (FLAG);\
58 if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \
59 (le16_to_cpu((P)->header.nextindex) > \
[all …]
Djfs_extent.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
54 * ip - the inode of the file.
55 * xlen - requested extent length.
56 * pno - the starting page number with the file.
57 * xp - pointer to an xad. on entry, xad describes an
59 * xaddr of the xad is non-zero. on successful exit,
61 * abnr - bool indicating whether the newly allocated extent
65 * 0 - success
66 * -EIO - i/o error.
[all …]
Djfs_metapage.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2005
4 * Portions Copyright (C) Christoph Hellwig, 2001-2002
33 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag)
34 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag)
38 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
39 wake_up(&mp->wait); in unlock_metapage()
46 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
50 folio_unlock(mp->folio); in __lock_metapage()
52 folio_lock(mp->folio); in __lock_metapage()
[all …]
Djfs_txnmgr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2005
4 * Portions Copyright (C) Christoph Hellwig, 2001-2002
17 * (no hashlist for mp -> tlock).
20 * tlock on in-memory inode:
21 * in-place tlock in the in-memory inode itself;
84 static int nTxBlock = -1; /* number of transaction blocks */
89 static int nTxLock = -1; /* number of transaction locks */
172 * ---------------------------------
195 jfs_tlocks_low = 1; in txLockAlloc()
[all …]
Dinode.c1 // 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
31 return ERR_PTR(-ENOMEM); in jfs_iget()
32 if (!(inode->i_state & I_NEW)) in jfs_iget()
41 if (S_ISREG(inode->i_mode)) { in jfs_iget()
42 inode->i_op = &jfs_file_inode_operations; in jfs_iget()
43 inode->i_fop = &jfs_file_operations; in jfs_iget()
44 inode->i_mapping->a_ops = &jfs_aops; in jfs_iget()
45 } else if (S_ISDIR(inode->i_mode)) { in jfs_iget()
[all …]
Dresize.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
22 #define MEGABYTE (1 << L2MEGABYTE)
27 (((b) >> 13) + ((b) >> 23) + ((b) >> 33) + 3 + 1)
34 * |-------------------------------|----------|----------|
44 * 1. set new LogSize as specified or default from new LVSize;
46 * 3. set new FSSize as MIN(FSSize, LVSize-(LogSize+FSCKSize)) where
54 struct inode *ipbmap = sbi->ipbmap; in jfs_extendfs()
56 struct inode *ipimap = sbi->ipimap; in jfs_extendfs()
57 struct jfs_log *log = sbi->log; in jfs_extendfs()
[all …]
Djfs_dtree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
7 * jfs_dtree.c: directory B+-tree manager
9 * B+-tree with variable length key directory:
11 * each directory page is structured as an array of 32-byte
28 * directory starts as a root/leaf page in on-disk inode
31 * of length of 1 block. each time the first leaf becomes full,
41 * case-insensitive directory file system
43 * names are stored in case-sensitive way in leaf entry.
44 * but stored, searched and compared in case-insensitive (uppercase) order
[all …]
Djfs_xtree.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) International Business Machines Corp., 2000-2002
9 * jfs_xtree.h: extent allocation descriptor B+-tree manager
19 __u8 flag; /* 1: flag */
21 __u8 off1; /* 1: offset in unit of fsblksize */
26 #define MAXXLEN ((1 << 24) - 1)
34 (xad)->off1 = ((u64)offset64) >> 32;\
35 (xad)->off2 = __cpu_to_le32((offset64) & 0xffffffff);\
37 #define XADaddress(xad, address64) PXDaddress(&(xad)->loc, address64)
38 #define XADlength(xad, length32) PXDlength(&(xad)->loc, length32)
[all …]
Dnamei.c1 // 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
38 dxd_t *ea = &JFS_IP(inode)->ea; in free_ea_wmap()
40 if (ea->flag & DXD_EXTENT) { in free_ea_wmap()
45 ea->flag = 0; in free_ea_wmap()
54 * PARAMETER: dip - parent directory vnode
55 * dentry - dentry of new file
56 * mode - create mode (rwxrwxrwx).
57 * nd- nd struct
[all …]
/linux-6.12.1/arch/riscv/lib/
Dcrc32.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <asm/alternative-macros.h>
19 * Refer to https://www.corsix.org/content/barrett-reduction-polynomials for
23 * let "-" denotes polynomial sub (XOR)
26 * let "S" denotes source data, XLEN bit wide
28 * let "T" denotes 2^(XLEN+32)
29 * let "QT" denotes quotient of T/P, with the bit for 2^XLEN being implicit
32 * => S * (2^32) - S * (2^32) / P * P
36 * => lowest 32 bits of: S * quotient / 2^XLEN * P
45 /* Slide by XLEN bits per iteration */
[all …]
Dmemmove.S1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * a0 - dest
15 * a0 - Inclusive first byte of dest
16 * a1 - Inclusive first byte of src
17 * a2 - Length of copy n
22 * Note: This currently only works on little-endian.
23 * To port to big-endian, reverse the direction of shifts
33 * Forward Copy: a1 - Index counter of src
34 * Reverse Copy: a4 - Index counter of src
35 * Forward Copy: t3 - Index counter of dest
[all …]
Dmemset.S1 /* SPDX-License-Identifier: GPL-2.0-only */
14 /* Defer to byte-oriented fill for small sizes */
19 * Round to nearest XLEN-aligned address
22 addi a3, t0, SZREG-1
23 andi a3, a3, ~(SZREG-1)
27 1:
29 addi t0, t0, 1
30 bltu t0, a3, 1b
33 2: /* Duff's device with 32 XLEN stores per iteration */
46 andi a4, a2, ~(SZREG-1)
[all …]
/linux-6.12.1/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c1 // SPDX-License-Identifier: GPL-2.0-only
28 BP_X = 1,
58 int xtype, xlen; in toggle_breakpoint() local
66 xtype = 1; in toggle_breakpoint()
74 case 1: in toggle_breakpoint()
75 xlen = 0; in toggle_breakpoint()
78 xlen = 4; in toggle_breakpoint()
81 xlen = 0xc; in toggle_breakpoint()
84 xlen = 8; in toggle_breakpoint()
91 vdr7 = (xlen | xtype) << 16; in toggle_breakpoint()
[all …]
/linux-6.12.1/scripts/dtc/
Ddata.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 nm = m->next; in data_free()
15 free(m->ref); in data_free()
24 struct data data_grow_for(struct data d, unsigned int xlen) in data_grow_for() argument
29 if (xlen == 0) in data_grow_for()
34 newsize = xlen; in data_grow_for()
36 while ((d.len + xlen) > newsize) in data_grow_for()
63 d = data_grow_for(d, len + 1); in data_copy_escape_string()
87 if (maxlen == (size_t)-1) in data_copy_file()
90 chunksize = maxlen - d.len; in data_copy_file()
[all …]
/linux-6.12.1/drivers/i2c/busses/
Di2c-mxs.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2012-2013 Marek Vasut <marex@denx.de>
6 * Copyright (C) 2011-2012 Wolfram Sang, Pengutronix e.K.
8 * based on a (non-working) driver which was:
10 * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
25 #include <linux/dma-mapping.h>
27 #include <linux/dma/mxs-dma.h>
29 #define DRIVER_NAME "mxs-i2c"
69 #define MXS_I2C_DATA(i2c) ((i2c->dev_type == MXS_I2C_V1) ? 0x60 : 0xa0)
71 #define MXS_I2C_DEBUG0_CLR(i2c) ((i2c->dev_type == MXS_I2C_V1) ? 0x78 : 0xb8)
[all …]
/linux-6.12.1/arch/riscv/kernel/
Dfpu.S1 /* SPDX-License-Identifier: GPL-2.0 */
20 #include <asm/asm-offsets.h>
124 la t2, 1f
129 1:
181 * put_f32_reg - Set a FP register from a register containing the value
192 * get_f32_reg - Get a FP register value and return it
202 * put_f64_reg - Set a 64 bits FP register from a value or a pointer.
204 * a1 = value/pointer to be loaded in the FP register (when xlen == 32 bits, we
214 * get_f64_reg - Get a 64 bits FP register value and returned it or store it to
217 * a1 = If xlen == 32, pointer which should be loaded with the FP register value
[all …]
Dtraps_misaligned.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <asm/entry-common.h>
94 #define XLEN 64 macro
97 #define XLEN 32 macro
99 #define REGBYTES (1 << LOG_REGBYTES)
100 #define XLEN_MINUS_16 ((XLEN) - 16)
107 #define RV_X(x, s, n) (((x) >> (s)) & ((1 << (n)) - 1))
108 #define RVC_LW_IMM(x) ((RV_X(x, 6, 1) << 2) | \
110 (RV_X(x, 5, 1) << 6))
114 (RV_X(x, 12, 1) << 5) | \
[all …]
/linux-6.12.1/init/
Dmain.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * GK 2/5/95 - Changed to support mounting root fs via NFS
9 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96
122 * two things - IRQ must not be enabled before the flag is cleared and some
132 * Boot command-line arguments
140 /* Untouched command line saved by arch-specific code. */
185 reset_devices = 1; in set_reset_devices()
186 return 1; in set_reset_devices()
202 int n = strlen(p->str); in obsolete_checksetup()
203 if (parameqn(line, p->str, n)) { in obsolete_checksetup()
[all …]
/linux-6.12.1/arch/riscv/include/asm/
Dpgtable-32.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 #include <asm-generic/pgtable-nopmd.h>
15 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
16 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
22 * | XLEN-1 10 | 9 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
Dcsr.h1 /* SPDX-License-Identifier: GPL-2.0-only */
21 #define SR_FS _AC(0x00006000, UL) /* Floating-point Status */
39 #define SR_FS_VS (SR_FS | SR_VS) /* Vector and Floating-Point Unit */
48 #define SR_UXL _AC(0x300000000, UL) /* XLEN mask for U-mode */
49 #define SR_UXL_32 _AC(0x100000000, UL) /* XLEN = 32 for U-mode */
50 #define SR_UXL_64 _AC(0x200000000, UL) /* XLEN = 64 for U-mode */
72 /* Exception cause high bit - is an interrupt if set */
73 #define CAUSE_IRQ_FLAG (_AC(1, UL) << (__riscv_xlen - 1))
76 #define IRQ_S_SOFT 1
87 #define IRQ_LOCAL_MAX (IRQ_PMU_OVF + 1)
[all …]
/linux-6.12.1/tools/arch/riscv/include/asm/
Dcsr.h1 /* SPDX-License-Identifier: GPL-2.0-only */
20 #define SR_FS _AC(0x00006000, UL) /* Floating-point Status */
38 #define SR_FS_VS (SR_FS | SR_VS) /* Vector and Floating-Point Unit */
47 #define SR_UXL _AC(0x300000000, UL) /* XLEN mask for U-mode */
48 #define SR_UXL_32 _AC(0x100000000, UL) /* XLEN = 32 for U-mode */
49 #define SR_UXL_64 _AC(0x200000000, UL) /* XLEN = 64 for U-mode */
71 /* Exception cause high bit - is an interrupt if set */
72 #define CAUSE_IRQ_FLAG (_AC(1, UL) << (__riscv_xlen - 1))
75 #define IRQ_S_SOFT 1
86 #define IRQ_LOCAL_MAX (IRQ_PMU_OVF + 1)
[all …]
/linux-6.12.1/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * (c) 1998-2002 Petr Vandrovec <vandrove@vc.cvut.cz>
31 * "Gerd Knorr" <kraxel@goldbach.isdn.cs.tu-berlin.de>
55 * "Ulf Jaenicke-Roessler" <ujr@physik.phy.tu-dresden.de>
71 * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de>
85 #define curr_ydstorg(x) ((x)->curr.ydstorg.pixels)
120 mpitch = minfo->fbcon.var.xres_virtual; in matrox_cfbX_init()
122 minfo->fbops.fb_copyarea = cfb_copyarea; in matrox_cfbX_init()
123 minfo->fbops.fb_fillrect = cfb_fillrect; in matrox_cfbX_init()
124 minfo->fbops.fb_imageblit = cfb_imageblit; in matrox_cfbX_init()
[all …]

12