Home
last modified time | relevance | path

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

12345678910>>...382

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
Dbinfmt_script14 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 …]
/kernel/linux/linux-4.19/include/linux/
Dbootmem.h71 unsigned long size);
72 extern void free_bootmem(unsigned long physaddr, unsigned long size);
73 extern void free_bootmem_late(unsigned long physaddr, unsigned long size);
87 unsigned long size,
91 unsigned long size,
94 extern void *__alloc_bootmem(unsigned long size,
97 extern void *__alloc_bootmem_nopanic(unsigned long size,
101 unsigned long size,
105 unsigned long size,
109 unsigned long size,
[all …]
Dslab.h142 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
146 unsigned int size, unsigned int align,
234 * The largest kmalloc size supported by the SLAB allocators is
275 /* Maximum allocatable size */
277 /* Maximum size for which we actually use a slab cache */
291 * Page size is normally 2^12 bytes and, in this case, if we want to use
292 * byte sized index which can represent 2^8 entries, the size of the object
294 * If minimum size of kmalloc is less than 16, we use it as minimum object
295 * size and give up to use byte sized index.
307 * Figure out which kmalloc slab an allocation of a certain size
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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 …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2401_system/hive/
Dia_css_isp_configs.c36 unsigned int size = 0; in ia_css_configure_iterator() local
39 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
42 if (size) { in ia_css_configure_iterator()
45 config_dmem, size); in ia_css_configure_iterator()
64 unsigned int size = 0; in ia_css_configure_copy_output() local
67 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
70 if (size) { in ia_css_configure_copy_output()
73 config_dmem, size); in ia_css_configure_copy_output()
92 unsigned int size = 0; in ia_css_configure_crop() local
95 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2400_system/hive/
Dia_css_isp_configs.c36 unsigned int size = 0; in ia_css_configure_iterator() local
39 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
42 if (size) { in ia_css_configure_iterator()
45 config_dmem, size); in ia_css_configure_iterator()
64 unsigned int size = 0; in ia_css_configure_copy_output() local
67 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
70 if (size) { in ia_css_configure_copy_output()
73 config_dmem, size); in ia_css_configure_copy_output()
92 unsigned int size = 0; in ia_css_configure_crop() local
95 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
/kernel/linux/linux-4.19/arch/powerpc/include/asm/
Dhead-64.h43 * FIXED_SECTION_ENTRY_BEGIN_LOCATION(section_name, label2, start_address, size)
44 * FIXED_SECTION_ENTRY_END_LOCATION(section_name, label2, start_address, size)
125 #define FIXED_SECTION_ENTRY_BEGIN_LOCATION(sname, name, start, size) \
128 .if ((start) % (size) != 0); \
131 .if ((size) != 0x20) && ((size) != 0x80) && ((size) != 0x100); \
132 .error "Fixed section exception vector bad size"; \
142 #define FIXED_SECTION_ENTRY_END_LOCATION(sname, name, start, size) \
143 .if (start) + (size) > sname##_end; \
147 .if (. - name > (start) + (size) - name##_start); \
151 . = ((start) + (size) - sname##_start); \
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/perf/util/
Dtrace-event-read.c26 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/lib/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 …]
/kernel/linux/linux-5.10/include/linux/
Dslab.h147 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
151 unsigned int size, unsigned int align,
235 * The largest kmalloc size supported by the SLAB allocators is
276 /* Maximum allocatable size */
278 /* Maximum size for which we actually use a slab cache */
292 * Page size is normally 2^12 bytes and, in this case, if we want to use
293 * byte sized index which can represent 2^8 entries, the size of the object
295 * If minimum size of kmalloc is less than 16, we use it as minimum object
296 * size and give up to use byte sized index.
339 * Figure out which kmalloc slab an allocation of a certain size
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
Dtest-drm_mm.c107 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument
125 if (node->size != size) { in assert_continuous()
126 pr_err("node[%ld].size incorrect, expected %llx, found %llx\n", in assert_continuous()
127 n, size, node->size); in assert_continuous()
137 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
147 addr, size); in assert_continuous()
151 addr += size; in assert_continuous()
170 u64 size, u64 alignment, unsigned long color) in assert_node() argument
179 if (node->size != size) { in assert_node()
180 pr_err("node has wrong size, found %llu, expected %llu\n", in assert_node()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/selftests/
Dtest-drm_mm.c105 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument
123 if (node->size != size) { in assert_continuous()
124 pr_err("node[%ld].size incorrect, expected %llx, found %llx\n", in assert_continuous()
125 n, size, node->size); in assert_continuous()
135 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
145 addr, size); in assert_continuous()
149 addr += size; in assert_continuous()
168 u64 size, u64 alignment, unsigned long color) in assert_node() argument
177 if (node->size != size) { in assert_node()
178 pr_err("node has wrong size, found %llu, expected %llu\n", in assert_node()
[all …]
/kernel/linux/linux-5.10/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);
78 * @size: 8 if all we need is an integer, otherwise all of the augmented arg.
83 int size; member
[all …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dmtd_nandecctest.c48 size_t size) in single_bit_error_data() argument
50 unsigned int offset = prandom_u32() % (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() % (size * BITS_PER_BYTE); in double_bit_error_data()
63 offset[1] = prandom_u32() % (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 …]
/kernel/linux/linux-4.19/drivers/mtd/tests/
Dmtd_nandecctest.c47 size_t size) in single_bit_error_data() argument
49 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data()
51 memcpy(error_data, correct_data, size); in single_bit_error_data()
56 size_t size) in double_bit_error_data() argument
60 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
62 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
65 memcpy(error_data, correct_data, size); in double_bit_error_data()
71 static unsigned int random_ecc_bit(size_t size) in random_ecc_bit() argument
75 if (size == 256) { in random_ecc_bit()
88 size_t size) in single_bit_error_ecc() argument
[all …]
/kernel/linux/linux-5.10/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 …]
Dtest_meminit.c29 static int __init count_nonzero_bytes(void *ptr, size_t size) in count_nonzero_bytes() argument
34 for (i = 0; i < size; i++) in count_nonzero_bytes()
41 static void __init fill_with_garbage_skip(void *ptr, int size, size_t skip) in fill_with_garbage_skip() argument
46 WARN_ON(skip > size); in fill_with_garbage_skip()
47 size -= skip; in fill_with_garbage_skip()
49 while (size >= sizeof(*p)) { in fill_with_garbage_skip()
52 size -= sizeof(*p); in fill_with_garbage_skip()
54 if (size) in fill_with_garbage_skip()
55 memset(&p[i], GARBAGE_BYTE, size); in fill_with_garbage_skip()
58 static void __init fill_with_garbage(void *ptr, size_t size) in fill_with_garbage() argument
[all …]
/kernel/linux/linux-4.19/tools/perf/util/
Dtrace-event-read.c44 static int __do_read(int fd, void *buf, int size) in __do_read() argument
46 int rsize = size; in __do_read()
48 while (size) { in __do_read()
49 int ret = read(fd, buf, size); in __do_read()
63 size -= ret; in __do_read()
70 static int do_read(void *data, int size) in do_read() argument
74 r = __do_read(input_fd, data, size); in do_read()
76 pr_debug("reading input file (size expected=%d received=%d)", in do_read()
77 size, r); in do_read()
87 static void skip(int size) in skip() argument
[all …]
/kernel/linux/linux-5.10/kernel/
Dstacktrace.c39 * @size: Size of the print buffer
46 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, in stack_trace_snprint() argument
54 for (i = 0; i < nr_entries && size; i++) { in stack_trace_snprint()
55 generated = snprintf(buf, size, "%*c%pS\n", 1 + spaces, ' ', in stack_trace_snprint()
59 if (generated >= size) { in stack_trace_snprint()
60 buf += size; in stack_trace_snprint()
61 size = 0; in stack_trace_snprint()
64 size -= generated; in stack_trace_snprint()
76 unsigned int size; member
85 if (c->len >= c->size) in stack_trace_consume_entry()
[all …]
/kernel/linux/linux-4.19/drivers/misc/mic/scif/
Dscif_rb.c25 #define scif_rb_ring_cnt(head, tail, size) CIRC_CNT(head, tail, size) argument
26 #define scif_rb_ring_space(head, tail, size) CIRC_SPACE(head, tail, size) argument
34 * @size: The size of the ring buffer in powers of two
37 void *rb_base, u8 size) in scif_rb_init() argument
40 rb->size = (1 << size); in scif_rb_init()
49 void *msg, u32 size) in memcpy_torb() argument
53 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb()
55 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_torb()
56 size2 = size - size1; in memcpy_torb()
61 memcpy_toio((void __iomem __force *)header, msg, size); in memcpy_torb()
[all …]

12345678910>>...382