Home
last modified time | relevance | path

Searched refs:offset_in_page (Results 1 – 25 of 259) sorted by relevance

1234567891011

/openbmc/linux/sound/firewire/
H A Dpackets-buffer.c26 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 Dshmem_utils.c101 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 Dintel_timeline.c61 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 Dread_write.c59 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 Dlzo.c162 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 Dpatch.c74 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 Dxfile.c152 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 Dverity.c48 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 Dmmap.c106 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 Dhighmem.h452 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 Dcrypto.c54 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 Dscatterwalk.h32 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 Dtfc_io.c143 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 Dearly_ioremap.c131 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 Dedac_mc.c841 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 Dpfncache.c143 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 Dvirtio_pcm_msg.c59 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 Dnand_base.c1090 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 Ddir.c245 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 Dmove_extent.c626 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 Drawnand.h1550 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 Dsys.c25 if (offset_in_page(off) != 0) in SYSCALL_DEFINE6()
/openbmc/linux/fs/sysv/
H A Ddir.c218 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 Discsi_ibft_find.c73 if (offset_in_page(pos) == 0) { in reserve_ibft_region()
/openbmc/linux/net/sunrpc/xprtrdma/
H A Drpc_rdma.c138 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()

1234567891011