Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c75 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
81 err = mlx4_en_map_buffer(&cq->wqres.buf); in mlx4_en_create_cq()
85 cq->buf = (struct mlx4_cqe *)cq->wqres.buf.direct.buf; in mlx4_en_create_cq()
91 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_create_cq()
107 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
108 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
149 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, in mlx4_en_activate_cq()
150 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq()
182 mlx4_en_unmap_buffer(&cq->wqres.buf); in mlx4_en_destroy_cq()
183 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
Dalloc.c791 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_alloc_hwq_res() argument
796 err = mlx4_db_alloc(dev, &wqres->db, 1, GFP_KERNEL); in mlx4_alloc_hwq_res()
800 *wqres->db.db = 0; in mlx4_alloc_hwq_res()
802 err = mlx4_buf_alloc(dev, size, max_direct, &wqres->buf, GFP_KERNEL); in mlx4_alloc_hwq_res()
806 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
807 &wqres->mtt); in mlx4_alloc_hwq_res()
811 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf, GFP_KERNEL); in mlx4_alloc_hwq_res()
818 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_alloc_hwq_res()
820 mlx4_buf_free(dev, size, &wqres->buf); in mlx4_alloc_hwq_res()
822 mlx4_db_free(dev, &wqres->db); in mlx4_alloc_hwq_res()
[all …]
Den_tx.c96 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size, in mlx4_en_create_tx_ring()
104 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
110 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_tx_ring()
114 (unsigned long long) ring->wqres.buf.direct.map); in mlx4_en_create_tx_ring()
158 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
160 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_tx_ring()
185 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_tx_ring()
186 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_destroy_tx_ring()
218 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, &ring->context, in mlx4_en_activate_tx_ring()
Den_rx.c254 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db()
394 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, in mlx4_en_create_rx_ring()
400 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_rx_ring()
405 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring()
413 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
517 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_rx_ring()
518 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * stride + TXBB_SIZE); in mlx4_en_destroy_rx_ring()
1145 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp()
1157 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
Dmlx4_en.h279 struct mlx4_hwq_resources wqres; member
307 struct mlx4_hwq_resources wqres; member
337 struct mlx4_hwq_resources wqres; member
/linux-4.4.14/include/linux/mlx4/
Ddevice.h1089 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
1091 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,