Home
last modified time | relevance | path

Searched refs:size (Results 3526 - 3550 of 41719) sorted by relevance

1...<<141142143144145146147148149150>>...1669

/drivers/peripheral/partitionslot/hal/src/
H A Dpartitionslot_manager.cpp77 int32_t PartitionSlotManager::WriteSlot(int fd, int32_t slot, off_t offset, off_t size) in WriteSlot() argument
84 if (write(fd, &slot, size) != size) { in WriteSlot()
91 int PartitionSlotManager::ReadMisc(off_t offset, off_t size) in ReadMisc() argument
103 if (read(fd, &slot, size) != size) { in ReadMisc()
113 int PartitionSlotManager::WriteSlotToMisc(int32_t slot, off_t offset, off_t size) in WriteSlotToMisc() argument
125 if (WriteSlot(fd, slot, offset, size) < 0) { in WriteSlotToMisc()
/drivers/peripheral/wlan/test/fuzztest/hostapd_fuzzer/
H A Dhostapd_fuzzer.cpp56 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument
61 if (rawData == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI()
79 uint32_t dataSize = size - OFFSET; in DoSomethingInterestingWithMyAPI()
85 if (PreProcessRawData(rawData, size, tmpRawData, dataSize + 1) != true) { in DoSomethingInterestingWithMyAPI()
109 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
111 HDF_LOGI("%{public}s : size = %lu ,THRESHOLD = %lu", __FUNCTION__, size, OHOS::WIFI::THRESHOLD); in LLVMFuzzerTestOneInput()
112 if (size < OHOS::WIFI::THRESHOLD) { in LLVMFuzzerTestOneInput()
117 OHOS::WIFI::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/kernel/linux/linux-5.10/arch/m68k/atari/
H A Dstram.c36 * configurable size, set aside on ST-RAM init.
106 pr_debug("atari_stram pool: size = %lu bytes, resource = %pR\n", in atari_stram_reserve_pages()
130 pr_debug("atari_stram pool: size = %lu bytes, resource = %pR\n", in atari_stram_map_pages()
154 void *atari_stram_alloc(unsigned long size, const char *owner) in atari_stram_alloc() argument
159 pr_debug("atari_stram_alloc: allocate %lu bytes\n", size); in atari_stram_alloc()
162 size = PAGE_ALIGN(size); in atari_stram_alloc()
169 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX, in atari_stram_alloc()
188 unsigned long size; in atari_stram_free() local
197 size in atari_stram_free()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
H A Dcommon-smdk-s3c24xx.c134 .size = SZ_16K,
140 .size = SZ_2M,
145 .size = SZ_4M,
150 .size = SZ_2M,
155 .size = SZ_4M,
160 .size = SZ_1M * 10,
165 .size = SZ_1M * 24,
170 .size = MTDPART_SIZ_FULL,
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dcmpxchg.h25 unsigned int size);
28 __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() argument
30 switch (size) { in __xchg()
33 return __xchg_small(ptr, x, size); in __xchg()
78 unsigned long new, unsigned int size);
81 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg() argument
83 switch (size) { in __cmpxchg()
86 return __cmpxchg_small(ptr, old, new, size); in __cmpxchg()
/kernel/linux/linux-5.10/arch/mips/loongson64/
H A Dinit.c74 resource_size_t size) in add_legacy_isa_io()
85 range->size = size = round_up(size, PAGE_SIZE); in add_legacy_isa_io()
104 ioremap_page_range(vaddr, vaddr + size, hw_start, pgprot_device(PAGE_KERNEL)); in add_legacy_isa_io()
129 range.cpu_addr + range.size - 1, in reserve_pio_range()
131 if (add_legacy_isa_io(&np->fwnode, range.cpu_addr, range.size)) in reserve_pio_range()
137 range.cpu_addr + range.size - 1, in reserve_pio_range()
73 add_legacy_isa_io(struct fwnode_handle *fwnode, resource_size_t hw_start, resource_size_t size) add_legacy_isa_io() argument
/kernel/linux/linux-5.10/arch/mips/mm/
H A Dioremap.c42 * @size: size of the resource to map
46 void __iomem *ioremap_prot(phys_addr_t phys_addr, unsigned long size, in ioremap_prot() argument
56 cpu_addr = plat_ioremap(phys_addr, size, flags); in ioremap_prot()
60 phys_addr = fixup_bigphys_addr(phys_addr, size); in ioremap_prot()
62 /* Don't allow wraparound or zero size */ in ioremap_prot()
63 last_addr = phys_addr + size - 1; in ioremap_prot()
64 if (!size || last_addr < phys_addr) in ioremap_prot()
93 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in ioremap_prot()
98 area = get_vm_area(size, VM_IOREMA in ioremap_prot()
[all...]
/kernel/linux/linux-5.10/arch/mips/pci/
H A Dops-sni.c41 int size, u32 * val) in pcimt_read()
48 switch (size) { in pcimt_read()
64 int size, u32 val) in pcimt_write()
71 switch (size) { in pcimt_write()
101 int size, u32 * val) in pcit_read()
123 switch (size) { in pcit_read()
138 int size, u32 val) in pcit_write()
145 switch (size) { in pcit_write()
40 pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 * val) pcimt_read() argument
63 pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) pcimt_write() argument
100 pcit_read(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 * val) pcit_read() argument
137 pcit_write(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) pcit_write() argument
/kernel/linux/linux-5.10/arch/mips/txx9/generic/
H A D7segled.c42 const char *buf, size_t size) in ascii_store()
46 return size; in ascii_store()
51 const char *buf, size_t size) in raw_store()
55 return size; in raw_store()
71 const char *buf, size_t size) in map_seg7_store()
73 if (size != sizeof(txx9_seg7map)) in map_seg7_store()
75 memcpy(&txx9_seg7map, buf, size); in map_seg7_store()
76 return size; in map_seg7_store()
40 ascii_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) ascii_store() argument
49 raw_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) raw_store() argument
69 map_seg7_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) map_seg7_store() argument
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Dcmpxchg_64.h91 int size) in __xchg()
93 switch (size) { in __xchg()
157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() argument
159 switch (size) { in __cmpxchg()
186 unsigned long new, int size) in __cmpxchg_local()
188 switch (size) { in __cmpxchg_local()
190 case 8: return __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
192 return __cmpxchg_local_generic(ptr, old, new, size); in __cmpxchg_local()
90 __xchg(unsigned long x, __volatile__ void * ptr, int size) __xchg() argument
184 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dkexec_elf.c73 size_t size; in s390_elf_load() local
87 size = ehdr->e_ehsize + ehdr->e_phoff; in s390_elf_load()
88 size += ehdr->e_phentsize * ehdr->e_phnum; in s390_elf_load()
89 if (size > kernel_len) in s390_elf_load()
93 size = ALIGN(size, phdr->p_align); in s390_elf_load()
101 size += ALIGN(phdr->p_filesz, phdr->p_align); in s390_elf_load()
104 if (size > kernel_len) in s390_elf_load()
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dmain.c187 void *__wrap_malloc(int size) in __wrap_malloc() argument
192 return __real_malloc(size); in __wrap_malloc()
193 else if (size <= UM_KERN_PAGE_SIZE) in __wrap_malloc()
195 ret = uml_kmalloc(size, UM_GFP_KERNEL); in __wrap_malloc()
196 else ret = vmalloc(size); in __wrap_malloc()
208 void *__wrap_calloc(int n, int size) in __wrap_calloc() argument
210 void *ptr = __wrap_malloc(n * size); in __wrap_calloc()
214 memset(ptr, 0, n * size); in __wrap_calloc()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Ddma-iommu.c21 static void *dma_iommu_alloc_coherent(struct device *dev, size_t size, in dma_iommu_alloc_coherent() argument
25 return iommu_alloc_coherent(dev, get_iommu_table_base(dev), size, in dma_iommu_alloc_coherent()
30 static void dma_iommu_free_coherent(struct device *dev, size_t size, in dma_iommu_free_coherent() argument
34 iommu_free_coherent(get_iommu_table_base(dev), size, vaddr, dma_handle); in dma_iommu_free_coherent() local
43 unsigned long offset, size_t size, in dma_iommu_map_page()
48 size, dma_get_mask(dev), direction, attrs); in dma_iommu_map_page()
53 size_t size, enum dma_data_direction direction, in dma_iommu_unmap_page()
56 iommu_unmap_page(get_iommu_table_base(dev), dma_handle, size, direction, in dma_iommu_unmap_page() local
42 dma_iommu_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction, unsigned long attrs) dma_iommu_map_page() argument
52 dma_iommu_unmap_page(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction, unsigned long attrs) dma_iommu_unmap_page() argument
/kernel/linux/common_modules/memory_security/src/
H A Djit_memory.c38 void find_jit_memory(struct task_struct *task, unsigned long start, unsigned long size, int *err) in find_jit_memory() argument
46 find_jit_space(head, start, size, err); in find_jit_memory()
53 unsigned long flag, unsigned long size, unsigned long *err) in check_jit_memory()
62 vm_munmap(start, size); in check_jit_memory()
70 vm_munmap(start, size); in check_jit_memory()
75 update_jit_space(head, start, size); in check_jit_memory()
80 void delete_jit_memory(struct task_struct *task, unsigned long start, unsigned long size, int *err) in delete_jit_memory() argument
88 delete_jit_space(head, start, size, err); in delete_jit_memory()
52 check_jit_memory(struct task_struct *task, unsigned long cookie, unsigned long prot, unsigned long flag, unsigned long size, unsigned long *err) check_jit_memory() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/include/
H A 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; /* structur member
68 u16 size; /* structure size in bytes (includes size field) */ global() member
85 u16 size; /* structure size in bytes (includes size field) */ global() member
93 u16 size; /* structure size in bytes (includes size field) */ global() member
102 u16 size; /* structure size in bytes (includes size field) */ global() member
[all...]
/kernel/linux/linux-6.6/arch/csky/include/asm/
H A Dcmpxchg.h10 #define __xchg_relaxed(new, ptr, size) \
16 switch (size) { \
56 #define __cmpxchg_relaxed(ptr, old, new, size) \
63 switch (size) { \
86 #define __cmpxchg_acquire(ptr, old, new, size) \
93 switch (size) { \
117 #define __cmpxchg(ptr, old, new, size) \
124 switch (size) { \
/kernel/linux/linux-6.6/arch/m68k/atari/
H A Dstram.c36 * configurable size, set aside on ST-RAM init.
106 pr_debug("atari_stram pool: size = %lu bytes, resource = %pR\n", in atari_stram_reserve_pages()
130 pr_debug("atari_stram pool: size = %lu bytes, resource = %pR\n", in atari_stram_map_pages()
154 void *atari_stram_alloc(unsigned long size, const char *owner) in atari_stram_alloc() argument
159 pr_debug("atari_stram_alloc: allocate %lu bytes\n", size); in atari_stram_alloc()
162 size = PAGE_ALIGN(size); in atari_stram_alloc()
169 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX, in atari_stram_alloc()
188 unsigned long size; in atari_stram_free() local
197 size in atari_stram_free()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/nohash/32/
H A Dmmu-8xx.h64 #define MI_PSMASK 0x0000000c /* Mask of page size bits */
65 #define MI_PS8MEG 0x0000000c /* 8M page size */
66 #define MI_PS512K 0x00000004 /* 512K page size */
67 #define MI_PS4K_16K 0x00000000 /* 4K or 16K page size */
76 #define MI_SPS16K 0x00000008 /* Small page size (0 = 4k, 1 = 16k) */
80 * large page size, shared page, cache enabled, and valid.
139 #define MD_PSMASK 0x0000000c /* Mask of page size bits */
140 #define MD_PS8MEG 0x0000000c /* 8M page size */
141 #define MD_PS512K 0x00000004 /* 512K page size */
142 #define MD_PS4K_16K 0x00000000 /* 4K or 16K page size */
227 arch_vmap_try_size(unsigned long addr, unsigned long end, u64 pfn, unsigned int max_page_shift, unsigned long size) arch_vmap_try_size() argument
258 arch_vmap_pte_supported_shift(unsigned long size) arch_vmap_pte_supported_shift() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dqueue_stack_map.c13 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() local
62 buf, &size, &retval, &duration); in test_queue_stack_map_by_type()
63 if (err || retval || size != sizeof(pkt_v4) || in test_queue_stack_map_by_type()
68 CHECK(err || retval || size != sizeof(pkt_v4) || iph->daddr != val, in test_queue_stack_map_by_type()
70 "err %d errno %d retval %d size %d iph->daddr %u\n", in test_queue_stack_map_by_type()
71 err, errno, retval, size, iph->daddr); in test_queue_stack_map_by_type()
75 buf, &size, &retval, &duration); in test_queue_stack_map_by_type()
76 CHECK(err || retval != 2 /* TC_ACT_SHOT */|| size != sizeof(pkt_v4), in test_queue_stack_map_by_type()
78 "err %d errno %d retval %d size %d\n", in test_queue_stack_map_by_type()
79 err, errno, retval, size); in test_queue_stack_map_by_type()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3.c32 static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode) in call_clone3() argument
48 if (size > sizeof(struct __clone_args)) in call_clone3()
51 if (size == 0) in call_clone3()
52 size = sizeof(struct __clone_args); in call_clone3()
81 pid = sys_clone3((struct __clone_args *)&args_ext, size); in call_clone3()
106 static void test_clone3(uint64_t flags, size_t size, int expected, in test_clone3() argument
112 "[%d] Trying clone3() with flags %#" PRIx64 " (size %zu)\n", in test_clone3()
113 getpid(), flags, size); in test_clone3()
114 ret = call_clone3(flags, size, test_mode); in test_clone3()
173 /* Do a clone3() with > page size */ in main()
[all...]
/kernel/linux/linux-6.6/arch/mips/mm/
H A Dioremap.c42 * @size: size of the resource to map
46 void __iomem *ioremap_prot(phys_addr_t phys_addr, unsigned long size, in ioremap_prot() argument
56 cpu_addr = plat_ioremap(phys_addr, size, flags); in ioremap_prot()
60 phys_addr = fixup_bigphys_addr(phys_addr, size); in ioremap_prot()
62 /* Don't allow wraparound or zero size */ in ioremap_prot()
63 last_addr = phys_addr + size - 1; in ioremap_prot()
64 if (!size || last_addr < phys_addr) in ioremap_prot()
93 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in ioremap_prot()
98 area = get_vm_area(size, VM_IOREMA in ioremap_prot()
[all...]
/kernel/linux/linux-6.6/arch/mips/pci/
H A Dops-sni.c41 int size, u32 * val) in pcimt_read()
48 switch (size) { in pcimt_read()
64 int size, u32 val) in pcimt_write()
71 switch (size) { in pcimt_write()
101 int size, u32 * val) in pcit_read()
123 switch (size) { in pcit_read()
138 int size, u32 val) in pcit_write()
145 switch (size) { in pcit_write()
40 pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 * val) pcimt_read() argument
63 pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) pcimt_write() argument
100 pcit_read(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 * val) pcit_read() argument
137 pcit_write(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) pcit_write() argument
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Dacpi.c202 void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) in __acpi_map_table() argument
204 if (!size) in __acpi_map_table()
207 return early_ioremap(phys, size); in __acpi_map_table()
210 void __init __acpi_unmap_table(void __iomem *map, unsigned long size) in __acpi_unmap_table() argument
212 if (!map || !size) in __acpi_unmap_table()
215 early_iounmap(map, size); in __acpi_unmap_table()
218 void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) in acpi_os_ioremap() argument
220 return (void __iomem *)memremap(phys, size, MEMREMAP_WB); in acpi_os_ioremap()
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dkexec_elf.c73 size_t size; in s390_elf_load() local
87 size = ehdr->e_ehsize + ehdr->e_phoff; in s390_elf_load()
88 size += ehdr->e_phentsize * ehdr->e_phnum; in s390_elf_load()
89 if (size > kernel_len) in s390_elf_load()
93 size = ALIGN(size, phdr->p_align); in s390_elf_load()
101 size += ALIGN(phdr->p_filesz, phdr->p_align); in s390_elf_load()
104 if (size > kernel_len) in s390_elf_load()
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dmain.c187 void *__wrap_malloc(int size) in __wrap_malloc() argument
192 return __real_malloc(size); in __wrap_malloc()
193 else if (size <= UM_KERN_PAGE_SIZE) in __wrap_malloc()
195 ret = uml_kmalloc(size, UM_GFP_KERNEL); in __wrap_malloc()
196 else ret = vmalloc(size); in __wrap_malloc()
208 void *__wrap_calloc(int n, int size) in __wrap_calloc() argument
210 void *ptr = __wrap_malloc(n * size); in __wrap_calloc()
214 memset(ptr, 0, n * size); in __wrap_calloc()

Completed in 14 milliseconds

1...<<141142143144145146147148149150>>...1669