Lines Matching refs:slot
47 struct nfs4_slot *slot = *p; in nfs4_shrink_slot_table() local
49 *p = slot->next; in nfs4_shrink_slot_table()
50 kfree(slot); in nfs4_shrink_slot_table()
81 void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot) in nfs4_free_slot() argument
83 u32 slotid = slot->slot_nr; in nfs4_free_slot()
105 struct nfs4_slot *slot; in nfs4_new_slot() local
107 slot = kzalloc(sizeof(*slot), gfp_mask); in nfs4_new_slot()
108 if (slot) { in nfs4_new_slot()
109 slot->table = tbl; in nfs4_new_slot()
110 slot->slot_nr = slotid; in nfs4_new_slot()
111 slot->seq_nr = seq_init; in nfs4_new_slot()
113 return slot; in nfs4_new_slot()
119 struct nfs4_slot **p, *slot; in nfs4_find_or_create_slot() local
130 slot = *p; in nfs4_find_or_create_slot()
131 if (slot->slot_nr == slotid) in nfs4_find_or_create_slot()
132 return slot; in nfs4_find_or_create_slot()
133 p = &slot->next; in nfs4_find_or_create_slot()
272 struct nfs4_slot *slot = pslot; in nfs41_assign_slot() local
273 struct nfs4_slot_table *tbl = slot->table; in nfs41_assign_slot()
277 slot->generation = tbl->generation; in nfs41_assign_slot()
278 args->sa_slot = slot; in nfs41_assign_slot()
280 res->sr_slot = slot; in nfs41_assign_slot()
287 struct nfs4_slot *slot) in __nfs41_wake_and_assign_slot() argument
289 if (rpc_wake_up_first(&tbl->slot_tbl_waitq, nfs41_assign_slot, slot)) in __nfs41_wake_and_assign_slot()
295 struct nfs4_slot *slot) in nfs41_wake_and_assign_slot() argument
297 if (slot->slot_nr > tbl->max_slotid) in nfs41_wake_and_assign_slot()
299 return __nfs41_wake_and_assign_slot(tbl, slot); in nfs41_wake_and_assign_slot()
304 struct nfs4_slot *slot = nfs4_alloc_slot(tbl); in nfs41_try_wake_next_slot_table_entry() local
305 if (!IS_ERR(slot)) { in nfs41_try_wake_next_slot_table_entry()
306 bool ret = __nfs41_wake_and_assign_slot(tbl, slot); in nfs41_try_wake_next_slot_table_entry()
309 nfs4_free_slot(tbl, slot); in nfs41_try_wake_next_slot_table_entry()
422 struct nfs4_slot *slot, in nfs41_update_target_slotid() argument
428 if (tbl->generation == slot->generation) in nfs41_update_target_slotid()