Lines Matching full:limits
221 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt()
267 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt()
320 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
339 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg()
342 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg()
475 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc()
489 key & (dev->limits.num_mpts - 1)); in mthca_mr_alloc()
556 (dev->limits.num_mpts - 1)); in mthca_free_mr()
570 dev->limits.num_mpts, in mthca_init_mr_table()
571 ~0, dev->limits.reserved_mrws); in mthca_init_mr_table()
577 dev->limits.fmr_reserved_mtts = 0; in mthca_init_mr_table()
585 fls(dev->limits.num_mtt_segs - 1)); in mthca_init_mr_table()
593 if (dev->limits.fmr_reserved_mtts) { in mthca_init_mr_table()
594 i = fls(dev->limits.fmr_reserved_mtts - 1); in mthca_init_mr_table()
603 mtts = dev->limits.num_mtt_segs; in mthca_init_mr_table()
604 mpts = dev->limits.num_mpts; in mthca_init_mr_table()
628 ioremap(addr, mtts * dev->limits.mtt_seg_size); in mthca_init_mr_table()
636 if (dev->limits.fmr_reserved_mtts) { in mthca_init_mr_table()
652 if (dev->limits.reserved_mtts) { in mthca_init_mr_table()
653 i = fls(dev->limits.reserved_mtts - 1); in mthca_init_mr_table()
668 if (dev->limits.fmr_reserved_mtts) in mthca_init_mr_table()
691 if (dev->limits.fmr_reserved_mtts) in mthca_cleanup_mr_table()