Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx4/
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()
139 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, in mlx4_en_activate_cq()
140 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq()
141 cq->vector, 0, timestamp_en, &cq->wqres.buf, false); in mlx4_en_activate_cq()
178 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
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 …]
Den_rx.c164 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db()
302 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
307 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring()
443 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * stride + TXBB_SIZE); in mlx4_en_destroy_rx_ring()
1083 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp()
1095 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
Dmlx4_en.h322 struct mlx4_hwq_resources wqres; member
356 struct mlx4_hwq_resources wqres; member