Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A 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()
265 return (u32)wq->fbc.sz_m1 + 1; in mlx5_wq_ll_get_size()
270 return wq->cur_sz == wq->fbc.sz_m1; in mlx5_wq_ll_is_full()
280 return wq->fbc.sz_m1 - wq->cur_sz; in mlx5_wq_ll_missing()
H A Dwq.c202 for (i = 0; i < wq->fbc.sz_m1; i++) { in mlx5_wq_ll_init_list()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A 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()
/openbmc/linux/include/linux/mlx5/
H A Ddriver.h349 u32 sz_m1; member
942 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_init_fbc_offset()
971 return min_t(u32, last_frag_stride_idx - fbc->strides_offset, fbc->sz_m1); in mlx5_frag_buf_get_idx_last_contig_stride()
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dqp.c155 wqe_index = wqe_index & qp->sq.fbc.sz_m1; in mlx5_ib_read_kernel_wqe_sq()
174 wqe_index = (wqe_index + 1) & qp->sq.fbc.sz_m1; in mlx5_ib_read_kernel_wqe_sq()