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

/freebsd-10.2-release/sys/ofed/drivers/net/mlx4/
H A Den_cq.c85 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres,
90 err = mlx4_en_map_buffer(&cq->wqres.buf);
94 cq->buf = (struct mlx4_cqe *) cq->wqres.buf.direct.buf;
100 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size);
116 cq->mcq.set_ci_db = cq->wqres.db.db;
117 cq->mcq.arm_db = cq->wqres.db.db + 1;
153 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt,
154 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq,
179 mlx4_en_unmap_buffer(&cq->wqres.buf);
180 mlx4_free_hwq_res(mdev->dev, &cq->wqres, c
[all...]
H A Dalloc.c411 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, argument
416 err = mlx4_db_alloc(dev, &wqres->db, 1);
420 *wqres->db.db = 0;
422 err = mlx4_buf_alloc(dev, size, max_direct, &wqres->buf);
426 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift,
427 &wqres->mtt);
431 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf);
438 mlx4_mtt_cleanup(dev, &wqres
448 mlx4_free_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, int size) argument
[all...]
H A Den_rx.c123 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff);
304 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres,
309 err = mlx4_en_map_buffer(&ring->wqres.buf);
314 ring->buf = ring->wqres.buf.direct.buf;
319 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size);
413 mlx4_en_unmap_buffer(&ring->wqres.buf);
414 mlx4_free_hwq_res(mdev->dev, &ring->wqres, size * stride + TXBB_SIZE);
740 context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma);
749 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state);
H A Den_tx.c123 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size,
130 err = mlx4_en_map_buffer(&ring->wqres.buf);
136 ring->buf = ring->wqres.buf.direct.buf;
140 ring->buf_size, (unsigned long long) ring->wqres.buf.direct.map);
174 mlx4_en_unmap_buffer(&ring->wqres.buf);
176 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size);
200 mlx4_en_unmap_buffer(&ring->wqres.buf);
201 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size);
234 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, &ring->context,
H A Dmlx4_en.h276 struct mlx4_hwq_resources wqres; member in struct:mlx4_en_tx_ring
326 struct mlx4_hwq_resources wqres; member in struct:mlx4_en_rx_ring
385 struct mlx4_hwq_resources wqres; member in struct:mlx4_en_cq
/freebsd-10.2-release/sys/ofed/include/linux/mlx4/
H A Ddevice.h999 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres,
1001 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,

Completed in 119 milliseconds