Home
last modified time | relevance | path

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

12345678910>>...326

/Linux-v6.6/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);
32 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size);
33 extern unsigned long _find_last_bit(const unsigned long *addr, unsigned long size);
36 unsigned long _find_first_zero_bit_le(const unsigned long *addr, unsigned long size);
38 long size, unsigned long offset);
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/tools/testing/selftests/exec/
Dbinfmt_script.py14 SIZE=256 variable
33 # @size: bytes for bprm->buf line, including hashbang but not newline
40 # @fill: character to fill between @root and @target to reach @size bytes
41 # @newline: character to use as newline, not counted towards @size
43 def test(name, size, good=True, leading="", root="./", target="/perl", argument
52 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg)
111 test(name="too-big", size=SIZE+80, good=False)
112 # Path is right at max size, making it impossible to tell if it was truncated.
113 test(name="exact", size=SIZE, good=False)
115 test(name="exact-space", size=SIZE, good=False, leading=" ")
[all …]
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/gpu/drm/tests/
Ddrm_mm_test.c100 static bool assert_continuous(struct kunit *test, const struct drm_mm *mm, u64 size) in assert_continuous() argument
118 if (node->size != size) { in assert_continuous()
119 KUNIT_FAIL(test, "node[%ld].size incorrect, expected %llx, found %llx\n", in assert_continuous()
120 n, size, node->size); in assert_continuous()
130 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
140 KUNIT_FAIL(test, "lookup failed for node %llx + %llx\n", addr, size); in assert_continuous()
144 addr += size; in assert_continuous()
163 u64 size, u64 alignment, unsigned long color) in assert_node() argument
172 if (node->size != size) { in assert_node()
173 KUNIT_FAIL(test, "node has wrong size, found %llu, expected %llu\n", in assert_node()
[all …]
/Linux-v6.6/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-v6.6/lib/crypto/mpi/
Dmpih-mul.c21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument
23 if ((size) < KARATSUBA_THRESHOLD) \
24 mul_n_basecase(prodp, up, vp, size); \
26 mul_n(prodp, up, vp, size, tspace); \
29 #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ argument
31 if ((size) < KARATSUBA_THRESHOLD) \
32 mpih_sqr_n_basecase(prodp, up, size); \
34 mpih_sqr_n(prodp, up, size, tspace); \
38 * both with SIZE limbs, and store the result at PRODP. 2 * SIZE limbs are
55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() argument
[all …]
/Linux-v6.6/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-v6.6/arch/arm/boot/dts/broadcom/
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 …]
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 …]
/Linux-v6.6/mm/kasan/
Dgeneric.c40 * depending on memory access size X.
56 unsigned long size) in memory_is_poisoned_2_4_8() argument
61 * Access crosses 8(shadow size)-byte boundary. Such access maps in memory_is_poisoned_2_4_8()
64 if (unlikely((((unsigned long)addr + size - 1) & KASAN_GRANULE_MASK) < size - 1)) in memory_is_poisoned_2_4_8()
65 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
67 return memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
82 size_t size) in bytes_is_nonzero() argument
84 while (size) { in bytes_is_nonzero()
88 size--; in bytes_is_nonzero()
123 static __always_inline bool memory_is_poisoned_n(const void *addr, size_t size) in memory_is_poisoned_n() argument
[all …]
/Linux-v6.6/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-v6.6/lib/
Dtest_user_copy.c42 static bool is_zeroed(void *from, size_t size) in is_zeroed() argument
44 return memchr_inv(from, 0x0, size) == NULL; in is_zeroed()
47 static int test_check_nonzero_user(char *kmem, char __user *umem, size_t size) in test_check_nonzero_user() argument
52 if (test(size < 2 * PAGE_SIZE, "buffer too small")) in test_check_nonzero_user()
57 * effectively. We also don't want to make the size we scan too large, in test_check_nonzero_user()
61 size = 1024; in test_check_nonzero_user()
62 start = PAGE_SIZE - (size / 2); in test_check_nonzero_user()
67 zero_start = size / 4; in test_check_nonzero_user()
68 zero_end = size - zero_start; in test_check_nonzero_user()
81 memset(kmem, 0x0, size); in test_check_nonzero_user()
[all …]
/Linux-v6.6/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-v6.6/arch/arm/mm/
Ddma-mapping.c43 size_t size; member
53 size_t size; member
107 static void __dma_clear_buffer(struct page *page, size_t size, int coherent_flag) in __dma_clear_buffer() argument
115 phys_addr_t end = base + size; in __dma_clear_buffer()
116 while (size > 0) { in __dma_clear_buffer()
123 size -= PAGE_SIZE; in __dma_clear_buffer()
129 memset(ptr, 0, size); in __dma_clear_buffer()
131 dmac_flush_range(ptr, ptr + size); in __dma_clear_buffer()
132 outer_flush_range(__pa(ptr), __pa(ptr) + size); in __dma_clear_buffer()
138 * Allocate a DMA buffer for 'dev' of size 'size' using the
[all …]

12345678910>>...326