Searched refs:size (Results 101 - 125 of 11135) sorted by relevance

1234567891011>>

/linux-master/tools/perf/trace/beauty/
H A Dtimespec.c8 static size_t syscall_arg__scnprintf_augmented_timespec(struct syscall_arg *arg, char *bf, size_t size) argument
12 return scnprintf(bf, size, "{ .tv_sec: %" PRIu64 ", .tv_nsec: %" PRIu64 " }", ts->tv_sec, ts->tv_nsec);
15 size_t syscall_arg__scnprintf_timespec(char *bf, size_t size, struct syscall_arg *arg) argument
18 return syscall_arg__scnprintf_augmented_timespec(arg, bf, size);
20 return scnprintf(bf, size, "%#lx", arg->val);
H A Dkcmp.c16 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 Dfcntl.c12 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/include/linux/
H A Dnospec.h19 * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise
21 * @size: number of elements in array
23 * When @index is out of bounds (@index >= @size), the sign bit will be
25 * zero for an out of bounds index, or ~0 if within bounds [0, @size).
29 unsigned long size)
37 return ~(long)(index | (size - 1UL - index)) >> (BITS_PER_LONG - 1);
46 * if (index < size) {
47 * index = array_index_nospec(index, size);
53 * size).
55 #define array_index_nospec(index, size) \
28 array_index_mask_nospec(unsigned long index, unsigned long size) argument
[all...]
/linux-master/arch/m68k/kernel/
H A Ddma.c12 void arch_dma_prep_coherent(struct page *page, size_t size) argument
14 cache_push(page_to_phys(page), size); local
29 void arch_sync_dma_for_device(phys_addr_t handle, size_t size, argument
35 cache_push(handle, size);
38 cache_clear(handle, size);
/linux-master/arch/riscv/mm/
H A Ddma-noncoherent.c18 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
131 arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, bool coherent) argument
[all...]
/linux-master/sound/pci/asihpi/
H A Dhpios.c33 If allocation fails, return 1, and *pMemArea.size = 0
35 u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size, argument
40 dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle,
45 size, (unsigned int)p_mem_area->dma_handle,
48 p_mem_area->size = size;
52 "failed to allocate %d bytes locked memory\n", size);
53 p_mem_area->size = 0;
60 if (p_mem_area->size) {
61 dma_free_coherent(p_mem_area->pdev, p_mem_area->size,
[all...]
H A Dhpimsginit.c17 /* 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/tools/lib/
H A Dvsprintf.c6 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) argument
8 int i = vsnprintf(buf, size, fmt, args);
9 ssize_t ssize = size;
14 int scnprintf(char * buf, size_t size, const char * fmt, ...) argument
16 ssize_t ssize = size;
21 i = vsnprintf(buf, size, fmt, args);
27 int scnprintf_pad(char * buf, size_t size, const char * fmt, ...) argument
29 ssize_t ssize = size;
34 i = vscnprintf(buf, size, fmt, args);
37 if (i < (int) size) {
[all...]
/linux-master/drivers/usb/common/
H A Ddebug.c15 __u16 wLength, char *str, size_t size)
19 snprintf(str, size, "Get Device Status(Length = %d)", wLength);
22 snprintf(str, size,
27 snprintf(str, size, "Get Endpoint Status(ep%d%s)",
74 __u16 wIndex, char *str, size_t size)
78 snprintf(str, size, "%s Device Feature(%s%s)",
85 snprintf(str, size, "%s Interface Feature(%s)",
91 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)",
100 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) argument
102 snprintf(str, size, "Se
14 usb_decode_get_status(__u8 bRequestType, __u16 wIndex, __u16 wLength, char *str, size_t size) argument
72 usb_decode_set_clear_feature(__u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, char *str, size_t size) argument
105 usb_decode_get_set_descriptor(__u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength, char *str, size_t size) argument
170 usb_decode_get_configuration(__u16 wLength, char *str, size_t size) argument
175 usb_decode_set_configuration(__u8 wValue, char *str, size_t size) argument
180 usb_decode_get_intf(__u16 wIndex, __u16 wLength, char *str, size_t size) argument
187 usb_decode_set_intf(__u8 wValue, __u16 wIndex, char *str, size_t size) argument
194 usb_decode_synch_frame(__u16 wIndex, __u16 wLength, char *str, size_t size) argument
201 usb_decode_set_sel(__u16 wLength, char *str, size_t size) argument
206 usb_decode_set_isoch_delay(__u8 wValue, char *str, size_t size) argument
211 usb_decode_ctrl_generic(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) argument
230 usb_decode_ctrl_standard(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) argument
300 usb_decode_ctrl(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) argument
[all...]
/linux-master/drivers/mtd/spi-nor/
H A Deon.c15 .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/arch/microblaze/kernel/
H A Ddma.c17 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 Dbreakpoint_test_arm64.c8 * 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 Dgv100.c34 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 Dzstd_common.c56 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 Dioremap_64.c7 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 Dioremap.c12 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 Damdgpu_res_cursor.h38 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/lib/
H A Dtest_user_copy.c42 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 Dioctl.h6 * 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 Dintel-sst.h106 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 Dgus_dram.c14 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 Dethernet-mem.c19 * @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 Dpmem.c18 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/lib/crypto/mpi/
H A Dmpih-mul.c21 #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...]

Completed in 202 milliseconds

1234567891011>>