/openbmc/linux/fs/nilfs2/ |
H A D | cpfile.c | 71 void *kaddr, in nilfs_cpfile_block_add_valid_checkpoints() argument 85 void *kaddr, in nilfs_cpfile_block_sub_valid_checkpoints() argument 108 void *kaddr) in nilfs_cpfile_block_get_checkpoint() argument 223 void *kaddr; in nilfs_cpfile_get_checkpoint() local 320 void *kaddr; in nilfs_cpfile_delete_checkpoints() local 432 void *kaddr; in nilfs_cpfile_do_get_cpinfo() local 485 void *kaddr; in nilfs_cpfile_do_get_ssinfo() local 625 void *kaddr; in nilfs_cpfile_set_snapshot() local 743 void *kaddr; in nilfs_cpfile_clear_snapshot() local 860 void *kaddr; in nilfs_cpfile_is_snapshot() local [all …]
|
H A D | sufile.c | 108 void *kaddr; in nilfs_sufile_mod_counter() local 309 void *kaddr; in nilfs_sufile_alloc() local 407 void *kaddr; in nilfs_sufile_do_cancel_free() local 432 void *kaddr; in nilfs_sufile_do_scrap() local 463 void *kaddr; in nilfs_sufile_do_free() local 498 void *kaddr; in nilfs_sufile_mark_dirty() local 552 void *kaddr; in nilfs_sufile_set_segment_usage() local 603 void *kaddr; in nilfs_sufile_get_stat() local 635 void *kaddr; in nilfs_sufile_do_set_error() local 684 void *kaddr; in nilfs_sufile_truncate_range() local [all …]
|
H A D | dat.c | 92 void *kaddr; in nilfs_dat_commit_alloc() local 100 kunmap_atomic(kaddr); in nilfs_dat_commit_alloc() 116 void *kaddr; in nilfs_dat_commit_free() local 124 kunmap_atomic(kaddr); in nilfs_dat_commit_free() 146 void *kaddr; in nilfs_dat_commit_start() local 163 void *kaddr; in nilfs_dat_prepare_end() local 203 void *kaddr; in nilfs_dat_commit_end() local 228 void *kaddr; in nilfs_dat_abort_end() local 342 void *kaddr; in nilfs_dat_move() local 413 void *kaddr; in nilfs_dat_translate() local [all …]
|
H A D | dir.c | 200 void *kaddr; in nilfs_get_page() local 205 kaddr = kmap(page); in nilfs_get_page() 212 return kaddr; in nilfs_get_page() 287 char *kaddr, *limit; in nilfs_readdir() local 363 if (IS_ERR(kaddr)) in nilfs_find_entry() 487 char *kaddr; in nilfs_add_link() local 501 if (IS_ERR(kaddr)) in nilfs_add_link() 622 void *kaddr; in nilfs_make_empty() local 663 char *kaddr; in nilfs_empty_dir() local 667 if (IS_ERR(kaddr)) in nilfs_empty_dir() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | paravirt.c | 38 struct pvclock_vcpu_stolen_time __rcu *kaddr; member 67 kaddr = rcu_dereference(reg->kaddr); in para_steal_clock() 68 if (!kaddr) { in para_steal_clock() 84 if (!reg->kaddr) in stolen_time_cpu_down_prepare() 87 kaddr = rcu_replace_pointer(reg->kaddr, NULL, true); in stolen_time_cpu_down_prepare() 89 memunmap(kaddr); in stolen_time_cpu_down_prepare() 107 kaddr = memremap(res.a0, in stolen_time_cpu_online() 111 rcu_assign_pointer(reg->kaddr, kaddr); in stolen_time_cpu_online() 113 if (!reg->kaddr) { in stolen_time_cpu_online() 118 if (le32_to_cpu(kaddr->revision) != 0 || in stolen_time_cpu_online() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | accessors.c | 30 token->kaddr = page_address(eb->pages[0]); in btrfs_init_map_token() 71 ASSERT(token->kaddr); \ 82 memcpy(lebytes, token->kaddr + oip, part); \ 94 char *kaddr = page_address(eb->pages[idx]); \ 103 memcpy(lebytes, kaddr + oip, part); \ 104 kaddr = page_address(eb->pages[idx + 1]); \ 121 ASSERT(token->kaddr); \ 135 memcpy(token->kaddr + oip, lebytes, part); \ 153 put_unaligned_le##bits(val, kaddr + oip); \ 158 memcpy(kaddr + oip, lebytes, part); \ [all …]
|
H A D | lzo.c | 141 char *kaddr; in copy_compressed_data_to_page() local 161 kaddr = kmap_local_page(cur_page); in copy_compressed_data_to_page() 173 kunmap_local(kaddr); in copy_compressed_data_to_page() 186 kaddr = kmap_local_page(cur_page); in copy_compressed_data_to_page() 208 kunmap_local(kaddr); in copy_compressed_data_to_page() 335 char *kaddr; in lzo_decompress_bio() local 346 kunmap_local(kaddr); in lzo_decompress_bio() 380 kaddr = kmap_local_page(cur_page); in lzo_decompress_bio() 382 kunmap_local(kaddr); in lzo_decompress_bio() 436 char *kaddr; in lzo_decompress() local [all …]
|
/openbmc/linux/fs/sysv/ |
H A D | dir.c | 88 char *kaddr, *limit; in sysv_readdir() local 93 if (IS_ERR(kaddr)) in sysv_readdir() 110 unmap_and_put_page(page, kaddr); in sysv_readdir() 159 if (!IS_ERR(kaddr)) { in sysv_find_entry() 193 char *kaddr; in sysv_add_link() local 200 if (IS_ERR(kaddr)) in sysv_add_link() 201 return PTR_ERR(kaddr); in sysv_add_link() 204 while ((char *)de <= kaddr) { in sysv_add_link() 231 unmap_and_put_page(page, kaddr); in sysv_add_link() 297 char *kaddr; in sysv_empty_dir() local [all …]
|
/openbmc/linux/arch/m68k/sun3/ |
H A D | dvma.c | 23 static unsigned long dvma_page(unsigned long kaddr, unsigned long vaddr) in dvma_page() argument 29 j = *(volatile unsigned long *)kaddr; in dvma_page() 30 *(volatile unsigned long *)kaddr = j; in dvma_page() 32 ptep = pfn_pte(virt_to_pfn((void *)kaddr), PAGE_KERNEL); in dvma_page() 40 return (vaddr + (kaddr & ~PAGE_MASK)); in dvma_page() 44 int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, in dvma_map_iommu() argument 56 dvma_page(kaddr, vaddr); in dvma_map_iommu() 57 kaddr += PAGE_SIZE; in dvma_map_iommu()
|
H A D | sun3dvma.c | 283 unsigned long dvma_map_align(unsigned long kaddr, int len, int align) in dvma_map_align() argument 292 if(!kaddr || !len) { in dvma_map_align() 298 pr_debug("dvma_map request %08x bytes from %08lx\n", len, kaddr); in dvma_map_align() 299 off = kaddr & ~DVMA_PAGE_MASK; in dvma_map_align() 300 kaddr &= PAGE_MASK; in dvma_map_align() 312 if(!dvma_map_iommu(kaddr, baddr, len)) in dvma_map_align() 340 unsigned long kaddr; in dvma_malloc_align() local 354 free_pages(kaddr, get_order(len)); in dvma_malloc_align() 360 if(dvma_map_cpu(kaddr, vaddr, len) < 0) { in dvma_malloc_align() 362 free_pages(kaddr, get_order(len)); in dvma_malloc_align() [all …]
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | memory.h | 75 #define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)) 76 #define virt_addr_valid(kaddr) ((kaddr) >= PAGE_OFFSET && (kaddr) < (unsigned long)high_memory) 103 #define virt_to_page(kaddr) \ 104 (ADDR_TO_MAPBASE(kaddr) + LOCAL_MAP_NR(kaddr)) 106 #define virt_addr_valid(kaddr) (KVADDR_TO_NID(kaddr) < NR_NODES)
|
/openbmc/linux/fs/ext2/ |
H A D | dir.c | 281 if (IS_ERR(kaddr)) { in ext2_readdir() 286 return PTR_ERR(kaddr); in ext2_readdir() 365 if (IS_ERR(kaddr)) in ext2_find_entry() 366 return ERR_CAST(kaddr); in ext2_find_entry() 504 if (IS_ERR(kaddr)) in ext2_add_link() 505 return PTR_ERR(kaddr); in ext2_add_link() 508 de = (ext2_dirent *)kaddr; in ext2_add_link() 624 void *kaddr; in ext2_make_empty() local 649 kunmap_local(kaddr); in ext2_make_empty() 663 char *kaddr; in ext2_empty_dir() local [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | nvs.c | 78 void *kaddr; member 138 if (entry->kaddr) { in suspend_nvs_free() 140 iounmap(entry->kaddr); in suspend_nvs_free() 143 acpi_os_unmap_iomem(entry->kaddr, in suspend_nvs_free() 146 entry->kaddr = NULL; in suspend_nvs_free() 182 entry->kaddr = acpi_os_get_iomem(phys, size); in suspend_nvs_save() 183 if (!entry->kaddr) { in suspend_nvs_save() 184 entry->kaddr = acpi_os_ioremap(phys, size); in suspend_nvs_save() 185 entry->unmap = !!entry->kaddr; in suspend_nvs_save() 187 if (!entry->kaddr) { in suspend_nvs_save() [all …]
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | page.h | 86 #define virt_to_pfn(kaddr) PFN_DOWN(PHYSADDR(kaddr)) argument 88 #define virt_to_page(kaddr) \ argument 90 (likely((unsigned long)kaddr < vm_map_base)) ? \ 91 dmw_virt_to_page((unsigned long)kaddr) : tlb_virt_to_page((unsigned long)kaddr);\ 94 extern int __virt_addr_valid(volatile void *kaddr); 95 #define virt_addr_valid(kaddr) __virt_addr_valid((volatile void *)(kaddr)) argument
|
/openbmc/linux/fs/minix/ |
H A D | dir.c | 106 char *p, *kaddr, *limit; in minix_readdir() local 111 kaddr = (char *)page_address(page); in minix_readdir() 112 p = kaddr+offset; in minix_readdir() 174 char *kaddr, *limit; in minix_find_entry() local 216 char *kaddr, *p; in minix_add_link() local 299 char *kaddr = page_address(page); in minix_delete_entry() local 325 char *kaddr; in minix_make_empty() local 336 kaddr = kmap_atomic(page); in minix_make_empty() 337 memset(kaddr, 0, PAGE_SIZE); in minix_make_empty() 356 kunmap_atomic(kaddr); in minix_make_empty() [all …]
|
/openbmc/linux/fs/erofs/ |
H A D | inode.c | 20 void *kaddr; in erofs_read_inode() local 30 if (IS_ERR(kaddr)) { in erofs_read_inode() 32 vi->nid, PTR_ERR(kaddr)); in erofs_read_inode() 33 return kaddr; in erofs_read_inode() 36 dic = kaddr + *ofs; in erofs_read_inode() 72 if (IS_ERR(kaddr)) { in erofs_read_inode() 76 return kaddr; in erofs_read_inode() 191 return kaddr; in erofs_read_inode() 236 void *kaddr; in erofs_fill_inode() local 244 if (IS_ERR(kaddr)) in erofs_fill_inode() [all …]
|
H A D | xattr.c | 15 void *kaddr; member 85 if (IS_ERR(it.kaddr)) { in erofs_init_inode_xattrs() 86 ret = PTR_ERR(it.kaddr); in erofs_init_inode_xattrs() 107 if (IS_ERR(it.kaddr)) { in erofs_init_inode_xattrs() 110 ret = PTR_ERR(it.kaddr); in erofs_init_inode_xattrs() 190 if (IS_ERR(it->kaddr)) in erofs_xattr_copy_to_buffer() 191 return PTR_ERR(it->kaddr); in erofs_xattr_copy_to_buffer() 296 if (IS_ERR(it->kaddr)) in erofs_getxattr_foreach() 297 return PTR_ERR(it->kaddr); in erofs_getxattr_foreach() 341 if (IS_ERR(it->kaddr)) in erofs_xattr_iter_inline() [all …]
|
/openbmc/linux/arch/m68k/sun3x/ |
H A D | dvma.c | 78 inline int dvma_map_cpu(unsigned long kaddr, in dvma_map_cpu() argument 87 kaddr &= PAGE_MASK; in dvma_map_cpu() 92 pr_debug("dvma: mapping kern %08lx to virt %08lx\n", kaddr, vaddr); in dvma_map_cpu() 127 __pa(kaddr), vaddr); in dvma_map_cpu() 128 set_pte(pte, pfn_pte(virt_to_pfn((void *)kaddr), in dvma_map_cpu() 131 kaddr += PAGE_SIZE; in dvma_map_cpu() 146 inline int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, in dvma_map_iommu() argument 163 dvma_entry_set(index, __pa(kaddr)); in dvma_map_iommu() 168 kaddr += DVMA_PAGE_SIZE; in dvma_map_iommu()
|
/openbmc/linux/fs/ufs/ |
H A D | dir.c | 120 char *kaddr = page_address(page); in ufs_check_page() local 283 char *kaddr; in ufs_find_entry() local 286 kaddr = page_address(page); in ufs_find_entry() 324 char *kaddr; in ufs_add_link() local 343 kaddr = page_address(page); in ufs_add_link() 346 kaddr += PAGE_SIZE - reclen; in ufs_add_link() 347 while ((char *)de <= kaddr) { in ufs_add_link() 448 char *kaddr, *limit; in ufs_readdir() local 460 kaddr = page_address(page); in ufs_readdir() 607 char *kaddr; in ufs_empty_dir() local [all …]
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | tlbflush.h | 477 tlb_op(TLB_V4_U_PAGE, "c8, c7, 1", kaddr); in __local_flush_tlb_kernel_page() 478 tlb_op(TLB_V4_D_PAGE, "c8, c6, 1", kaddr); in __local_flush_tlb_kernel_page() 479 tlb_op(TLB_V4_I_PAGE, "c8, c5, 1", kaddr); in __local_flush_tlb_kernel_page() 483 tlb_op(TLB_V6_U_PAGE, "c8, c7, 1", kaddr); in __local_flush_tlb_kernel_page() 484 tlb_op(TLB_V6_D_PAGE, "c8, c6, 1", kaddr); in __local_flush_tlb_kernel_page() 485 tlb_op(TLB_V6_I_PAGE, "c8, c5, 1", kaddr); in __local_flush_tlb_kernel_page() 492 kaddr &= PAGE_MASK; in local_flush_tlb_kernel_page() 497 __local_flush_tlb_kernel_page(kaddr); in local_flush_tlb_kernel_page() 498 tlb_op(TLB_V7_UIS_PAGE, "c8, c7, 1", kaddr); in local_flush_tlb_kernel_page() 510 kaddr &= PAGE_MASK; in __flush_tlb_kernel_page() [all …]
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | xfile.c | 149 void *p, *kaddr; in xfile_pread() local 175 kaddr = kmap_local_page(page); in xfile_pread() 178 kunmap_local(kaddr); in xfile_pread() 228 void *p, *kaddr; in xfile_pwrite() local 250 kaddr = kmap_local_page(page); in xfile_pwrite() 252 memset(kaddr, 0, PAGE_SIZE); in xfile_pwrite() 257 kunmap_local(kaddr); in xfile_pwrite() 363 void *kaddr; in xfile_get_page() local 365 kaddr = kmap_local_page(page); in xfile_get_page() 366 memset(kaddr, 0, PAGE_SIZE); in xfile_get_page() [all …]
|
/openbmc/linux/fs/ntfs/ |
H A D | bitmap.c | 40 u8 *kaddr; in __ntfs_bitmap_set_bits_in_run() local 68 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run() 78 u8 *byte = kaddr + pos; in __ntfs_bitmap_set_bits_in_run() 98 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run() 116 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run() 122 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run() 136 byte = kaddr + len; in __ntfs_bitmap_set_bits_in_run()
|
/openbmc/linux/tools/testing/nvdimm/ |
H A D | pmem-dax.c | 12 long nr_pages, enum dax_access_mode mode, void **kaddr, in __pmem_direct_access() argument 28 if (kaddr) in __pmem_direct_access() 29 *kaddr = pmem->virt_addr + offset; in __pmem_direct_access() 39 if (kaddr) in __pmem_direct_access() 40 *kaddr = pmem->virt_addr + offset; in __pmem_direct_access()
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | page_no.h | 22 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() argument 24 return __pa(kaddr) >> PAGE_SHIFT; in virt_to_pfn() 35 #define virt_addr_valid(kaddr) (((unsigned long)(kaddr) >= PAGE_OFFSET) && \ argument 36 ((unsigned long)(kaddr) < memory_end))
|
/openbmc/linux/arch/hexagon/include/asm/ |
H A D | page.h | 93 #define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(__pa(kaddr))) argument 98 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) argument 128 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) argument
|