• Home
  • Raw
  • Download

Lines Matching refs:bcnt

671 			     u64 user_va, size_t bcnt, u32 *bytes_mapped,  in pagefault_real_mr()  argument
691 np = ib_umem_odp_map_dma_and_lock(odp, user_va, bcnt, access_mask, fault); in pagefault_real_mr()
713 *bytes_mapped += min_t(u32, new_mappings, bcnt); in pagefault_real_mr()
724 size_t bcnt, u32 *bytes_mapped, u32 flags) in pagefault_implicit_mr() argument
726 unsigned long end_idx = (user_va + bcnt - 1) >> MLX5_IMR_MTT_SHIFT; in pagefault_implicit_mr()
734 mlx5_imr_ksm_entries * MLX5_IMR_MTT_SIZE - user_va < bcnt)) in pagefault_implicit_mr()
738 while (bcnt) { in pagefault_implicit_mr()
756 len = min_t(u64, user_va + bcnt, ib_umem_end(umem_odp)) - in pagefault_implicit_mr()
764 bcnt -= len; in pagefault_implicit_mr()
809 static int pagefault_mr(struct mlx5_ib_mr *mr, u64 io_virt, size_t bcnt, in pagefault_mr() argument
825 ib_umem_end(odp) - user_va < bcnt)) in pagefault_mr()
827 return pagefault_real_mr(mr, odp, user_va, bcnt, bytes_mapped, in pagefault_mr()
830 return pagefault_implicit_mr(mr, odp, io_virt, bcnt, bytes_mapped, in pagefault_mr()
852 size_t bcnt; member
893 u64 io_virt, size_t bcnt, in pagefault_single_data_segment() argument
909 bcnt -= *bytes_committed; in pagefault_single_data_segment()
919 *bytes_mapped += bcnt; in pagefault_single_data_segment()
938 ret = pagefault_mr(mr, io_virt, bcnt, bytes_mapped, 0); in pagefault_single_data_segment()
981 for (i = 0; bcnt && i < ndescs; i++, pklm++) { in pagefault_single_data_segment()
995 frame->bcnt = min_t(size_t, bcnt, in pagefault_single_data_segment()
1001 bcnt -= frame->bcnt; in pagefault_single_data_segment()
1018 bcnt = frame->bcnt; in pagefault_single_data_segment()
1065 size_t bcnt; in pagefault_data_segments() local
1080 bcnt = byte_count & ~MLX5_INLINE_SEG; in pagefault_data_segments()
1083 bcnt = bcnt & MLX5_WQE_INLINE_SEG_BYTE_COUNT_MASK; in pagefault_data_segments()
1084 wqe += ALIGN(sizeof(struct mlx5_wqe_inline_seg) + bcnt, in pagefault_data_segments()
1091 if (receive_queue && bcnt == 0 && key == MLX5_INVALID_LKEY && in pagefault_data_segments()
1096 *total_wqe_bytes += bcnt - min_t(size_t, bcnt, in pagefault_data_segments()
1101 if (bcnt == 0) in pagefault_data_segments()
1102 bcnt = 1U << 31; in pagefault_data_segments()
1104 if (inline_segment || bcnt <= pfault->bytes_committed) { in pagefault_data_segments()
1106 min_t(size_t, bcnt, in pagefault_data_segments()
1112 io_virt, bcnt, in pagefault_data_segments()