Home
last modified time | relevance | path

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

12345678910>>...42

/linux/rust/helpers/
H A Dio.c1 // SPDX-License-Identifier: GPL-2.0
44 __rust_helper void rust_helper_writeb(u8 value, void __iomem *addr) in rust_helper_writeb()
46 writeb(value, addr); in rust_helper_writeb()
49 __rust_helper void rust_helper_writew(u16 value, void __iomem *addr) in rust_helper_writew()
51 writew(value, addr); in rust_helper_writew()
54 __rust_helper void rust_helper_writel(u32 value, void __iomem *addr) in rust_helper_writel()
56 writel(value, addr); in rust_helper_writel()
60 __rust_helper void rust_helper_writeq(u64 value, voi in rust_helper_writeq()
43 rust_helper_writeb(u8 value,void __iomem * addr) rust_helper_writeb() argument
48 rust_helper_writew(u16 value,void __iomem * addr) rust_helper_writew() argument
53 rust_helper_writel(u32 value,void __iomem * addr) rust_helper_writel() argument
59 rust_helper_writeq(u64 value,void __iomem * addr) rust_helper_writeq() argument
87 rust_helper_writeb_relaxed(u8 value,void __iomem * addr) rust_helper_writeb_relaxed() argument
92 rust_helper_writew_relaxed(u16 value,void __iomem * addr) rust_helper_writew_relaxed() argument
97 rust_helper_writel_relaxed(u32 value,void __iomem * addr) rust_helper_writel_relaxed() argument
103 rust_helper_writeq_relaxed(u64 value,void __iomem * addr) rust_helper_writeq_relaxed() argument
114 rust_helper_request_mem_region(resource_size_t start,resource_size_t n,const char * name) rust_helper_request_mem_region() argument
121 rust_helper_release_mem_region(resource_size_t start,resource_size_t n) rust_helper_release_mem_region() argument
126 rust_helper_request_region(resource_size_t start,resource_size_t n,const char * name) rust_helper_request_region() argument
132 rust_helper_request_muxed_region(resource_size_t start,resource_size_t n,const char * name) rust_helper_request_muxed_region() argument
139 rust_helper_release_region(resource_size_t start,resource_size_t n) rust_helper_release_region() argument
[all...]
/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' shoul in help()
31 int start = 0, end = 0; print_cpulist() local
63 char *start, *end; do_which_cpus() local
[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/include/linux/
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 * - Unsigned arguments can be compared against non-negative signed constants.
20 * - Comparison of a signed argument against an unsigned constant fails
31 * In particular, statically non-negative signed integer expressions
39 * that contains the value.
42 * value (but without evaluating it for side effects!
[all …]
H A Doverflow.h1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
14 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0)
15 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0)
19 * the type_max expression (but not if -fsanitize=undefined is in
25 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on
30 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html -
33 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type)))
34 #define __type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T)))
36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1))
42 * both the type-agnostic benefits of the macros while also being able to
[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/Documentation/netlink/
H A Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
11 pattern: ^[0-9a-z-]+$
12 name-cap:
14 pattern: ^[0-9a-zA-Z-]+$
18 len-or-define:
20 pattern: ^[0-9A-Za-z_-]+( - 1)?$
22 len-or-limit:
[all …]
H A Dgenetlink-legacy.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Ddvo_ns2501.c21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
89 * The higher the value, the lower the dithering depth.
102 #define NS2501_REG1C 0x1c /* low-part of the second register */
103 #define NS2501_REG1D 0x1d /* high-part of the second register */
108 * 2^16/control-value. The low-byte comes first.
110 #define NS2501_REG10 0x10 /* low-byte vertical scaler */
111 #define NS2501_REG11 0x11 /* high-byte vertical scaler */
112 #define NS2501_REGB8 0xb8 /* low-byte horizontal scaler */
113 #define NS2501_REGB9 0xb9 /* high-byte horizontal scaler */
117 * per dimension. One register pair defines the start of the
[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/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/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/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/arch/sparc/kernel/
H A Dpci_common.c1 // SPDX-License-Identifier: GPL-2.0
25 if (bus < pbm->pci_first_busno || in config_out_of_range()
26 bus > pbm->pci_last_busno) in config_out_of_range()
36 unsigned long rbits = pbm->config_space_reg_bits; in sun4u_config_mkaddr()
41 reg = (reg & ((1 << rbits) - 1)); in sun4u_config_mkaddr()
45 return (void *) (pbm->config_space | bus | devfn | reg); in sun4u_config_mkaddr()
50 * Strange but true, and I see no language in the UltraSPARC-IIi
55 int where, int size, u32 *value) in sun4u_read_pci_cfg_host() argument
73 *value = tmp16 >> 8; in sun4u_read_pci_cfg_host()
75 *value = tmp16 & 0xff; in sun4u_read_pci_cfg_host()
[all …]
/linux/sound/hda/core/
H A Dstream.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HD-audio stream operations
26 * +--+-------+
28 * +--+----+--+
32 * +--+----+--+
34 * +--+----+--+
39 * +--+----+--+
41 * +--+----+--+
45 * +--+----+--+
47 * +----------+
[all …]
/linux/fs/ntfs/
H A Dbitmap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2004-2005 Anton Altaparmakov
24 u64 start_cluster = ntfs_bytes_to_cluster(vol, range->start); in ntfs_trim_fs()
25 u32 dq = bdev_discard_granularity(vol->sb->s_bdev); in ntfs_trim_fs()
29 dq = vol->cluster_size; in ntfs_trim_fs()
31 if (start_cluster >= vol->nr_clusters) in ntfs_trim_fs()
32 return -EINVAL; in ntfs_trim_fs()
34 if (range->len == (u64)-1) in ntfs_trim_fs()
35 end_cluster = vol->nr_clusters; in ntfs_trim_fs()
38 (range->start + range->len + vol->cluster_size - 1)); in ntfs_trim_fs()
[all …]
/linux/lib/zstd/common/
H A Dbitstream.h1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
8 * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
10 * This source code is licensed under both the BSD-style license (found in the
13 * You may select, at your option, one of the above-listed licenses.
20 * Since link-time-optimization is not available for all compilers,
24 /*-****************************************
42 /*-******************************************
59 MEM_STATIC void BIT_addBits(BIT_CStream_t* bitC, BitContainerType value, unsigned nbBits);
63 /* Start with initCStream, providing the size of buffer to write into.
65 * `dstCapacity` must be >= sizeof(bitD->bitContainer), otherwise @return will be an error code.
[all …]
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_netdev.c1 // SPDX-License-Identifier: GPL-2.0
15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open()
33 dev_warn(fbd->dev, in __fbnic_open()
55 phylink_resume(fbn->phylink); in __fbnic_open()
61 fbnic_fw_xmit_ownership_msg(fbn->fbd, false); in __fbnic_open()
76 fbnic_napi_name_irqs(fbn->fbd); in fbnic_open()
89 fbnic_mac_free_irq(fbn->fbd); in fbnic_stop()
90 phylink_suspend(fbn->phylink, fbnic_bmc_present(fbn->fbd)); in fbnic_stop()
95 fbnic_fw_xmit_ownership_msg(fbn->fbd, false); in fbnic_stop()
110 return -EADDRNOTAVAIL; in fbnic_uc_sync()
[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>
21 #include <linux/arm-smccc.h>
117 /* CRB over FFA start method parameters in TCG2 ACPI table */
131 * Returns true if the start method supports idle.
140 static bool crb_wait_for_reg_32(u32 __iomem *reg, u32 mask, u32 value, in crb_wait_for_reg_32() argument
143 ktime_t start; in crb_wait_for_reg_32() local
146 start = ktime_get(); in crb_wait_for_reg_32()
147 stop = ktime_add(start, ms_to_ktime(timeout)); in crb_wait_for_reg_32()
150 if ((ioread32(reg) & mask) == value) in crb_wait_for_reg_32()
[all …]
/linux/drivers/s390/char/
H A Dsclp_mem.c1 // SPDX-License-Identifier: GPL-2.0
24 #include <asm/page-states.h>
79 return (unsigned long)(rn - 1) * sclp.rzm; in rn2addr()
89 return -ENOMEM; in do_assign_storage()
90 sccb->header.length = PAGE_SIZE; in do_assign_storage()
91 sccb->rn = rn; in do_assign_storage()
95 switch (sccb->header.response_code) { in do_assign_storage()
101 cmd, sccb->header.response_code, rn); in do_assign_storage()
102 rc = -EIO; in do_assign_storage()
112 unsigned long start; in sclp_assign_storage() local
[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/hid/
H A Dhid-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
8 * Copyright (c) 2006-2012 Jiri Kosina
33 #include <linux/hid-debug.h>
36 #include "hid-id
52 snto32(__u32 value,unsigned int n) snto32() argument
67 s32ton(__s32 value,unsigned int n) s32ton() argument
781 fetch_item(const __u8 * start,const __u8 * end,struct hid_item * item) fetch_item() argument
931 const __u8 *start = hid->dev_rdesc; hid_scan_report() local
1005 hid_parse_report(struct hid_device * hid,const __u8 * start,unsigned size) hid_parse_report() argument
1251 const u8 *start = device->rdesc; hid_parse_collections() local
1347 const u8 *start; hid_open_report() local
1412 u32 value = 0; __extract() local
1449 __implement(u8 * report,unsigned offset,int n,u32 value) __implement() argument
1474 implement(const struct hid_device * hid,u8 * report,unsigned offset,unsigned n,u32 value) implement() argument
1498 search(__s32 * array,__s32 value,unsigned n) search() argument
1557 hid_process_event(struct hid_device * hid,struct hid_field * field,struct hid_usage * usage,__s32 value,int interrupt) hid_process_event() argument
1585 hid_array_value_is_valid(struct hid_field * field,__s32 value) hid_array_value_is_valid() argument
1612 __s32 *value; hid_input_fetch_field() local
1644 __s32 *value = field->new_value; hid_input_var_field() local
1669 __s32 *value; hid_input_array_field() local
1927 hid_set_field(struct hid_field * field,unsigned offset,__s32 value) hid_set_field() argument
[all...]

12345678910>>...42