Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c59 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
64 err = mlx4_en_map_buffer(&cq->wqres.buf); in mlx4_en_create_cq()
66 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_create_cq()
68 cq->buf = (struct mlx4_cqe *) cq->wqres.buf.direct.buf; in mlx4_en_create_cq()
81 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
82 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
118 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, &mdev->priv_uar, in mlx4_en_activate_cq()
119 cq->wqres.db.dma, &cq->mcq, cq->vector, 0); in mlx4_en_activate_cq()
142 mlx4_en_unmap_buffer(&cq->wqres.buf); in mlx4_en_destroy_cq()
143 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
Dalloc.c371 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_alloc_hwq_res() argument
376 err = mlx4_db_alloc(dev, &wqres->db, 1); in mlx4_alloc_hwq_res()
380 *wqres->db.db = 0; in mlx4_alloc_hwq_res()
382 err = mlx4_buf_alloc(dev, size, max_direct, &wqres->buf); in mlx4_alloc_hwq_res()
386 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
387 &wqres->mtt); in mlx4_alloc_hwq_res()
391 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf); in mlx4_alloc_hwq_res()
398 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_alloc_hwq_res()
400 mlx4_buf_free(dev, size, &wqres->buf); in mlx4_alloc_hwq_res()
402 mlx4_db_free(dev, &wqres->db); in mlx4_alloc_hwq_res()
[all …]
Den_tx.c87 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size, in mlx4_en_create_tx_ring()
94 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
100 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_tx_ring()
104 ring->buf_size, (unsigned long long) ring->wqres.buf.direct.map); in mlx4_en_create_tx_ring()
126 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
128 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_tx_ring()
149 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_tx_ring()
150 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_destroy_tx_ring()
181 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, &ring->context, in mlx4_en_activate_tx_ring()
Den_rx.c181 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db()
292 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, in mlx4_en_create_rx_ring()
297 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_rx_ring()
302 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring()
307 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
388 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_rx_ring()
389 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * stride + TXBB_SIZE); in mlx4_en_destroy_rx_ring()
827 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp()
836 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
Dmlx4_en.h231 struct mlx4_hwq_resources wqres; member
265 struct mlx4_hwq_resources wqres; member
302 struct mlx4_hwq_resources wqres; member
/linux-3.4.99/include/linux/mlx4/
Ddevice.h582 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
584 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,