/Linux-v6.1/include/linux/ |
D | find.h | 19 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size); 20 unsigned long __find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n); 22 unsigned long size, unsigned long n); 24 unsigned long size, unsigned long n); 26 const unsigned long *addr2, unsigned long size); 27 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size); 28 extern unsigned long _find_last_bit(const unsigned long *addr, unsigned long size); 31 unsigned long _find_first_zero_bit_le(const unsigned long *addr, unsigned long size); 33 long size, unsigned long offset); 35 long size, unsigned long offset); [all …]
|
D | slab.h | 158 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size, 162 unsigned int size, unsigned int align, 201 * ksize - Report actual allocation size of associated object 206 * allocation size. Either use krealloc() or round up the allocation size 208 * access beyond the originally requested allocation size, UBSAN_BOUNDS 210 * originally allocated size via the __alloc_size attribute. 299 /* Maximum allocatable size */ 301 /* Maximum size for which we actually use a slab cache */ 315 * Page size is normally 2^12 bytes and, in this case, if we want to use 316 * byte sized index which can represent 2^8 entries, the size of the object [all …]
|
D | fortify-string.h | 13 void __read_overflow(void) __compiletime_error("detected read beyond size of object (1st parameter)… 14 void __read_overflow2(void) __compiletime_error("detected read beyond size of object (2nd parameter… 15 …(size_t avail, size_t wanted) __compiletime_warning("detected read beyond size of field (2nd param… 16 void __write_overflow(void) __compiletime_error("detected write beyond size of object (1st paramete… 17 …size_t avail, size_t wanted) __compiletime_warning("detected write beyond size of field (1st param… 35 extern void *__underlying_memchr(const void *p, int c, __kernel_size_t size) __RENAME(memchr); 36 extern int __underlying_memcmp(const void *p, const void *q, __kernel_size_t size) __RENAME(memcmp); 37 extern void *__underlying_memcpy(void *p, const void *q, __kernel_size_t size) __RENAME(memcpy); 38 extern void *__underlying_memmove(void *p, const void *q, __kernel_size_t size) __RENAME(memmove); 39 extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(memset); [all …]
|
/Linux-v6.1/scripts/coccinelle/api/ |
D | kvmalloc.cocci | 24 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.1/tools/include/linux/ |
D | find.h | 17 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.1/drivers/net/dsa/sja1105/ |
D | sja1105_static_config.c | 97 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.1/scripts/ |
D | extract_xc3028.pl | 51 # 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.1/tools/testing/memblock/tests/ |
D | basic_api.c | 37 * 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 …]
|
D | alloc_nid_api.c | 28 static inline void *run_memblock_alloc_try_nid(phys_addr_t size, in run_memblock_alloc_try_nid() argument 34 return memblock_alloc_try_nid_raw(size, align, min_addr, in run_memblock_alloc_try_nid() 36 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); in run_memblock_alloc_try_nid() 57 phys_addr_t size = SZ_128; in alloc_try_nid_top_down_simple_check() local 68 allocated_ptr = run_memblock_alloc_try_nid(size, SMP_CACHE_BYTES, in alloc_try_nid_top_down_simple_check() 71 rgn_end = rgn->base + rgn->size; in alloc_try_nid_top_down_simple_check() 74 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_try_nid_top_down_simple_check() 76 ASSERT_EQ(rgn->size, size); in alloc_try_nid_top_down_simple_check() 77 ASSERT_EQ(rgn->base, max_addr - size); in alloc_try_nid_top_down_simple_check() 81 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_top_down_simple_check() [all …]
|
/Linux-v6.1/tools/testing/selftests/exec/ |
D | binfmt_script.py | 14 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.1/arch/arm/boot/dts/ |
D | aspeed-bmc-facebook-cmm.dts | 334 #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 …]
|
D | aspeed-bmc-facebook-fuji.dts | 219 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 …]
|
D | bcm2837.dtsi | 40 #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 = <64>; 61 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set 71 d-cache-size = <0x8000>; [all …]
|
D | bcm2836.dtsi | 41 #size-cells = <0>; 44 /* Source for d/i-cache-line-size and d/i-cache-sets 48 * Source for d/i-cache-size 57 d-cache-size = <0x8000>; 58 d-cache-line-size = <64>; 59 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 60 i-cache-size = <0x8000>; 61 i-cache-line-size = <32>; 62 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 71 d-cache-size = <0x8000>; [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/ |
D | ia_css_isp_configs.c | 28 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.1/tools/perf/util/ |
D | trace-event-read.c | 26 static int __do_read(int fd, void *buf, int size) in __do_read() argument 28 int rsize = size; in __do_read() 30 while (size) { in __do_read() 31 int ret = read(fd, buf, size); in __do_read() 45 size -= ret; in __do_read() 52 static int do_read(void *data, int size) in do_read() argument 56 r = __do_read(input_fd, data, size); in do_read() 58 pr_debug("reading input file (size expected=%d received=%d)", in do_read() 59 size, r); in do_read() 69 static void skip(int size) in skip() argument [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/amazon/ |
D | alpine-v3.dtsi | 17 #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.1/drivers/gpu/drm/tests/ |
D | drm_mm_test.c | 100 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.1/lib/mpi/ |
D | mpih-mul.c | 21 #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.1/tools/perf/trace/beauty/ |
D | beauty.h | 30 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); 80 * @size: 8 if all we need is an integer, otherwise all of the augmented arg. 85 int size; member [all …]
|
/Linux-v6.1/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 48 size_t size) in single_bit_error_data() argument 50 unsigned int offset = prandom_u32_max(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] = prandom_u32_max(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = prandom_u32_max(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.1/drivers/crypto/qat/qat_common/ |
D | adf_transport_access_macros.h | 16 /* 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 bufer 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.1/mm/kasan/ |
D | generic.c | 40 * 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(((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() 124 size_t size) in memory_is_poisoned_n() argument [all …]
|
/Linux-v6.1/lib/ |
D | test_user_copy.c | 42 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.1/arch/arm64/boot/dts/amd/ |
D | amd-seattle-cpus.dtsi | 6 #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 …]
|