Home
last modified time | relevance | path

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

/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_cq.c91 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
96 err = mlx4_en_map_buffer(&cq->wqres.buf); in mlx4_en_create_cq()
100 cq->buf = (struct mlx4_cqe *)cq->wqres.buf.direct.buf; in mlx4_en_create_cq()
106 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_create_cq()
122 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
123 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
157 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, in mlx4_en_activate_cq()
158 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq()
189 mlx4_en_unmap_buffer(&cq->wqres.buf); in mlx4_en_destroy_cq()
190 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
H A Dmlx4_en_tx.c126 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size, in mlx4_en_create_tx_ring()
133 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
139 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_tx_ring()
143 ring->buf_size, (unsigned long long) ring->wqres.buf.direct.map); in mlx4_en_create_tx_ring()
175 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
177 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_tx_ring()
203 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_tx_ring()
204 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_destroy_tx_ring()
238 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, &ring->context, in mlx4_en_activate_tx_ring()
H A Dmlx4_en_rx.c252 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db()
432 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, in mlx4_en_create_rx_ring()
437 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_rx_ring()
442 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring()
447 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
553 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_rx_ring()
554 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * sizeof(struct mlx4_en_rx_desc) + TXBB_SIZE); in mlx4_en_destroy_rx_ring()
946 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp()
955 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
H A Den.h280 struct mlx4_hwq_resources wqres; member
334 struct mlx4_hwq_resources wqres; member
392 struct mlx4_hwq_resources wqres; member
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_alloc.c790 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_alloc_hwq_res() argument
795 err = mlx4_db_alloc(dev, &wqres->db, 1, GFP_KERNEL); in mlx4_alloc_hwq_res()
799 *wqres->db.db = 0; in mlx4_alloc_hwq_res()
801 err = mlx4_buf_alloc(dev, size, max_direct, &wqres->buf, GFP_KERNEL); in mlx4_alloc_hwq_res()
805 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
806 &wqres->mtt); in mlx4_alloc_hwq_res()
810 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf, GFP_KERNEL); in mlx4_alloc_hwq_res()
817 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_alloc_hwq_res()
819 mlx4_buf_free(dev, size, &wqres->buf); in mlx4_alloc_hwq_res()
821 mlx4_db_free(dev, &wqres->db); in mlx4_alloc_hwq_res()
[all …]
/freebsd/sys/dev/mlx4/
H A Ddevice.h1116 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
1118 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,