Lines Matching refs:lkey_table_size
24 unsigned int lkey_table_size = rdi->dparms.lkey_table_size; in rvt_driver_mr_init() local
33 if (!lkey_table_size) in rvt_driver_mr_init()
39 if (lkey_table_size > RVT_MAX_LKEY_TABLE_BITS) { in rvt_driver_mr_init()
41 lkey_table_size, RVT_MAX_LKEY_TABLE_BITS); in rvt_driver_mr_init()
42 rdi->dparms.lkey_table_size = RVT_MAX_LKEY_TABLE_BITS; in rvt_driver_mr_init()
43 lkey_table_size = rdi->dparms.lkey_table_size; in rvt_driver_mr_init()
45 rdi->lkey_table.max = 1 << lkey_table_size; in rvt_driver_mr_init()
46 rdi->lkey_table.shift = 32 - lkey_table_size; in rvt_driver_mr_init()
180 mr->lkey = (r << (32 - dev->dparms.lkey_table_size)) | in rvt_alloc_lkey()
181 ((((1 << (24 - dev->dparms.lkey_table_size)) - 1) & rkt->gen) in rvt_alloc_lkey()
225 r = lkey >> (32 - dev->dparms.lkey_table_size); in rvt_free_lkey()
658 rkt->table[(rkey >> (32 - dev->dparms.lkey_table_size))]); in rvt_invalidate_rkey()