| /freebsd-12-stable/sys/dev/mthca/ |
| D | mthca_mr.c | 211 struct mthca_mtt *mtt; in __mthca_alloc_mtt() local 217 mtt = kmalloc(sizeof *mtt, GFP_KERNEL); in __mthca_alloc_mtt() 218 if (!mtt) in __mthca_alloc_mtt() 221 mtt->buddy = buddy; in __mthca_alloc_mtt() 222 mtt->order = 0; in __mthca_alloc_mtt() 224 ++mtt->order; in __mthca_alloc_mtt() 226 mtt->first_seg = mthca_alloc_mtt_range(dev, mtt->order, buddy); in __mthca_alloc_mtt() 227 if (mtt->first_seg == -1) { in __mthca_alloc_mtt() 228 kfree(mtt); in __mthca_alloc_mtt() 232 return mtt; in __mthca_alloc_mtt() [all …]
|
| D | mthca_provider.h | 78 struct mthca_mtt *mtt; member 84 struct mthca_mtt *mtt; member
|
| D | mthca_provider.c | 941 mr->mtt = mthca_alloc_mtt(dev, n); in mthca_reg_user_mr() 942 if (IS_ERR(mr->mtt)) { in mthca_reg_user_mr() 943 err = PTR_ERR(mr->mtt); in mthca_reg_user_mr() 967 err = mthca_write_mtt(dev, mr->mtt, n, pages, i); in mthca_reg_user_mr() 977 err = mthca_write_mtt(dev, mr->mtt, n, pages, i); in mthca_reg_user_mr() 992 mthca_free_mtt(dev, mr->mtt); in mthca_reg_user_mr()
|
| D | mthca_dev.h | 470 void mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt); 471 int mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt,
|
| /freebsd-12-stable/sys/dev/mlx4/mlx4_core/ |
| D | mlx4_mr.c | 201 struct mlx4_mtt *mtt) in mlx4_mtt_init() argument 206 mtt->order = -1; in mlx4_mtt_init() 207 mtt->page_shift = MLX4_ICM_PAGE_SHIFT; in mlx4_mtt_init() 210 mtt->page_shift = page_shift; in mlx4_mtt_init() 212 for (mtt->order = 0, i = 1; i < npages; i <<= 1) in mlx4_mtt_init() 213 ++mtt->order; in mlx4_mtt_init() 215 mtt->offset = mlx4_alloc_mtt_range(dev, mtt->order); in mlx4_mtt_init() 216 if (mtt->offset == -1) in mlx4_mtt_init() 257 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_cleanup() argument 259 if (mtt->order < 0) in mlx4_mtt_cleanup() [all …]
|
| D | mlx4_resource_tracker.c | 108 struct res_mtt *mtt; member 156 struct res_mtt *mtt; member 168 struct res_mtt *mtt; member 179 struct res_mtt *mtt; member 191 struct res_mtt *mtt; member 454 dev->quotas.mtt = dev->caps.num_mtts - dev->caps.reserved_mtts; in mlx4_init_quotas() 466 dev->quotas.mtt = in mlx4_init_quotas() 2691 int size, struct res_mtt *mtt) in check_mtt_range() argument 2693 int res_start = mtt->com.res_id; in check_mtt_range() 2694 int res_size = (1 << mtt->order); in check_mtt_range() [all …]
|
| D | mlx4_cq.c | 140 int entries, struct mlx4_mtt *mtt) in mlx4_cq_resize() argument 153 cq_context->log_page_size = mtt->page_shift - 12; in mlx4_cq_resize() 154 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_cq_resize() 238 struct mlx4_mtt *mtt, struct mlx4_uar *uar, u64 db_rec, in mlx4_cq_alloc() argument 279 cq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_cq_alloc() 281 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_cq_alloc()
|
| D | mlx4_srq.c | 163 struct mlx4_mtt *mtt, u64 db_rec, struct mlx4_srq *srq) in mlx4_srq_alloc() argument 193 srq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_srq_alloc() 195 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_srq_alloc()
|
| D | mlx4_qp.c | 88 static int __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in __mlx4_qp_modify() argument 165 u64 mtt_addr = mlx4_mtt_addr(dev, mtt); in __mlx4_qp_modify() 168 context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in __mlx4_qp_modify() 209 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_modify() argument 215 return __mlx4_qp_modify(dev, mtt, cur_state, new_state, context, in mlx4_qp_modify() 899 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_to_ready() argument 917 err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1], in mlx4_qp_to_ready()
|
| D | mlx4_alloc.c | 806 &wqres->mtt); in mlx4_alloc_hwq_res() 810 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf, GFP_KERNEL); in mlx4_alloc_hwq_res() 817 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_alloc_hwq_res() 830 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_free_hwq_res()
|
| D | mlx4_eq.c | 1018 err = mlx4_mtt_init(dev, npages, PAGE_SHIFT, &eq->mtt); in mlx4_create_eq() 1022 err = mlx4_write_mtt(dev, &eq->mtt, 0, npages, dma_list); in mlx4_create_eq() 1032 mtt_addr = mlx4_mtt_addr(dev, &eq->mtt); in mlx4_create_eq() 1050 mlx4_mtt_cleanup(dev, &eq->mtt); in mlx4_create_eq() 1089 mlx4_mtt_cleanup(dev, &eq->mtt); in mlx4_free_eq()
|
| D | mlx4.h | 394 struct mlx4_mtt mtt; member 1015 int __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
|
| /freebsd-12-stable/sys/dev/mlx4/mlx4_ib/ |
| D | mlx4_ib_cq.c | 113 &buf->mtt); in mlx4_ib_alloc_cq_buf() 117 err = mlx4_buf_write_mtt(dev->dev, &buf->mtt, &buf->buf, GFP_KERNEL); in mlx4_ib_alloc_cq_buf() 124 mlx4_mtt_cleanup(dev->dev, &buf->mtt); in mlx4_ib_alloc_cq_buf() 151 ilog2((*umem)->page_size), &buf->mtt); in mlx4_ib_get_cq_umem() 155 err = mlx4_ib_umem_write_mtt(dev, &buf->mtt, *umem); in mlx4_ib_get_cq_umem() 162 mlx4_mtt_cleanup(dev->dev, &buf->mtt); in mlx4_ib_get_cq_umem() 242 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, in mlx4_ib_create_cq() 267 mlx4_mtt_cleanup(dev->dev, &cq->buf.mtt); in mlx4_ib_create_cq() 377 struct mlx4_mtt mtt; in mlx4_ib_resize_cq() local 415 mtt = cq->buf.mtt; in mlx4_ib_resize_cq() [all …]
|
| D | mlx4_ib_srq.c | 124 ilog2(srq->umem->page_size), &srq->mtt); in mlx4_ib_create_srq() 128 err = mlx4_ib_umem_write_mtt(dev, &srq->mtt, srq->umem); in mlx4_ib_create_srq() 165 &srq->mtt); in mlx4_ib_create_srq() 169 err = mlx4_buf_write_mtt(dev->dev, &srq->mtt, &srq->buf, GFP_KERNEL); in mlx4_ib_create_srq() 190 err = mlx4_srq_alloc(dev->dev, to_mpd(pd)->pdn, cqn, xrcdn, &srq->mtt, in mlx4_ib_create_srq() 215 mlx4_mtt_cleanup(dev->dev, &srq->mtt); in mlx4_ib_create_srq() 283 mlx4_mtt_cleanup(dev->dev, &msrq->mtt); in mlx4_ib_destroy_srq()
|
| D | mlx4_ib_mr.c | 93 int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt, in mlx4_ib_umem_write_mtt() argument 110 len = sg_dma_len(sg) >> mtt->page_shift; in mlx4_ib_umem_write_mtt() 119 err = mlx4_write_mtt(dev->dev, mtt, n, in mlx4_ib_umem_write_mtt() 130 err = mlx4_write_mtt(dev->dev, mtt, n, i, pages); in mlx4_ib_umem_write_mtt() 168 err = mlx4_ib_umem_write_mtt(dev, &mr->mmr.mtt, mr->umem); in mlx4_ib_reg_user_mr() 257 err = mlx4_ib_umem_write_mtt(dev, &mmr->mmr.mtt, mmr->umem); in mlx4_ib_rereg_user_mr()
|
| D | mlx4_ib.h | 112 struct mlx4_mtt mtt; member 315 struct mlx4_mtt mtt; member 350 struct mlx4_mtt mtt; member 724 int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt,
|
| D | mlx4_ib_qp.c | 754 ilog2(qp->umem->page_size), &qp->mtt); in create_qp_common() 758 err = mlx4_ib_umem_write_mtt(dev, &qp->mtt, qp->umem); in create_qp_common() 813 &qp->mtt); in create_qp_common() 817 err = mlx4_buf_write_mtt(dev->dev, &qp->mtt, &qp->buf, gfp); in create_qp_common() 925 mlx4_mtt_cleanup(dev->dev, &qp->mtt); in create_qp_common() 1088 mlx4_mtt_cleanup(dev->dev, &qp->mtt); in destroy_qp_common() 2004 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
|
| /freebsd-12-stable/sys/dev/mlx4/ |
| D | device.h | 676 struct mlx4_mtt mtt; member 681 struct mlx4_mtt mtt; member 831 int mtt; member 1094 struct mlx4_mtt *mtt); 1095 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt); 1096 u64 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt); 1106 int mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 1108 int mlx4_buf_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 1120 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, 1133 struct mlx4_mtt *mtt, u64 db_rec, struct mlx4_srq *srq);
|
| D | qp.h | 480 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 488 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
|
| D | cq.h | 176 int entries, struct mlx4_mtt *mtt);
|
| /freebsd-12-stable/sys/dev/sound/pci/ |
| D | envy24ht.c | 140 bus_space_tag_t mtt; member 494 return bus_space_read_1(sc->mtt, sc->mth, regno); in envy24ht_rdmt() 496 return bus_space_read_2(sc->mtt, sc->mth, regno); in envy24ht_rdmt() 498 return bus_space_read_4(sc->mtt, sc->mth, regno); in envy24ht_rdmt() 509 bus_space_write_1(sc->mtt, sc->mth, regno, data); in envy24ht_wrmt() 512 bus_space_write_2(sc->mtt, sc->mth, regno, data); in envy24ht_wrmt() 515 bus_space_write_4(sc->mtt, sc->mth, regno, data); in envy24ht_wrmt() 2416 sc->mtt = rman_get_bustag(sc->mt); in envy24ht_alloc_resource()
|
| D | envy24.c | 141 bus_space_tag_t mtt; member 441 return bus_space_read_1(sc->mtt, sc->mth, regno); in envy24_rdmt() 443 return bus_space_read_2(sc->mtt, sc->mth, regno); in envy24_rdmt() 445 return bus_space_read_4(sc->mtt, sc->mth, regno); in envy24_rdmt() 456 bus_space_write_1(sc->mtt, sc->mth, regno, data); in envy24_wrmt() 459 bus_space_write_2(sc->mtt, sc->mth, regno, data); in envy24_wrmt() 462 bus_space_write_4(sc->mtt, sc->mth, regno, data); in envy24_wrmt() 2508 sc->mtt = rman_get_bustag(sc->mt); in envy24_alloc_resource()
|
| /freebsd-12-stable/sys/dev/mlx4/mlx4_en/ |
| D | mlx4_en_cq.c | 157 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, in mlx4_en_activate_cq()
|
| D | mlx4_en_rx.c | 950 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, context, qp, state); in mlx4_en_config_rss_qp() 1087 err = mlx4_qp_to_ready(mdev->dev, &priv->res.mtt, &context, in mlx4_en_config_rss_steer()
|
| D | mlx4_en_tx.c | 238 err = mlx4_qp_to_ready(mdev->dev, &ring->wqres.mtt, &ring->context, in mlx4_en_activate_tx_ring()
|