/linux-2.6.39/drivers/net/mlx4/ |
D | 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 = dev->caps.mtts_per_seg; i < npages; i <<= 1) in mlx4_mtt_init() 213 ++mtt->order; in mlx4_mtt_init() 215 mtt->first_seg = mlx4_alloc_mtt_range(dev, mtt->order); in mlx4_mtt_init() 216 if (mtt->first_seg == -1) in mlx4_mtt_init() 223 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_cleanup() argument 227 if (mtt->order < 0) in mlx4_mtt_cleanup() [all …]
|
D | cq.c | 163 int entries, struct mlx4_mtt *mtt) in mlx4_cq_resize() argument 178 cq_context->log_page_size = mtt->page_shift - 12; in mlx4_cq_resize() 179 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_cq_resize() 190 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, in mlx4_cq_alloc() argument 236 cq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_cq_alloc() 238 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_cq_alloc()
|
D | qp.c | 67 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_modify() argument 128 u64 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_qp_modify() 131 context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_qp_modify() 350 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_to_ready() argument 366 err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1], in mlx4_qp_to_ready()
|
D | srq.c | 112 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, struct mlx4_mtt *mtt, in mlx4_srq_alloc() argument 151 srq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_srq_alloc() 153 mtt_addr = mlx4_mtt_addr(dev, mtt); in mlx4_srq_alloc()
|
D | alloc.c | 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() 410 mlx4_mtt_cleanup(dev, &wqres->mtt); in mlx4_free_hwq_res()
|
D | eq.c | 402 err = mlx4_mtt_init(dev, npages, PAGE_SHIFT, &eq->mtt); in mlx4_create_eq() 406 err = mlx4_write_mtt(dev, &eq->mtt, 0, npages, dma_list); in mlx4_create_eq() 417 mtt_addr = mlx4_mtt_addr(dev, &eq->mtt); in mlx4_create_eq() 435 mlx4_mtt_cleanup(dev, &eq->mtt); in mlx4_create_eq() 485 mlx4_mtt_cleanup(dev, &eq->mtt); in mlx4_free_eq()
|
/linux-2.6.39/drivers/infiniband/hw/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 | 76 struct mthca_mtt *mtt; member 82 struct mthca_mtt *mtt; member
|
D | mthca_provider.c | 1051 mr->mtt = mthca_alloc_mtt(dev, n); in mthca_reg_user_mr() 1052 if (IS_ERR(mr->mtt)) { in mthca_reg_user_mr() 1053 err = PTR_ERR(mr->mtt); in mthca_reg_user_mr() 1078 err = mthca_write_mtt(dev, mr->mtt, n, pages, i); in mthca_reg_user_mr() 1088 err = mthca_write_mtt(dev, mr->mtt, n, pages, i); in mthca_reg_user_mr() 1103 mthca_free_mtt(dev, mr->mtt); in mthca_reg_user_mr()
|
/linux-2.6.39/drivers/infiniband/hw/mlx4/ |
D | cq.c | 109 &buf->mtt); in mlx4_ib_alloc_cq_buf() 113 err = mlx4_buf_write_mtt(dev->dev, &buf->mtt, &buf->buf); in mlx4_ib_alloc_cq_buf() 120 mlx4_mtt_cleanup(dev->dev, &buf->mtt); in mlx4_ib_alloc_cq_buf() 147 ilog2((*umem)->page_size), &buf->mtt); in mlx4_ib_get_cq_umem() 151 err = mlx4_ib_umem_write_mtt(dev, &buf->mtt, *umem); in mlx4_ib_get_cq_umem() 158 mlx4_mtt_cleanup(dev->dev, &buf->mtt); in mlx4_ib_get_cq_umem() 225 err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, in mlx4_ib_create_cq() 246 mlx4_mtt_cleanup(dev->dev, &cq->buf.mtt); in mlx4_ib_create_cq() 349 struct mlx4_mtt mtt; in mlx4_ib_resize_cq() local 383 mtt = cq->buf.mtt; in mlx4_ib_resize_cq() [all …]
|
D | srq.c | 122 ilog2(srq->umem->page_size), &srq->mtt); in mlx4_ib_create_srq() 126 err = mlx4_ib_umem_write_mtt(dev, &srq->mtt, srq->umem); in mlx4_ib_create_srq() 162 &srq->mtt); in mlx4_ib_create_srq() 166 err = mlx4_buf_write_mtt(dev->dev, &srq->mtt, &srq->buf); in mlx4_ib_create_srq() 177 err = mlx4_srq_alloc(dev->dev, to_mpd(pd)->pdn, &srq->mtt, in mlx4_ib_create_srq() 201 mlx4_mtt_cleanup(dev->dev, &srq->mtt); in mlx4_ib_create_srq() 269 mlx4_mtt_cleanup(dev->dev, &msrq->mtt); in mlx4_ib_destroy_srq()
|
D | mr.c | 79 int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt, in mlx4_ib_umem_write_mtt() argument 97 len = sg_dma_len(&chunk->page_list[j]) >> mtt->page_shift; in mlx4_ib_umem_write_mtt() 106 err = mlx4_write_mtt(dev->dev, mtt, n, in mlx4_ib_umem_write_mtt() 117 err = mlx4_write_mtt(dev->dev, mtt, n, i, pages); in mlx4_ib_umem_write_mtt() 153 err = mlx4_ib_umem_write_mtt(dev, &mr->mmr.mtt, mr->umem); in mlx4_ib_reg_user_mr()
|
D | mlx4_ib.h | 61 struct mlx4_mtt mtt; member 138 struct mlx4_mtt mtt; member 163 struct mlx4_mtt mtt; member 267 int mlx4_ib_umem_write_mtt(struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt,
|
/linux-2.6.39/include/linux/mlx4/ |
D | device.h | 326 struct mlx4_mtt mtt; member 331 struct mlx4_mtt mtt; member 496 struct mlx4_mtt *mtt); 497 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt); 498 u64 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt); 504 int mlx4_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 506 int mlx4_buf_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 517 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, 528 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, struct mlx4_mtt *mtt,
|
D | qp.h | 313 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 321 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
|
D | cq.h | 148 int entries, struct mlx4_mtt *mtt);
|
/linux-2.6.39/drivers/net/irda/ |
D | bfin_sir.c | 25 static void turnaround_delay(unsigned long last_jif, int mtt) in turnaround_delay() argument 29 mtt = mtt < 10000 ? 10000 : mtt; in turnaround_delay() 30 ticks = 1 + mtt / (USEC_PER_SEC / HZ); in turnaround_delay() 513 turnaround_delay(dev->last_rx, self->mtt); in bfin_sir_send_work() 544 self->mtt = irda_get_mtt(skb); in bfin_sir_hard_xmit()
|
D | donauboe.c | 631 toshoboe_makemttpacket (struct toshoboe_cb *self, void *buf, int mtt) in toshoboe_makemttpacket() argument 635 xbofs = ((int) (mtt/100)) * (int) (self->speed); in toshoboe_makemttpacket() 641 , xbofs,mtt,self->speed); in toshoboe_makemttpacket() 978 int mtt, len, ctl; in toshoboe_hard_xmit() local 1042 if ((mtt = irda_get_mtt(skb))) in toshoboe_hard_xmit() 1057 mtt = toshoboe_makemttpacket (self, self->tx_bufs[self->txs], mtt); in toshoboe_hard_xmit() 1059 ,skb->len,mtt,self->txpending); in toshoboe_hard_xmit() 1060 if (mtt) in toshoboe_hard_xmit() 1062 self->ring->tx[self->txs].len = mtt & 0xfff; in toshoboe_hard_xmit()
|
D | ali-ircc.c | 1447 int mtt, diff; in ali_ircc_fir_hard_xmit() local 1493 mtt = irda_get_mtt(skb); in ali_ircc_fir_hard_xmit() 1495 if (mtt) in ali_ircc_fir_hard_xmit() 1511 if (mtt > diff) in ali_ircc_fir_hard_xmit() 1513 mtt -= diff; in ali_ircc_fir_hard_xmit() 1520 if (mtt > 500) in ali_ircc_fir_hard_xmit() 1523 mtt = (mtt+250) / 500; /* 4 discard, 5 get advanced, Let's round off */ in ali_ircc_fir_hard_xmit() 1525 IRDA_DEBUG(1, "%s(), ************** mtt = %d ***********\n", __func__ , mtt); in ali_ircc_fir_hard_xmit() 1528 if (mtt == 1) /* 500 us */ in ali_ircc_fir_hard_xmit() 1533 else if (mtt == 2) /* 1 ms */ in ali_ircc_fir_hard_xmit() [all …]
|
D | irda-usb.c | 393 int res, mtt; in irda_usb_hard_xmit() local 495 mtt = irda_get_mtt(skb); in irda_usb_hard_xmit() 496 if (mtt) { in irda_usb_hard_xmit() 514 if (mtt > diff) { in irda_usb_hard_xmit() 515 mtt -= diff; in irda_usb_hard_xmit() 516 if (mtt > 1000) in irda_usb_hard_xmit() 517 mdelay(mtt/1000); in irda_usb_hard_xmit() 519 udelay(mtt); in irda_usb_hard_xmit()
|
D | nsc-ircc.c | 1441 int mtt, diff; in nsc_ircc_hard_xmit_fir() local 1499 mtt = irda_get_mtt(skb); in nsc_ircc_hard_xmit_fir() 1500 if (mtt) { in nsc_ircc_hard_xmit_fir() 1510 if (mtt > diff) { in nsc_ircc_hard_xmit_fir() 1511 mtt -= diff; in nsc_ircc_hard_xmit_fir() 1518 if (mtt > 125) { in nsc_ircc_hard_xmit_fir() 1520 mtt = mtt / 125; in nsc_ircc_hard_xmit_fir() 1524 outb(mtt & 0xff, iobase+TMRL); in nsc_ircc_hard_xmit_fir() 1525 outb((mtt >> 8) & 0x0f, iobase+TMRH); in nsc_ircc_hard_xmit_fir() 1538 udelay(mtt); in nsc_ircc_hard_xmit_fir()
|
D | w83977af_ir.c | 500 int mtt; in w83977af_hard_xmit() local 533 mtt = irda_get_mtt(skb); in w83977af_hard_xmit() 534 IRDA_DEBUG(4, "%s(%ld), mtt=%d\n", __func__ , jiffies, mtt); in w83977af_hard_xmit() 535 if (mtt) in w83977af_hard_xmit() 536 udelay(mtt); in w83977af_hard_xmit()
|
D | sa1100_ir.c | 692 int mtt = irda_get_mtt(skb); in sa1100_irda_hard_xmit() local 712 if (mtt) in sa1100_irda_hard_xmit() 713 udelay(mtt); in sa1100_irda_hard_xmit()
|
D | pxaficp_ir.c | 541 unsigned long mtt = irda_get_mtt(skb); in pxa_irda_hard_xmit() local 546 if (mtt) in pxa_irda_hard_xmit() 547 while ((unsigned)(OSCR - si->last_oscr)/4 < mtt) in pxa_irda_hard_xmit()
|
/linux-2.6.39/include/net/irda/ |
D | irda_device.h | 145 __u16 mtt; /* Minimum turn around time */ member 244 return (cb->magic == LAP_MAGIC) ? cb->mtt : 10000; in irda_get_mtt()
|