Searched refs:nc_offset (Results 1 – 1 of 1) sorted by relevance
103 __u32 nc_offset, size_of_pad_before_neg_ctxts; in get_neg_ctxt_len() local113 nc_offset = le32_to_cpu(pneg_rsp->NegotiateContextOffset); in get_neg_ctxt_len()114 if (nc_offset + 1 < non_ctxlen) { in get_neg_ctxt_len()115 pr_warn_once("Invalid negotiate context offset %d\n", nc_offset); in get_neg_ctxt_len()117 } else if (nc_offset + 1 == non_ctxlen) { in get_neg_ctxt_len()122 size_of_pad_before_neg_ctxts = nc_offset - non_ctxlen + 1; in get_neg_ctxt_len()124 size_of_pad_before_neg_ctxts = nc_offset - non_ctxlen; in get_neg_ctxt_len()127 if (len < nc_offset + (neg_count * sizeof(struct smb2_neg_context))) { in get_neg_ctxt_len()133 len - nc_offset, size_of_pad_before_neg_ctxts); in get_neg_ctxt_len()136 return (len - nc_offset) + size_of_pad_before_neg_ctxts; in get_neg_ctxt_len()