Searched refs:offset_in_page (Results 1 - 25 of 266) sorted by relevance

1234567891011

/linux-master/sound/firewire/
H A Dpackets-buffer.c26 unsigned int i, page_index, offset_in_page; local
52 offset_in_page = (i % packets_per_page) * packet_size;
53 b->packets[i].buffer = p + offset_in_page;
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page;
/linux-master/drivers/gpu/drm/i915/gt/
H A Dshmem_utils.c101 min_t(size_t, PAGE_SIZE - offset_in_page(off), len);
112 memcpy(vaddr + offset_in_page(off), ptr, this);
115 memcpy(ptr, vaddr + offset_in_page(off), this);
136 min_t(size_t, PAGE_SIZE - offset_in_page(off), len);
146 iosys_map_memcpy_to(map, map_off, vaddr + offset_in_page(off),
H A Dintel_timeline.c61 u32 ofs = offset_in_page(timeline->hwsp_offset);
210 offset_in_page(tl->hwsp_offset);
311 u32 next_ofs = offset_in_page(tl->hwsp_offset + TIMELINE_SEQNO_BYTES);
315 next_ofs = offset_in_page(next_ofs + BIT(5));
355 offset_in_page(from->hwsp_seqno);
/linux-master/fs/ecryptfs/
H A Dread_write.c46 * @offset_in_page: The offset in the @page_for_lower from which to
59 size_t offset_in_page, size_t size)
66 + offset_in_page);
235 * @offset_in_page: Offset in @page_for_ecryptfs from which to start
248 size_t offset_in_page, size_t size,
255 offset = ((((loff_t)page_index) << PAGE_SHIFT) + offset_in_page);
57 ecryptfs_write_lower_page_segment(struct inode *ecryptfs_inode, struct page *page_for_lower, size_t offset_in_page, size_t size) argument
246 ecryptfs_read_lower_page_segment(struct page *page_for_ecryptfs, pgoff_t page_index, size_t offset_in_page, size_t size, struct inode *ecryptfs_inode) argument
/linux-master/fs/ubifs/
H A Dcrypto.c54 offset_in_page(p), block, GFP_NOFS);
79 dlen, offset_in_page(&dn->data),
/linux-master/arch/loongarch/include/asm/
H A Dio.h75 page_to_phys(tlb_virt_to_page((unsigned long)kaddr)) + offset_in_page((unsigned long)kaddr);\
82 page_address(phys_to_page((unsigned long)paddr)) + offset_in_page((unsigned long)paddr);\
/linux-master/virt/kvm/
H A Dpfncache.c63 unsigned long offset = kvm_is_error_gpa(gpa) ? offset_in_page(uhva) :
64 offset_in_page(gpa);
231 gpc->khva = new_khva + offset_in_page(gpc->uhva);
276 page_offset = offset_in_page(uhva);
287 page_offset = offset_in_page(gpa);
460 old_khva = gpc->khva - offset_in_page(gpc->khva);
/linux-master/include/crypto/
H A Dscatterwalk.h32 unsigned int len_this_page = offset_in_page(~walk->offset) + 1;
69 offset_in_page(walk->offset);
/linux-master/arch/arm64/kernel/
H A Dsys.c25 if (offset_in_page(off) != 0)
/linux-master/fs/xfs/
H A Dxfs_bio_io.c35 unsigned int off = offset_in_page(data);
H A Dxfs_buf_mem.c147 if (offset_in_page(pos) != 0) {
148 ASSERT(offset_in_page(pos));
/linux-master/drivers/firmware/
H A Discsi_ibft_find.c73 if (offset_in_page(pos) == 0) {
/linux-master/fs/f2fs/
H A Dverity.c48 PAGE_SIZE - offset_in_page(pos));
56 memcpy_from_page(buf, page, offset_in_page(pos), n);
82 PAGE_SIZE - offset_in_page(pos));
91 memcpy_to_page(page, offset_in_page(pos), buf, n);
/linux-master/arch/riscv/kernel/
H A Dpatch.c74 if (len + offset_in_page(addr) > 2 * PAGE_SIZE)
112 if (len + offset_in_page(addr) > 2 * PAGE_SIZE)
175 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched);
210 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched);
H A Dsbi.c587 offset_in_page(bytes);
590 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes))
591 num_bytes = PAGE_SIZE - offset_in_page(bytes);
616 offset_in_page(bytes);
619 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes))
620 num_bytes = PAGE_SIZE - offset_in_page(bytes);
/linux-master/fs/btrfs/
H A Dlzo.c162 write_compress_length(kaddr + offset_in_page(*cur_out),
188 memcpy(kaddr + offset_in_page(*cur_out),
203 memset(kaddr + offset_in_page(*cur_out), 0,
256 offset_in_page(cur_in), in_len,
317 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in),
324 offset_in_page(*cur_in), copy_len);
381 seg_len = read_compress_length(kaddr + offset_in_page(cur_in));
/linux-master/include/linux/
H A Dhighmem.h459 chunk > PAGE_SIZE - offset_in_page(offset))
460 chunk = PAGE_SIZE - offset_in_page(offset);
487 chunk > PAGE_SIZE - offset_in_page(offset))
488 chunk = PAGE_SIZE - offset_in_page(offset);
520 size_t max = PAGE_SIZE - offset_in_page(offset);
558 size_t max = PAGE_SIZE - offset_in_page(offset);
595 offset = offset_in_page(offset);
/linux-master/drivers/target/tcm_fc/
H A Dtfc_io.c143 from += offset_in_page(mem_off);
145 offset_in_page(mem_off)));
302 to += offset_in_page(mem_off);
304 offset_in_page(mem_off)));
/linux-master/arch/csky/mm/
H A Ddma-mapping.c19 unsigned long offset = offset_in_page(paddr);
/linux-master/mm/
H A Dmsync.c44 if (offset_in_page(start))
H A Dearly_ioremap.c131 offset = offset_in_page(phys_addr);
194 offset = offset_in_page(virt_addr);
254 slop = offset_in_page(src);
/linux-master/arch/s390/mm/
H A Dmmap.c112 if (offset_in_page(addr))
157 if (offset_in_page(addr)) {
163 if (offset_in_page(addr))
/linux-master/arch/powerpc/lib/
H A Dcode-patching.c292 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr));
334 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr));
403 * Assumes 'len' to be (PAGE_SIZE - offset_in_page(addr)) or below.
417 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr));
452 * Assumes 'len' to be (PAGE_SIZE - offset_in_page(addr)) or below.
463 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr));
492 plen = min_t(size_t, PAGE_SIZE - offset_in_page(addr), len);
/linux-master/fs/sysv/
H A Ddir.c218 pos = page_offset(page) + offset_in_page(de);
241 loff_t pos = page_offset(page) + offset_in_page(de);
338 loff_t pos = page_offset(page) + offset_in_page(de);
/linux-master/sound/virtio/
H A Dvirtio_pcm_msg.c59 pg_length = PAGE_SIZE - offset_in_page(data);
99 pg_length = PAGE_SIZE - offset_in_page(data);
108 offset_in_page(data));

Completed in 401 milliseconds

1234567891011