Home
last modified time | relevance | path

Searched +full:value +full:- +full:start (Results 1 – 25 of 1102) sorted by relevance

12345678910>>...45

/linux/arch/csky/mm/
H A Dcachev1.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
8 /* for L1-cache */
17 /* for L2-cache */
32 static void cache_op_all(unsigned int value, unsigned int l2) in cache_op_all() argument
34 mtcr("cr17", value | CACHE_CLR); in cache_op_all()
38 mtcr("cr24", value | CACHE_CLR); in cache_op_all()
44 unsigned int start, in cache_op_range() argument
46 unsigned int value, in cache_op_range() argument
50 unsigned int val = value | CACHE_CLR | CACHE_OMS; in cache_op_range()
[all …]
/linux/tools/testing/selftests/riscv/hwprobe/
H A Dwhich-cpus.c1 // SPDX-License-Identifier: GPL-2.0-only
22 "which-cpus: [-h] [<key=value> [<key=value> ...]]\n\n" in help()
25 " <key=value>, outputs the cpulist for cpus which all match the given set\n" in help()
26 " of pairs. 'key' and 'value' should be in numeric form, e.g. 4=0x3b\n"); in help()
31 int start = 0, end = 0; in print_cpulist() local
40 if (start != end && !CPU_ISSET(c, cpus)) in print_cpulist()
41 printf("-%d", end); in print_cpulist()
52 start = end = c; in print_cpulist()
54 if (start != end) in print_cpulist()
55 printf("-%d", end); in print_cpulist()
[all …]
/linux/tools/testing/fault-injection/
H A Dfailcmd.sh2 # SPDX-License-Identifier: GPL-2.0
5 # failcmd.sh - run a command with injecting slab/page allocation failures
8 # failcmd.sh --help
24 -p percent
25 --probability=percent
27 Default value is 1
29 -t value
30 --times=value
32 Default value is 1
34 --oom-kill-allocating-task=value
[all …]
/linux/tools/lib/
H A Dstring.c1 // SPDX-License-Identifier: GPL-2.0
24 * memdup - duplicate region of memory
40 * strtobool - convert common user inputs into boolean values
45 * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value
51 return -EINVAL; in strtobool()
82 return -EINVAL; in strtobool()
86 * strlcpy - Copy a C-string into a sized buffer
92 * NUL-terminated string that fits in the buffer (unless,
101 #pragma clang diagnostic ignored "-Wignored-attributes"
108 size_t len = (ret >= size) ? size - 1 : ret; in strlcpy()
[all …]
/linux/include/linux/
H A Dbitmap.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #include <linux/bitmap-str.h>
39 * compile-time and at most BITS_PER_LONG.
84 * bitmap_get_value8(map, start) Get 8bit value from map at start
85 * bitmap_set_value8(map, value, start) Se
209 bitmap_find_next_zero_area(unsigned long * map,unsigned long size,unsigned long start,unsigned int nr,unsigned long align_mask) bitmap_find_next_zero_area() argument
226 BITMAP_FIRST_WORD_MASK(start) global() argument
468 bitmap_set(unsigned long * map,unsigned int start,unsigned int nbits) bitmap_set() argument
484 bitmap_clear(unsigned long * map,unsigned int start,unsigned int nbits) bitmap_clear() argument
765 bitmap_read(const unsigned long * map,unsigned long start,unsigned long nbits) bitmap_read() argument
799 bitmap_write(unsigned long * map,unsigned long value,unsigned long start,unsigned long nbits) bitmap_write() argument
800 bitmap_write(unsigned long * map,unsigned long value,unsigned long start,unsigned long nbits) bitmap_write() argument
827 bitmap_get_value8(map,start) global() argument
829 bitmap_set_value8(map,value,start) global() argument
[all...]
H A Dminmax.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 * - Avoid multiple evaluations of the arguments (so side-effects like
14 * "x++" happen only once) when non-constant.
15 * - Perform signed v unsigned type-checking (to generate compile
17 * - Unsigned char/short are always promoted to signed int and can be
19 * - Unsigne
291 in_range64(u64 val,u64 start,u64 len) in_range64() argument
296 in_range32(u32 val,u32 start,u32 len) in_range32() argument
313 in_range(val,start,len) global() argument
[all...]
/linux/drivers/gpu/drm/i915/display/
H A Ddvo_ns2501.c21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
87 * The higher the value, the lower the dithering depth.
100 #define NS2501_REG1C 0x1c /* low-part of the second register */
101 #define NS2501_REG1D 0x1d /* high-part of the second register */
106 * 2^16/control-value. The low-byte comes first.
108 #define NS2501_REG10 0x10 /* low-byte vertical scaler */
109 #define NS2501_REG11 0x11 /* high-byte vertical scaler */
110 #define NS2501_REGB8 0xb8 /* low-byte horizontal scaler */
111 #define NS2501_REGB9 0xb9 /* high-byte horizontal scaler */
115 * per dimension. One register pair defines the start of the
[all …]
/linux/drivers/gpu/drm/meson/
H A Dmeson_overlay.c1 // SPDX-License-Identifier: GPL-2.0+
42 #define VD_X_START(value) FIELD_PREP(GENMASK(14, 0), value) argument
43 #define VD_X_END(value) FIELD_PREP(GENMASK(30, 16), value) argument
46 #define VD_Y_START(value) FIELD_PREP(GENMASK(12, 0), value) argument
47 #define VD_Y_END(value) FIELD_PREP(GENMASK(28, 16), value) argument
50 #define VD_COLOR_MAP(value) FIELD_PREP(GENMASK(1, 0), value) argument
53 #define VD_HORZ_Y_C_RATIO(value) FIELD_PREP(GENMASK(22, 21), value) argument
56 #define VD_VERT_INITIAL_PHASE(value) FIELD_PREP(GENMASK(11, 8), value) argument
57 #define VD_VERT_PHASE_STEP(value) FIELD_PREP(GENMASK(7, 1), value) argument
61 #define VD_H_END(value) FIELD_PREP(GENMASK(11, 0), value) argument
[all …]
/linux/drivers/nvmem/
H A Dstm32-bsec-optee-ta.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * OP-TEE STM32MP BSEC PTA interface, used by STM32 ROMEM driver
5 * Copyright (C) 2022, STMicroelectronics - All Rights Reserved
10 #include "stm32-bsec-optee-ta.h"
15 * [in] value[0].a OTP start offset in byte
16 * [in] value[0].b Access type (0:shadow, 1:fuse, 2:lock)
21 * TEE_SUCCESS - Invoke command success
22 * TEE_ERROR_BAD_PARAMETERS - Incorrect input param
23 * TEE_ERROR_ACCESS_DENIED - OTP not accessible by caller
30 * [in] value[0].a OTP start offset in byte
[all …]
/linux/arch/s390/kernel/
H A Ddis.c1 // SPDX-License-Identifier: GPL-2.0
43 #define OPERAND_PCREL 0x100 /* Operand printed as pc-relative symbol */
44 #define OPERAND_SIGNED 0x200 /* Operand printed as signed value */
92 I8_8, /* 8 bit signed value starting at 8 */
93 I8_32, /* 8 bit signed value starting at 32 */
94 I16_16, /* 16 bit signed value starting at 16 */
95 I16_32, /* 16 bit signed value starting at 32 */
96 I32_16, /* 32 bit signed value starting at 16 */
110 U4_8, /* 4 bit unsigned value starting at 8 */
111 U4_12, /* 4 bit unsigned value starting at 12 */
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_rtbitmap.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
37 struct xfs_mount *mp = bp->b_mount; in xfs_rtbuf_verify()
38 struct xfs_rtbuf_blkinfo *hdr = bp->b_addr; in xfs_rtbuf_verify()
40 if (!xfs_verify_magic(bp, hdr->rt_magic)) in xfs_rtbuf_verify()
46 if (!uuid_equal(&hdr->rt_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_rtbuf_verify()
48 if (hdr->rt_blkno != cpu_to_be64(xfs_buf_daddr(bp))) in xfs_rtbuf_verify()
57 struct xfs_mount *mp = bp->b_mount; in xfs_rtbuf_verify_read()
58 struct xfs_rtbuf_blkinfo *hdr = bp->b_addr; in xfs_rtbuf_verify_read()
64 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr->rt_lsn))) { in xfs_rtbuf_verify_read()
[all …]
/linux/drivers/net/ethernet/rocker/
H A Drocker_tlv.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * drivers/net/ethernet/rocker/rocker_tlv.h - Rocker switch device driver
4 * Copyright (c) 2014-2016 Jiri Pirko <jiri@mellanox.com>
18 (((len) + ROCKER_TLV_ALIGNTO - 1) & ~(ROCKER_TLV_ALIGNTO - 1))
21 /* <------- ROCKER_TLV_HDRLEN -------> <--- ROCKER_TLV_ALIGN(payload) --->
22 * +-----------------------------+- - -+- - - - - - - - - - - - - - -+- - -+
25 * +-----------------------------+- - -+- - - - - - - - - - - - - - -+- - -+
26 * <--------------------------- tlv->len -------------------------->
32 int totlen = ROCKER_TLV_ALIGN(tlv->len); in rocker_tlv_next()
34 *remaining -= totlen; in rocker_tlv_next()
[all …]
/linux/arch/riscv/kernel/
H A Dsbi.c1 // SPDX-License-Identifier: GPL-2.0-only
24 unsigned long start, unsigned long size,
34 * There is no maximum hartid concept in RISC-V and NR_CPUS must not be in __sbi_v01_cpumask_to_hartmask()
53 * sbi_console_putchar() - Writes given character to the console device.
65 * sbi_console_getchar() - Reads a byte from console device.
67 * Returns the value read from console.
80 * sbi_shutdown() - Remove all the harts from executing supervisor code.
91 * __sbi_set_timer_v01() - Program the timer for next timer event.
92 * @stime_value: The value after which next timer event should fire.
115 unsigned long start, unsigned long size, in __sbi_rfence_v01() argument
[all …]
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_tlv.c1 // SPDX-License-Identifier: GPL-2.0
14 * fbnic_tlv_msg_alloc - Allocate page and initialize FW message header
17 * Return: pointer to start of message, or NULL on failure.
19 * Allocates a page and initializes message header at start of page.
31 /* Start with zero filled header and then back fill with data */ in fbnic_tlv_msg_alloc()
36 /* Copy header into start of message */ in fbnic_tlv_msg_alloc()
37 msg->hdr = hdr; in fbnic_tlv_msg_alloc()
43 * fbnic_tlv_attr_put_flag - Add flag value to message
47 * Return: -ENOSPC if there is no room for the attribute. Otherwise 0.
50 * attribute can be used as a boolean value indicating true, otherwise the
[all …]
/linux/drivers/net/ipa/
H A Dipa_qmi_msg.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright (C) 2018-2024 Linaro Ltd.
18 #define IPA_QMI_INDICATION_REGISTER 0x20 /* modem -> AP request */
19 #define IPA_QMI_INIT_DRIVER 0x21 /* AP -> modem request */
20 #define IPA_QMI_INIT_COMPLETE 0x22 /* AP -> modem indication */
21 #define IPA_QMI_DRIVER_INIT_COMPLETE 0x35 /* modem -> AP request */
28 #define IPA_QMI_INDICATION_REGISTER_REQ_SZ 20 /* -> server handle */
29 #define IPA_QMI_INDICATION_REGISTER_RSP_SZ 7 /* <- server handle */
30 #define IPA_QMI_INIT_DRIVER_REQ_SZ 162 /* client handle -> */
31 #define IPA_QMI_INIT_DRIVER_RSP_SZ 25 /* client handle <- */
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_trace.h36 job->base.s_fence->finished.ops->get_timeline_name(&job->base.s_fence->finished)
39 TP_PROTO(unsigned did, uint32_t reg, uint32_t value),
40 TP_ARGS(did, reg, value),
44 __field(uint32_t, value)
47 __entry->did = did;
48 __entry->reg = reg;
49 __entry->value = value;
52 (unsigned long)__entry->did,
53 (unsigned long)__entry->reg,
54 (unsigned long)__entry->value)
[all …]
/linux/Documentation/filesystems/
H A Dseq_file.rst1 .. SPDX-License-Identifier: GPL-2.0
10 https://lwn.net/Articles/driver-porting/
16 Virtual files can provide human-readable output that is easy to get at
23 string. But life gets trickier if the output is long - anything greater
26 position within the virtual file - that position is, likely as not, in the
68 - entry = create_proc_entry("sequence", 0, NULL);
69 - if (entry)
70 - entry->proc_fops = &ct_file_ops;
79 is able to move to a specific position - like the file they implement,
81 in whatever way is convenient - the iterator need only exist
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v1.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
10 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_SRC_L2_OUT_0, .start = 0, .end = 31,
13 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_SRC_L2_OUT_1, .start = 16, .end = 31,
16 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L2_OUT_1, .start = 0, .end = 15,
19 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L2_OUT_0, .start = 0, .end = 31,
22 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L2_OUT_1, .start = 16, .end = 31,
25 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L3_OUT_0, .start = 18, .end = 23,
28 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L4_OUT_1, .start = 16, .end = 24,
32 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L4_OUT_0, .start = 16, .end = 31,
36 .hw_field = DR_STE_V1_ACTION_MDFY_FLD_L4_OUT_0, .start = 0, .end = 15,
[all …]
/linux/fs/xfs/scrub/
H A Dbitmap.h1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2018-2023 Oracle. All Rights Reserved.
18 int xbitmap64_clear(struct xbitmap64 *bitmap, uint64_t start, uint64_t len);
19 int xbitmap64_set(struct xbitmap64 *bitmap, uint64_t start, uint64_t len);
25 * and non-zero to stop iterating. Any non-zero value will be passed up to the
26 * iteration caller. The special value -ECANCELED can be used to stop
30 typedef int (*xbitmap64_walk_fn)(uint64_t start, uint64_t len, void *priv);
35 bool xbitmap64_test(struct xbitmap64 *bitmap, uint64_t start, uint64_t *len);
46 int xbitmap32_clear(struct xbitmap32 *bitmap, uint32_t start, uint32_t len);
47 int xbitmap32_set(struct xbitmap32 *bitmap, uint32_t start, uint32_t len);
[all …]
/linux/arch/sh/boards/
H A Dboard-sh7785lcr.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/sm501-regs.h>
17 #include <linux/platform_data/i2c-pca-platform.h>
18 #include <linux/i2c-algo-pca.h>
34 * Please look at include/asm-sh/sh7785lcr.h or hardware manual.
37 .start = PLD_LEDCR,
44 .id = -1,
80 .start = NOR_FLASH_ADDR,
81 .end = NOR_FLASH_ADDR + NOR_FLASH_SIZE - 1,
87 .name = "physmap-flash",
[all …]
/linux/drivers/char/tpm/
H A Dtpm_crb.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
20 #include <linux/arm-smccc.h>
118 static bool crb_wait_for_reg_32(u32 __iomem *reg, u32 mask, u32 value, in crb_wait_for_reg_32() argument
121 ktime_t start; in crb_wait_for_reg_32() local
124 start = ktime_get(); in crb_wait_for_reg_32()
125 stop = ktime_add(start, ms_to_ktime(timeout)); in crb_wait_for_reg_32()
128 if ((ioread32(reg) & mask) == value) in crb_wait_for_reg_32()
134 return ((ioread32(reg) & mask) == value); in crb_wait_for_reg_32()
139 if (priv->sm != ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON) in crb_try_pluton_doorbell()
[all …]
/linux/lib/
H A Dstring.c1 // SPDX-License-Identifier: GPL-2.0
11 * found in <asm-xx/string.h>), or get overloaded by FORTIFY_SOURCE.
31 #include <asm/word-at-a-time.h>
35 * strncasecmp - Case insensitive, length-limited string comparison
59 } while (--len); in strncasecmp()
60 return (int)c1 - (int)c2; in strncasecmp()
74 return c1 - c2; in strcasecmp()
100 count--; in strncpy()
120 return -E2BIG; in sized_strscpy()
127 if ((long)src & (sizeof(long) - 1)) { in sized_strscpy()
[all …]
/linux/lib/zstd/common/
H A Dbitstream.h7 * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
9 * This source code is licensed under both the BSD-style license (found in the
12 * You may select, at your option, one of the above-listed licenses.
19 * Since link-time-optimization is not available for all compilers,
23 /*-****************************************
41 /*-******************************************
57 MEM_STATIC void BIT_addBits(BIT_CStream_t* bitC, size_t value, unsigned nbBits);
61 /* Start with initCStream, providing the size of buffer to write into.
63 * `dstCapacity` must be >= sizeof(bitD->bitContainer), otherwise @return will be an error code.
66 * Local register is size_t, hence 64-bits on 64-bits systems, or 32-bits on 32-bits systems.
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dfunc-mmap.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 .. _func-mmap:
13 v4l2-mmap - Map device memory into application address space
18 .. code-block:: c
23 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset )
28 ``start``
30 When the ``MAP_FIXED`` flag is specified, ``start`` must be a
36 Length of the memory area to map. This must be the same value as
39 single-planar API, and the same value as returned by the driver in
41 the multi-planar API.
[all …]
/linux/drivers/staging/sm750fb/
H A Dddk750_hwi2c.c1 // SPDX-License-Identifier: GPL-2.0
14 unsigned int value; in sm750_hw_i2c_init() local
17 value = peek32(GPIO_MUX); in sm750_hw_i2c_init()
19 value |= (GPIO_MUX_30 | GPIO_MUX_31); in sm750_hw_i2c_init()
20 poke32(GPIO_MUX, value); in sm750_hw_i2c_init()
29 value = peek32(I2C_CTRL) & ~(I2C_CTRL_MODE | I2C_CTRL_EN); in sm750_hw_i2c_init()
31 value |= I2C_CTRL_MODE; in sm750_hw_i2c_init()
32 value |= I2C_CTRL_EN; in sm750_hw_i2c_init()
33 poke32(I2C_CTRL, value); in sm750_hw_i2c_init()
40 unsigned int value; in sm750_hw_i2c_close() local
[all …]

12345678910>>...45