| /linux/arch/riscv/kernel/ |
| A D | patch.c | 57 offset_in_page(addr)); in patch_map() 68 bool across_pages = (offset_in_page(addr) + len) > PAGE_SIZE; in __patch_insn_set() 74 if (len + offset_in_page(addr) > 2 * PAGE_SIZE) in __patch_insn_set() 113 bool across_pages = (offset_in_page(addr) + len) > PAGE_SIZE; in __patch_insn_write() 120 if (len + offset_in_page(addr) > 2 * PAGE_SIZE) in __patch_insn_write() 190 size = min(len, PAGE_SIZE * 2 - offset_in_page(addr)); in patch_insn_set() 225 size = min(len, PAGE_SIZE * 2 - offset_in_page(addr)); in patch_insn_write()
|
| A D | sbi.c | 531 offset_in_page(bytes); in sbi_debug_console_write() 534 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) in sbi_debug_console_write() 535 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_write() 560 offset_in_page(bytes); in sbi_debug_console_read() 563 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) in sbi_debug_console_read() 564 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_read()
|
| /linux/sound/firewire/ |
| A D | packets-buffer.c | 26 unsigned int i, page_index, offset_in_page; in iso_packets_buffer_init() local 52 offset_in_page = (i % packets_per_page) * packet_size; in iso_packets_buffer_init() 53 b->packets[i].buffer = p + offset_in_page; in iso_packets_buffer_init() 54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page; in iso_packets_buffer_init()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| A D | shmem_utils.c | 102 min_t(size_t, PAGE_SIZE - offset_in_page(off), len); in __shmem_rw() 113 memcpy(vaddr + offset_in_page(off), ptr, this); in __shmem_rw() 116 memcpy(ptr, vaddr + offset_in_page(off), this); in __shmem_rw() 137 min_t(size_t, PAGE_SIZE - offset_in_page(off), len); in shmem_read_to_iosys_map() 147 iosys_map_memcpy_to(map, map_off, vaddr + offset_in_page(off), in shmem_read_to_iosys_map()
|
| A D | intel_timeline.c | 61 u32 ofs = offset_in_page(timeline->hwsp_offset); in intel_timeline_pin_map() 210 offset_in_page(tl->hwsp_offset); in intel_timeline_pin() 311 u32 next_ofs = offset_in_page(tl->hwsp_offset + TIMELINE_SEQNO_BYTES); in __intel_timeline_get_seqno() 315 next_ofs = offset_in_page(next_ofs + BIT(5)); in __intel_timeline_get_seqno() 355 offset_in_page(from->hwsp_seqno); in intel_timeline_read_hwsp()
|
| /linux/fs/ecryptfs/ |
| A D | read_write.c | 59 size_t offset_in_page, size_t size) in ecryptfs_write_lower_page_segment() argument 66 + offset_in_page); in ecryptfs_write_lower_page_segment() 248 size_t offset_in_page, size_t size, in ecryptfs_read_lower_page_segment() argument 255 offset = ((((loff_t)page_index) << PAGE_SHIFT) + offset_in_page); in ecryptfs_read_lower_page_segment()
|
| /linux/virt/kvm/ |
| A D | pfncache.c | 63 unsigned long offset = kvm_is_error_gpa(gpa) ? offset_in_page(uhva) : in kvm_gpc_is_valid_len() 64 offset_in_page(gpa); in kvm_gpc_is_valid_len() 231 gpc->khva = new_khva + offset_in_page(gpc->uhva); in hva_to_pfn_retry() 276 page_offset = offset_in_page(uhva); in __kvm_gpc_refresh() 287 page_offset = offset_in_page(gpa); in __kvm_gpc_refresh() 463 old_khva = gpc->khva - offset_in_page(gpc->khva); in kvm_gpc_deactivate()
|
| /linux/include/linux/ |
| A D | highmem.h | 465 chunk > PAGE_SIZE - offset_in_page(offset)) in memcpy_from_folio() 466 chunk = PAGE_SIZE - offset_in_page(offset); in memcpy_from_folio() 493 chunk > PAGE_SIZE - offset_in_page(offset)) in memcpy_to_folio() 494 chunk = PAGE_SIZE - offset_in_page(offset); in memcpy_to_folio() 526 size_t max = PAGE_SIZE - offset_in_page(offset); in folio_zero_tail() 564 size_t max = PAGE_SIZE - offset_in_page(offset); in folio_fill_tail() 601 offset = offset_in_page(offset); in memcpy_from_file_folio()
|
| /linux/fs/btrfs/ |
| A D | lzo.c | 162 write_compress_length(kaddr + offset_in_page(*cur_out), in copy_compressed_data_to_page() 188 memcpy(kaddr + offset_in_page(*cur_out), in copy_compressed_data_to_page() 203 memset(kaddr + offset_in_page(*cur_out), 0, in copy_compressed_data_to_page() 257 offset_in_page(cur_in), in_len, in lzo_compress_folios() 318 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment() 385 seg_len = read_compress_length(kaddr + offset_in_page(cur_in)); in lzo_decompress_bio()
|
| /linux/arch/s390/mm/ |
| A D | mmap.c | 111 if (offset_in_page(addr)) in arch_get_unmapped_area() 156 if (offset_in_page(addr)) { in arch_get_unmapped_area_topdown() 162 if (offset_in_page(addr)) in arch_get_unmapped_area_topdown()
|
| /linux/fs/ubifs/ |
| A D | crypto.c | 54 offset_in_page(p), block, GFP_NOFS); in ubifs_encrypt() 79 dlen, offset_in_page(&dn->data), in ubifs_decrypt()
|
| /linux/drivers/target/tcm_fc/ |
| A D | tfc_io.c | 143 from += offset_in_page(mem_off); in ft_queue_data_in() 145 offset_in_page(mem_off))); in ft_queue_data_in() 302 to += offset_in_page(mem_off); in ft_recv_write_data() 304 offset_in_page(mem_off))); in ft_recv_write_data()
|
| /linux/arch/loongarch/include/asm/ |
| A D | io.h | 81 page_to_phys(tlb_virt_to_page((unsigned long)kaddr)) + offset_in_page((unsigned long)kaddr);\ 88 page_address(phys_to_page((unsigned long)paddr)) + offset_in_page((unsigned long)paddr);\
|
| /linux/include/crypto/ |
| A D | scatterwalk.h | 32 unsigned int len_this_page = offset_in_page(~walk->offset) + 1; in scatterwalk_pagelen() 69 offset_in_page(walk->offset); in scatterwalk_map()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_tlv.c | 55 int attr_max_len = PAGE_SIZE - offset_in_page(msg) - sizeof(*msg); in fbnic_tlv_attr_put_flag() 97 int attr_max_len = PAGE_SIZE - offset_in_page(msg) - sizeof(*msg); in fbnic_tlv_attr_put_value() 264 int attr_max_len = PAGE_SIZE - offset_in_page(msg) - sizeof(*msg); in fbnic_tlv_attr_nest_start() 333 if (offset_in_page(attr) + len > PAGE_SIZE - sizeof(*attr)) in fbnic_tlv_attr_validate()
|
| /linux/mm/ |
| A D | early_ioremap.c | 131 offset = offset_in_page(phys_addr); in __early_ioremap() 194 offset = offset_in_page(virt_addr); in early_iounmap() 254 slop = offset_in_page(src); in copy_from_early_mem()
|
| /linux/fs/f2fs/ |
| A D | verity.c | 48 PAGE_SIZE - offset_in_page(pos)); in pagecache_read() 56 memcpy_from_page(buf, page, offset_in_page(pos), n); in pagecache_read() 82 PAGE_SIZE - offset_in_page(pos)); in pagecache_write()
|
| /linux/drivers/edac/ |
| A D | edac_mc.c | 842 e->label, e->location, e->page_frame_number, e->offset_in_page, in edac_ce_error() 866 edac_mc_scrub_block(remapped_page, e->offset_in_page, e->grain); in edac_ce_error() 879 e->label, e->location, e->page_frame_number, e->offset_in_page, in edac_ue_error() 891 e->label, e->location, e->page_frame_number, e->offset_in_page, in edac_ue_error() 934 (e->page_frame_number << PAGE_SHIFT) | e->offset_in_page, in edac_raw_mc_handle_error() 948 const unsigned long offset_in_page, in edac_mc_handle_error() argument 975 e->offset_in_page = offset_in_page; in edac_mc_handle_error()
|
| /linux/drivers/mtd/nand/raw/ |
| A D | nand_base.c | 1093 unsigned int offset_in_page) in nand_fill_column_cycles() argument 1110 offset_in_page -= mtd->writesize; in nand_fill_column_cycles() 1117 if (WARN_ON(offset_in_page % 2)) in nand_fill_column_cycles() 1120 offset_in_page /= 2; in nand_fill_column_cycles() 1124 addrs[0] = offset_in_page; in nand_fill_column_cycles() 1133 addrs[1] = offset_in_page >> 8; in nand_fill_column_cycles() 1162 else if (offset_in_page >= 256 && in nand_sp_exec_read_page_op() 1357 offset_in_page, in nand_read_page_op() 1361 offset_in_page, buf, in nand_read_page_op() 1581 else if (offset_in_page >= 256 && in nand_exec_prog_page_op() [all …]
|
| /linux/arch/powerpc/lib/ |
| A D | code-patching.c | 294 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_mem_mm() 336 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_mem() 480 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_instructions_mm() 526 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_instructions() 555 plen = min_t(size_t, PAGE_SIZE - offset_in_page(addr), len); in patch_instructions()
|
| /linux/fs/ext4/ |
| A D | move_extent.c | 634 int offset_in_page; in ext4_move_extents() local 674 offset_in_page = o_start % blocks_per_page; in ext4_move_extents() 675 if (cur_len > blocks_per_page - offset_in_page) in ext4_move_extents() 676 cur_len = blocks_per_page - offset_in_page; in ext4_move_extents() 688 offset_in_page, cur_len, in ext4_move_extents()
|
| /linux/sound/virtio/ |
| A D | virtio_pcm_msg.c | 59 pg_length = PAGE_SIZE - offset_in_page(data); in virtsnd_pcm_sg_num() 99 pg_length = PAGE_SIZE - offset_in_page(data); in virtsnd_pcm_sg_from() 108 offset_in_page(data)); in virtsnd_pcm_sg_from()
|
| /linux/fs/xfs/ |
| A D | xfs_buf_mem.c | 147 if (offset_in_page(pos) != 0) { in xmbuf_map_page() 148 ASSERT(offset_in_page(pos)); in xmbuf_map_page()
|
| /linux/arch/riscv/kvm/ |
| A D | vcpu_sbi_sta.c | 54 sequence_ptr = (__le32 __user *)(hva + offset_in_page(shmem) + in kvm_riscv_vcpu_record_steal_time() 56 steal_ptr = (__le64 __user *)(hva + offset_in_page(shmem) + in kvm_riscv_vcpu_record_steal_time()
|
| /linux/include/linux/mtd/ |
| A D | rawnand.h | 1563 unsigned int offset_in_page, void *buf, unsigned int len); 1565 unsigned int offset_in_page, void *buf, 1568 unsigned int offset_in_page, void *buf, unsigned int len); 1570 unsigned int offset_in_page, const void *buf, 1574 unsigned int offset_in_page, const void *buf, 1577 unsigned int offset_in_page, const void *buf,
|