• Home
  • Raw
  • Download

Lines Matching refs:slotid

85 	u32 slotid = slot->slot_nr;  in nfs4_free_slot()  local
88 __clear_bit(slotid, tbl->used_slots); in nfs4_free_slot()
91 if (slotid == tbl->highest_used_slotid) { in nfs4_free_slot()
92 u32 new_max = find_last_bit(tbl->used_slots, slotid); in nfs4_free_slot()
93 if (new_max < slotid) in nfs4_free_slot()
101 slotid, tbl->highest_used_slotid); in nfs4_free_slot()
105 u32 slotid, u32 seq_init, gfp_t gfp_mask) in nfs4_new_slot() argument
112 slot->slot_nr = slotid; in nfs4_new_slot()
121 u32 slotid, u32 seq_init, gfp_t gfp_mask) in nfs4_find_or_create_slot() argument
135 if (slot->slot_nr == slotid) in nfs4_find_or_create_slot()
145 u32 slotid = slot->slot_nr; in nfs4_lock_slot() local
147 __set_bit(slotid, tbl->used_slots); in nfs4_lock_slot()
148 if (slotid > tbl->highest_used_slotid || in nfs4_lock_slot()
150 tbl->highest_used_slotid = slotid; in nfs4_lock_slot()
172 struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid) in nfs4_lookup_slot() argument
174 if (slotid <= tbl->max_slotid) in nfs4_lookup_slot()
175 return nfs4_find_or_create_slot(tbl, slotid, 0, GFP_NOWAIT); in nfs4_lookup_slot()
179 static int nfs4_slot_get_seqid(struct nfs4_slot_table *tbl, u32 slotid, in nfs4_slot_get_seqid() argument
186 slot = nfs4_lookup_slot(tbl, slotid); in nfs4_slot_get_seqid()
202 u32 slotid, u32 seq_nr) in nfs4_slot_seqid_in_use() argument
208 if (nfs4_slot_get_seqid(tbl, slotid, &cur_seq) == 0 && in nfs4_slot_seqid_in_use()
209 cur_seq == seq_nr && test_bit(slotid, tbl->used_slots)) in nfs4_slot_seqid_in_use()
223 u32 slotid, u32 seq_nr, in nfs4_slot_wait_on_seqid() argument
227 !nfs4_slot_seqid_in_use(tbl, slotid, seq_nr), in nfs4_slot_wait_on_seqid()
245 u32 slotid; in nfs4_alloc_slot() local
250 slotid = find_first_zero_bit(tbl->used_slots, tbl->max_slotid + 1); in nfs4_alloc_slot()
251 if (slotid <= tbl->max_slotid) { in nfs4_alloc_slot()
252 ret = nfs4_find_or_create_slot(tbl, slotid, 1, GFP_NOWAIT); in nfs4_alloc_slot()