Home
last modified time | relevance | path

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

12345678910>>...286

/Linux-v5.4/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-v5.4/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->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing()
112 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing()
113 return size; in sja1105pqrs_avb_params_entry_packing()
119 const size_t size = SJA1105ET_SIZE_GENERAL_PARAMS_ENTRY; in sja1105et_general_params_entry_packing() local
122 sja1105_packing(buf, &entry->vllupformat, 319, 319, size, op); in sja1105et_general_params_entry_packing()
[all …]
/Linux-v5.4/include/linux/
Dslab.h147 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
151 unsigned int size, unsigned int align,
239 * The largest kmalloc size supported by the SLAB allocators is
280 /* Maximum allocatable size */
282 /* Maximum size for which we actually use a slab cache */
296 * Page size is normally 2^12 bytes and, in this case, if we want to use
297 * byte sized index which can represent 2^8 entries, the size of the object
299 * If minimum size of kmalloc is less than 16, we use it as minimum object
300 * size and give up to use byte sized index.
343 * Figure out which kmalloc slab an allocation of a certain size
[all …]
Ddma-mapping.h80 void* (*alloc)(struct device *dev, size_t size,
83 void (*free)(struct device *dev, size_t size,
94 unsigned long offset, size_t size,
98 size_t size, enum dma_data_direction dir,
112 size_t size, enum dma_data_direction dir,
115 size_t size, enum dma_data_direction dir,
118 dma_addr_t dma_handle, size_t size,
121 dma_addr_t dma_handle, size_t size,
129 void (*cache_sync)(struct device *dev, void *vaddr, size_t size,
158 int dma_alloc_from_dev_coherent(struct device *dev, ssize_t size,
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/gpu/drm/selftests/
Dtest-drm_mm.c106 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument
124 if (node->size != size) { in assert_continuous()
125 pr_err("node[%ld].size incorrect, expected %llx, found %llx\n", in assert_continuous()
126 n, size, node->size); in assert_continuous()
136 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
146 addr, size); in assert_continuous()
150 addr += size; in assert_continuous()
169 u64 size, u64 alignment, unsigned long color) in assert_node() argument
178 if (node->size != size) { in assert_node()
179 pr_err("node has wrong size, found %llu, expected %llu\n", in assert_node()
[all …]
/Linux-v5.4/drivers/staging/uwb/
Dest.c4 * Event Size Tables management
11 * Infrastructure, code and data tables for guessing the size of
15 * You define a table of events and for each, its size and how to get
16 * the extra size.
22 * uwb_est_[u]register(): To un/register event size tables
25 * uwb_est_find_size(): Get the size of an event
47 * WUSB Standard Event Size Table, HWA-RC interface
54 .size = sizeof(struct uwb_rc_evt_ie_rcv),
58 .size = sizeof(struct uwb_rc_evt_beacon),
62 .size = sizeof(struct uwb_rc_evt_beacon_size),
[all …]
/Linux-v5.4/drivers/misc/mic/scif/
Dscif_rb.c16 #define scif_rb_ring_cnt(head, tail, size) CIRC_CNT(head, tail, size) argument
17 #define scif_rb_ring_space(head, tail, size) CIRC_SPACE(head, tail, size) argument
25 * @size: The size of the ring buffer in powers of two
28 void *rb_base, u8 size) in scif_rb_init() argument
31 rb->size = (1 << size); in scif_rb_init()
40 void *msg, u32 size) in memcpy_torb() argument
44 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb()
46 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_torb()
47 size2 = size - size1; in memcpy_torb()
52 memcpy_toio((void __iomem __force *)header, msg, size); in memcpy_torb()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/mm/kasan/
Dgeneric.c47 * depending on memory access size X.
63 unsigned long size) in memory_is_poisoned_2_4_8() argument
68 * Access crosses 8(shadow size)-byte boundary. Such access maps in memory_is_poisoned_2_4_8()
71 if (unlikely(((addr + size - 1) & KASAN_SHADOW_MASK) < size - 1)) in memory_is_poisoned_2_4_8()
72 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
74 return memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
89 size_t size) in bytes_is_nonzero() argument
91 while (size) { in bytes_is_nonzero()
95 size--; in bytes_is_nonzero()
131 size_t size) in memory_is_poisoned_n() argument
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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
86 if (c->len >= c->size) in stack_trace_consume_entry()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/include/trace/events/
Dintel_iommu.h21 size_t size),
23 TP_ARGS(dev, dev_addr, phys_addr, size),
29 __field(size_t, size)
36 __entry->size = size;
39 TP_printk("dev=%s dev_addr=0x%llx phys_addr=0x%llx size=%zu",
43 __entry->size)
48 size_t size),
49 TP_ARGS(dev, dev_addr, phys_addr, size)
54 size_t size),
55 TP_ARGS(dev, dev_addr, phys_addr, size)
[all …]
/Linux-v5.4/fs/fuse/
Dxattr.c15 size_t size, int flags) in fuse_setxattr() argument
26 inarg.size = size; in fuse_setxattr()
31 args.in_args[0].size = sizeof(inarg); in fuse_setxattr()
33 args.in_args[1].size = strlen(name) + 1; in fuse_setxattr()
35 args.in_args[2].size = size; in fuse_setxattr()
50 size_t size) in fuse_getxattr() argument
62 inarg.size = size; in fuse_getxattr()
66 args.in_args[0].size = sizeof(inarg); in fuse_getxattr()
68 args.in_args[1].size = strlen(name) + 1; in fuse_getxattr()
72 if (size) { in fuse_getxattr()
[all …]
/Linux-v5.4/drivers/usb/common/
Ddebug.c14 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument
18 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status()
21 snprintf(str, size, in usb_decode_get_status()
26 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status()
73 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
77 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature()
84 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature()
90 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature()
99 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument
101 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address()
[all …]
/Linux-v5.4/tools/perf/trace/beauty/
Dbeauty.h29 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool sho…
30 size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, bool show_prefix, unsi…
52 size_t strarrays__scnprintf(struct strarrays *sas, char *bf, size_t size, const char *intfmt, bool …
54 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size);
71 * @size: 8 if all we need is an integer, otherwise all of the augmented arg.
76 int size; member
85 * @augmented_args_size: augmented_args total payload size
99 int size; member
111 size_t syscall_arg__scnprintf_strarray_flags(char *bf, size_t size, struct syscall_arg *arg);
114 size_t syscall_arg__scnprintf_strarrays(char *bf, size_t size, struct syscall_arg *arg);
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/core/
Dioctl.c33 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument
40 nvif_ioctl(object, "nop size %d\n", size); in nvkm_ioctl_nop()
41 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_ioctl_nop()
51 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_sclass() argument
59 nvif_ioctl(object, "sclass size %d\n", size); in nvkm_ioctl_sclass()
60 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nvkm_ioctl_sclass()
63 if (size != args->v0.count * sizeof(args->v0.oclass[0])) in nvkm_ioctl_sclass()
84 struct nvkm_object *parent, void *data, u32 size) in nvkm_ioctl_new() argument
93 nvif_ioctl(parent, "new size %d\n", size); in nvkm_ioctl_new()
94 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nvkm_ioctl_new()
[all …]
/Linux-v5.4/arch/arm/mm/
Ddma-mapping.c46 size_t size; member
56 size_t size; member
119 * @size: size of buffer to map
129 unsigned long offset, size_t size, enum dma_data_direction dir, in arm_dma_map_page() argument
133 __dma_page_cpu_to_dev(page, offset, size, dir); in arm_dma_map_page()
138 unsigned long offset, size_t size, enum dma_data_direction dir, in arm_coherent_dma_map_page() argument
148 * @size: size of buffer (same as passed to dma_map_page)
151 * Unmap a page streaming mode DMA translation. The handle and size
159 size_t size, enum dma_data_direction dir, unsigned long attrs) in arm_dma_unmap_page() argument
163 handle & ~PAGE_MASK, size, dir); in arm_dma_unmap_page()
[all …]
/Linux-v5.4/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c41 static inline void pdacf_transfer_mono16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono16() argument
43 while (size-- > 0) { in pdacf_transfer_mono16()
49 static inline void pdacf_transfer_mono32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono32() argument
53 while (size-- > 0) { in pdacf_transfer_mono32()
61 static inline void pdacf_transfer_stereo16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo16() argument
63 while (size-- > 0) { in pdacf_transfer_stereo16()
69 static inline void pdacf_transfer_stereo32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo32() argument
73 while (size-- > 0) { in pdacf_transfer_stereo32()
82 static inline void pdacf_transfer_mono16sw(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_mono16sw() argument
84 while (size-- > 0) { in pdacf_transfer_mono16sw()
[all …]
/Linux-v5.4/arch/arm64/mm/
Dcache.S100 * __flush_dcache_area(kaddr, size)
102 * Ensure that any D-cache lines for the interval [kaddr, kaddr+size)
106 * - size - size in question
114 * __clean_dcache_area_pou(kaddr, size)
116 * Ensure that any D-cache lines for the interval [kaddr, kaddr+size)
120 * - size - size in question
132 * __inval_dcache_area(kaddr, size)
134 * Ensure that any D-cache lines for the interval [kaddr, kaddr+size)
139 * - size - size in question
145 * __dma_inv_area(start, size)
[all …]
/Linux-v5.4/mm/
Dmemblock.c147 /* adjust *@size so that (@base + *@size) doesn't overflow, return new size */
148 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size() argument
150 return *size = min(*size, PHYS_ADDR_MAX - base); in memblock_cap_size()
163 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region() argument
168 if (memblock_addrs_overlap(base, size, type->regions[i].base, in memblock_overlaps_region()
169 type->regions[i].size)) in memblock_overlaps_region()
179 * @size: size of free area to find
191 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_bottom_up() argument
202 if (cand < this_end && this_end - cand >= size) in __memblock_find_range_bottom_up()
214 * @size: size of free area to find
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/include/
Damd_acpi.h30 u16 size; /* structure size in bytes (includes size field) */ member
37 u16 size; /* structure size in bytes (includes size field) */ member
44 u16 size; /* structure size in bytes (includes size field) */ member
56 u16 size; /* structure size in bytes (includes size field) */ member
68 u16 size; /* structure size in bytes (includes size field) */ member
85 u16 size; /* structure size in bytes (includes size field) */ member
93 u16 size; /* structure size in bytes (includes size field) */ member
102 u16 size; /* structure size in bytes (includes size field) */ member
130 * ARG1: (ACPI_BUFFER) size of the buffer to fill (up to 4K).
147 * WORD - structure size in bytes (includes size field)
[all …]
/Linux-v5.4/arch/x86/kernel/cpu/mtrr/
Dif.c38 mtrr_file_add(unsigned long base, unsigned long size, in mtrr_file_add() argument
52 if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) in mtrr_file_add()
55 size >>= PAGE_SHIFT; in mtrr_file_add()
57 reg = mtrr_add_page(base, size, type, true); in mtrr_file_add()
64 mtrr_file_del(unsigned long base, unsigned long size, in mtrr_file_del() argument
71 if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) in mtrr_file_del()
74 size >>= PAGE_SHIFT; in mtrr_file_del()
76 reg = mtrr_del_page(-1, base, size); in mtrr_file_del()
91 * "base=%Lx size=%Lx type=%s" or "disable=%d"
98 unsigned long long base, size; in mtrr_write() local
[all …]

12345678910>>...286