Lines Matching refs:slotid

84 	u32 slotid = slot->slot_nr;  in nfs4_free_slot()  local
87 __clear_bit(slotid, tbl->used_slots); in nfs4_free_slot()
90 if (slotid == tbl->highest_used_slotid) { in nfs4_free_slot()
91 u32 new_max = find_last_bit(tbl->used_slots, slotid); in nfs4_free_slot()
92 if (new_max < slotid) in nfs4_free_slot()
100 slotid, tbl->highest_used_slotid); in nfs4_free_slot()
104 u32 slotid, u32 seq_init, gfp_t gfp_mask) in nfs4_new_slot() argument
111 slot->slot_nr = slotid; in nfs4_new_slot()
118 u32 slotid, u32 seq_init, gfp_t gfp_mask) in nfs4_find_or_create_slot() argument
132 if (slot->slot_nr == slotid) in nfs4_find_or_create_slot()
142 u32 slotid = slot->slot_nr; in nfs4_lock_slot() local
144 __set_bit(slotid, tbl->used_slots); in nfs4_lock_slot()
145 if (slotid > tbl->highest_used_slotid || in nfs4_lock_slot()
147 tbl->highest_used_slotid = slotid; in nfs4_lock_slot()
169 struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid) in nfs4_lookup_slot() argument
171 if (slotid <= tbl->max_slotid) in nfs4_lookup_slot()
172 return nfs4_find_or_create_slot(tbl, slotid, 0, GFP_NOWAIT); in nfs4_lookup_slot()
176 static int nfs4_slot_get_seqid(struct nfs4_slot_table *tbl, u32 slotid, in nfs4_slot_get_seqid() argument
183 slot = nfs4_lookup_slot(tbl, slotid); in nfs4_slot_get_seqid()
199 u32 slotid, u32 seq_nr) in nfs4_slot_seqid_in_use() argument
205 if (nfs4_slot_get_seqid(tbl, slotid, &cur_seq) == 0 && in nfs4_slot_seqid_in_use()
206 cur_seq == seq_nr && test_bit(slotid, tbl->used_slots)) in nfs4_slot_seqid_in_use()
220 u32 slotid, u32 seq_nr, in nfs4_slot_wait_on_seqid() argument
224 !nfs4_slot_seqid_in_use(tbl, slotid, seq_nr), in nfs4_slot_wait_on_seqid()
242 u32 slotid; in nfs4_alloc_slot() local
247 slotid = find_first_zero_bit(tbl->used_slots, tbl->max_slotid + 1); in nfs4_alloc_slot()
248 if (slotid <= tbl->max_slotid) { in nfs4_alloc_slot()
249 ret = nfs4_find_or_create_slot(tbl, slotid, 1, GFP_NOWAIT); in nfs4_alloc_slot()