Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/net/mlx4/
Den_cq.c63 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
68 err = mlx4_en_map_buffer(&cq->wqres.buf); in mlx4_en_create_cq()
70 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_create_cq()
72 cq->buf = (struct mlx4_cqe *) cq->wqres.buf.direct.buf; in mlx4_en_create_cq()
84 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
85 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
116 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, &mdev->priv_uar, in mlx4_en_activate_cq()
117 cq->wqres.db.dma, &cq->mcq, cq->vector, cq->is_tx); in mlx4_en_activate_cq()
141 mlx4_en_unmap_buffer(&cq->wqres.buf); in mlx4_en_destroy_cq()
142 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
Dalloc.c370 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_alloc_hwq_res() argument
375 err = mlx4_db_alloc(dev, &wqres->db, 1); in mlx4_alloc_hwq_res()
379 *wqres->db.db = 0; in mlx4_alloc_hwq_res()
381 err = mlx4_buf_alloc(dev, size, max_direct, &wqres->buf); in mlx4_alloc_hwq_res()
385 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
386 &wqres->mtt); in mlx4_alloc_hwq_res()
390 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf); in mlx4_alloc_hwq_res()
397 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_alloc_hwq_res()
399 mlx4_buf_free(dev, size, &wqres->buf); in mlx4_alloc_hwq_res()
401 mlx4_db_free(dev, &wqres->db); in mlx4_alloc_hwq_res()
[all …]
Den_tx.c88 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size, in mlx4_en_create_tx_ring()
95 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
101 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_tx_ring()
105 ring->buf_size, (unsigned long long) ring->wqres.buf.direct.map); in mlx4_en_create_tx_ring()
127 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_create_tx_ring()
129 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_tx_ring()
150 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_tx_ring()
151 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_destroy_tx_ring()
182 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, &ring->context, in mlx4_en_activate_tx_ring()
Den_rx.c178 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db()
291 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, in mlx4_en_create_rx_ring()
296 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_rx_ring()
301 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring()
306 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
387 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_rx_ring()
388 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size + TXBB_SIZE); in mlx4_en_destroy_rx_ring()
805 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp()
807 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
Dmlx4_en.h228 struct mlx4_hwq_resources wqres; member
261 struct mlx4_hwq_resources wqres; member
295 struct mlx4_hwq_resources wqres; member
/linux-2.6.39/include/linux/mlx4/
Ddevice.h512 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
514 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,