/openbmc/linux/sound/firewire/ |
H 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()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | shmem_utils.c | 101 min_t(size_t, PAGE_SIZE - offset_in_page(off), len); in __shmem_rw() 112 memcpy(vaddr + offset_in_page(off), ptr, this); in __shmem_rw() 115 memcpy(ptr, vaddr + offset_in_page(off), this); in __shmem_rw() 136 min_t(size_t, PAGE_SIZE - offset_in_page(off), len); in shmem_read_to_iosys_map() 146 iosys_map_memcpy_to(map, map_off, vaddr + offset_in_page(off), in shmem_read_to_iosys_map()
|
H 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()
|
/openbmc/linux/fs/ecryptfs/ |
H 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()
|
/openbmc/linux/fs/btrfs/ |
H 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() 256 offset_in_page(cur_in), in_len, in lzo_compress_pages() 317 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment() 324 offset_in_page(*cur_in), copy_len); in copy_compressed_segment() 381 seg_len = read_compress_length(kaddr + offset_in_page(cur_in)); in lzo_decompress_bio()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | patch.c | 74 if (len + offset_in_page(addr) > 2 * PAGE_SIZE) in __patch_insn_set() 112 if (len + offset_in_page(addr) > 2 * PAGE_SIZE) in __patch_insn_write() 175 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched); in patch_insn_set() 210 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched); in patch_insn_write()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | xfile.c | 152 len = min_t(ssize_t, count, PAGE_SIZE - offset_in_page(pos)); in xfile_pread() 176 p = kaddr + offset_in_page(pos); in xfile_pread() 232 len = min_t(ssize_t, count, PAGE_SIZE - offset_in_page(pos)); in xfile_pwrite() 255 p = kaddr + offset_in_page(pos); in xfile_pwrite() 336 if (len > PAGE_SIZE - offset_in_page(pos)) in xfile_get_page()
|
/openbmc/linux/fs/f2fs/ |
H 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() 91 memcpy_to_page(page, offset_in_page(pos), buf, n); in pagecache_write()
|
/openbmc/linux/arch/s390/mm/ |
H A D | mmap.c | 106 if (offset_in_page(addr)) in arch_get_unmapped_area() 154 if (offset_in_page(addr)) { in arch_get_unmapped_area_topdown() 160 if (offset_in_page(addr)) in arch_get_unmapped_area_topdown()
|
/openbmc/linux/include/linux/ |
H A D | highmem.h | 452 chunk > PAGE_SIZE - offset_in_page(offset)) in memcpy_from_folio() 453 chunk = PAGE_SIZE - offset_in_page(offset); in memcpy_from_folio() 473 chunk > PAGE_SIZE - offset_in_page(offset)) in memcpy_to_folio() 474 chunk = PAGE_SIZE - offset_in_page(offset); in memcpy_to_folio() 505 offset = offset_in_page(offset); in memcpy_from_file_folio()
|
/openbmc/linux/fs/ubifs/ |
H 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()
|
/openbmc/linux/include/crypto/ |
H 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()
|
/openbmc/linux/drivers/target/tcm_fc/ |
H 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()
|
/openbmc/linux/mm/ |
H 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()
|
/openbmc/linux/drivers/edac/ |
H A D | edac_mc.c | 841 e->label, e->location, e->page_frame_number, e->offset_in_page, in edac_ce_error() 865 edac_mc_scrub_block(remapped_page, e->offset_in_page, e->grain); in edac_ce_error() 878 e->label, e->location, e->page_frame_number, e->offset_in_page, in edac_ue_error() 890 e->label, e->location, e->page_frame_number, e->offset_in_page, in edac_ue_error() 933 (e->page_frame_number << PAGE_SHIFT) | e->offset_in_page, in edac_raw_mc_handle_error() 947 const unsigned long offset_in_page, in edac_mc_handle_error() argument 974 e->offset_in_page = offset_in_page; in edac_mc_handle_error()
|
/openbmc/linux/virt/kvm/ |
H A D | pfncache.c | 143 void *old_khva = gpc->khva - offset_in_page(gpc->khva); in hva_to_pfn_retry() 272 old_khva = gpc->khva - offset_in_page(gpc->khva); in __kvm_gpc_refresh() 404 old_khva = gpc->khva - offset_in_page(gpc->khva); in kvm_gpc_deactivate()
|
/openbmc/linux/sound/virtio/ |
H 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()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_base.c | 1090 unsigned int offset_in_page) in nand_fill_column_cycles() argument 1107 offset_in_page -= mtd->writesize; in nand_fill_column_cycles() 1114 if (WARN_ON(offset_in_page % 2)) in nand_fill_column_cycles() 1117 offset_in_page /= 2; in nand_fill_column_cycles() 1121 addrs[0] = offset_in_page; in nand_fill_column_cycles() 1130 addrs[1] = offset_in_page >> 8; in nand_fill_column_cycles() 1159 else if (offset_in_page >= 256 && in nand_sp_exec_read_page_op() 1340 offset_in_page, in nand_read_page_op() 1344 offset_in_page, buf, in nand_read_page_op() 1563 else if (offset_in_page >= 256 && in nand_exec_prog_page_op() [all …]
|
/openbmc/linux/fs/ext2/ |
H A D | dir.c | 245 return offset_in_page(p); in ext2_validate_entry() 457 loff_t pos = page_offset(page) + offset_in_page(de); in ext2_set_link() 543 pos = page_offset(page) + offset_in_page(de); in ext2_add_link() 579 unsigned from = offset_in_page(dir) & ~(ext2_chunk_size(inode)-1); in ext2_delete_entry() 580 unsigned to = offset_in_page(dir) + in ext2_delete_entry() 597 from = offset_in_page(pde); in ext2_delete_entry()
|
/openbmc/linux/fs/ext4/ |
H A D | move_extent.c | 626 int offset_in_page; in ext4_move_extents() local 664 offset_in_page = o_start % blocks_per_page; in ext4_move_extents() 665 if (cur_len > blocks_per_page - offset_in_page) in ext4_move_extents() 666 cur_len = blocks_per_page - offset_in_page; in ext4_move_extents() 678 offset_in_page, cur_len, in ext4_move_extents()
|
/openbmc/linux/include/linux/mtd/ |
H A D | rawnand.h | 1550 unsigned int offset_in_page, void *buf, unsigned int len); 1552 unsigned int offset_in_page, void *buf, 1555 unsigned int offset_in_page, void *buf, unsigned int len); 1557 unsigned int offset_in_page, const void *buf, 1561 unsigned int offset_in_page, const void *buf, 1564 unsigned int offset_in_page, const void *buf,
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | sys.c | 25 if (offset_in_page(off) != 0) in SYSCALL_DEFINE6()
|
/openbmc/linux/fs/sysv/ |
H A D | dir.c | 218 pos = page_offset(page) + offset_in_page(de); in sysv_add_link() 241 loff_t pos = page_offset(page) + offset_in_page(de); in sysv_delete_entry() 338 loff_t pos = page_offset(page) + offset_in_page(de); in sysv_set_link()
|
/openbmc/linux/drivers/firmware/ |
H A D | iscsi_ibft_find.c | 73 if (offset_in_page(pos) == 0) { in reserve_ibft_region()
|
/openbmc/linux/net/sunrpc/xprtrdma/ |
H A D | rpc_rdma.c | 138 offset = offset_in_page(xdr->page_base); in rpcrdma_args_inline() 213 seg->mr_offset = offset_in_page(vec->iov_base); in rpcrdma_convert_kvec() 242 page_base = offset_in_page(xdrbuf->page_base); in rpcrdma_convert_iovs() 606 page_base = offset_in_page(xdr->page_base); in rpcrdma_prepare_pagelist() 687 page_base = offset_in_page(xdr->page_base); in rpcrdma_pullup_pagelist() 739 offset_in_page(tail->iov_base), in rpcrdma_prepare_noch_mapped() 768 page_base = offset_in_page(xdr->tail[0].iov_base); in rpcrdma_prepare_readch() 1065 page_base = offset_in_page(rqst->rq_rcv_buf.page_base); in rpcrdma_inline_fixup()
|