Home
last modified time | relevance | path

Searched refs:size (Results 1301 - 1325 of 23414) sorted by relevance

1...<<51525354555657585960>>...937

/kernel/linux/linux-5.10/drivers/bus/
H A Dmvebu-mbus.c161 * have a power of two size. Such ranges are suitable for the DMA
168 * aligned on a 64 KB boundary, and have a size multiple of 64
202 u32 *size, u8 *target, u8 *attr, in mvebu_mbus_read_window()
218 *size = (ctrlreg | ~WIN_CTRL_SIZE_MASK) + 1; in mvebu_mbus_read_window()
268 * Checks whether the given (base, base+size) area doesn't overlap an
272 phys_addr_t base, size_t size, in mvebu_mbus_window_conflicts()
275 u64 end = (u64)base + size; in mvebu_mbus_window_conflicts()
305 phys_addr_t base, size_t size) in mvebu_mbus_find_window()
321 if (base == wbase && size == wsize) in mvebu_mbus_find_window()
329 int win, phys_addr_t base, size_t size, in mvebu_mbus_setup_window()
200 mvebu_mbus_read_window(struct mvebu_mbus_state *mbus, int win, int *enabled, u64 *base, u32 *size, u8 *target, u8 *attr, u64 *remap) mvebu_mbus_read_window() argument
271 mvebu_mbus_window_conflicts(struct mvebu_mbus_state *mbus, phys_addr_t base, size_t size, u8 target, u8 attr) mvebu_mbus_window_conflicts() argument
304 mvebu_mbus_find_window(struct mvebu_mbus_state *mbus, phys_addr_t base, size_t size) mvebu_mbus_find_window() argument
328 mvebu_mbus_setup_window(struct mvebu_mbus_state *mbus, int win, phys_addr_t base, size_t size, phys_addr_t remap, u8 target, u8 attr) mvebu_mbus_setup_window() argument
373 mvebu_mbus_alloc_window(struct mvebu_mbus_state *mbus, phys_addr_t base, size_t size, phys_addr_t remap, u8 target, u8 attr) mvebu_mbus_alloc_window() argument
420 u32 size; mvebu_sdram_debug_show_orion() local
449 u32 size; mvebu_sdram_debug_show_dove() local
652 u64 base, size, end; mvebu_mbus_setup_cpu_target_nooverlap() local
705 u32 size = readl(mbus->sdramwins_base + DDR_SIZE_CS_OFF(i)); mvebu_mbus_default_setup_cpu_target() local
737 u32 size = readl(mbus->sdramwins_base + DDR_SIZE_CS_OFF(i)); mvebu_mbus_default_save_cpu_target() local
902 mvebu_mbus_add_window_remap_by_id(unsigned int target, unsigned int attribute, phys_addr_t base, size_t size, phys_addr_t remap) mvebu_mbus_add_window_remap_by_id() argument
918 mvebu_mbus_add_window_by_id(unsigned int target, unsigned int attribute, phys_addr_t base, size_t size) mvebu_mbus_add_window_by_id() argument
925 mvebu_mbus_del_window(phys_addr_t base, size_t size) mvebu_mbus_del_window() argument
980 mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, u8 *target, u8 *attr) mvebu_mbus_get_io_win_info() argument
1183 mbus_dt_setup_win(struct mvebu_mbus_state *mbus, u32 base, u32 size, u8 target, u8 attr) mbus_dt_setup_win() argument
1252 u32 windowid, base, size; mbus_dt_setup() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
H A Dmm.c68 * @size: size in bytes
69 * @offset: difference between base and rm.size
75 u64 size; member
84 * @htab_size: htab size in bytes
111 DBG("%s:%d: map.rm.size = %llxh\n", func, line, m->rm.size); in _debug_dump_map()
116 DBG("%s:%d: map.r1.size = %llxh\n", func, line, m->r1.size); in _debug_dump_map()
129 return (phys_addr < map.rm.size || phys_add in ps3_mm_phys_to_lpar()
143 u64 size; ps3_mm_vas_create() local
263 ps3_mm_region_create(struct mem_region *r, unsigned long size) ps3_mm_region_create() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/
H A Dmm.c67 * @size: size in bytes
68 * @offset: difference between base and rm.size
74 u64 size; member
83 * @htab_size: htab size in bytes
110 DBG("%s:%d: map.rm.size = %llxh\n", func, line, m->rm.size); in _debug_dump_map()
115 DBG("%s:%d: map.r1.size = %llxh\n", func, line, m->r1.size); in _debug_dump_map()
128 return (phys_addr < map.rm.size || phys_add in ps3_mm_phys_to_lpar()
142 u64 size; ps3_mm_vas_create() local
264 ps3_mm_region_create(struct mem_region *r, unsigned long size) ps3_mm_region_create() argument
[all...]
/kernel/linux/linux-5.10/drivers/iommu/
H A Dio-pgtable-arm.c60 /* Calculate the block/page mapping size at level l for pagetable in d. */
187 static void *__arm_lpae_alloc_pages(size_t size, gfp_t gfp, in __arm_lpae_alloc_pages() argument
191 int order = get_order(size); in __arm_lpae_alloc_pages()
204 dma = dma_map_single(dev, pages, size, DMA_TO_DEVICE); in __arm_lpae_alloc_pages()
220 dma_unmap_single(dev, dma, size, DMA_TO_DEVICE); in __arm_lpae_alloc_pages()
226 static void __arm_lpae_free_pages(void *pages, size_t size, in __arm_lpae_free_pages() argument
231 size, DMA_TO_DEVICE); in __arm_lpae_free_pages()
232 free_pages((unsigned long)pages, get_order(size)); in __arm_lpae_free_pages()
253 unsigned long iova, size_t size, int lvl,
335 phys_addr_t paddr, size_t size, arm_lpae_iopt in __arm_lpae_map()
334 __arm_lpae_map(struct arm_lpae_io_pgtable *data, unsigned long iova, phys_addr_t paddr, size_t size, arm_lpae_iopte prot, int lvl, arm_lpae_iopte *ptep, gfp_t gfp) __arm_lpae_map() argument
444 arm_lpae_map(struct io_pgtable_ops *ops, unsigned long iova, phys_addr_t paddr, size_t size, int iommu_prot, gfp_t gfp) arm_lpae_map() argument
516 arm_lpae_split_blk_unmap(struct arm_lpae_io_pgtable *data, struct iommu_iotlb_gather *gather, unsigned long iova, size_t size, arm_lpae_iopte blk_pte, int lvl, arm_lpae_iopte *ptep) arm_lpae_split_blk_unmap() argument
570 __arm_lpae_unmap(struct arm_lpae_io_pgtable *data, struct iommu_iotlb_gather *gather, unsigned long iova, size_t size, int lvl, arm_lpae_iopte *ptep) __arm_lpae_unmap() argument
623 arm_lpae_unmap(struct io_pgtable_ops *ops, unsigned long iova, size_t size, struct iommu_iotlb_gather *gather) arm_lpae_unmap() argument
1075 dummy_tlb_flush(unsigned long iova, size_t size, size_t granule, void *cookie) dummy_tlb_flush() argument
1124 size_t size; arm_lpae_run_tests() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Drheap.h22 int size; member
42 int size; member
60 extern int rh_attach_region(rh_info_t * info, unsigned long start, int size);
63 extern unsigned long rh_detach_region(rh_info_t * info, unsigned long start, int size);
65 /* Allocate the given size from the remote heap (with alignment) */
66 extern unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment,
69 /* Allocate the given size from the remote heap */
70 extern unsigned long rh_alloc(rh_info_t * info, int size, const char *owner);
72 /* Allocate the given size from the given address */
73 extern unsigned long rh_alloc_fixed(rh_info_t * info, unsigned long start, int size,
[all...]
/kernel/linux/linux-5.10/drivers/crypto/ccree/
H A Dcc_sram_mgr.c39 * @size: The requested numer of bytes to allocate
44 u32 cc_sram_alloc(struct cc_drvdata *drvdata, u32 size) in cc_sram_alloc() argument
49 if ((size & 0x3)) { in cc_sram_alloc()
50 dev_err(dev, "Requested buffer size (%u) is not multiple of 4", in cc_sram_alloc()
51 size); in cc_sram_alloc()
54 if (size > (CC_CC_SRAM_SIZE - drvdata->sram_free_offset)) { in cc_sram_alloc()
56 size, drvdata->sram_free_offset); in cc_sram_alloc()
61 drvdata->sram_free_offset += size; in cc_sram_alloc()
62 dev_dbg(dev, "Allocated %u B @ %u\n", size, p); in cc_sram_alloc()
69 * Note: each const value can't exceed word size
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Drheap.h22 int size; member
42 int size; member
60 extern int rh_attach_region(rh_info_t * info, unsigned long start, int size);
63 extern unsigned long rh_detach_region(rh_info_t * info, unsigned long start, int size);
65 /* Allocate the given size from the remote heap (with alignment) */
66 extern unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment,
69 /* Allocate the given size from the remote heap */
70 extern unsigned long rh_alloc(rh_info_t * info, int size, const char *owner);
72 /* Allocate the given size from the given address */
73 extern unsigned long rh_alloc_fixed(rh_info_t * info, unsigned long start, int size,
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dxdp.c16 __u32 duration, retval, size; in test_xdp() local
30 buf, &size, &retval, &duration); in test_xdp()
32 CHECK(err || retval != XDP_TX || size != 74 || in test_xdp()
34 "err %d errno %d retval %d size %d\n", in test_xdp()
35 err, errno, retval, size); in test_xdp()
38 buf, &size, &retval, &duration); in test_xdp()
39 CHECK(err || retval != XDP_TX || size != 114 || in test_xdp()
41 "err %d errno %d retval %d size %d\n", in test_xdp()
42 err, errno, retval, size); in test_xdp()
/kernel/linux/linux-5.10/include/linux/
H A Dtty_flip.h7 extern int tty_buffer_request_room(struct tty_port *port, size_t size);
9 const unsigned char *chars, const char *flags, size_t size);
11 const unsigned char *chars, char flag, size_t size);
13 unsigned char **chars, size_t size);
24 if (!change && tb->used < tb->size) { in tty_insert_flip_char()
34 const unsigned char *chars, size_t size) in tty_insert_flip_string()
36 return tty_insert_flip_string_fixed_flag(port, chars, TTY_NORMAL, size); in tty_insert_flip_string()
33 tty_insert_flip_string(struct tty_port *port, const unsigned char *chars, size_t size) tty_insert_flip_string() argument
H A Dstacktrace.h14 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries,
16 unsigned int stack_trace_save(unsigned long *store, unsigned int size,
19 unsigned long *store, unsigned int size,
22 unsigned int size, unsigned int skipnr);
23 unsigned int stack_trace_save_user(unsigned long *store, unsigned int size);
80 unsigned int size);
84 unsigned int size) in stack_trace_save_tsk_reliable()
82 stack_trace_save_tsk_reliable(struct task_struct *tsk, unsigned long *store, unsigned int size) stack_trace_save_tsk_reliable() argument
H A Delfnote.h34 * turn out to be the same size and shape), followed by the name and
65 * Elf{32,64}_Nhdr, but includes the name and desc data. The size and
72 #define _ELFNOTE(size, name, unique, type, desc) \
74 struct elf##size##_note _nhdr; \
76 __attribute__((aligned(sizeof(Elf##size##_Word)))); \
78 __attribute__((aligned(sizeof(Elf##size##_Word)))); \
82 aligned(sizeof(Elf##size##_Word)), \
92 #define ELFNOTE(size, name, type, desc) \
93 _ELFNOTE(size, name, __LINE__, type, desc)
/kernel/linux/linux-5.10/sound/core/
H A Disadma.c22 * @size: the DMA transfer size
28 unsigned long addr, unsigned int size, in snd_dma_program()
38 set_dma_count(dma, size); in snd_dma_program()
65 * @size: the dma transfer size
69 unsigned int snd_dma_pointer(unsigned long dma, unsigned int size) in snd_dma_pointer() argument
91 if (result > size) in snd_dma_pointer()
92 pr_err("ALSA: pointer (0x%x) for DMA #%ld is greater than transfer size (0x%x)\n", result, dma, size); in snd_dma_pointer()
27 snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode) snd_dma_program() argument
[all...]
/kernel/linux/linux-5.10/fs/efs/
H A Dsymlink.c20 efs_block_t size = inode->i_size; in efs_symlink_readpage() local
24 if (size > 2 * EFS_BLOCKSIZE) in efs_symlink_readpage()
32 memcpy(link, bh->b_data, (size > EFS_BLOCKSIZE) ? EFS_BLOCKSIZE : size); in efs_symlink_readpage()
34 if (size > EFS_BLOCKSIZE) { in efs_symlink_readpage()
38 memcpy(link + EFS_BLOCKSIZE, bh->b_data, size - EFS_BLOCKSIZE); in efs_symlink_readpage()
41 link[size] = '\0'; in efs_symlink_readpage()
/kernel/linux/linux-5.10/net/batman-adv/
H A Dhash.c19 for (i = 0; i < hash->size; i++) { in batadv_hash_init()
40 * @size: number of hash buckets to allocate
44 struct batadv_hashtable *batadv_hash_new(u32 size) in batadv_hash_new() argument
52 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
56 hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), in batadv_hash_new()
61 hash->size = size; in batadv_hash_new()
82 for (i = 0; i < hash->size; i++) in batadv_hash_set_lock_class()
/kernel/linux/linux-6.6/fs/efs/
H A Dsymlink.c21 efs_block_t size = inode->i_size; in efs_symlink_read_folio() local
25 if (size > 2 * EFS_BLOCKSIZE) in efs_symlink_read_folio()
33 memcpy(link, bh->b_data, (size > EFS_BLOCKSIZE) ? EFS_BLOCKSIZE : size); in efs_symlink_read_folio()
35 if (size > EFS_BLOCKSIZE) { in efs_symlink_read_folio()
39 memcpy(link + EFS_BLOCKSIZE, bh->b_data, size - EFS_BLOCKSIZE); in efs_symlink_read_folio()
42 link[size] = '\0'; in efs_symlink_read_folio()
/kernel/linux/linux-6.6/include/linux/
H A Delfnote.h34 * turn out to be the same size and shape), followed by the name and
65 * Elf{32,64}_Nhdr, but includes the name and desc data. The size and
72 #define _ELFNOTE(size, name, unique, type, desc) \
74 struct elf##size##_note _nhdr; \
76 __attribute__((aligned(sizeof(Elf##size##_Word)))); \
78 __attribute__((aligned(sizeof(Elf##size##_Word)))); \
82 aligned(sizeof(Elf##size##_Word)), \
92 #define ELFNOTE(size, name, type, desc) \
93 _ELFNOTE(size, name, __LINE__, type, desc)
H A Dstacktrace.h68 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries,
70 unsigned int stack_trace_save(unsigned long *store, unsigned int size,
73 unsigned long *store, unsigned int size,
76 unsigned int size, unsigned int skipnr);
77 unsigned int stack_trace_save_user(unsigned long *store, unsigned int size);
101 unsigned int size);
105 unsigned int size) in stack_trace_save_tsk_reliable()
103 stack_trace_save_tsk_reliable(struct task_struct *tsk, unsigned long *store, unsigned int size) stack_trace_save_tsk_reliable() argument
/kernel/linux/linux-6.6/drivers/crypto/ccree/
H A Dcc_sram_mgr.c39 * @size: The requested numer of bytes to allocate
44 u32 cc_sram_alloc(struct cc_drvdata *drvdata, u32 size) in cc_sram_alloc() argument
49 if ((size & 0x3)) { in cc_sram_alloc()
50 dev_err(dev, "Requested buffer size (%u) is not multiple of 4", in cc_sram_alloc()
51 size); in cc_sram_alloc()
54 if (size > (CC_CC_SRAM_SIZE - drvdata->sram_free_offset)) { in cc_sram_alloc()
56 size, drvdata->sram_free_offset); in cc_sram_alloc()
61 drvdata->sram_free_offset += size; in cc_sram_alloc()
62 dev_dbg(dev, "Allocated %u B @ %u\n", size, p); in cc_sram_alloc()
69 * Note: each const value can't exceed word size
[all...]
/kernel/linux/linux-6.6/arch/x86/mm/
H A Diomap_32.c11 static int is_io_mapping_possible(resource_size_t base, unsigned long size) in is_io_mapping_possible() argument
15 if (base + size > 0x100000000ULL) in is_io_mapping_possible()
21 int iomap_create_wc(resource_size_t base, unsigned long size, pgprot_t *prot) in iomap_create_wc() argument
26 if (!is_io_mapping_possible(base, size)) in iomap_create_wc()
29 ret = memtype_reserve_io(base, base + size, &pcm); in iomap_create_wc()
41 void iomap_free(resource_size_t base, unsigned long size) in iomap_free() argument
43 memtype_free_io(base, base + size); in iomap_free()
/kernel/linux/linux-6.6/net/xdp/
H A Dxsk_queue.c27 size_t size; in xskq_create() local
36 size = xskq_get_ring_size(q, umem_queue); in xskq_create()
38 /* size which is overflowing or close to SIZE_MAX will become 0 in in xskq_create()
42 if (unlikely(size == SIZE_MAX)) { in xskq_create()
47 size = PAGE_ALIGN(size); in xskq_create()
49 q->ring = vmalloc_user(size); in xskq_create()
55 q->ring_vmalloc_size = size; in xskq_create()
/kernel/linux/linux-6.6/net/batman-adv/
H A Dhash.c19 for (i = 0; i < hash->size; i++) { in batadv_hash_init()
40 * @size: number of hash buckets to allocate
44 struct batadv_hashtable *batadv_hash_new(u32 size) in batadv_hash_new() argument
52 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
56 hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), in batadv_hash_new()
61 hash->size = size; in batadv_hash_new()
82 for (i = 0; i < hash->size; i++) in batadv_hash_set_lock_class()
/kernel/linux/linux-5.10/arch/arm/mm/
H A Dnommu.c204 size_t size, unsigned int mtype) in __arm_ioremap_pfn()
212 void __iomem *__arm_ioremap_caller(phys_addr_t phys_addr, size_t size, in __arm_ioremap_caller() argument
220 void __iomem *ioremap(resource_size_t res_cookie, size_t size) in ioremap() argument
222 return __arm_ioremap_caller(res_cookie, size, MT_DEVICE, in ioremap()
227 void __iomem *ioremap_cache(resource_size_t res_cookie, size_t size) in ioremap_cache() argument
229 return __arm_ioremap_caller(res_cookie, size, MT_DEVICE_CACHED, in ioremap_cache()
234 void __iomem *ioremap_wc(resource_size_t res_cookie, size_t size) in ioremap_wc() argument
236 return __arm_ioremap_caller(res_cookie, size, MT_DEVICE_WC, in ioremap_wc()
245 void __iomem *pci_remap_cfgspace(resource_size_t res_cookie, size_t size) in pci_remap_cfgspace() argument
247 return arch_ioremap_caller(res_cookie, size, MT_UNCACHE in pci_remap_cfgspace()
203 __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, unsigned int mtype) __arm_ioremap_pfn() argument
253 arch_memremap_wb(phys_addr_t phys_addr, size_t size) arch_memremap_wb() argument
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dspram.c121 unsigned int size, tag0, tag1; in probe_spram() local
136 size = tag1 & SPRAM_TAG1_SIZE_MASK; in probe_spram()
138 if (size == 0) in probe_spram()
143 if ((pa == firstpa && size == firstsize) || in probe_spram()
144 (pa == lastpa && size == lastsize)) in probe_spram()
148 /* Align base with size */ in probe_spram()
149 base = (base + size - 1) & ~(size-1); in probe_spram()
155 base += size; in probe_spram()
164 firstsize = size; in probe_spram()
[all...]
/kernel/linux/linux-5.10/arch/mips/pci/
H A Dops-loongson2.c119 int where, int size, u32 *val) in loongson_pcibios_read()
123 if ((size == 2) && (where & 1)) in loongson_pcibios_read()
125 else if ((size == 4) && (where & 3)) in loongson_pcibios_read()
132 if (size == 1) in loongson_pcibios_read()
134 else if (size == 2) in loongson_pcibios_read()
143 int where, int size, u32 val) in loongson_pcibios_write()
147 if ((size == 2) && (where & 1)) in loongson_pcibios_write()
149 else if ((size == 4) && (where & 3)) in loongson_pcibios_write()
152 if (size == 4) in loongson_pcibios_write()
159 if (size in loongson_pcibios_write()
118 loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) loongson_pcibios_read() argument
142 loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) loongson_pcibios_write() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
H A Dsetup-rcar-gen2.c128 u64 base, size; member
152 u64 base, size; in rcar_gen2_scan_mem() local
155 size = dt_mem_next_cell(dt_root_size_cells, &reg); in rcar_gen2_scan_mem()
160 if ((base + size) >= lpae_start) in rcar_gen2_scan_mem()
161 size = lpae_start - base; in rcar_gen2_scan_mem()
163 if (size < mrc->reserved) in rcar_gen2_scan_mem()
170 mrc->base = base + size - mrc->reserved; in rcar_gen2_scan_mem()
171 mrc->size = mrc->reserved; in rcar_gen2_scan_mem()
187 if (mrc.size && memblock_is_region_memory(mrc.base, mrc.size)) { in rcar_gen2_reserve()
[all...]

Completed in 12 milliseconds

1...<<51525354555657585960>>...937