Searched refs:mtt (Results 1 - 25 of 31) sorted by relevance

12

/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c211 struct mthca_mtt *mtt; local
217 mtt = kmalloc(sizeof *mtt, GFP_KERNEL);
218 if (!mtt)
221 mtt->buddy = buddy;
222 mtt->order = 0;
224 ++mtt->order;
226 mtt->first_seg = mthca_alloc_mtt_range(dev, mtt->order, buddy);
227 if (mtt
240 mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt) argument
254 __mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt, int start_index, u64 *buffer_list, int list_len) argument
315 mthca_tavor_write_mtt_seg(struct mthca_dev *dev, struct mthca_mtt *mtt, int start_index, u64 *buffer_list, int list_len) argument
329 mthca_arbel_write_mtt_seg(struct mthca_dev *dev, struct mthca_mtt *mtt, int start_index, u64 *buffer_list, int list_len) argument
358 mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt, int start_index, u64 *buffer_list, int list_len) argument
[all...]
H A Dmthca_provider.h76 struct mthca_mtt *mtt; member in struct:mthca_mr
82 struct mthca_mtt *mtt; member in struct:mthca_fmr
H A Dmthca_provider.c1017 mr->mtt = mthca_alloc_mtt(dev, n);
1018 if (IS_ERR(mr->mtt)) {
1019 err = PTR_ERR(mr->mtt);
1044 err = mthca_write_mtt(dev, mr->mtt, n, pages, i);
1054 err = mthca_write_mtt(dev, mr->mtt, n, pages, i);
1069 mthca_free_mtt(dev, mr->mtt);
H A Dmthca_dev.h468 void mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt);
469 int mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt,
/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c210 struct mlx4_mtt *mtt)
215 mtt->order = -1;
216 mtt->page_shift = MLX4_ICM_PAGE_SHIFT;
219 mtt->page_shift = page_shift;
221 for (mtt->order = 0, i = 1; i < npages; i <<= 1)
222 ++mtt->order;
224 mtt->offset = mlx4_alloc_mtt_range(dev, mtt->order);
225 if (mtt->offset == -1)
259 mlx4_warn(dev, "Failed to free mtt rang
209 mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift, struct mlx4_mtt *mtt) argument
266 mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt) argument
275 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt) argument
529 mlx4_write_mtt_chunk(struct mlx4_dev *dev, struct mlx4_mtt *mtt, int start_index, int npages, u64 *page_list) argument
555 __mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, int start_index, int npages, u64 *page_list) argument
583 mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, int start_index, int npages, u64 *page_list) argument
627 mlx4_buf_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, struct mlx4_buf *buf) argument
[all...]
H A Dresource_tracker.c105 struct res_mtt *mtt; member in struct:res_qp
143 struct res_mtt *mtt; member in struct:res_mpt
155 struct res_mtt *mtt; member in struct:res_eq
166 struct res_mtt *mtt; member in struct:res_cq
188 struct res_mtt *mtt; member in struct:res_srq
1603 int size, struct res_mtt *mtt)
1605 int res_start = mtt->com.res_id;
1606 int res_size = (1 << mtt->order);
1621 struct res_mtt *mtt; local
1634 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt);
1602 check_mtt_range(struct mlx4_dev *dev, int slave, int start, int size, struct res_mtt *mtt) argument
1750 struct res_mtt *mtt; local
1879 struct res_mtt *mtt; local
1920 struct res_mtt *mtt; local
1945 struct mlx4_mtt mtt; local
2115 struct res_mtt *mtt; local
2200 struct res_mtt *mtt; local
2288 struct res_mtt *mtt; local
2949 struct res_mtt *mtt; local
[all...]
H A Dcq.c144 int entries, struct mlx4_mtt *mtt)
159 cq_context->log_page_size = mtt->page_shift - 12;
160 mtt_addr = mlx4_mtt_addr(dev, mtt);
243 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, argument
281 cq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT;
283 mtt_addr = mlx4_mtt_addr(dev, mtt);
143 mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, int entries, struct mlx4_mtt *mtt) argument
H A Dqp.c76 static int __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, argument
148 u64 mtt_addr = mlx4_mtt_addr(dev, mtt);
151 context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT;
169 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, argument
175 return __mlx4_qp_modify(dev, mtt, cur_state, new_state, context,
479 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, argument
495 err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1],
H A Dsrq.c166 struct mlx4_mtt *mtt, u64 db_rec, struct mlx4_srq *srq)
198 srq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT;
200 mtt_addr = mlx4_mtt_addr(dev, mtt);
165 mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, struct mlx4_mtt *mtt, u64 db_rec, struct mlx4_srq *srq) argument
H A Dalloc.c387 &wqres->mtt);
391 err = mlx4_buf_write_mtt(dev, &wqres->mtt, &wqres->buf);
398 mlx4_mtt_cleanup(dev, &wqres->mtt);
411 mlx4_mtt_cleanup(dev, &wqres->mtt);
H A Den_cq.c119 err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, &mdev->priv_uar,
H A Deq.c678 err = mlx4_mtt_init(dev, npages, PAGE_SHIFT, &eq->mtt);
682 err = mlx4_write_mtt(dev, &eq->mtt, 0, npages, dma_list);
693 mtt_addr = mlx4_mtt_addr(dev, &eq->mtt);
711 mlx4_mtt_cleanup(dev, &eq->mtt);
761 mlx4_mtt_cleanup(dev, &eq->mtt);
/drivers/infiniband/hw/mlx4/
H A Dsrq.c124 ilog2(srq->umem->page_size), &srq->mtt);
128 err = mlx4_ib_umem_write_mtt(dev, &srq->mtt, srq->umem);
164 &srq->mtt);
168 err = mlx4_buf_write_mtt(dev->dev, &srq->mtt, &srq->buf);
184 err = mlx4_srq_alloc(dev->dev, to_mpd(pd)->pdn, cqn, xrcdn, &srq->mtt,
209 mlx4_mtt_cleanup(dev->dev, &srq->mtt);
277 mlx4_mtt_cleanup(dev->dev, &msrq->mtt);
H A Dmr.c79 int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt, argument
97 len = sg_dma_len(&chunk->page_list[j]) >> mtt->page_shift;
106 err = mlx4_write_mtt(dev->dev, mtt, n,
117 err = mlx4_write_mtt(dev->dev, mtt, n, i, pages);
153 err = mlx4_ib_umem_write_mtt(dev, &mr->mmr.mtt, mr->umem);
H A Dcq.c109 &buf->mtt);
113 err = mlx4_buf_write_mtt(dev->dev, &buf->mtt, &buf->buf);
120 mlx4_mtt_cleanup(dev->dev, &buf->mtt);
147 ilog2((*umem)->page_size), &buf->mtt);
151 err = mlx4_ib_umem_write_mtt(dev, &buf->mtt, *umem);
158 mlx4_mtt_cleanup(dev->dev, &buf->mtt);
225 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar,
246 mlx4_mtt_cleanup(dev->dev, &cq->buf.mtt);
349 struct mlx4_mtt mtt; local
383 mtt
[all...]
H A Dmlx4_ib.h68 struct mlx4_mtt mtt; member in struct:mlx4_ib_cq_buf
145 struct mlx4_mtt mtt; member in struct:mlx4_ib_qp
171 struct mlx4_mtt mtt; member in struct:mlx4_ib_srq
281 int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt,
/drivers/net/irda/
H A Dbfin_sir.h80 int mtt; member in struct:bfin_sir_self
H A Ddonauboe.c137 /* mtt is handled by generating packets with bad CRCs, before the data */
140 /* check the mtt works ok */
629 /*Generate packet of about mtt us long */
631 toshoboe_makemttpacket (struct toshoboe_cb *self, void *buf, int mtt) argument
635 xbofs = ((int) (mtt/100)) * (int) (self->speed);
636 xbofs=xbofs/80000; /*Eight bits per byte, and mtt is in us*/
640 ": generated mtt of %d bytes for %d us at %d baud\n"
641 , xbofs,mtt,self->speed);
978 int mtt, len, ctl; local
1006 /* But not now. Wait after transmission if mtt no
[all...]
H A Dbfin_sir.c25 static void turnaround_delay(unsigned long last_jif, int mtt) argument
29 mtt = mtt < 10000 ? 10000 : mtt;
30 ticks = 1 + mtt / (USEC_PER_SEC / HZ);
512 turnaround_delay(dev->last_rx, self->mtt);
543 self->mtt = irda_get_mtt(skb);
H A Dali-ircc.c1448 int mtt, diff; local
1494 mtt = irda_get_mtt(skb);
1496 if (mtt)
1509 /* Check if the mtt is larger than the time we have
1512 if (mtt > diff)
1514 mtt -= diff;
1521 if (mtt > 500)
1524 mtt = (mtt+250) / 500; /* 4 discard, 5 get advanced, Let's round off */
1526 IRDA_DEBUG(1, "%s(), ************** mtt
[all...]
H A Dnsc-ircc.c1442 int mtt, diff; local
1500 mtt = irda_get_mtt(skb);
1501 if (mtt) {
1508 /* Check if the mtt is larger than the time we have
1511 if (mtt > diff) {
1512 mtt -= diff;
1519 if (mtt > 125) {
1521 mtt = mtt / 125;
1525 outb(mtt
[all...]
H A Dirda-usb.c393 int res, mtt; local
495 mtt = irda_get_mtt(skb);
496 if (mtt) {
511 /* Check if the mtt is larger than the time we have
514 if (mtt > diff) {
515 mtt -= diff;
516 if (mtt > 1000)
517 mdelay(mtt/1000);
519 udelay(mtt);
H A Dw83977af_ir.c501 int mtt; local
534 mtt = irda_get_mtt(skb);
535 IRDA_DEBUG(4, "%s(%ld), mtt=%d\n", __func__ , jiffies, mtt);
536 if (mtt)
537 udelay(mtt);
H A Dpxaficp_ir.c543 unsigned long mtt = irda_get_mtt(skb); local
548 if (mtt)
549 while ((unsigned)(OSCR - si->last_oscr)/4 < mtt)
H A Dsa1100_ir.c396 int mtt = irda_get_mtt(skb); local
415 if (mtt)
416 udelay(mtt);

Completed in 258 milliseconds

12