Home
last modified time | relevance | path

Searched refs:page_offset (Results 1 – 25 of 193) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_bo_vm.c97 unsigned long page_offset) in ttm_bo_io_mem_pfn() argument
102 return bdev->driver->io_mem_pfn(bo, page_offset); in ttm_bo_io_mem_pfn()
104 return (bo->mem.bus.offset >> PAGE_SHIFT) + page_offset; in ttm_bo_io_mem_pfn()
180 pgoff_t page_offset, in ttm_bo_vm_insert_huge() argument
192 page_offset &= ~(fault_page_size - 1); in ttm_bo_vm_insert_huge()
193 if (page_offset + fault_page_size > bo->num_pages) in ttm_bo_vm_insert_huge()
197 pfn = ttm_bo_io_mem_pfn(bo, page_offset); in ttm_bo_vm_insert_huge()
199 pfn = page_to_pfn(ttm->pages[page_offset]); in ttm_bo_vm_insert_huge()
208 if (page_to_pfn(ttm->pages[page_offset + i]) != pfn + i) in ttm_bo_vm_insert_huge()
213 if (ttm_bo_io_mem_pfn(bo, page_offset + i) != pfn + i) in ttm_bo_vm_insert_huge()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_page_dirty.c399 unsigned long page_offset; in vmw_bo_vm_mkwrite() local
415 page_offset = vmf->pgoff - drm_vma_node_start(&bo->base.vma_node); in vmw_bo_vm_mkwrite()
416 if (unlikely(page_offset >= bo->num_pages)) { in vmw_bo_vm_mkwrite()
422 !test_bit(page_offset, &vbo->dirty->bitmap[0])) { in vmw_bo_vm_mkwrite()
425 __set_bit(page_offset, &dirty->bitmap[0]); in vmw_bo_vm_mkwrite()
426 dirty->start = min(dirty->start, page_offset); in vmw_bo_vm_mkwrite()
427 dirty->end = max(dirty->end, page_offset + 1); in vmw_bo_vm_mkwrite()
455 unsigned long page_offset; in vmw_bo_vm_fault() local
457 page_offset = vmf->pgoff - in vmw_bo_vm_fault()
459 if (page_offset >= bo->num_pages || in vmw_bo_vm_fault()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_network.h298 pg_info->page_offset = 0; in recv_buffer_alloc()
300 skb_pg_info->page_offset = 0; in recv_buffer_alloc()
324 skb_pg_info->page_offset = 0; in recv_buffer_fast_alloc()
348 pg_info->page_offset = 0; in recv_buffer_recycle()
353 if (pg_info->page_offset == 0) in recv_buffer_recycle()
354 pg_info->page_offset = LIO_RXBUFFER_SZ; in recv_buffer_recycle()
356 pg_info->page_offset = 0; in recv_buffer_recycle()
384 skb_pg_info->page_offset = pg_info->page_offset; in recv_buffer_reuse()
398 pg_info->page_offset = 0; in recv_buffer_destroy()
415 pg_info->page_offset = 0; in recv_buffer_free()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/fnic/
Dfnic_trace.c71 fnic_trace_entries.page_offset[fnic_trace_entries.wr_idx]; in fnic_trace_get_buf()
124 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
166 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
490 fnic_trace_entries.page_offset = in fnic_trace_buf_init()
493 if (!fnic_trace_entries.page_offset) { in fnic_trace_buf_init()
503 memset((void *)fnic_trace_entries.page_offset, 0, in fnic_trace_buf_init()
514 fnic_trace_entries.page_offset[i] = fnic_buf_head; in fnic_trace_buf_init()
532 if (fnic_trace_entries.page_offset) { in fnic_trace_free()
533 vfree((void *)fnic_trace_entries.page_offset); in fnic_trace_free()
534 fnic_trace_entries.page_offset = NULL; in fnic_trace_free()
[all …]
/kernel/linux/linux-5.10/fs/orangefs/
Dinode.c42 off = page_offset(page); in orangefs_writepage_locked()
105 ow->bv[i].bv_len = min(page_offset(ow->pages[i]) + PAGE_SIZE, in orangefs_writepages_work()
107 max(ow->off, page_offset(ow->pages[i])); in orangefs_writepages_work()
110 page_offset(ow->pages[i]); in orangefs_writepages_work()
274 off = page_offset(page); in orangefs_readpage()
432 if (pos == page_offset(page) && in orangefs_write_end()
458 } else if (page_offset(page) + offset <= wr->pos && in orangefs_invalidatepage()
459 wr->pos + wr->len <= page_offset(page) + offset + length) { in orangefs_invalidatepage()
465 } else if (wr->pos < page_offset(page) + offset && in orangefs_invalidatepage()
466 wr->pos + wr->len <= page_offset(page) + offset + length && in orangefs_invalidatepage()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vkms/
Dvkms_gem.c50 pgoff_t page_offset; in vkms_gem_fault() local
54 page_offset = (vaddr - vma->vm_start) >> PAGE_SHIFT; in vkms_gem_fault()
57 if (page_offset > num_pages) in vkms_gem_fault()
62 get_page(obj->pages[page_offset]); in vkms_gem_fault()
63 vmf->page = obj->pages[page_offset]; in vkms_gem_fault()
72 page = shmem_read_mapping_page(mapping, page_offset); in vkms_gem_fault()
/kernel/linux/linux-5.10/scripts/
Dleaking_addresses.pl304 state $page_offset = get_page_offset();
310 if (hex($match) < $page_offset) {
320 my $page_offset;
328 $page_offset = get_kernel_config_option('CONFIG_PAGE_OFFSET');
329 if (!$page_offset) {
332 return $page_offset;
/kernel/linux/linux-5.10/fs/hfs/
Dbnode.c26 off += node->page_offset; in hfs_bnode_read()
80 off += node->page_offset; in hfs_bnode_write()
105 off += node->page_offset; in hfs_bnode_clear()
121 src += src_node->page_offset; in hfs_bnode_copy()
122 dst += dst_node->page_offset; in hfs_bnode_copy()
140 src += node->page_offset; in hfs_bnode_move()
141 dst += node->page_offset; in hfs_bnode_move()
294 node->page_offset = off & ~PAGE_MASK; in __hfs_bnode_create()
353 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + node->page_offset); in hfs_bnode_find()
443 memset(kmap(*pagep) + node->page_offset, 0, in hfs_bnode_create()
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dnandbiterrs.c45 static unsigned page_offset; variable
46 module_param(page_offset, uint, S_IRUGO);
47 MODULE_PARM_DESC(page_offset, "Page number relative to dev start");
358 offset = (loff_t)page_offset * mtd->writesize; in mtd_nandbiterrs_init()
362 page_offset, offset, eraseblock); in mtd_nandbiterrs_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Dgem.c134 pgoff_t page_offset; in psb_gem_fault() local
162 page_offset = (vmf->address - vma->vm_start) >> PAGE_SHIFT; in psb_gem_fault()
168 pfn = page_to_pfn(r->pages[page_offset]); in psb_gem_fault()
/kernel/linux/linux-5.10/drivers/nvmem/
Drave-sp-eeprom.c161 const unsigned int page_offset = offset % RAVE_SP_EEPROM_PAGE_SIZE; in rave_sp_eeprom_page_access() local
172 if (WARN_ON(data_len > sizeof(page.data) - page_offset)) in rave_sp_eeprom_page_access()
187 memcpy(&page.data[page_offset], data, data_len); in rave_sp_eeprom_page_access()
199 memcpy(data, &page.data[page_offset], data_len); in rave_sp_eeprom_page_access()
/kernel/linux/linux-5.10/drivers/gpu/drm/vgem/
Dvgem_drv.c80 pgoff_t page_offset; in vgem_gem_fault() local
81 page_offset = (vaddr - vma->vm_start) >> PAGE_SHIFT; in vgem_gem_fault()
85 if (page_offset >= num_pages) in vgem_gem_fault()
90 get_page(obj->pages[page_offset]); in vgem_gem_fault()
91 vmf->page = obj->pages[page_offset]; in vgem_gem_fault()
100 page_offset); in vgem_gem_fault()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_image.c166 unsigned int page_base, page_offset, out_offset; in qxl_image_init_helper() local
175 page_offset = offset_in_page(out_offset); in qxl_image_init_helper()
176 size = min((int)(PAGE_SIZE - page_offset), remain); in qxl_image_init_helper()
179 k_data = ptr + page_offset; in qxl_image_init_helper()
Dqxl_object.c177 struct qxl_bo *bo, int page_offset) in qxl_bo_kmap_atomic_page() argument
192 return io_mapping_map_atomic_wc(map, offset + page_offset); in qxl_bo_kmap_atomic_page()
195 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page()
203 rptr += page_offset * PAGE_SIZE; in qxl_bo_kmap_atomic_page()
/kernel/linux/linux-5.10/fs/hfsplus/
Dbnode.c27 off += node->page_offset; in hfs_bnode_read()
80 off += node->page_offset; in hfs_bnode_write()
110 off += node->page_offset; in hfs_bnode_clear()
136 src += src_node->page_offset; in hfs_bnode_copy()
137 dst += dst_node->page_offset; in hfs_bnode_copy()
193 src += node->page_offset; in hfs_bnode_move()
194 dst += node->page_offset; in hfs_bnode_move()
445 node->page_offset = off & ~PAGE_MASK; in __hfs_bnode_create()
506 node->page_offset); in hfs_bnode_find()
596 memset(kmap(*pagep) + node->page_offset, 0, in hfs_bnode_create()
Dwrapper.c76 unsigned int page_offset = offset_in_page(buf); in hfsplus_submit_bio() local
77 unsigned int len = min_t(unsigned int, PAGE_SIZE - page_offset, in hfsplus_submit_bio()
80 ret = bio_add_page(bio, virt_to_page(buf), len, page_offset); in hfsplus_submit_bio()
/kernel/linux/linux-5.10/net/ceph/
Dmessenger.c520 int page_offset, size_t length) in ceph_tcp_recvpage() argument
524 .bv_offset = page_offset, in ceph_tcp_recvpage()
530 BUG_ON(page_offset + length > PAGE_SIZE); in ceph_tcp_recvpage()
823 size_t *page_offset, in ceph_msg_data_bio_next() argument
829 *page_offset = bv.bv_offset; in ceph_msg_data_bio_next()
884 size_t *page_offset, in ceph_msg_data_bvecs_next() argument
890 *page_offset = bv.bv_offset; in ceph_msg_data_bvecs_next()
939 cursor->page_offset = data->alignment & ~PAGE_MASK; in ceph_msg_data_pages_cursor_init()
943 BUG_ON(length > SIZE_MAX - cursor->page_offset); in ceph_msg_data_pages_cursor_init()
944 cursor->last_piece = cursor->page_offset + cursor->resid <= PAGE_SIZE; in ceph_msg_data_pages_cursor_init()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c681 rx_bi->page_offset, in iavf_clean_rx_ring()
694 rx_bi->page_offset = 0; in iavf_clean_rx_ring()
846 bi->page_offset = iavf_rx_offset(rx_ring); in iavf_alloc_mapped_page()
898 bi->page_offset, in iavf_alloc_rx_buffers()
905 rx_desc->read.pkt_addr = cpu_to_le64(bi->dma + bi->page_offset); in iavf_alloc_rx_buffers()
1140 new_buff->page_offset = old_buff->page_offset; in iavf_reuse_rx_page()
1200 if (rx_buffer->page_offset > IAVF_LAST_OFFSET) in iavf_can_reuse_rx_page()
1243 rx_buffer->page_offset, size, truesize); in iavf_add_rx_frag()
1247 rx_buffer->page_offset ^= truesize; in iavf_add_rx_frag()
1249 rx_buffer->page_offset += truesize; in iavf_add_rx_frag()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dsrq_cmd.c17 u32 page_offset = in->page_offset; in get_pas_size() local
21 u32 rq_sz_po = rq_sz + (page_offset * po_quanta); in get_pas_size()
34 MLX5_SET(wq, wq, page_offset, in->page_offset); in set_wq()
47 MLX5_SET(srqc, srqc, page_offset, in->page_offset); in set_srqc()
62 in->page_offset = MLX5_GET(wq, wq, page_offset); in get_wq()
75 in->page_offset = MLX5_GET(srqc, srqc, page_offset); in get_srqc()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Drx.c59 return page_address(buf->page) + buf->page_offset; in ef4_rx_buf_va()
157 unsigned int page_offset; in ef4_init_rx_buffers() local
188 page_offset = sizeof(struct ef4_rx_page_state); in ef4_init_rx_buffers()
195 rx_buf->page_offset = page_offset + efx->rx_ip_align; in ef4_init_rx_buffers()
201 page_offset += efx->rx_page_buf_step; in ef4_init_rx_buffers()
202 } while (page_offset + efx->rx_page_buf_step <= PAGE_SIZE); in ef4_init_rx_buffers()
454 rx_buf->page, rx_buf->page_offset, in ef4_rx_packet_gro()
499 rx_buf->page_offset += hdr_len; in ef4_rx_mk_skb()
504 rx_buf->page, rx_buf->page_offset, in ef4_rx_mk_skb()
586 rx_buf->page_offset += efx->rx_prefix_size; in ef4_rx_packet()
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/
Dpanfrost_mmu.c400 pgoff_t page_offset; in panfrost_mmu_map_fault_addr() local
419 page_offset = addr >> PAGE_SHIFT; in panfrost_mmu_map_fault_addr()
420 page_offset -= bomapping->mmnode.start; in panfrost_mmu_map_fault_addr()
446 if (pages[page_offset]) { in panfrost_mmu_map_fault_addr()
456 for (i = page_offset; i < page_offset + NUM_FAULT_PAGES; i++) { in panfrost_mmu_map_fault_addr()
467 sgt = &bo->sgts[page_offset / (SZ_2M / PAGE_SIZE)]; in panfrost_mmu_map_fault_addr()
468 ret = sg_alloc_table_from_pages(sgt, pages + page_offset, in panfrost_mmu_map_fault_addr()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/primitives/
Dload_unaligned_zeropad.c102 static int do_one_test(char *p, int page_offset) in do_one_test() argument
114 …printf("offset %u load_unaligned_zeropad returned 0x%lx, should be 0x%lx\n", page_offset, got, sho… in do_one_test()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c70 frag->page_offset = priv->rx_headroom; in mlx4_alloc_page()
89 frags->page_offset); in mlx4_en_alloc_frags()
148 frags->page_offset = XDP_PACKET_HEADROOM; in mlx4_en_prepare_rx_desc()
488 dma_sync_single_range_for_cpu(priv->ddev, dma, frags->page_offset, in mlx4_en_complete_rx_desc()
491 __skb_fill_page_desc(skb, nr, page, frags->page_offset, in mlx4_en_complete_rx_desc()
496 frags->page_offset ^= PAGE_SIZE / 2; in mlx4_en_complete_rx_desc()
507 frags->page_offset += sz_align; in mlx4_en_complete_rx_desc()
508 release = frags->page_offset + frag_info->frag_size > PAGE_SIZE; in mlx4_en_complete_rx_desc()
707 va = page_address(frags[0].page) + frags[0].page_offset; in mlx4_en_process_rx_cq()
736 dma = frags[0].dma + frags[0].page_offset; in mlx4_en_process_rx_cq()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Drx_common.h23 return page_address(buf->page) + buf->page_offset; in efx_rx_buf_va()
57 unsigned int page_offset,
/kernel/linux/linux-5.10/fs/ocfs2/
Dmmap.c55 loff_t pos = page_offset(page); in __ocfs2_page_mkwrite()
79 (page_offset(page) >= size)) in __ocfs2_page_mkwrite()

12345678