Home
last modified time | relevance | path

Searched refs:sz_m1 (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dwq.h102 return (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_cyc_get_size()
144 return ctr & wq->fbc.sz_m1; in mlx5_wq_cyc_ctr2ix()
182 return wq->fbc.sz_m1 + 1; in mlx5_cqwq_get_size()
192 return ctr & wq->fbc.sz_m1; in mlx5_cqwq_ctr2ix()
248 return (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_ll_get_size()
253 return wq->cur_sz == wq->fbc.sz_m1; in mlx5_wq_ll_is_full()
263 return wq->fbc.sz_m1 - wq->cur_sz; in mlx5_wq_ll_missing()
Dwq.c202 for (i = 0; i < wq->fbc.sz_m1; i++) { in mlx5_wq_ll_init_list()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Deq.h53 return eq->fbc.sz_m1 + 1; in eq_get_size()
63 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & eq->fbc.sz_m1); in next_eqe_sw()
/linux-6.1.9/include/linux/mlx5/
Ddriver.h341 u32 sz_m1; member
930 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_init_fbc_offset()
959 return min_t(u32, last_frag_stride_idx - fbc->strides_offset, fbc->sz_m1); in mlx5_frag_buf_get_idx_last_contig_stride()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dqp.c143 wqe_index = wqe_index & qp->sq.fbc.sz_m1; in mlx5_ib_read_kernel_wqe_sq()
162 wqe_index = (wqe_index + 1) & qp->sq.fbc.sz_m1; in mlx5_ib_read_kernel_wqe_sq()