Lines Matching refs:limits
223 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt()
269 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt()
322 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
341 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg()
344 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg()
478 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc()
492 key & (dev->limits.num_mpts - 1)); in mthca_mr_alloc()
559 (dev->limits.num_mpts - 1)); in mthca_free_mr()
573 dev->limits.num_mpts, in mthca_init_mr_table()
574 ~0, dev->limits.reserved_mrws); in mthca_init_mr_table()
580 dev->limits.fmr_reserved_mtts = 0; in mthca_init_mr_table()
588 fls(dev->limits.num_mtt_segs - 1)); in mthca_init_mr_table()
596 if (dev->limits.fmr_reserved_mtts) { in mthca_init_mr_table()
597 i = fls(dev->limits.fmr_reserved_mtts - 1); in mthca_init_mr_table()
606 mtts = dev->limits.num_mtt_segs; in mthca_init_mr_table()
607 mpts = dev->limits.num_mpts; in mthca_init_mr_table()
631 ioremap(addr, mtts * dev->limits.mtt_seg_size); in mthca_init_mr_table()
639 if (dev->limits.fmr_reserved_mtts) { in mthca_init_mr_table()
655 if (dev->limits.reserved_mtts) { in mthca_init_mr_table()
656 i = fls(dev->limits.reserved_mtts - 1); in mthca_init_mr_table()
671 if (dev->limits.fmr_reserved_mtts) in mthca_init_mr_table()
694 if (dev->limits.fmr_reserved_mtts) in mthca_cleanup_mr_table()