Lines Matching defs:slotid
73 * If the freed slotid equals highest_used_slotid we want to update it
78 * highest slotid in use.
85 u32 slotid = slot->slot_nr;
88 __clear_bit(slotid, tbl->used_slots);
91 if (slotid == tbl->highest_used_slotid) {
92 u32 new_max = find_last_bit(tbl->used_slots, slotid);
93 if (new_max < slotid)
100 dprintk("%s: slotid %u highest_used_slotid %u\n", __func__,
101 slotid, tbl->highest_used_slotid);
105 u32 slotid, u32 seq_init, gfp_t gfp_mask)
112 slot->slot_nr = slotid;
121 u32 slotid, u32 seq_init, gfp_t gfp_mask)
135 if (slot->slot_nr == slotid)
145 u32 slotid = slot->slot_nr;
147 __set_bit(slotid, tbl->used_slots);
148 if (slotid > tbl->highest_used_slotid ||
150 tbl->highest_used_slotid = slotid;
172 struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid)
174 if (slotid <= tbl->max_slotid)
175 return nfs4_find_or_create_slot(tbl, slotid, 0, GFP_NOWAIT);
179 static int nfs4_slot_get_seqid(struct nfs4_slot_table *tbl, u32 slotid,
186 slot = nfs4_lookup_slot(tbl, slotid);
202 u32 slotid, u32 seq_nr)
208 if (nfs4_slot_get_seqid(tbl, slotid, &cur_seq) == 0 &&
209 cur_seq == seq_nr && test_bit(slotid, tbl->used_slots))
223 u32 slotid, u32 seq_nr,
227 !nfs4_slot_seqid_in_use(tbl, slotid, seq_nr),
245 u32 slotid;
250 slotid = find_first_zero_bit(tbl->used_slots, tbl->max_slotid + 1);
251 if (slotid <= tbl->max_slotid) {
252 ret = nfs4_find_or_create_slot(tbl, slotid, 1, GFP_NOWAIT);
256 dprintk("<-- %s used_slots=%04lx highest_used=%u slotid=%u\n",