Home
last modified time | relevance | path

Searched refs:page_off (Results 1 – 18 of 18) sorted by relevance

/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_rw.c437 unsigned int sge_no, sge_bytes, page_off, page_no; in svc_rdma_pagelist_to_sg() local
442 page_off = info->wi_next_off + xdr->page_base; in svc_rdma_pagelist_to_sg()
443 page_no = page_off >> PAGE_SHIFT; in svc_rdma_pagelist_to_sg()
444 page_off = offset_in_page(page_off); in svc_rdma_pagelist_to_sg()
451 PAGE_SIZE - page_off); in svc_rdma_pagelist_to_sg()
452 sg_set_page(sg, *page, sge_bytes, page_off); in svc_rdma_pagelist_to_sg()
456 page_off = 0; in svc_rdma_pagelist_to_sg()
/linux/drivers/mtd/nand/raw/
H A Drenesas-nand-controller.c494 unsigned int page_off = round_down(req_offset, chip->ecc.size); in rnandc_read_subpage_hw_ecc() local
495 unsigned int real_len = round_up(req_offset + req_len - page_off, in rnandc_read_subpage_hw_ecc()
497 unsigned int start_chunk = page_off / chip->ecc.size; in rnandc_read_subpage_hw_ecc()
505 .addr0_col = page_off, in rnandc_read_subpage_hw_ecc()
525 ioread32_rep(rnandc->regs + FIFO_DATA_REG, bufpoi + page_off, in rnandc_read_subpage_hw_ecc()
637 unsigned int page_off = round_down(req_offset, chip->ecc.size); in rnandc_write_subpage_hw_ecc() local
638 unsigned int real_len = round_up(req_offset + req_len - page_off, in rnandc_write_subpage_hw_ecc()
640 unsigned int start_chunk = page_off / chip->ecc.size; in rnandc_write_subpage_hw_ecc()
647 .addr0_col = page_off, in rnandc_write_subpage_hw_ecc()
662 iowrite32_rep(rnandc->regs + FIFO_DATA_REG, bufpoi + page_off, in rnandc_write_subpage_hw_ecc()
/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port_common.c1000 unsigned int page_off; in efx_siena_mcdi_phy_get_module_eeprom() local
1021 page_off = ee->offset % SFP_PAGE_SIZE; in efx_siena_mcdi_phy_get_module_eeprom()
1026 data, page_off, in efx_siena_mcdi_phy_get_module_eeprom()
1032 page_off = 0; in efx_siena_mcdi_phy_get_module_eeprom()
1037 int intended_size = SFP_PAGE_SIZE - page_off; in efx_siena_mcdi_phy_get_module_eeprom()
1045 page_off = 0; in efx_siena_mcdi_phy_get_module_eeprom()
/linux/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.c994 unsigned int page_off; in efx_mcdi_phy_get_module_eeprom() local
1015 page_off = ee->offset % SFP_PAGE_SIZE; in efx_mcdi_phy_get_module_eeprom()
1020 data, page_off, in efx_mcdi_phy_get_module_eeprom()
1026 page_off = 0; in efx_mcdi_phy_get_module_eeprom()
1031 int intended_size = SFP_PAGE_SIZE - page_off; in efx_mcdi_phy_get_module_eeprom()
1039 page_off = 0; in efx_mcdi_phy_get_module_eeprom()
/linux/fs/ceph/
H A Daddr.c397 size_t page_off; in ceph_netfs_issue_read() local
399 err = iov_iter_get_pages_alloc2(&subreq->io_iter, &pages, len, &page_off); in ceph_netfs_issue_read()
407 WARN_ON_ONCE(page_off); in ceph_netfs_issue_read()
672 loff_t page_off = page_offset(page); in writepage_nounlock() local
708 if (page_off >= ceph_wbc.i_size) { in writepage_nounlock()
715 if (ceph_wbc.i_size < page_off + len) in writepage_nounlock()
716 len = ceph_wbc.i_size - page_off; in writepage_nounlock()
720 ceph_vinop(inode), page, page->index, page_off, wlen, snapc, in writepage_nounlock()
728 page_off, &wlen, 0, 1, CEPH_OSD_OP_WRITE, in writepage_nounlock()
743 ceph_fscache_write_to_cache(inode, page_off, len, caching); in writepage_nounlock()
[all …]
H A Dfile.c1087 size_t page_off; in __ceph_sync_read() local
1130 page_off = offset_in_page(off); in __ceph_sync_read()
1199 int zoff = page_off + ret; in __ceph_sync_read()
1215 plen = min_t(size_t, left, PAGE_SIZE - page_off); in __ceph_sync_read()
1218 page_off, plen, to); in __ceph_sync_read()
1221 page_off = 0; in __ceph_sync_read()
/linux/fs/ntfs3/
H A Dfslog.c1147 u32 page_off = vbo & log->page_mask; in read_log_page() local
1148 u32 bytes = log->page_size - page_off; in read_log_page()
1165 page_buf = page_off ? log->one_page_buf : *buffer; in read_log_page()
1176 memcpy(*buffer, Add2Ptr(page_buf, page_off), bytes); in read_log_page()
1427 u32 page_off = base_vbo & log->page_mask; in final_log_off() local
1428 u32 tail = log->page_size - page_off; in final_log_off()
1430 page_off -= 1; in final_log_off()
1442 page_off = log->data_off - 1; in final_log_off()
1461 return final_log_off + data_len + page_off; in final_log_off()
1605 u32 page_off = 0, page_off1 = 0, saved_off = 0; in last_log_lsn() local
[all …]
H A Dfile.c264 loff_t page_off; in ntfs_zero_range() local
272 page_off = (loff_t)idx << PAGE_SHIFT; in ntfs_zero_range()
273 to = (page_off + PAGE_SIZE) > vbo_to ? (vbo_to - page_off) : in ntfs_zero_range()
275 iblock = page_off >> inode->i_blkbits; in ntfs_zero_range()
/linux/include/xen/interface/
H A Dgrant_table.h214 uint16_t page_off; member
/linux/drivers/target/iscsi/cxgbit/
H A Dcxgbit_target.c347 unsigned int page_off; in cxgbit_map_skb() local
356 page_off = (data_offset % PAGE_SIZE); in cxgbit_map_skb()
359 u32 cur_len = min_t(u32, data_length, sg->length - page_off); in cxgbit_map_skb()
364 skb_fill_page_desc(skb, i, page, sg->offset + page_off, in cxgbit_map_skb()
371 page_off = 0; in cxgbit_map_skb()
/linux/drivers/target/iscsi/
H A Discsi_target.c895 unsigned int page_off; in iscsit_map_iovec() local
911 page_off = (data_offset % PAGE_SIZE); in iscsit_map_iovec()
914 cmd->first_data_sg_off = page_off; in iscsit_map_iovec()
922 cur_len = min_t(u32, data_length, sg->length - page_off); in iscsit_map_iovec()
924 iov[i].iov_base = kmap(sg_page(sg)) + sg->offset + page_off; in iscsit_map_iovec()
928 page_off = 0; in iscsit_map_iovec()
1417 unsigned int page_off; in iscsit_do_crypto_hash_sg() local
1422 page_off = cmd->first_data_sg_off; in iscsit_do_crypto_hash_sg()
1424 if (data_length && page_off) { in iscsit_do_crypto_hash_sg()
1426 u32 len = min_t(u32, data_length, sg->length - page_off); in iscsit_do_crypto_hash_sg()
[all …]
/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c501 u32 page_off; in hl_mmu_pa_page_with_offset() local
515 div_u64_rem(abs_virt_addr, dram_page_size, &page_off); in hl_mmu_pa_page_with_offset()
517 *phys_addr = page_start + page_off + dram_base; in hl_mmu_pa_page_with_offset()
/linux/kernel/power/
H A Dswap.c270 static int hib_submit_io(blk_opf_t opf, pgoff_t page_off, void *addr, in hib_submit_io() argument
279 bio->bi_iter.bi_sector = page_off * (PAGE_SIZE >> 9); in hib_submit_io()
/linux/drivers/net/
H A Dvirtio_net.c1808 int page_off, in xdp_linearize_page() argument
1814 if (page_off + *len + tailroom > PAGE_SIZE) in xdp_linearize_page()
1821 memcpy(page_address(page) + page_off, page_address(p) + offset, *len); in xdp_linearize_page()
1822 page_off += *len; in xdp_linearize_page()
1839 if ((page_off + buflen + tailroom) > PAGE_SIZE) { in xdp_linearize_page()
1844 memcpy(page_address(page) + page_off, in xdp_linearize_page()
1846 page_off += buflen; in xdp_linearize_page()
1851 *len = page_off - XDP_PACKET_HEADROOM; in xdp_linearize_page()
/linux/drivers/infiniband/ulp/isert/
H A Dib_isert.c1122 int rc, sg_nents, sg_off, page_off; in isert_handle_iscsi_dataout() local
1146 page_off = cmd->write_data_done % PAGE_SIZE; in isert_handle_iscsi_dataout()
1150 if (page_off) { in isert_handle_iscsi_dataout()
/linux/fs/btrfs/
H A Dscrub.c656 unsigned int page_off = scrub_stripe_get_page_offset(stripe, i); in scrub_verify_one_metadata() local
658 crypto_shash_update(shash, page_address(page) + page_off, in scrub_verify_one_metadata()
/linux/net/core/
H A Dskbuff.c978 u32 page_off; in skb_pp_cow_data() local
983 page = page_pool_dev_alloc(pool, &page_off, &truesize); in skb_pp_cow_data()
989 skb_add_rx_frag(nskb, i, page, page_off, size, truesize); in skb_pp_cow_data()
990 err = skb_copy_bits(skb, off, page_address(page) + page_off, in skb_pp_cow_data()
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c3387 u32 phy_addr, page_off, size; in tg3_nvram_write_block_unbuffered() local
3400 page_off = offset & pagemask; in tg3_nvram_write_block_unbuffered()
3407 memcpy(tmp + page_off, buf, size); in tg3_nvram_write_block_unbuffered()
3409 offset = offset + (pagesize - page_off); in tg3_nvram_write_block_unbuffered()
3477 u32 page_off, phy_addr, nvram_cmd; in tg3_nvram_write_block_buffered() local
3483 page_off = offset % tp->nvram_pagesize; in tg3_nvram_write_block_buffered()
3489 if (page_off == 0 || i == 0) in tg3_nvram_write_block_buffered()
3491 if (page_off == (tp->nvram_pagesize - 4)) in tg3_nvram_write_block_buffered()