Lines Matching refs:slot
1514 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_store_cache_entry() local
1517 dprintk("--> %s slot %p\n", __func__, slot); in nfsd4_store_cache_entry()
1519 slot->sl_opcnt = resp->opcnt; in nfsd4_store_cache_entry()
1520 slot->sl_status = resp->cstate.status; in nfsd4_store_cache_entry()
1522 slot->sl_flags |= NFSD4_SLOT_INITIALIZED; in nfsd4_store_cache_entry()
1524 slot->sl_datalen = 0; in nfsd4_store_cache_entry()
1527 slot->sl_datalen = (char *)resp->p - (char *)resp->cstate.datap; in nfsd4_store_cache_entry()
1530 if (read_bytes_from_xdr_buf(resp->xbuf, base, slot->sl_data, in nfsd4_store_cache_entry()
1531 slot->sl_datalen)) in nfsd4_store_cache_entry()
1548 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_enc_sequence_replay() local
1555 if (args->opcnt > 1 && !(slot->sl_flags & NFSD4_SLOT_CACHETHIS)) { in nfsd4_enc_sequence_replay()
1571 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_replay_cache_entry() local
1574 dprintk("--> %s slot %p\n", __func__, slot); in nfsd4_replay_cache_entry()
1582 memcpy(resp->cstate.datap, slot->sl_data, slot->sl_datalen); in nfsd4_replay_cache_entry()
1584 resp->opcnt = slot->sl_opcnt; in nfsd4_replay_cache_entry()
1585 resp->p = resp->cstate.datap + XDR_QUADLEN(slot->sl_datalen); in nfsd4_replay_cache_entry()
1586 status = slot->sl_status; in nfsd4_replay_cache_entry()
1760 struct nfsd4_clid_slot *slot, __be32 nfserr) in nfsd4_cache_create_session() argument
1762 slot->sl_status = nfserr; in nfsd4_cache_create_session()
1763 memcpy(&slot->sl_cr_ses, cr_ses, sizeof(*cr_ses)); in nfsd4_cache_create_session()
1768 struct nfsd4_clid_slot *slot) in nfsd4_replay_create_session() argument
1770 memcpy(cr_ses, &slot->sl_cr_ses, sizeof(*cr_ses)); in nfsd4_replay_create_session()
1771 return slot->sl_status; in nfsd4_replay_create_session()
2106 struct nfsd4_slot *slot; in nfsd4_sequence() local
2147 slot = session->se_slots[seq->slotid]; in nfsd4_sequence()
2155 status = check_slot_seqid(seq->seqid, slot->sl_seqid, in nfsd4_sequence()
2156 slot->sl_flags & NFSD4_SLOT_INUSE); in nfsd4_sequence()
2159 if (!(slot->sl_flags & NFSD4_SLOT_INITIALIZED)) in nfsd4_sequence()
2161 cstate->slot = slot; in nfsd4_sequence()
2176 slot->sl_seqid = seq->seqid; in nfsd4_sequence()
2177 slot->sl_flags |= NFSD4_SLOT_INUSE; in nfsd4_sequence()
2179 slot->sl_flags |= NFSD4_SLOT_CACHETHIS; in nfsd4_sequence()
2181 slot->sl_flags &= ~NFSD4_SLOT_CACHETHIS; in nfsd4_sequence()
2183 cstate->slot = slot; in nfsd4_sequence()