Lines Matching defs:rkt
41 * @rkt: lkey table in which to allocate the lkey
47 int ipath_alloc_lkey(struct ipath_lkey_table *rkt, struct ipath_mregion *mr)
54 spin_lock_irqsave(&rkt->lock, flags);
57 r = n = rkt->next;
59 if (rkt->table[r] == NULL)
61 r = (r + 1) & (rkt->max - 1);
63 spin_unlock_irqrestore(&rkt->lock, flags);
69 rkt->next = (r + 1) & (rkt->max - 1);
74 rkt->gen++;
76 ((((1 << (24 - ib_ipath_lkey_table_size)) - 1) & rkt->gen)
80 rkt->gen++;
82 rkt->table[r] = mr;
83 spin_unlock_irqrestore(&rkt->lock, flags);
93 * @rkt: table from which to free the lkey
96 void ipath_free_lkey(struct ipath_lkey_table *rkt, u32 lkey)
104 spin_lock_irqsave(&rkt->lock, flags);
105 rkt->table[r] = NULL;
106 spin_unlock_irqrestore(&rkt->lock, flags);
111 * @rkt: table containing lkey to check SGE against
124 struct ipath_lkey_table *rkt = &to_idev(qp->ibqp.device)->lk_table;
149 mr = rkt->table[(sge->lkey >> (32 - ib_ipath_lkey_table_size))];
203 struct ipath_lkey_table *rkt = &dev->lk_table;
232 mr = rkt->table[(rkey >> (32 - ib_ipath_lkey_table_size))];