Home
last modified time | relevance | path

Searched refs:size (Results 751 - 775 of 23414) sorted by relevance

1...<<31323334353637383940>>...937

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dgup_benchmark.c32 __u64 size; member
41 unsigned long size = 128 * MB; in main() local
59 size = atoi(optarg) * MB; in main()
113 p = mmap(NULL, size, PROT_READ | PROT_WRITE, flags, filed, 0); in main()
121 madvise(p, size, MADV_HUGEPAGE); in main()
123 madvise(p, size, MADV_NOHUGEPAGE); in main()
125 for (; (unsigned long)p < gup.addr + size; p += PAGE_SIZE) in main()
129 gup.size = size; in main()
137 if (gup.size ! in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/
H A Dmte_common_util.h45 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags);
46 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping,
48 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping,
50 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping,
52 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags);
53 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type,
55 void *mte_insert_tags(void *ptr, size_t size);
56 void mte_clear_tags(void *ptr, size_t size);
84 static inline int check_allocated_memory(void *ptr, size_t size, in check_allocated_memory() argument
94 mte_free_memory((void *)ptr, size, mem_typ in check_allocated_memory()
101 check_allocated_memory_range(void *ptr, size_t size, int mem_type, size_t range_before, size_t range_after) check_allocated_memory_range() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_adjust_tail.c8 __u32 duration, retval, size, expect_sz; in test_xdp_adjust_tail_shrink() local
18 buf, &size, &retval, &duration); in test_xdp_adjust_tail_shrink()
21 "ipv4", "err %d errno %d retval %d size %d\n", in test_xdp_adjust_tail_shrink()
22 err, errno, retval, size); in test_xdp_adjust_tail_shrink()
26 buf, &size, &retval, &duration); in test_xdp_adjust_tail_shrink()
27 CHECK(err || retval != XDP_TX || size != expect_sz, in test_xdp_adjust_tail_shrink()
28 "ipv6", "err %d errno %d retval %d size %d expect-size %d\n", in test_xdp_adjust_tail_shrink()
29 err, errno, retval, size, expect_sz); in test_xdp_adjust_tail_shrink()
38 __u32 duration, retval, size, expect_s in test_xdp_adjust_tail_grow() local
[all...]
/kernel/linux/linux-6.6/arch/openrisc/include/asm/
H A Dcmpxchg.h60 int size) in cmpxchg_small()
65 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in cmpxchg_small()
69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small()
92 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small() argument
97 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small()
101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
119 __compiletime_error("Bad argument size for cmpxchg");
122 unsigned long new, int size) in __cmpxchg()
124 switch (size) { in __cmpxchg()
127 return cmpxchg_small(ptr, old, new, size); in __cmpxchg()
59 cmpxchg_small(volatile void *ptr, u32 old, u32 new, int size) cmpxchg_small() argument
121 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument
151 __arch_xchg(volatile void *ptr, unsigned long with, int size) __arch_xchg() argument
[all...]
/kernel/linux/linux-6.6/arch/s390/lib/
H A Duaccess.c34 unsigned long size, unsigned long key) in raw_copy_from_user_key()
46 "0: mvcos 0(%[to]),0(%[from]),%[size]\n" in raw_copy_from_user_key()
48 " algr %[size],%[val]\n" in raw_copy_from_user_key()
55 " clgr %[size],%[rem]\n" /* copy crosses next page boundary? */ in raw_copy_from_user_key()
58 "4: slgr %[size],%[rem]\n" in raw_copy_from_user_key()
60 "5: slgr %[size],%[size]\n" in raw_copy_from_user_key()
66 : [size] "+&a" (size), [from] "+&a" (from), [to] "+&a" (to), [rem] "=&a" (rem) in raw_copy_from_user_key()
69 return size; in raw_copy_from_user_key()
33 raw_copy_from_user_key(void *to, const void __user *from, unsigned long size, unsigned long key) raw_copy_from_user_key() argument
95 raw_copy_to_user_key(void __user *to, const void *from, unsigned long size, unsigned long key) raw_copy_to_user_key() argument
151 __clear_user(void __user *to, unsigned long size) __clear_user() argument
[all...]
/kernel/linux/linux-6.6/arch/sh/drivers/pci/
H A Dops-sh7786.c90 int where, int size, u32 *val) in sh7786_pcie_read()
96 if ((size == 2) && (where & 1)) in sh7786_pcie_read()
98 else if ((size == 4) && (where & 3)) in sh7786_pcie_read()
109 if (size == 1) in sh7786_pcie_read()
111 else if (size == 2) in sh7786_pcie_read()
117 "where=0x%04x size=%d val=0x%08lx\n", bus->number, in sh7786_pcie_read()
118 devfn, where, size, (unsigned long)*val); in sh7786_pcie_read()
126 int where, int size, u32 val) in sh7786_pcie_write()
132 if ((size == 2) && (where & 1)) in sh7786_pcie_write()
134 else if ((size in sh7786_pcie_write()
89 sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) sh7786_pcie_read() argument
125 sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) sh7786_pcie_write() argument
[all...]
/kernel/linux/linux-5.10/drivers/vfio/pci/
H A Dtrace.h42 unsigned long size, int ret),
43 TP_ARGS(pdev, hpa, ua, size, ret),
49 __field(unsigned long, size)
57 __entry->size = size;
61 TP_printk("%s: %lx -> %lx size=%lx ret=%d", __entry->name, __entry->hpa,
62 __entry->ua, __entry->size, __entry->ret)
67 unsigned long size, int ret),
68 TP_ARGS(pdev, hpa, ua, size, ret),
74 __field(unsigned long, size)
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dseq_buf.h15 * @size: size of the buffer
21 size_t size; member
33 seq_buf_init(struct seq_buf *s, char *buf, unsigned int size) in seq_buf_init() argument
36 s->size = size; in seq_buf_init()
42 * the len and size are set to be equal.
47 return s->len > s->size; in seq_buf_has_overflowed()
53 s->len = s->size + 1; in seq_buf_set_overflow()
65 return s->size in seq_buf_buffer_left()
[all...]
H A Ddma-direct.h23 u64 size; member
32 for (m = dev->dma_range_map; m->size; m++) in translate_phys_to_dma()
33 if (paddr >= m->cpu_start && paddr - m->cpu_start < m->size) in translate_phys_to_dma()
45 for (m = dev->dma_range_map; m->size; m++) in translate_dma_to_phys()
46 if (dma_addr >= m->dma_start && dma_addr - m->dma_start < m->size) in translate_dma_to_phys()
99 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size, in dma_capable() argument
102 dma_addr_t end = addr + size - 1; in dma_capable()
114 void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
116 void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
118 struct page *dma_direct_alloc_pages(struct device *dev, size_t size,
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Diommu.h88 TP_PROTO(unsigned long iova, phys_addr_t paddr, size_t size),
90 TP_ARGS(iova, paddr, size),
95 __field(size_t, size)
101 __entry->size = size;
104 TP_printk("IOMMU: iova=0x%016llx paddr=0x%016llx size=%zu",
105 __entry->iova, __entry->paddr, __entry->size
111 TP_PROTO(unsigned long iova, size_t size, size_t unmapped_size),
113 TP_ARGS(iova, size, unmapped_size),
117 __field(size_t, size)
[all...]
H A Dpercpu.h12 TP_PROTO(bool reserved, bool is_atomic, size_t size,
15 TP_ARGS(reserved, is_atomic, size, align, base_addr, off, ptr),
20 __field( size_t, size )
30 __entry->size = size;
37 TP_printk("reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p",
39 __entry->size, __entry->align,
67 TP_PROTO(bool reserved, bool is_atomic, size_t size, size_t align),
69 TP_ARGS(reserved, is_atomic, size, align),
74 __field( size_t, size )
[all...]
H A Dfsi_master_aspeed.h12 TP_PROTO(uint32_t addr, size_t size, uint32_t result, uint32_t status, uint32_t irq_status),
13 TP_ARGS(addr, size, result, status, irq_status),
16 __field(size_t, size)
23 __entry->size = size;
28 TP_printk("addr %08x size %zu: result %08x sts: %08x irq_sts: %08x",
29 __entry->addr, __entry->size, __entry->result,
35 TP_PROTO(uint32_t addr, uint32_t val, size_t size, uint32_t status, uint32_t irq_status),
36 TP_ARGS(addr, val, size, status, irq_status),
40 __field(size_t, size)
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/mga/
H A Dmga_warp.c45 #define WARP_UCODE_SIZE(size) ALIGN(size, MGA_WARP_CODE_ALIGN)
55 unsigned int size; in mga_warp_install_microcode() local
86 size = 0; in mga_warp_install_microcode()
91 size += WARP_UCODE_SIZE(be16_to_cpu(rec->len)); in mga_warp_install_microcode()
100 size = PAGE_ALIGN(size); in mga_warp_install_microcode()
101 DRM_DEBUG("MGA ucode size = %d bytes\n", size); in mga_warp_install_microcode()
102 if (size > dev_pri in mga_warp_install_microcode()
[all...]
/kernel/linux/linux-5.10/drivers/rapidio/
H A Drio-access.c25 * @size: Size of configuration space read (8, 16, 32 bits)
32 #define RIO_LOP_READ(size,type,len) \
33 int __rio_local_read_config_##size \
38 if (RIO_##size##_BAD) return RIO_BAD_SIZE; \
46 * @size: Size of configuration space write (8, 16, 32 bits)
53 #define RIO_LOP_WRITE(size,type,len) \
54 int __rio_local_write_config_##size \
57 if (RIO_##size##_BAD) return RIO_BAD_SIZE; \
77 * @size: Size of configuration space read (8, 16, 32 bits)
84 #define RIO_OP_READ(size,typ
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Ddma-direct.h23 u64 size; member
32 for (m = dev->dma_range_map; m->size; m++) in translate_phys_to_dma()
33 if (paddr >= m->cpu_start && paddr - m->cpu_start < m->size) in translate_phys_to_dma()
45 for (m = dev->dma_range_map; m->size; m++) in translate_dma_to_phys()
46 if (dma_addr >= m->dma_start && dma_addr - m->dma_start < m->size) in translate_dma_to_phys()
99 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size, in dma_capable() argument
102 dma_addr_t end = addr + size - 1; in dma_capable()
114 void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
116 void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
118 struct page *dma_direct_alloc_pages(struct device *dev, size_t size,
[all...]
/kernel/linux/linux-6.6/drivers/vfio/pci/
H A Dtrace.h42 unsigned long size, int ret),
43 TP_ARGS(pdev, hpa, ua, size, ret),
49 __field(unsigned long, size)
57 __entry->size = size;
61 TP_printk("%s: %lx -> %lx size=%lx ret=%d", __entry->name, __entry->hpa,
62 __entry->ua, __entry->size, __entry->ret)
67 unsigned long size, int ret),
68 TP_ARGS(pdev, hpa, ua, size, ret),
74 __field(unsigned long, size)
[all...]
/kernel/linux/linux-6.6/drivers/rapidio/
H A Drio-access.c25 * @size: Size of configuration space read (8, 16, 32 bits)
32 #define RIO_LOP_READ(size,type,len) \
33 int __rio_local_read_config_##size \
38 if (RIO_##size##_BAD) return RIO_BAD_SIZE; \
46 * @size: Size of configuration space write (8, 16, 32 bits)
53 #define RIO_LOP_WRITE(size,type,len) \
54 int __rio_local_write_config_##size \
57 if (RIO_##size##_BAD) return RIO_BAD_SIZE; \
77 * @size: Size of configuration space read (8, 16, 32 bits)
84 #define RIO_OP_READ(size,typ
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Dmmsch_v4_0.h107 size = sizeof(struct mmsch_v4_0_cmd_direct_read_modify_write); \
108 size_dw = size / 4; \
112 memcpy((void *)table_loc, &direct_rd_mod_wt, size); \
118 size = sizeof(struct mmsch_v4_0_cmd_direct_write); \
119 size_dw = size / 4; \
122 memcpy((void *)table_loc, &direct_wt, size); \
128 size = sizeof(struct mmsch_v4_0_cmd_direct_polling); \
129 size_dw = size / 4; \
133 memcpy((void *)table_loc, &direct_poll, size); \
139 size
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dfsi_master_aspeed.h12 TP_PROTO(uint32_t addr, size_t size, uint32_t result, uint32_t status, uint32_t irq_status),
13 TP_ARGS(addr, size, result, status, irq_status),
16 __field(size_t, size)
23 __entry->size = size;
28 TP_printk("addr %08x size %zu: result %08x sts: %08x irq_sts: %08x",
29 __entry->addr, __entry->size, __entry->result,
35 TP_PROTO(uint32_t addr, uint32_t val, size_t size, uint32_t status, uint32_t irq_status),
36 TP_ARGS(addr, val, size, status, irq_status),
40 __field(size_t, size)
[all...]
H A Dpercpu.h14 bool reserved, bool is_atomic, size_t size,
18 TP_ARGS(call_site, reserved, is_atomic, size, align, base_addr, off,
25 __field( size_t, size )
37 __entry->size = size;
46 TP_printk("call_site=%pS reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p bytes_alloc=%zu gfp_flags=%s",
49 __entry->size, __entry->align,
78 TP_PROTO(bool reserved, bool is_atomic, size_t size, size_t align),
80 TP_ARGS(reserved, is_atomic, size, align),
85 __field( size_t, size )
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mtrr/
H A Dcyrix.c15 unsigned long *size, mtrr_type * type) in cyrix_get_arr()
42 *size = (reg < 7 ? 0x1UL : 0x40UL) << (shift - 1); in cyrix_get_arr()
44 *size = 0; in cyrix_get_arr()
86 * @size: the size (in bytes) of the region.
91 cyrix_get_free_region(unsigned long base, unsigned long size, int replace_reg) in cyrix_get_free_region() argument
99 if (size < 0x40) in cyrix_get_free_region()
113 if (size > 0x2000) { in cyrix_get_free_region()
126 * try ARR7 but its size must be at least 256K in cyrix_get_free_region()
129 if ((lsize == 0) && (size > in cyrix_get_free_region()
14 cyrix_get_arr(unsigned int reg, unsigned long *base, unsigned long *size, mtrr_type * type) cyrix_get_arr() argument
179 cyrix_set_arr(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type) cyrix_set_arr() argument
[all...]
/kernel/linux/linux-6.6/tools/include/linux/
H A Dbitops.h52 #define for_each_set_bit(bit, addr, size) \
53 for ((bit) = find_first_bit((addr), (size)); \
54 (bit) < (size); \
55 (bit) = find_next_bit((addr), (size), (bit) + 1))
57 #define for_each_clear_bit(bit, addr, size) \
58 for ((bit) = find_first_zero_bit((addr), (size)); \
59 (bit) < (size); \
60 (bit) = find_next_zero_bit((addr), (size), (bit) + 1))
63 #define for_each_set_bit_from(bit, addr, size) \
64 for ((bit) = find_next_bit((addr), (size), (bi
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/mte/
H A Dmte_common_util.h45 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags);
46 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping,
48 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping,
50 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping,
52 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags);
53 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type,
55 void *mte_insert_tags(void *ptr, size_t size);
56 void mte_clear_tags(void *ptr, size_t size);
95 static inline int check_allocated_memory(void *ptr, size_t size, in check_allocated_memory() argument
105 mte_free_memory((void *)ptr, size, mem_typ in check_allocated_memory()
112 check_allocated_memory_range(void *ptr, size_t size, int mem_type, size_t range_before, size_t range_after) check_allocated_memory_range() argument
[all...]
/kernel/liteos_a/lib/libscrew/src/
H A Dlos_seq_buf.c46 if (seqBuf->size >= SEQBUF_LIMIT_SIZE) { in ExpandSeqBuf()
50 newBuf = (char*)malloc(seqBuf->size <<= 1); in ExpandSeqBuf()
54 (void)memset_s(newBuf + oldCount, seqBuf->size - oldCount, 0, seqBuf->size - oldCount); in ExpandSeqBuf()
56 ret = memcpy_s(newBuf, seqBuf->size, seqBuf->buf, oldCount); in ExpandSeqBuf()
71 seqBuf->size = 0; in ExpandSeqBuf()
100 seqBuf->size = SEQBUF_PAGE_SIZE; in LosBufVprintf()
101 seqBuf->buf = (char *)malloc(seqBuf->size); in LosBufVprintf()
105 (void)memset_s(seqBuf->buf, seqBuf->size, 0, seqBuf->size); in LosBufVprintf()
[all...]
/kernel/liteos_m/testsuites/sample/kernel/mem/
H A DIt_los_mem_038.c44 UINT32 size; in TestCase() local
50 size = 0x300; in TestCase()
53 for (p0 = LOS_MemAlloc(g_memPool, size), f0 = p0; p0 != NULL; i++) { in TestCase()
55 p0 = LOS_MemAlloc(g_memPool, size); in TestCase()
58 if (MemGetFreeSize(g_memPool) >= (size + LOS_DLNK_NODE_HEAD_SIZE)) { in TestCase()
63 p0 = LOS_MemRealloc(g_memPool, p[j], size / 2); // 2, The reallocated memory is half of its previous size. in TestCase()
71 f0 = (void *)((char *)f0 + ((UINT32)size + LOS_DLNK_NODE_HEAD_SIZE)); in TestCase()
80 for (p0 = LOS_MemAlloc(g_memPool, size), f0 = p0; p0 != NULL; i++) { in TestCase()
82 p0 = LOS_MemAlloc(g_memPool, size); in TestCase()
[all...]

Completed in 9 milliseconds

1...<<31323334353637383940>>...937