Lines Matching refs:slot
48 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local
50 *p = slot->next; in nfs4_shrink_slot_table()
51 kfree(slot); in nfs4_shrink_slot_table()
82 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument
84 u32 slotid = slot->slot_nr; in nfs4_free_slot()
106 struct nfs4_slot *slot; in nfs4_new_slot() local
108 slot = kzalloc(sizeof(*slot), gfp_mask); in nfs4_new_slot()
109 if (slot) { in nfs4_new_slot()
110 slot->table = tbl; in nfs4_new_slot()
111 slot->slot_nr = slotid; in nfs4_new_slot()
112 slot->seq_nr = seq_init; in nfs4_new_slot()
114 return slot; in nfs4_new_slot()
120 struct nfs4_slot **p, *slot; in nfs4_find_or_create_slot() local
131 slot = *p; in nfs4_find_or_create_slot()
132 if (slot->slot_nr == slotid) in nfs4_find_or_create_slot()
133 return slot; in nfs4_find_or_create_slot()
134 p = &slot->next; in nfs4_find_or_create_slot()
140 struct nfs4_slot *slot) in nfs4_lock_slot() argument
142 u32 slotid = slot->slot_nr; in nfs4_lock_slot()
148 slot->generation = tbl->generation; in nfs4_lock_slot()
156 bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_try_to_lock_slot() argument
158 if (nfs4_test_locked_slot(tbl, slot->slot_nr)) in nfs4_try_to_lock_slot()
160 nfs4_lock_slot(tbl, slot); in nfs4_try_to_lock_slot()
180 struct nfs4_slot *slot; in nfs4_slot_get_seqid() local
183 slot = nfs4_lookup_slot(tbl, slotid); in nfs4_slot_get_seqid()
184 ret = PTR_ERR_OR_ZERO(slot); in nfs4_slot_get_seqid()
186 *seq_nr = slot->seq_nr; in nfs4_slot_get_seqid()
357 struct nfs4_slot *slot = pslot; in nfs41_assign_slot() local
358 struct nfs4_slot_table *tbl = slot->table; in nfs41_assign_slot()
362 slot->generation = tbl->generation; in nfs41_assign_slot()
363 args->sa_slot = slot; in nfs41_assign_slot()
365 res->sr_slot = slot; in nfs41_assign_slot()
372 struct nfs4_slot *slot) in __nfs41_wake_and_assign_slot() argument
374 if (rpc_wake_up_first(&tbl->slot_tbl_waitq, nfs41_assign_slot, slot)) in __nfs41_wake_and_assign_slot()
380 struct nfs4_slot *slot) in nfs41_wake_and_assign_slot() argument
382 if (slot->slot_nr > tbl->max_slotid) in nfs41_wake_and_assign_slot()
384 return __nfs41_wake_and_assign_slot(tbl, slot); in nfs41_wake_and_assign_slot()
389 struct nfs4_slot *slot = nfs4_alloc_slot(tbl); in nfs41_try_wake_next_slot_table_entry() local
390 if (!IS_ERR(slot)) { in nfs41_try_wake_next_slot_table_entry()
391 bool ret = __nfs41_wake_and_assign_slot(tbl, slot); in nfs41_try_wake_next_slot_table_entry()
394 nfs4_free_slot(tbl, slot); in nfs41_try_wake_next_slot_table_entry()
507 struct nfs4_slot *slot, in nfs41_update_target_slotid() argument
513 if (tbl->generation == slot->generation) in nfs41_update_target_slotid()