| /linux/scripts/coccinelle/api/ |
| H A D | kvmalloc.cocci | 24 expression E, E1, size; 33 * if (size cmp E1 || ...)@p { 37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...) 41 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) 47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...) 49 when != size = E1 53 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) 59 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...); 61 when != size = E1 65 * x = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_static_config.c | 93 const size_t size = SJA1105ET_SIZE_AVB_PARAMS_ENTRY; in sja1105et_avb_params_entry_packing() local 96 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing() 97 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing() 98 return size; in sja1105et_avb_params_entry_packing() 104 const size_t size = SJA1105PQRS_SIZE_AVB_PARAMS_ENTRY; in sja1105pqrs_avb_params_entry_packing() local 107 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing() 108 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing() 109 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing() 110 return size; in sja1105pqrs_avb_params_entry_packing() 116 const size_t size = SJA1105ET_SIZE_GENERAL_PARAMS_ENTRY; in sja1105et_general_params_entry_packing() local [all …]
|
| H A D | sja1105_dynamic_config.c | 31 * The ENTRY BUFFER may or may not have the same layout, or size, as its static 42 * size. 202 const int size = SJA1105_SIZE_DYN_CMD; in sja1105et_vl_lookup_cmd_packing() local 204 sja1105_packing(buf, &cmd->valid, 31, 31, size, op); in sja1105et_vl_lookup_cmd_packing() 205 sja1105_packing(buf, &cmd->errors, 30, 30, size, op); in sja1105et_vl_lookup_cmd_packing() 206 sja1105_packing(buf, &cmd->rdwrset, 29, 29, size, op); in sja1105et_vl_lookup_cmd_packing() 207 sja1105_packing(buf, &cmd->index, 9, 0, size, op); in sja1105et_vl_lookup_cmd_packing() 216 const int size = SJA1105_SIZE_DYN_CMD; in sja1105pqrs_vl_lookup_cmd_packing() local 218 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_vl_lookup_cmd_packing() 219 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_vl_lookup_cmd_packing() [all …]
|
| /linux/scripts/ |
| H A D | extract_xc3028.pl | 51 # Calc chunk size 131 my $size = ord(substr($out,$i,1))*256+ord(substr($out,$i+1,1)); 135 if ($size>0 && $size <0x8000) { 136 for (my $j=0;$j<$size;$j++) { 139 $i+=$size; 163 # Firmware 0, type: BASE FW F8MHZ (0x00000003), id: (0000000000000000), size: 6635 168 write_le32(6635); # Size 172 # Firmware 1, type: BASE FW F8MHZ MTS (0x00000007), id: (0000000000000000), size: 6635 177 write_le32(6635); # Size 181 # Firmware 2, type: BASE FW FM (0x00000401), id: (0000000000000000), size: 6525 [all …]
|
| /linux/tools/include/linux/ |
| H A D | find.h | 17 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size); 19 const unsigned long *addr2, unsigned long size); 20 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size); 26 * @size: The bitmap size in bits 30 * If no bits are set, returns @size. 33 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument 36 if (small_const_nbits(size)) { in find_next_bit() 39 if (unlikely(offset >= size)) in find_next_bit() 40 return size; in find_next_bit() 42 val = *addr & GENMASK(size - 1, offset); in find_next_bit() [all …]
|
| /linux/tools/testing/selftests/exec/ |
| H A D | binfmt_script.py | 14 SIZE=256 variable 35 # @size: bytes for bprm->buf line, including hashbang but not newline 42 # @fill: character to fill between @root and @target to reach @size bytes 43 # @newline: character to use as newline, not counted towards @size 45 def test(name, size, good=True, leading="", root="./", target="/perl", argument 54 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg) 117 test(name="too-big", size=SIZE+80, good=False) 118 # Path is right at max size, making it impossible to tell if it was truncated. 119 test(name="exact", size=SIZE, good=False) 121 test(name="exact-space", size=SIZE, good=False, leading=" ") [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-facebook-cmm.dts | 334 #size-cells = <0>; 341 #size-cells = <0>; 347 #size-cells = <0>; 353 #size-cells = <0>; 358 #size-cells = <0>; 363 #size-cells = <0>; 368 #size-cells = <0>; 373 #size-cells = <0>; 378 #size-cells = <0>; 383 #size-cells = <0>; [all …]
|
| H A D | aspeed-bmc-facebook-fuji-data64.dts | 219 data-size = <16>; 246 #size-cells = <0>; 252 #size-cells = <0>; 264 #size-cells = <0>; 270 #size-cells = <0>; 276 #size-cells = <0>; 282 #size-cells = <0>; 288 #size-cells = <0>; 294 #size-cells = <0>; 300 #size-cells = <0>; [all …]
|
| H A D | aspeed-bmc-facebook-minipack.dts | 249 #size-cells = <1>; 299 #size-cells = <1>; 350 #size-cells = <0>; 356 #size-cells = <0>; 362 #size-cells = <0>; 368 #size-cells = <0>; 374 #size-cells = <0>; 380 #size-cells = <0>; 386 #size-cells = <0>; 392 #size-cells = <0>; [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | hmm-tests.c | 43 unsigned long size; 219 munmap(buffer->ptr, buffer->size); in hmm_buffer_free() 229 static int hmm_create_file(unsigned long size) in hmm_create_file() 240 r = ftruncate(fd, size); in hmm_create_file() 306 unsigned long size; in TEST_F() 314 size = npages << self->page_shift; in TEST_F() 320 buffer->size = size; in TEST_F() 321 buffer->mirror = malloc(size); in TEST_F() 324 buffer->ptr = mmap(NULL, size, in TEST_F() 42 unsigned long size; global() member 225 hmm_create_file(unsigned long size) hmm_create_file() argument 302 unsigned long size; TEST_F() local 366 unsigned long size; TEST_F() local 425 unsigned long size; TEST_F() local 473 unsigned long size; TEST_F() local 541 unsigned long size; TEST_F() local 648 unsigned long size; TEST_F() local 725 unsigned long size; TEST_F() local 781 unsigned long size; TEST_F() local 836 unsigned long size; TEST_F() local 891 unsigned long size; TEST_F() local 949 unsigned long size; TEST_F() local 995 unsigned long size; TEST_F() local 1047 unsigned long size; TEST_F() local 1103 unsigned long size; TEST_F() local 1155 unsigned long size; TEST_F() local 1190 unsigned long size; TEST_F() local 1282 unsigned long size; TEST_F() local 1341 unsigned long size; TEST_F() local 1403 unsigned long size; TEST_F() local 1465 unsigned long size; TEST_F() local 1507 unsigned long size; TEST_F() local 1609 unsigned long size; TEST_F() local 1682 unsigned long size; TEST_F() local 1757 unsigned long size; TEST_F() local 1811 unsigned long size; TEST_F() local 1864 unsigned long size; TEST_F() local 1909 gup_test_exec(int gup_fd,unsigned long addr,int cmd,int npages,int size,int flags) gup_test_exec() argument 1938 unsigned long size; TEST_F() local 2026 unsigned long size; TEST_F() local 2101 unsigned long size; TEST_F() local 2152 unsigned long size; TEST_F() local 2216 unsigned long size; TEST_F() local 2275 unsigned long size; TEST_F() local 2334 unsigned long size = read_pmd_pagesize(); TEST_F() local 2400 unsigned long size = read_pmd_pagesize(); TEST_F() local 2493 unsigned long size; TEST_F() local 2588 unsigned long size; TEST_F() local 2678 hmm_buffer_alloc(unsigned long size) hmm_buffer_alloc() argument [all...] |
| H A D | mseal_test.c | 26 int size = 0; in get_vma_size() local 38 size = addr_end - addr_start; in get_vma_size() 50 return size; in get_vma_size() 65 static int sys_mprotect(void *ptr, size_t size, unsigned long prot) in sys_mprotect() argument 70 sret = syscall(__NR_mprotect, ptr, size, prot); in sys_mprotect() 74 static int sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in sys_mprotect_pkey() argument 80 sret = syscall(__NR_pkey_mprotect, ptr, size, orig_prot, pkey); in sys_mprotect_pkey() 84 static int sys_munmap(void *ptr, size_t size) in sys_munmap() argument 89 sret = syscall(__NR_munmap, ptr, size); in sys_munmap() 170 static void setup_single_address(int size, void **ptrOut) in setup_single_address() argument [all …]
|
| /linux/tools/testing/memblock/tests/ |
| H A D | basic_api.c | 37 * and size to the collection of available memory regions (memblock.memory). 49 .size = SZ_4M in memblock_add_simple_check() 55 memblock_add(r.base, r.size); in memblock_add_simple_check() 58 ASSERT_EQ(rgn->size, r.size); in memblock_add_simple_check() 61 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_simple_check() 69 * A simple test that adds a memory block of a specified base address, size, 82 .size = SZ_16M in memblock_add_node_simple_check() 88 memblock_add_node(r.base, r.size, 1, MEMBLOCK_HOTPLUG); in memblock_add_node_simple_check() 91 ASSERT_EQ(rgn->size, r.size); in memblock_add_node_simple_check() 98 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_node_simple_check() [all …]
|
| H A D | alloc_nid_api.c | 30 static inline void *run_memblock_alloc_nid(phys_addr_t size, in run_memblock_alloc_nid() argument 42 return memblock_alloc_exact_nid_raw(size, align, min_addr, in run_memblock_alloc_nid() 45 return memblock_alloc_try_nid_raw(size, align, min_addr, in run_memblock_alloc_nid() 47 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); in run_memblock_alloc_nid() 68 phys_addr_t size = SZ_128; in alloc_nid_top_down_simple_check() local 79 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_simple_check() 82 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_simple_check() 85 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_simple_check() 87 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_simple_check() 120 phys_addr_t size = SZ_128; alloc_nid_top_down_end_misaligned_check() local 171 phys_addr_t size = SZ_1K; alloc_nid_exact_address_generic_check() local 223 phys_addr_t size = SZ_256; alloc_nid_top_down_narrow_range_check() local 274 phys_addr_t size = SZ_1K; alloc_nid_low_max_generic_check() local 654 phys_addr_t size = SZ_256; alloc_nid_top_down_cap_max_check() local 691 phys_addr_t size = SZ_1K; alloc_nid_top_down_cap_min_check() local 737 phys_addr_t size = SZ_128; alloc_nid_bottom_up_simple_check() local 789 phys_addr_t size = SZ_128; alloc_nid_bottom_up_start_misaligned_check() local 842 phys_addr_t size = SZ_256; alloc_nid_bottom_up_narrow_range_check() local 1018 phys_addr_t size = SZ_256; alloc_nid_bottom_up_cap_max_check() local 1055 phys_addr_t size = SZ_1K; alloc_nid_bottom_up_cap_min_check() local 1249 phys_addr_t size; alloc_nid_top_down_numa_simple_check() local 1302 phys_addr_t size; alloc_nid_top_down_numa_small_node_check() local 1355 phys_addr_t size; alloc_nid_top_down_numa_node_reserved_check() local 1407 phys_addr_t size; alloc_nid_top_down_numa_part_reserved_check() local 1467 phys_addr_t size; alloc_nid_top_down_numa_part_reserved_fallback_check() local 1527 phys_addr_t size = SZ_512; alloc_nid_top_down_numa_split_range_low_check() local 1584 phys_addr_t size = SZ_512; alloc_nid_top_down_numa_split_range_high_check() local 1641 phys_addr_t size; alloc_nid_top_down_numa_no_overlap_split_check() local 1698 phys_addr_t size = SZ_64; alloc_nid_top_down_numa_no_overlap_low_check() local 1754 phys_addr_t size = SZ_64; alloc_nid_top_down_numa_no_overlap_high_check() local 1793 phys_addr_t size; alloc_nid_bottom_up_numa_simple_check() local 1846 phys_addr_t size; alloc_nid_bottom_up_numa_small_node_check() local 1900 phys_addr_t size; alloc_nid_bottom_up_numa_node_reserved_check() local 1952 phys_addr_t size; alloc_nid_bottom_up_numa_part_reserved_check() local 2014 phys_addr_t size; alloc_nid_bottom_up_numa_part_reserved_fallback_check() local 2074 phys_addr_t size = SZ_512; alloc_nid_bottom_up_numa_split_range_low_check() local 2132 phys_addr_t size = SZ_512; alloc_nid_bottom_up_numa_split_range_high_check() local 2189 phys_addr_t size; alloc_nid_bottom_up_numa_no_overlap_split_check() local 2246 phys_addr_t size = SZ_64; alloc_nid_bottom_up_numa_no_overlap_low_check() local 2302 phys_addr_t size = SZ_64; alloc_nid_bottom_up_numa_no_overlap_high_check() local 2348 phys_addr_t size = MEM_SIZE / SZ_2; alloc_nid_numa_large_region_generic_check() local 2397 phys_addr_t size = req_node->size; alloc_nid_numa_reserved_full_merge_generic_check() local 2467 phys_addr_t size = SZ_256; alloc_nid_numa_split_all_reserved_generic_check() local 2509 phys_addr_t size = SZ_512; alloc_node_on_correct_nid() local [all...] |
| /linux/tools/perf/trace/beauty/ |
| H A D | beauty.h | 30 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool show_prefix, int val); 31 size_t strarray__scnprintf_suffix(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool show_suffix, int val); 32 size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, bool show_prefix, unsigned long flags); 34 bool strarray__strtoul(struct strarray *sa, char *bf, size_t size, u64 *ret); 35 bool strarray__strtoul_flags(struct strarray *sa, char *bf, size_t size, u64 *ret); 59 size_t strarrays__scnprintf(struct strarrays *sas, char *bf, size_t size, const char *intfmt, bool show_prefix, int val); 61 bool strarrays__strtoul(struct strarrays *sas, char *bf, size_t size, u64 *ret); 63 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size); 81 * @size: 8 if all we need is an integer, otherwise all of the augmented arg. 86 int size; 84 int size; global() member 111 int size; global() member [all...] |
| /linux/drivers/mtd/tests/ |
| H A D | mtd_nandecctest.c | 48 size_t size) in single_bit_error_data() argument 50 unsigned int offset = get_random_u32_below(size * BITS_PER_BYTE); in single_bit_error_data() 52 memcpy(error_data, correct_data, size); in single_bit_error_data() 57 size_t size) in double_bit_error_data() argument 61 offset[0] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 66 memcpy(error_data, correct_data, size); in double_bit_error_data() 72 static unsigned int random_ecc_bit(size_t size) in random_ecc_bit() argument 76 if (size == 256) { in random_ecc_bit() 89 size_t size) in single_bit_error_ecc() argument [all …]
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm2836.dtsi | 40 #size-cells = <0>; 43 /* Source for d/i-cache-line-size and d/i-cache-sets 47 * Source for d/i-cache-size 56 d-cache-size = <0x8000>; 57 d-cache-line-size = <64>; 58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 59 i-cache-size = <0x8000>; 60 i-cache-line-size = <32>; 61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 70 d-cache-size = <0x8000>; [all …]
|
| H A D | bcm2837.dtsi | 39 #size-cells = <0>; 42 /* Source for d/i-cache-line-size and d/i-cache-sets 46 * Source for d/i-cache-size 55 d-cache-size = <0x8000>; 56 d-cache-line-size = <64>; 57 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 58 i-cache-size = <0x8000>; 59 i-cache-line-size = <64>; 60 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set 70 d-cache-size = <0x8000>; [all …]
|
| /linux/kernel/ |
| H A D | stacktrace.c | 40 * @size: Size of the print buffer 47 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, in stack_trace_snprint() argument 55 for (i = 0; i < nr_entries && size; i++) { in stack_trace_snprint() 56 generated = snprintf(buf, size, "%*c%pS\n", 1 + spaces, ' ', in stack_trace_snprint() 60 if (generated >= size) { in stack_trace_snprint() 61 buf += size; in stack_trace_snprint() 62 size = 0; in stack_trace_snprint() 65 size -= generated; in stack_trace_snprint() 77 unsigned int size; member 86 if (c->len >= c->size) in stack_trace_consume_entry() [all …]
|
| /linux/arch/arm64/boot/dts/amd/ |
| H A D | amd-seattle-cpus.dtsi | 6 #size-cells = <0x0>; 49 i-cache-size = <0xC000>; 50 i-cache-line-size = <64>; 52 d-cache-size = <0x8000>; 53 d-cache-line-size = <64>; 65 i-cache-size = <0xC000>; 66 i-cache-line-size = <64>; 68 d-cache-size = <0x8000>; 69 d-cache-line-size = <64>; 80 i-cache-size = <0xC000>; [all …]
|
| /linux/lib/crypto/mpi/ |
| H A D | mpih-mul.c | 21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument 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) \ argument 31 if ((size) < KARATSUBA_THRESHOLD) \ 32 mpih_sqr_n_basecase(prodp, up, size); \ 34 mpih_sqr_n(prodp, up, size, tspace); \ 38 * both with SIZE limbs, and store the result at PRODP. 2 * SIZE limbs are 55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() argument [all …]
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_transport_access_macros.h | 16 /* Valid internal ring size values */ 27 /* Valid internal msg size values */ 34 /* Size to bytes conversion macros for ring and msg size values */ 35 #define ADF_MSG_SIZE_TO_BYTES(SIZE) (SIZE << 5) argument 36 #define ADF_BYTES_TO_MSG_SIZE(SIZE) (SIZE >> 5) argument 37 #define ADF_SIZE_TO_RING_SIZE_IN_BYTES(SIZE) ((1 << (SIZE - 1)) << 7) argument 38 #define ADF_RING_SIZE_IN_BYTES_TO_SIZE(SIZE) ((1 << (SIZE - 1)) >> 7) argument 40 /* Minimum ring buffer size for memory allocation */ 41 #define ADF_RING_SIZE_BYTES_MIN(SIZE) \ argument 42 ((SIZE < ADF_SIZE_TO_RING_SIZE_IN_BYTES(ADF_RING_SIZE_4K)) ? \ [all …]
|
| /linux/arch/arm/mm/ |
| H A D | dma-mapping.c | 43 size_t size; member 53 size_t size; member 107 static void __dma_clear_buffer(struct page *page, size_t size, int coherent_flag) in __dma_clear_buffer() argument 115 phys_addr_t end = base + size; in __dma_clear_buffer() 116 while (size > 0) { in __dma_clear_buffer() 123 size -= PAGE_SIZE; in __dma_clear_buffer() 129 memset(ptr, 0, size); in __dma_clear_buffer() 131 dmac_flush_range(ptr, ptr + size); in __dma_clear_buffer() 132 outer_flush_range(__pa(ptr), __pa(ptr) + size); in __dma_clear_buffer() 138 * Allocate a DMA buffer for 'dev' of size 'siz 141 __dma_alloc_buffer(struct device * dev,size_t size,gfp_t gfp,int coherent_flag) __dma_alloc_buffer() argument 166 __dma_free_buffer(struct page * page,size_t size) __dma_free_buffer() argument 254 unsigned long size; global() member 262 dma_contiguous_early_fixup(phys_addr_t base,unsigned long size) dma_contiguous_early_fixup() argument 319 __dma_remap(struct page * page,size_t size,pgprot_t prot) __dma_remap() argument 328 __alloc_remap_buffer(struct device * dev,size_t size,gfp_t gfp,pgprot_t prot,struct page ** ret_page,const void * caller,bool want_vaddr) __alloc_remap_buffer() argument 355 __alloc_from_pool(size_t size,struct page ** ret_page) __alloc_from_pool() argument 376 __in_atomic_pool(void * start,size_t size) __in_atomic_pool() argument 381 __free_from_pool(void * start,size_t size) __free_from_pool() argument 391 __alloc_from_contiguous(struct device * dev,size_t size,pgprot_t prot,struct page ** ret_page,const void * caller,bool want_vaddr,int coherent_flag,gfp_t gfp) __alloc_from_contiguous() argument 427 __free_from_contiguous(struct device * dev,struct page * page,void * cpu_addr,size_t size,bool want_vaddr) __free_from_contiguous() argument 446 __alloc_simple_buffer(struct device * dev,size_t size,gfp_t gfp,struct page ** ret_page) __alloc_simple_buffer() argument 533 __dma_alloc(struct device * dev,size_t size,dma_addr_t * handle,gfp_t gfp,pgprot_t prot,bool is_coherent,unsigned long attrs,const void * caller) __dma_alloc() argument 605 __arm_dma_free(struct device * dev,size_t size,void * cpu_addr,dma_addr_t handle,unsigned long attrs,bool is_coherent) __arm_dma_free() argument 627 dma_cache_maint_page(phys_addr_t phys,size_t size,enum dma_data_direction dir,void (* op)(const void *,size_t,int)) dma_cache_maint_page() argument 679 arch_sync_dma_for_device(phys_addr_t paddr,size_t size,enum dma_data_direction dir) arch_sync_dma_for_device() argument 692 arch_sync_dma_for_cpu(phys_addr_t paddr,size_t size,enum dma_data_direction dir) arch_sync_dma_for_cpu() argument 755 __alloc_iova(struct dma_iommu_mapping * mapping,size_t size) __alloc_iova() argument 813 __free_iova(struct dma_iommu_mapping * mapping,dma_addr_t addr,size_t size) __free_iova() argument 850 __iommu_alloc_buffer(struct device * dev,size_t size,gfp_t gfp,unsigned long attrs,int coherent_flag) __iommu_alloc_buffer() argument 939 __iommu_free_buffer(struct device * dev,struct page ** pages,size_t size,unsigned long attrs) __iommu_free_buffer() argument 960 __iommu_create_mapping(struct device * dev,struct page ** pages,size_t size,unsigned long attrs) __iommu_create_mapping() argument 1000 __iommu_remove_mapping(struct device * dev,dma_addr_t iova,size_t size) __iommu_remove_mapping() argument 1038 __iommu_alloc_simple(struct device * dev,size_t size,gfp_t gfp,dma_addr_t * handle,int coherent_flag,unsigned long attrs) __iommu_alloc_simple() argument 1064 __iommu_free_atomic(struct device * dev,void * cpu_addr,dma_addr_t handle,size_t size,int coherent_flag) __iommu_free_atomic() argument 1073 arm_iommu_alloc_attrs(struct device * dev,size_t size,dma_addr_t * handle,gfp_t gfp,unsigned long attrs) arm_iommu_alloc_attrs() argument 1114 arm_iommu_mmap_attrs(struct device * dev,struct vm_area_struct * vma,void * cpu_addr,dma_addr_t dma_addr,size_t size,unsigned long attrs) arm_iommu_mmap_attrs() argument 1141 arm_iommu_free_attrs(struct device * dev,size_t size,void * cpu_addr,dma_addr_t handle,unsigned long attrs) arm_iommu_free_attrs() argument 1168 arm_iommu_get_sgtable(struct device * dev,struct sg_table * sgt,void * cpu_addr,dma_addr_t dma_addr,size_t size,unsigned long attrs) arm_iommu_get_sgtable() argument 1184 __map_sg_chunk(struct device * dev,struct scatterlist * sg,size_t size,dma_addr_t * handle,enum dma_data_direction dir,unsigned long attrs) __map_sg_chunk() argument 1244 unsigned int size = s->offset + s->length; arm_iommu_map_sg() local 1366 arm_iommu_map_phys(struct device * dev,phys_addr_t phys,size_t size,enum dma_data_direction dir,unsigned long attrs) arm_iommu_map_phys() argument 1405 arm_iommu_unmap_phys(struct device * dev,dma_addr_t handle,size_t size,enum dma_data_direction dir,unsigned long attrs) arm_iommu_unmap_phys() argument 1427 arm_iommu_sync_single_for_cpu(struct device * dev,dma_addr_t handle,size_t size,enum dma_data_direction dir) arm_iommu_sync_single_for_cpu() argument 1442 arm_iommu_sync_single_for_device(struct device * dev,dma_addr_t handle,size_t size,enum dma_data_direction dir) arm_iommu_sync_single_for_device() argument 1487 arm_iommu_create_mapping(struct device * dev,dma_addr_t base,u64 size) arm_iommu_create_mapping() argument 1657 u64 dma_base = 0, size = 1ULL << 32; arm_setup_iommu_dma_ops() local 1737 arch_dma_alloc(struct device * dev,size_t size,dma_addr_t * dma_handle,gfp_t gfp,unsigned long attrs) arch_dma_alloc() argument 1745 arch_dma_free(struct device * dev,size_t size,void * cpu_addr,dma_addr_t dma_handle,unsigned long attrs) arch_dma_free() argument [all...] |
| /linux/mm/kasan/ |
| H A D | generic.c | 53 * depending on memory access size X. 69 unsigned long size) in memory_is_poisoned_2_4_8() argument 74 * Access crosses 8(shadow size)-byte boundary. Such access maps in memory_is_poisoned_2_4_8() 77 if (unlikely((((unsigned long)addr + size - 1) & KASAN_GRANULE_MASK) < size - 1)) in memory_is_poisoned_2_4_8() 78 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8() 80 return memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8() 95 size_t size) in bytes_is_nonzero() argument 97 while (size) { in bytes_is_nonzero() 101 size--; in bytes_is_nonzero() 136 static __always_inline bool memory_is_poisoned_n(const void *addr, size_t size) in memory_is_poisoned_n() argument [all …]
|
| /linux/lib/ |
| H A D | sort.c | 18 * is_aligned - is this pointer & size okay for word-wide copying? 20 * @size: size of each element 24 * The size must be a multiple of the alignment, and the base address must 31 static bool is_aligned(const void *base, size_t size, unsigned char align) in is_aligned() argument 33 unsigned char lsbits = (unsigned char)size; in is_aligned() 46 * @n: element size (must be a multiple of 4) 69 * @n: element size (must be a multiple of 8) 105 * @n: element size 137 static void do_swap(void *a, void *b, size_t size, swap_r_func_t swap_func, const void *priv) in do_swap() argument 140 ((const struct wrapper *)priv)->swap(a, b, (int)size); in do_swap() [all …]
|
| /linux/drivers/pci/ |
| H A D | rebar.c | 22 * pci_rebar_bytes_to_size - Convert size in bytes to PCI BAR Size 23 * @bytes: size in bytes 25 * Convert size in bytes to encoded BAR Size in Resizable BAR Capability 28 * Return: encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB) 41 * pci_rebar_size_to_bytes - Convert encoded BAR Size to size in bytes 42 * @size: encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB) 44 * Return: BAR size in bytes 46 resource_size_t pci_rebar_size_to_bytes(int size) in pci_rebar_size_to_bytes() argument 48 return 1ULL << (size + ilog2(PCI_REBAR_MIN_SIZE)); in pci_rebar_size_to_bytes() 130 * pci_rebar_size_supported - check if size is supported for BAR [all …]
|