/linux-master/drivers/mtd/spi-nor/ |
H A D | eon.c | 15 .size = SZ_4M, 19 .size = SZ_8M, 23 .size = SZ_1M, 28 .size = SZ_4M, 32 .size = SZ_8M, 37 .size = SZ_4M, 42 .size = SZ_8M, 47 .size = SZ_2M, 52 .size = SZ_4M, 56 .size [all...] |
/linux-master/tools/perf/trace/beauty/ |
H A D | kcmp.c | 16 size_t syscall_arg__scnprintf_kcmp_idx(char *bf, size_t size, struct syscall_arg *arg) argument 23 return syscall_arg__scnprintf_long(bf, size, arg); 26 return pid__scnprintf_fd(arg->trace, pid, fd, bf, size); 29 static size_t kcmp__scnprintf_type(int type, char *bf, size_t size, bool show_prefix) argument 32 return strarray__scnprintf(&strarray__kcmp_types, bf, size, "%d", show_prefix, type); 35 size_t syscall_arg__scnprintf_kcmp_type(char *bf, size_t size, struct syscall_arg *arg) argument 42 return kcmp__scnprintf_type(type, bf, size, arg->show_string_prefix);
|
H A D | fcntl.c | 12 static size_t fcntl__scnprintf_getfd(unsigned long val, char *bf, size_t size, bool show_prefix) argument 14 return val ? scnprintf(bf, size, "%s", "0") : 15 scnprintf(bf, size, "%s%s", show_prefix ? "FD_" : "", "CLOEXEC"); 18 static size_t syscall_arg__scnprintf_fcntl_getfd(char *bf, size_t size, struct syscall_arg *arg) argument 20 return fcntl__scnprintf_getfd(arg->val, bf, size, arg->show_string_prefix); 23 static size_t fcntl__scnprintf_getlease(unsigned long val, char *bf, size_t size, bool show_prefix) argument 28 return strarray__scnprintf(&strarray__fcntl_setlease, bf, size, "%x", show_prefix, val); 31 static size_t syscall_arg__scnprintf_fcntl_getlease(char *bf, size_t size, struct syscall_arg *arg) argument 33 return fcntl__scnprintf_getlease(arg->val, bf, size, arg->show_string_prefix); 36 size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struc argument 70 syscall_arg__scnprintf_fcntl_arg(char *bf, size_t size, struct syscall_arg *arg) argument [all...] |
/linux-master/arch/microblaze/kernel/ |
H A D | dma.c | 17 static void __dma_sync(phys_addr_t paddr, size_t size, argument 23 flush_dcache_range(paddr, paddr + size); 26 invalidate_dcache_range(paddr, paddr + size); 33 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, argument 36 __dma_sync(paddr, size, dir); 39 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, argument 42 __dma_sync(paddr, size, dir);
|
/linux-master/tools/testing/selftests/breakpoints/ |
H A D | breakpoint_test_arm64.c | 8 * for testing different byte select for each access size. 33 static void child(int size, int wr) argument 50 if ((uintptr_t) addr % size) { 52 "Wrong address write for the given size: %s\n", 57 switch (size) { 81 static bool set_watchpoint(pid_t pid, int size, int wp) argument 85 const unsigned int byte_mask = ((1 << size) - 1) << offset; 204 int wr, wp, size; local 214 for (size = 1; size < [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
H A D | gv100.c | 34 u32 size; local 37 size = nvkm_rd32(device, 0x104028); /* NV_PCE_PCE_MAP */ 38 size = 27 * 5 * (((9 + 1 + 3) * hweight32(size)) + 2); 39 size = roundup(size, PAGE_SIZE); 41 return nvkm_gpuobj_new(device, size, align, true, parent, pgpuobj);
|
/linux-master/lib/zstd/common/ |
H A D | zstd_common.c | 56 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) argument 59 return customMem.customAlloc(customMem.opaque, size); 60 return ZSTD_malloc(size); 63 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) argument 68 void* const ptr = customMem.customAlloc(customMem.opaque, size); 69 ZSTD_memset(ptr, 0, size); 72 return ZSTD_calloc(1, size);
|
/linux-master/arch/powerpc/mm/ |
H A D | ioremap_64.c | 7 void __iomem *__ioremap_caller(phys_addr_t addr, unsigned long size, argument 26 size = PAGE_ALIGN(addr + size) - paligned; 28 if (size == 0 || paligned == 0) 32 return generic_ioremap_prot(addr, size, prot); 36 err = early_ioremap_range(ioremap_bot, paligned, size, prot); 41 ioremap_bot += size + PAGE_SIZE;
|
H A D | ioremap.c | 12 void __iomem *ioremap(phys_addr_t addr, unsigned long size) argument 18 return iowa_ioremap(addr, size, prot, caller); 19 return __ioremap_caller(addr, size, prot, caller); 23 void __iomem *ioremap_wc(phys_addr_t addr, unsigned long size) argument 29 return iowa_ioremap(addr, size, prot, caller); 30 return __ioremap_caller(addr, size, prot, caller); 34 void __iomem *ioremap_coherent(phys_addr_t addr, unsigned long size) argument 40 return iowa_ioremap(addr, size, prot, caller); 41 return __ioremap_caller(addr, size, prot, caller); 44 void __iomem *ioremap_prot(phys_addr_t addr, size_t size, unsigne argument 59 early_ioremap_range(unsigned long ea, phys_addr_t pa, unsigned long size, pgprot_t prot) argument [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_res_cursor.h | 38 uint64_t size; member in struct:amdgpu_res_cursor 49 * @size: Size of the range 52 * Start walking over the range of allocations between @start and @size. 55 uint64_t start, uint64_t size, 65 BUG_ON(start + size > res->size); 88 cur->size = min(amdgpu_vram_mgr_block_size(block) - start, size); 89 cur->remaining = size; 95 while (start >= node->size << PAGE_SHIF 54 amdgpu_res_first(struct ttm_resource *res, uint64_t start, uint64_t size, struct amdgpu_res_cursor *cur) argument 125 amdgpu_res_next(struct amdgpu_res_cursor *cur, uint64_t size) argument [all...] |
/linux-master/arch/arm/mm/ |
H A D | dma-mapping-nommu.c | 16 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, argument 19 dmac_map_area(__va(paddr), size, dir); local 22 outer_inv_range(paddr, paddr + size); 24 outer_clean_range(paddr, paddr + size); 27 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, argument 31 outer_inv_range(paddr, paddr + size); 32 dmac_unmap_area(__va(paddr), size, dir); local
|
/linux-master/lib/ |
H A D | test_user_copy.c | 42 static bool is_zeroed(void *from, size_t size) argument 44 return memchr_inv(from, 0x0, size) == NULL; 47 static int test_check_nonzero_user(char *kmem, char __user *umem, size_t size) argument 52 if (test(size < 2 * PAGE_SIZE, "buffer too small")) 57 * effectively. We also don't want to make the size we scan too large, 61 size = 1024; 62 start = PAGE_SIZE - (size / 2); 67 zero_start = size / 4; 68 zero_end = size - zero_start; 81 memset(kmem, 0x0, size); 105 test_copy_struct_from_user(char *kmem, char __user *umem, size_t size) argument [all...] |
/linux-master/include/uapi/asm-generic/ |
H A D | ioctl.h | 6 * size of the parameter structure in the lower 14 bits of the 8 * Encoding the size of the parameter structure in the ioctl request 12 * NOTE: This limits the max parameter size to 16kB -1 ! 69 #define _IOC(dir,type,nr,size) \ 73 ((size) << _IOC_SIZESHIFT)) 86 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) 87 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) 88 #define _IOWR(type,nr,size) _IO [all...] |
/linux-master/include/trace/events/ |
H A D | intel-sst.h | 106 TP_PROTO(unsigned int size), 108 TP_ARGS(size), 111 __field( unsigned int, size ) 115 __entry->size = size; 118 TP_printk("Mailbox bytes 0x%8.8x", (unsigned int)__entry->size) 123 TP_PROTO(unsigned int size), 125 TP_ARGS(size) 131 TP_PROTO(unsigned int size), 133 TP_ARGS(size) [all...] |
/linux-master/sound/isa/gus/ |
H A D | gus_dram.c | 14 unsigned int address, unsigned int size) 20 while (size > 0) { 21 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; 37 size -= size1; 45 unsigned int address, unsigned int size) 47 return snd_gus_dram_poke(gus, buffer, address, size); 51 unsigned int address, unsigned int size, 58 while (size > 0) { 59 size1 = size > sizeo 13 snd_gus_dram_poke(struct snd_gus_card *gus, char __user *_buffer, unsigned int address, unsigned int size) argument 44 snd_gus_dram_write(struct snd_gus_card *gus, char __user *buffer, unsigned int address, unsigned int size) argument 50 snd_gus_dram_peek(struct snd_gus_card *gus, char __user *_buffer, unsigned int address, unsigned int size, int rom) argument 82 snd_gus_dram_read(struct snd_gus_card *gus, char __user *buffer, unsigned int address, unsigned int size, int rom) argument [all...] |
/linux-master/drivers/staging/octeon/ |
H A D | ethernet-mem.c | 19 * @size: Size of the buffer needed for the pool 24 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) argument 29 struct sk_buff *skb = dev_alloc_skb(size + 256); 35 cvmx_fpa_free(skb->data, pool, size / 128); 44 * @size: Size of the buffer needed for the pool 47 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) argument 72 * @size: Size of each buffer in the pool 77 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) argument 94 memory = kmalloc(size + 256, GFP_ATOMIC); 97 elements * size, poo 114 cvm_oct_free_hw_memory(int pool, int size, int elements) argument 137 cvm_oct_mem_fill_fpa(int pool, int size, int elements) argument 148 cvm_oct_mem_empty_fpa(int pool, int size, int elements) argument [all...] |
/linux-master/arch/powerpc/lib/ |
H A D | pmem.c | 18 unsigned long size = stop - (unsigned long)addr + (bytes - 1); local 21 for (i = 0; i < size >> shift; i++, addr += bytes) 30 unsigned long size = stop - (unsigned long)addr + (bytes - 1); local 33 for (i = 0; i < size >> shift; i++, addr += bytes) 52 void arch_wb_cache_pmem(void *addr, size_t size) argument 55 clean_pmem_range(start, start + size); 59 void arch_invalidate_pmem(void *addr, size_t size) argument 62 flush_pmem_range(start, start + size); 70 unsigned size) 74 copied = __copy_from_user(dest, src, size); 69 __copy_from_user_flushcache(void *dest, const void __user *src, unsigned size) argument 80 memcpy_flushcache(void *dest, const void *src, size_t size) argument [all...] |
/linux-master/sound/pci/asihpi/ |
H A D | hpimsginit.c | 17 /* The actual message size for each object type */ 19 /* The actual response size for each object type */ 30 u16 size; local 34 size = msg_size[object]; 36 size = sizeof(*phm); 39 memset(phm, 0, size); 40 phm->size = size; 59 u16 size; local 63 size 88 hpi_init_messageV1(struct hpi_message_header *phm, u16 size, u16 object, u16 function) argument 102 hpi_init_responseV1(struct hpi_response_header *phr, u16 size, u16 object, u16 function) argument [all...] |
/linux-master/lib/crypto/mpi/ |
H A D | mpih-mul.c | 21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ 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) \ 31 if ((size) < KARATSUBA_THRESHOLD) \ 32 mpih_sqr_n_basecase(prodp, up, size); \ 34 mpih_sqr_n(prodp, up, size, tspace); \ 55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) argument 66 MPN_COPY(prodp, up, size); 95 mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size, mpi_ptr_t tspace) argument 207 mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size) argument 245 mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) argument 321 mpihelp_mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) argument [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | uaccess_64.h | 62 * 2. 'ptr+size' must not overflow into kernel addresses 71 * size check. 73 * In fact, we could probably remove the size check entirely, since 82 static inline bool __access_ok(const void __user *ptr, unsigned long size) argument 84 if (__builtin_constant_p(size <= PAGE_SIZE) && size <= PAGE_SIZE) { 87 unsigned long sum = size + (__force unsigned long)ptr; 123 raw_copy_from_user(void *dst, const void __user *src, unsigned long size) argument 125 return copy_user_generic(dst, (__force void *)src, size); 129 raw_copy_to_user(void __user *dst, const void *src, unsigned long size) argument 138 __copy_from_user_inatomic_nocache(void *dst, const void __user *src, unsigned size) argument 150 __copy_from_user_flushcache(void *dst, const void __user *src, unsigned size) argument 163 __clear_user(void __user *addr, unsigned long size) argument [all...] |
/linux-master/arch/powerpc/boot/ |
H A D | simple_alloc.c | 22 unsigned long size; member in struct:alloc_info 31 * First time an entry is used, its base and size are set. 32 * An entry can be freed and re-malloc'd but its base & size don't change. 35 static void *simple_malloc(unsigned long size) argument 40 if (size == 0) 43 size = _ALIGN_UP(size, alloc_min); 47 if (size <= space_left) { 49 p->size = size; 95 simple_realloc(void *ptr, unsigned long size) argument [all...] |
/linux-master/arch/riscv/mm/ |
H A D | dma-noncoherent.c | 18 static inline void arch_dma_cache_wback(phys_addr_t paddr, size_t size) argument 24 noncoherent_cache_ops.wback(paddr, size); 28 ALT_CMO_OP(CLEAN, vaddr, size, riscv_cbom_block_size); 31 static inline void arch_dma_cache_inv(phys_addr_t paddr, size_t size) argument 37 noncoherent_cache_ops.inv(paddr, size); 42 ALT_CMO_OP(INVAL, vaddr, size, riscv_cbom_block_size); 45 static inline void arch_dma_cache_wback_inv(phys_addr_t paddr, size_t size) argument 51 noncoherent_cache_ops.wback_inv(paddr, size); 56 ALT_CMO_OP(FLUSH, vaddr, size, riscv_cbom_block_size); 69 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, argument 98 arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, enum dma_data_direction dir) argument 117 arch_dma_prep_coherent(struct page *page, size_t size) argument 123 noncoherent_cache_ops.wback_inv(page_to_phys(page), size); local [all...] |
/linux-master/include/linux/ |
H A D | instrumented.h | 19 * @size: size of access 24 static __always_inline void instrument_read(const volatile void *v, size_t size) argument 26 kasan_check_read(v, size); 27 kcsan_check_read(v, size); 33 * @size: size of access 38 static __always_inline void instrument_write(const volatile void *v, size_t size) argument 40 kasan_check_write(v, size); 41 kcsan_check_write(v, size); 52 instrument_read_write(const volatile void *v, size_t size) argument 66 instrument_atomic_read(const volatile void *v, size_t size) argument 80 instrument_atomic_write(const volatile void *v, size_t size) argument 94 instrument_atomic_read_write(const volatile void *v, size_t size) argument [all...] |
H A D | genalloc.h | 42 * @size: The bitmap size in bits 49 unsigned long size, 102 phys_addr_t phys, size_t size, int nid) 104 return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); 111 * @size: size in bytes of the memory chunk to add to pool 120 size_t size, int nid) 122 return gen_pool_add_virt(pool, addr, -1, size, nid); 125 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, 101 gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, phys_addr_t phys, size_t size, int nid) argument 119 gen_pool_add(struct gen_pool *pool, unsigned long addr, size_t size, int nid) argument 128 gen_pool_alloc_owner(struct gen_pool *pool, size_t size, void **owner) argument 135 gen_pool_alloc_algo(struct gen_pool *pool, size_t size, genpool_algo_t algo, void *data) argument 151 gen_pool_alloc(struct gen_pool *pool, size_t size) argument 169 gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) argument [all...] |
/linux-master/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-debug.h | 14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size, argument 19 ret = scnprintf(str, size, "usbirq: 0x%02x - ", usb_irq); 22 ret += scnprintf(str + ret, size - ret, "SOF "); 24 ret += scnprintf(str + ret, size - ret, "SUTOK "); 26 ret += scnprintf(str + ret, size - ret, "SETUP "); 28 ret += scnprintf(str + ret, size - ret, "Suspend "); 30 ret += scnprintf(str + ret, size - ret, "Reset "); 32 ret += scnprintf(str + ret, size - ret, "HS "); 34 ret += scnprintf(str + ret, size - ret, "LPM "); 36 ret += scnprintf(str + ret, size 51 cdns2_decode_dma_irq(char *str, size_t size, u32 ep_ists, u32 ep_sts, const char *ep_name) argument 83 cdns2_decode_epx_irq(char *str, size_t size, char *ep_name, u32 ep_ists, u32 ep_sts) argument 90 cdns2_decode_ep0_irq(char *str, size_t size, u32 ep_ists, u32 ep_sts, int dir) argument 98 cdns2_raw_ring(struct cdns2_endpoint *pep, struct cdns2_trb *trbs, char *str, size_t size) argument 161 cdns2_decode_trb(char *str, size_t size, u32 flags, u32 length, u32 buffer) argument [all...] |