• Home
  • Raw
  • Download

Lines Matching refs:ca

1379 static inline u32 slot_bytes(struct nfsd4_channel_attrs *ca)  in slot_bytes()  argument
1383 if (ca->maxresp_cached < NFSD_MIN_HDR_SEQ_SZ) in slot_bytes()
1386 size = ca->maxresp_cached - NFSD_MIN_HDR_SEQ_SZ; in slot_bytes()
1395 static u32 nfsd4_get_drc_mem(struct nfsd4_channel_attrs *ca) in nfsd4_get_drc_mem() argument
1397 u32 slotsize = slot_bytes(ca); in nfsd4_get_drc_mem()
1398 u32 num = ca->maxreqs; in nfsd4_get_drc_mem()
1416 static void nfsd4_put_drc_mem(struct nfsd4_channel_attrs *ca) in nfsd4_put_drc_mem() argument
1418 int slotsize = slot_bytes(ca); in nfsd4_put_drc_mem()
1421 nfsd_drc_mem_used -= slotsize * ca->maxreqs; in nfsd4_put_drc_mem()
2518 static __be32 check_forechannel_attrs(struct nfsd4_channel_attrs *ca, struct nfsd_net *nn) in check_forechannel_attrs() argument
2522 if (ca->maxreq_sz < NFSD_MIN_REQ_HDR_SEQ_SZ) in check_forechannel_attrs()
2524 if (ca->maxresp_sz < NFSD_MIN_RESP_HDR_SEQ_SZ) in check_forechannel_attrs()
2526 ca->headerpadsz = 0; in check_forechannel_attrs()
2527 ca->maxreq_sz = min_t(u32, ca->maxreq_sz, maxrpc); in check_forechannel_attrs()
2528 ca->maxresp_sz = min_t(u32, ca->maxresp_sz, maxrpc); in check_forechannel_attrs()
2529 ca->maxops = min_t(u32, ca->maxops, NFSD_MAX_OPS_PER_COMPOUND); in check_forechannel_attrs()
2530 ca->maxresp_cached = min_t(u32, ca->maxresp_cached, in check_forechannel_attrs()
2532 ca->maxreqs = min_t(u32, ca->maxreqs, NFSD_MAX_SLOTS_PER_SESSION); in check_forechannel_attrs()
2541 ca->maxreqs = nfsd4_get_drc_mem(ca); in check_forechannel_attrs()
2542 if (!ca->maxreqs) in check_forechannel_attrs()
2553 static __be32 check_backchannel_attrs(struct nfsd4_channel_attrs *ca) in check_backchannel_attrs() argument
2555 ca->headerpadsz = 0; in check_backchannel_attrs()
2563 if (ca->maxreq_sz < NFSD_CB_MAX_REQ_SZ) in check_backchannel_attrs()
2565 if (ca->maxresp_sz < NFSD_CB_MAX_RESP_SZ) in check_backchannel_attrs()
2567 ca->maxresp_cached = 0; in check_backchannel_attrs()
2568 if (ca->maxops < 2) in check_backchannel_attrs()