/openbmc/linux/net/sunrpc/ |
H A D | xdr.c | 138 if (!buf->page_len) in xdr_buf_pagecount() 140 return (buf->page_base + buf->page_len + PAGE_SIZE - 1) >> PAGE_SHIFT; in xdr_buf_pagecount() 187 if (xdr->page_len) { in xdr_buf_to_bvec() 192 remaining = xdr->page_len; in xdr_buf_to_bvec() 239 xdr->page_len = len; in xdr_inline_pages() 500 if (pgbase >= buf->page_len) { in xdr_buf_pages_zero() 501 xdr_buf_iov_zero(buf->tail, pgbase - buf->page_len, len); in xdr_buf_pages_zero() 504 if (pgbase + len > buf->page_len) { in xdr_buf_pages_zero() 505 xdr_buf_iov_zero(buf->tail, 0, pgbase + len - buf->page_len); in xdr_buf_pages_zero() 506 len = buf->page_len - pgbase; in xdr_buf_pages_zero() [all …]
|
H A D | socklib.c | 93 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb() 225 xdr->page_len + xdr->page_base); in xprt_send_pagedata() 299 if (base < xdr->page_len) { in xprt_sock_sendmsg() 300 unsigned int len = xdr->page_len - base; in xprt_sock_sendmsg() 311 base -= xdr->page_len; in xprt_sock_sendmsg()
|
H A D | svc_xprt.c | 550 rqstp->rq_res.page_len = 0; in svc_xprt_release() 692 arg->page_len = (pages-2)*PAGE_SIZE; in svc_alloc_arg() 914 xb->page_len + in svc_send() 1187 if (rqstp->rq_arg.page_len || !test_bit(RQ_USEDEFERRAL, &rqstp->rq_flags)) in svc_defer() 1237 rqstp->rq_arg.page_len = 0; in svc_deferred_recv()
|
H A D | svc.c | 1529 rqstp->rq_res.page_len = 0; in svc_process() 1586 rqstp->rq_arg.page_len = 0; in bc_svc_process() 1588 rqstp->rq_arg.page_len) in bc_svc_process() 1589 rqstp->rq_arg.page_len = rqstp->rq_arg.len - in bc_svc_process() 1593 rqstp->rq_arg.page_len; in bc_svc_process()
|
H A D | svcsock.c | 641 rqstp->rq_arg.page_len = 0; in svc_udp_recvfrom() 644 rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len; in svc_udp_recvfrom() 646 DIV_ROUND_UP(rqstp->rq_arg.page_len, PAGE_SIZE); in svc_udp_recvfrom() 1151 rqstp->rq_arg.page_len = 0; in svc_tcp_recvfrom() 1153 rqstp->rq_arg.page_len = rqstp->rq_arg.len - rqstp->rq_arg.head[0].iov_len; in svc_tcp_recvfrom()
|
H A D | backchannel_rqst.c | 58 buf->page_len = 0; in xprt_bc_reinit_xdr_buf()
|
/openbmc/linux/drivers/vfio/pci/pds/ |
H A D | lm.c | 203 size_t page_len; in pds_vfio_save_read() local 215 page_len = min_t(size_t, len, PAGE_SIZE - page_offset); in pds_vfio_save_read() 217 err = copy_to_user(buf, from_buff + page_offset, page_len); in pds_vfio_save_read() 223 *pos += page_len; in pds_vfio_save_read() 224 len -= page_len; in pds_vfio_save_read() 225 done += page_len; in pds_vfio_save_read() 226 buf += page_len; in pds_vfio_save_read() 302 size_t page_len; in pds_vfio_restore_write() local 314 page_len = min_t(size_t, len, PAGE_SIZE - page_offset); in pds_vfio_restore_write() 316 err = copy_from_user(to_buff + page_offset, buf, page_len); in pds_vfio_restore_write() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-mt7621.c | 132 static int mtk_i2c_master_cmd(struct mtk_i2c *i2c, u32 cmd, int page_len) in mtk_i2c_master_cmd() argument 134 iowrite32(cmd | SM0CTL1_TRI | SM0CTL1_PGLEN(page_len), in mtk_i2c_master_cmd() 145 int i, j, ret, len, page_len; in mtk_i2c_master_xfer() local 193 page_len = (len >= 8) ? 8 : len; in mtk_i2c_master_xfer() 199 memcpy(data, &pmsg->buf[j], page_len); in mtk_i2c_master_xfer() 205 ret = mtk_i2c_master_cmd(i2c, cmd, page_len); in mtk_i2c_master_xfer() 212 memcpy(&pmsg->buf[j], data, page_len); in mtk_i2c_master_xfer() 216 (1 << page_len) in mtk_i2c_master_xfer()
|
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | main.c | 173 size_t page_len; in mlx5vf_buf_read() local 183 page_len = min_t(size_t, copy_len, PAGE_SIZE - page_offset); in mlx5vf_buf_read() 185 ret = copy_to_user(*buf, from_buff + page_offset, page_len); in mlx5vf_buf_read() 189 *pos += page_len; in mlx5vf_buf_read() 190 *len -= page_len; in mlx5vf_buf_read() 191 *buf += page_len; in mlx5vf_buf_read() 192 done += page_len; in mlx5vf_buf_read() 193 copy_len -= page_len; in mlx5vf_buf_read() 616 size_t page_len; in mlx5vf_append_page_to_mig_buf() local 626 page_len = min_t(size_t, *len, PAGE_SIZE - page_offset); in mlx5vf_append_page_to_mig_buf() [all …]
|
/openbmc/linux/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_rw.c | 589 if (xdr->page_len) { in svc_rdma_xb_write() 591 xdr->page_len); in svc_rdma_xb_write() 816 unsigned int page_len; in svc_rdma_copy_inline_range() local 818 page_len = min_t(unsigned int, remaining, in svc_rdma_copy_inline_range() 825 memcpy(dst + info->ri_pageno, src + offset, page_len); in svc_rdma_copy_inline_range() 827 info->ri_totalbytes += page_len; in svc_rdma_copy_inline_range() 828 info->ri_pageoff += page_len; in svc_rdma_copy_inline_range() 833 remaining -= page_len; in svc_rdma_copy_inline_range() 834 offset += page_len; in svc_rdma_copy_inline_range() 898 buf->page_len = info->ri_totalbytes - buf->head[0].iov_len; in svc_rdma_read_multiple_chunks() [all …]
|
H A D | rpc_rdma.c | 136 if (xdr->page_len) { in rpcrdma_args_inline() 137 remaining = xdr->page_len; in rpcrdma_args_inline() 189 len = buf->page_len; in rpcrdma_alloc_sparse_pages() 240 len = xdrbuf->page_len; in rpcrdma_convert_iovs() 435 if (xdr_pad_size(rqst->rq_rcv_buf.page_len)) { in rpcrdma_encode_write_list() 607 remaining = xdr->page_len; in rpcrdma_prepare_pagelist() 669 dst += xdr->head[0].iov_len + xdr->page_len; in rpcrdma_pullup_tail_iov() 688 remaining = xdr->page_len; in rpcrdma_pullup_pagelist() 719 if (unlikely(xdr->page_len)) in rpcrdma_prepare_noch_pullup() 734 if (xdr->page_len) in rpcrdma_prepare_noch_mapped() [all …]
|
H A D | svc_rdma_sendto.c | 594 remaining = xdr->page_len; in svc_rdma_xb_dma_map() 638 remaining = xdr->page_len; in svc_rdma_xb_count_sges() 708 remaining = xdr->page_len; in svc_rdma_xb_linearize()
|
/openbmc/linux/drivers/scsi/device_handler/ |
H A D | scsi_dh_rdac.c | 85 u8 page_len; member 98 u8 page_len[2]; member 109 u8 page_len; member 124 u8 page_len; member 137 u8 page_len; member 175 u8 page_len; member 282 rdac_pg->page_len[0] = 0x01; in rdac_failover_get() 283 rdac_pg->page_len[1] = 0x28; in rdac_failover_get() 293 rdac_pg->page_len = 0x68; in rdac_failover_get()
|
/openbmc/linux/include/trace/events/ |
H A D | sunrpc.h | 68 __field(unsigned int, page_len) 81 __entry->page_len = xdr->page_len; 89 __entry->page_len, __entry->page_base, 682 __field(unsigned int, page_len) 712 __entry->page_len = xdr->buf->page_len, 724 __entry->page_len, 749 __field(unsigned int, page_len) 771 __entry->page_len = xdr->buf->page_len, 783 __entry->page_len, 1586 __field(unsigned int, page_len) [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/nx-gzip/ |
H A D | gzip_vas.c | 289 int nxu_touch_pages(void *buf, long buf_len, long page_len, int wr) in nxu_touch_pages() argument 307 begin = begin + page_len; in nxu_touch_pages()
|
/openbmc/linux/drivers/target/ |
H A D | target_core_pscsi.c | 219 int ident_len, page_len, off = 4, ret; in pscsi_get_inquiry_vpd_device_ident() local 237 page_len = get_unaligned_be16(&buf[2]); in pscsi_get_inquiry_vpd_device_ident() 238 while (page_len > 0) { in pscsi_get_inquiry_vpd_device_ident() 262 page_len -= (ident_len + 4); in pscsi_get_inquiry_vpd_device_ident() 268 page_len -= (ident_len + 4); in pscsi_get_inquiry_vpd_device_ident() 275 page_len -= (ident_len + 4); in pscsi_get_inquiry_vpd_device_ident()
|
/openbmc/linux/mm/ |
H A D | page_reporting.c | 152 unsigned int page_len = PAGE_SIZE << order; in page_reporting_cycle() local 208 sg_set_page(&sgl[*offset], page, page_len, 0); in page_reporting_cycle()
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_fc.h | 568 u32 page_len:8; member 600 u32 page_len:8; member 759 u32 page_len:8; member 775 u32 page_len:8; member
|
H A D | bfa_fcbuild.c | 672 tprlo_acc->page_len = 0x10; in fc_tprlo_acc_build() 695 prlo_acc->page_len = 0x10; in fc_prlo_acc_build() 855 prlo->page_len = 0x10; in fc_prlo_build() 879 tprlo->page_len = 0x10; in fc_tprlo_build()
|
/openbmc/linux/include/linux/sunrpc/ |
H A D | svc.h | 475 WARN_ON(buf->len != buf->head->iov_len + buf->page_len + buf->tail->iov_len); in svcxdr_init_decode() 476 buf->len = buf->head->iov_len + buf->page_len + buf->tail->iov_len; in svcxdr_init_decode()
|
H A D | xdr.h | 63 page_len, /* Length of page data */ member 80 buf->page_len = 0; in xdr_buf_init()
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_rpc_xdr.h | 126 unsigned int page_len; /* Length of page data */ member
|
H A D | gss_rpc_xdr.c | 53 *p = cpu_to_be32(in->page_len); in gssx_enc_in_token() 56 xdr_write_pages(xdr, in->pages, in->page_base, in->page_len); in gssx_enc_in_token()
|
/openbmc/qemu/hw/scsi/ |
H A D | scsi-generic.c | 566 uint8_t page_len; in scsi_generic_set_vpd_bl_emulation() local 588 page_len = buf[3]; in scsi_generic_set_vpd_bl_emulation() 589 for (i = 4; i < MIN(sizeof(buf), page_len + 4); i++) { in scsi_generic_set_vpd_bl_emulation()
|
H A D | scsi-disk.c | 1600 int page, subpage, page_len; in mode_select_pages() local 1609 page_len = lduw_be_p(&p[2]); in mode_select_pages() 1617 page_len = p[1]; in mode_select_pages() 1625 if (page_len > len) { in mode_select_pages() 1629 trace_scsi_disk_mode_select_page_truncated(page, page_len, len); in mode_select_pages() 1633 if (scsi_disk_check_mode_select(s, page, p, page_len) < 0) { in mode_select_pages() 1640 p += page_len; in mode_select_pages() 1641 len -= page_len; in mode_select_pages()
|