Home
last modified time | relevance | path

Searched full:size (Results 1 – 25 of 12031) sorted by relevance

12345678910>>...482

/linux-6.12.1/include/linux/
Dfind.h21 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size);
22 unsigned long __find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n);
24 unsigned long size, unsigned long n);
26 unsigned long size, unsigned long n);
28 const unsigned long *addr3, unsigned long size,
31 const unsigned long *addr2, unsigned long size);
33 const unsigned long *addr3, unsigned long size);
34 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size);
35 extern unsigned long _find_last_bit(const unsigned long *addr, unsigned long size);
38 unsigned long _find_first_zero_bit_le(const unsigned long *addr, unsigned long size);
[all …]
/linux-6.12.1/scripts/coccinelle/api/
Dkvmalloc.cocci24 expression E, E1, size;
33 * if (size cmp E1 || ...)@p {
37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
41 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
49 when != size = E1
53 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
59 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...);
61 when != size = E1
65 * x = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
[all …]
/linux-6.12.1/tools/include/linux/
Dfind.h17 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size);
19 const unsigned long *addr2, unsigned long size);
20 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size);
26 * @size: The bitmap size in bits
30 * If no bits are set, returns @size.
33 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument
36 if (small_const_nbits(size)) { in find_next_bit()
39 if (unlikely(offset >= size)) in find_next_bit()
40 return size; in find_next_bit()
42 val = *addr & GENMASK(size - 1, offset); in find_next_bit()
[all …]
/linux-6.12.1/drivers/net/dsa/sja1105/
Dsja1105_static_config.c97 const size_t size = SJA1105ET_SIZE_AVB_PARAMS_ENTRY; in sja1105et_avb_params_entry_packing() local
100 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing()
101 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing()
102 return size; in sja1105et_avb_params_entry_packing()
108 const size_t size = SJA1105PQRS_SIZE_AVB_PARAMS_ENTRY; in sja1105pqrs_avb_params_entry_packing() local
111 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing()
112 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing()
113 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing()
114 return size; in sja1105pqrs_avb_params_entry_packing()
120 const size_t size = SJA1105ET_SIZE_GENERAL_PARAMS_ENTRY; in sja1105et_general_params_entry_packing() local
[all …]
/linux-6.12.1/scripts/
Dextract_xc3028.pl51 # Calc chunk size
131 my $size = ord(substr($out,$i,1))*256+ord(substr($out,$i+1,1));
135 if ($size>0 && $size <0x8000) {
136 for (my $j=0;$j<$size;$j++) {
139 $i+=$size;
163 # Firmware 0, type: BASE FW F8MHZ (0x00000003), id: (0000000000000000), size: 6635
168 write_le32(6635); # Size
172 # Firmware 1, type: BASE FW F8MHZ MTS (0x00000007), id: (0000000000000000), size: 6635
177 write_le32(6635); # Size
181 # Firmware 2, type: BASE FW FM (0x00000401), id: (0000000000000000), size: 6525
[all …]
/linux-6.12.1/tools/testing/selftests/exec/
Dbinfmt_script.py14 SIZE=256 variable
35 # @size: bytes for bprm->buf line, including hashbang but not newline
42 # @fill: character to fill between @root and @target to reach @size bytes
43 # @newline: character to use as newline, not counted towards @size
45 def test(name, size, good=True, leading="", root="./", target="/perl", argument
54 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg)
117 test(name="too-big", size=SIZE+80, good=False)
118 # Path is right at max size, making it impossible to tell if it was truncated.
119 test(name="exact", size=SIZE, good=False)
121 test(name="exact-space", size=SIZE, good=False, leading=" ")
[all …]
/linux-6.12.1/fs/bcachefs/
Deytzinger.h49 static inline unsigned eytzinger1_first(unsigned size) in eytzinger1_first() argument
51 return size ? rounddown_pow_of_two(size) : 0; in eytzinger1_first()
54 static inline unsigned eytzinger1_last(unsigned size) in eytzinger1_last() argument
56 return rounddown_pow_of_two(size + 1) - 1; in eytzinger1_last()
69 static inline unsigned eytzinger1_next(unsigned i, unsigned size) in eytzinger1_next() argument
71 EYTZINGER_BUG_ON(i > size); in eytzinger1_next()
73 if (eytzinger1_right_child(i) <= size) { in eytzinger1_next()
76 i <<= __fls(size + 1) - __fls(i); in eytzinger1_next()
77 i >>= i > size; in eytzinger1_next()
85 static inline unsigned eytzinger1_prev(unsigned i, unsigned size) in eytzinger1_prev() argument
[all …]
/linux-6.12.1/arch/arm/boot/dts/aspeed/
Daspeed-bmc-facebook-cmm.dts334 #size-cells = <0>;
341 #size-cells = <0>;
347 #size-cells = <0>;
353 #size-cells = <0>;
358 #size-cells = <0>;
363 #size-cells = <0>;
368 #size-cells = <0>;
373 #size-cells = <0>;
378 #size-cells = <0>;
383 #size-cells = <0>;
[all …]
Daspeed-bmc-facebook-fuji.dts219 data-size = <16>;
239 #size-cells = <0>;
245 #size-cells = <0>;
252 #size-cells = <0>;
259 #size-cells = <0>;
265 #size-cells = <0>;
271 #size-cells = <0>;
277 #size-cells = <0>;
283 #size-cells = <0>;
289 #size-cells = <0>;
[all …]
Daspeed-bmc-facebook-minipack.dts249 #size-cells = <1>;
299 #size-cells = <1>;
350 #size-cells = <0>;
356 #size-cells = <0>;
362 #size-cells = <0>;
368 #size-cells = <0>;
374 #size-cells = <0>;
380 #size-cells = <0>;
386 #size-cells = <0>;
392 #size-cells = <0>;
[all …]
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Dia_css_isp_configs.c28 unsigned int size = 0; in ia_css_configure_iterator() local
35 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
36 if (!size) in ia_css_configure_iterator()
43 config_dmem, size); in ia_css_configure_iterator()
51 unsigned int size = 0; in ia_css_configure_copy_output() local
58 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
59 if (!size) in ia_css_configure_copy_output()
66 config_dmem, size); in ia_css_configure_copy_output()
76 unsigned int size = 0; in ia_css_configure_crop() local
83 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
/linux-6.12.1/arch/riscv/boot/dts/sophgo/
Dsg2042-cpus.dtsi9 #size-cells = <0>;
265 i-cache-block-size = <64>;
266 i-cache-size = <65536>;
268 d-cache-block-size = <64>;
269 d-cache-size = <65536>;
290 i-cache-block-size = <64>;
291 i-cache-size = <65536>;
293 d-cache-block-size = <64>;
294 d-cache-size = <65536>;
315 i-cache-block-size = <64>;
[all …]
/linux-6.12.1/tools/testing/memblock/tests/
Dbasic_api.c37 * and size to the collection of available memory regions (memblock.memory).
49 .size = SZ_4M in memblock_add_simple_check()
55 memblock_add(r.base, r.size); in memblock_add_simple_check()
58 ASSERT_EQ(rgn->size, r.size); in memblock_add_simple_check()
61 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_simple_check()
69 * A simple test that adds a memory block of a specified base address, size,
82 .size = SZ_16M in memblock_add_node_simple_check()
88 memblock_add_node(r.base, r.size, 1, MEMBLOCK_HOTPLUG); in memblock_add_node_simple_check()
91 ASSERT_EQ(rgn->size, r.size); in memblock_add_node_simple_check()
98 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_node_simple_check()
[all …]
Dalloc_nid_api.c30 static inline void *run_memblock_alloc_nid(phys_addr_t size, in run_memblock_alloc_nid() argument
42 return memblock_alloc_exact_nid_raw(size, align, min_addr, in run_memblock_alloc_nid()
45 return memblock_alloc_try_nid_raw(size, align, min_addr, in run_memblock_alloc_nid()
47 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); in run_memblock_alloc_nid()
68 phys_addr_t size = SZ_128; in alloc_nid_top_down_simple_check() local
79 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_simple_check()
82 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_simple_check()
85 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_simple_check()
87 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_simple_check()
88 ASSERT_EQ(rgn->base, max_addr - size); in alloc_nid_top_down_simple_check()
[all …]
/linux-6.12.1/tools/perf/util/
Dtrace-event-read.c28 static int __do_read(int fd, void *buf, int size) in __do_read() argument
30 int rsize = size; in __do_read()
32 while (size) { in __do_read()
33 int ret = read(fd, buf, size); in __do_read()
47 size -= ret; in __do_read()
54 static int do_read(void *data, int size) in do_read() argument
58 r = __do_read(input_fd, data, size); in do_read()
60 pr_debug("reading input file (size expected=%d received=%d)", in do_read()
61 size, r); in do_read()
71 static void skip(int size) in skip() argument
[all …]
/linux-6.12.1/arch/arm64/boot/dts/broadcom/
Dbcm2712.dtsi8 #size-cells = <2>;
45 #size-cells = <0>;
47 /* Source for L1 d/i cache-line-size, cache-sets, cache-size
49 * Source for L2 cache-line-size and cache-sets:
51 * and for cache-size:
59 d-cache-size = <0x10000>;
60 d-cache-line-size = <64>;
61 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set
62 i-cache-size = <0x10000>;
63 i-cache-line-size = <64>;
[all …]
/linux-6.12.1/arch/arm64/boot/dts/amazon/
Dalpine-v3.dtsi17 #size-cells = <2>;
21 #size-cells = <0>;
28 d-cache-size = <0x8000>;
29 d-cache-line-size = <64>;
31 i-cache-size = <0xc000>;
32 i-cache-line-size = <64>;
42 d-cache-size = <0x8000>;
43 d-cache-line-size = <64>;
45 i-cache-size = <0xc000>;
46 i-cache-line-size = <64>;
[all …]
/linux-6.12.1/tools/testing/selftests/mm/
Dmseal_test.c26 int size = 0; in get_vma_size() local
38 size = addr_end - addr_start; in get_vma_size()
50 return size; in get_vma_size()
65 static int sys_mprotect(void *ptr, size_t size, unsigned long prot) in sys_mprotect() argument
70 sret = syscall(__NR_mprotect, ptr, size, prot); in sys_mprotect()
74 static int sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in sys_mprotect_pkey() argument
80 sret = syscall(__NR_pkey_mprotect, ptr, size, orig_prot, pkey); in sys_mprotect_pkey()
84 static int sys_munmap(void *ptr, size_t size) in sys_munmap() argument
89 sret = syscall(__NR_munmap, ptr, size); in sys_munmap()
170 static void setup_single_address(int size, void **ptrOut) in setup_single_address() argument
[all …]
/linux-6.12.1/tools/perf/trace/beauty/
Dbeauty.h30 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool sho…
31 size_t strarray__scnprintf_suffix(struct strarray *sa, char *bf, size_t size, const char *intfmt, b…
32 size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, bool show_prefix, unsi…
34 bool strarray__strtoul(struct strarray *sa, char *bf, size_t size, u64 *ret);
35 bool strarray__strtoul_flags(struct strarray *sa, char *bf, size_t size, u64 *ret);
57 size_t strarrays__scnprintf(struct strarrays *sas, char *bf, size_t size, const char *intfmt, bool …
59 bool strarrays__strtoul(struct strarrays *sas, char *bf, size_t size, u64 *ret);
61 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size);
79 * @size: 8 if all we need is an integer, otherwise all of the augmented arg.
84 int size; member
[all …]
/linux-6.12.1/drivers/mtd/tests/
Dmtd_nandecctest.c48 size_t size) in single_bit_error_data() argument
50 unsigned int offset = get_random_u32_below(size * BITS_PER_BYTE); in single_bit_error_data()
52 memcpy(error_data, correct_data, size); in single_bit_error_data()
57 size_t size) in double_bit_error_data() argument
61 offset[0] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data()
63 offset[1] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data()
66 memcpy(error_data, correct_data, size); in double_bit_error_data()
72 static unsigned int random_ecc_bit(size_t size) in random_ecc_bit() argument
76 if (size == 256) { in random_ecc_bit()
89 size_t size) in single_bit_error_ecc() argument
[all …]
/linux-6.12.1/arch/arm/boot/dts/broadcom/
Dbcm2837.dtsi39 #size-cells = <0>;
42 /* Source for d/i-cache-line-size and d/i-cache-sets
46 * Source for d/i-cache-size
55 d-cache-size = <0x8000>;
56 d-cache-line-size = <64>;
57 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
58 i-cache-size = <0x8000>;
59 i-cache-line-size = <64>;
60 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set
70 d-cache-size = <0x8000>;
[all …]
Dbcm2836.dtsi40 #size-cells = <0>;
43 /* Source for d/i-cache-line-size and d/i-cache-sets
47 * Source for d/i-cache-size
56 d-cache-size = <0x8000>;
57 d-cache-line-size = <64>;
58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
59 i-cache-size = <0x8000>;
60 i-cache-line-size = <32>;
61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set
70 d-cache-size = <0x8000>;
[all …]
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/
Dadf_transport_access_macros.h16 /* Valid internal ring size values */
27 /* Valid internal msg size values */
34 /* Size to bytes conversion macros for ring and msg size values */
35 #define ADF_MSG_SIZE_TO_BYTES(SIZE) (SIZE << 5) argument
36 #define ADF_BYTES_TO_MSG_SIZE(SIZE) (SIZE >> 5) argument
37 #define ADF_SIZE_TO_RING_SIZE_IN_BYTES(SIZE) ((1 << (SIZE - 1)) << 7) argument
38 #define ADF_RING_SIZE_IN_BYTES_TO_SIZE(SIZE) ((1 << (SIZE - 1)) >> 7) argument
40 /* Minimum ring buffer size for memory allocation */
41 #define ADF_RING_SIZE_BYTES_MIN(SIZE) \ argument
42 ((SIZE < ADF_SIZE_TO_RING_SIZE_IN_BYTES(ADF_RING_SIZE_4K)) ? \
[all …]
/linux-6.12.1/arch/arm64/boot/dts/amd/
Damd-seattle-cpus.dtsi6 #size-cells = <0x0>;
49 i-cache-size = <0xC000>;
50 i-cache-line-size = <64>;
52 d-cache-size = <0x8000>;
53 d-cache-line-size = <64>;
65 i-cache-size = <0xC000>;
66 i-cache-line-size = <64>;
68 d-cache-size = <0x8000>;
69 d-cache-line-size = <64>;
80 i-cache-size = <0xC000>;
[all …]
/linux-6.12.1/kernel/
Dstacktrace.c40 * @size: Size of the print buffer
47 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, in stack_trace_snprint() argument
55 for (i = 0; i < nr_entries && size; i++) { in stack_trace_snprint()
56 generated = snprintf(buf, size, "%*c%pS\n", 1 + spaces, ' ', in stack_trace_snprint()
60 if (generated >= size) { in stack_trace_snprint()
61 buf += size; in stack_trace_snprint()
62 size = 0; in stack_trace_snprint()
65 size -= generated; in stack_trace_snprint()
77 unsigned int size; member
86 if (c->len >= c->size) in stack_trace_consume_entry()
[all …]

12345678910>>...482