Lines Matching refs:block_shift
154 u64 block_shift)
160 if ((next_block_start & ((1ULL << block_shift) - 1ULL)) != 0)
166 block_shift = alignment_of(next_block_start);
172 if (((current_block_end) & ((1ULL << block_shift) - 1ULL)) != 0)
177 block_shift = alignment_of(current_block_end);
179 return block_shift;
260 u64 block_shift = MLX4_MAX_MTT_SHIFT;
302 block_shift = min(alignment_of(misalignment_bits),
303 block_shift);
314 block_shift = mlx4_ib_umem_calc_block_mtt
317 block_shift);
323 if (block_shift <= min_shift)
349 total_len += (first_block_start & ((1ULL << block_shift) - 1ULL));
351 last_block_aligned_end = round_up(last_block_end, 1ULL << block_shift);
354 if (total_len & ((1ULL << block_shift) - 1ULL))
356 total_len, block_shift);
358 *num_of_mtts = total_len >> block_shift;
360 if (block_shift < min_shift) {
365 pr_warn("umem_calc_optimal_mtt_size - unexpected shift %lld\n", block_shift);
367 block_shift = min_shift;
369 return block_shift;