Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_cq.c72 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
78 cq->buf = (struct mlx4_cqe *)cq->wqres.buf.direct.buf; in mlx4_en_create_cq()
98 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
99 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
140 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, in mlx4_en_activate_cq()
141 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq()
142 cq->vector, 0, timestamp_en, &cq->wqres.buf, false); in mlx4_en_activate_cq()
184 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
H A Dalloc.c774 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_alloc_hwq_res() argument
779 err = mlx4_db_alloc(dev, &wqres->db, 1); in mlx4_alloc_hwq_res()
783 *wqres->db.db = 0; in mlx4_alloc_hwq_res()
785 err = mlx4_buf_direct_alloc(dev, size, &wqres->buf); in mlx4_alloc_hwq_res()
789 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
790 &wqres->mtt); in mlx4_alloc_hwq_res()
794 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf); in mlx4_alloc_hwq_res()
801 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_alloc_hwq_res()
803 mlx4_buf_free(dev, size, &wqres->buf); in mlx4_alloc_hwq_res()
805 mlx4_db_free(dev, &wqres->db); in mlx4_alloc_hwq_res()
[all …]
H A Den_rx.c167 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db()
305 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
310 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring()
446 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * stride + TXBB_SIZE); in mlx4_en_destroy_rx_ring()
1139 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp()
1151 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
H A Dmlx4_en.h331 struct mlx4_hwq_resources wqres; member
366 struct mlx4_hwq_resources wqres; member
/linux/include/linux/mlx4/
H A Ddevice.h1141 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
1143 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,