Searched refs:wqres (Results 1 – 6 of 6) sorted by relevance
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | en_cq.c | 74 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq() 80 err = mlx4_en_map_buffer(&cq->wqres.buf); in mlx4_en_create_cq() 84 cq->buf = (struct mlx4_cqe *)cq->wqres.buf.direct.buf; in mlx4_en_create_cq() 90 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_create_cq() 112 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq() 113 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq() 158 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, in mlx4_en_activate_cq() 159 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq() 192 mlx4_en_unmap_buffer(&cq->wqres.buf); in mlx4_en_destroy_cq() 193 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_destroy_cq()
|
D | alloc.c | 791 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 …]
|
D | en_tx.c | 96 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()
|
D | en_rx.c | 255 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); in mlx4_en_update_rx_prod_db() 400 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, in mlx4_en_create_rx_ring() 406 err = mlx4_en_map_buffer(&ring->wqres.buf); in mlx4_en_create_rx_ring() 411 ring->buf = ring->wqres.buf.direct.buf; in mlx4_en_create_rx_ring() 419 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring() 523 mlx4_en_unmap_buffer(&ring->wqres.buf); in mlx4_en_destroy_rx_ring() 524 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * stride + TXBB_SIZE); in mlx4_en_destroy_rx_ring() 1131 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); in mlx4_en_config_rss_qp() 1143 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp()
|
D | mlx4_en.h | 278 struct mlx4_hwq_resources wqres; member 306 struct mlx4_hwq_resources wqres; member 336 struct mlx4_hwq_resources wqres; member
|
/linux-4.1.27/include/linux/mlx4/ |
D | device.h | 1056 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, 1058 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,
|