Lines Matching refs:remaining

491 				  unsigned int *remaining)  in bpf_skops_hdr_opt_len()  argument
498 !*remaining) in bpf_skops_hdr_opt_len()
533 sock_ops.remaining_opt_len = *remaining; in bpf_skops_hdr_opt_len()
540 if (err || sock_ops.remaining_opt_len == *remaining) in bpf_skops_hdr_opt_len()
543 opts->bpf_opt_len = *remaining - sock_ops.remaining_opt_len; in bpf_skops_hdr_opt_len()
547 *remaining -= opts->bpf_opt_len; in bpf_skops_hdr_opt_len()
600 unsigned int *remaining) in bpf_skops_hdr_opt_len() argument
769 unsigned int *remaining) in smc_set_option() argument
774 if (*remaining >= TCPOLEN_EXP_SMC_BASE_ALIGNED) { in smc_set_option()
776 *remaining -= TCPOLEN_EXP_SMC_BASE_ALIGNED; in smc_set_option()
786 unsigned int *remaining) in smc_set_option_cond() argument
791 if (*remaining >= TCPOLEN_EXP_SMC_BASE_ALIGNED) { in smc_set_option_cond()
793 *remaining -= TCPOLEN_EXP_SMC_BASE_ALIGNED; in smc_set_option_cond()
802 unsigned int *remaining) in mptcp_set_option_cond() argument
808 if (*remaining >= size) { in mptcp_set_option_cond()
810 *remaining -= size; in mptcp_set_option_cond()
824 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_syn_options() local
832 remaining -= TCPOLEN_MD5SIG_ALIGNED; in tcp_syn_options()
837 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_syn_options()
851 remaining -= TCPOLEN_MSS_ALIGNED; in tcp_syn_options()
857 remaining -= TCPOLEN_TSTAMP_ALIGNED; in tcp_syn_options()
862 remaining -= TCPOLEN_WSCALE_ALIGNED; in tcp_syn_options()
867 remaining -= TCPOLEN_SACKPERM_ALIGNED; in tcp_syn_options()
876 if (remaining >= need) { in tcp_syn_options()
879 remaining -= need; in tcp_syn_options()
885 smc_set_option(tp, opts, &remaining); in tcp_syn_options()
891 if (remaining >= size) { in tcp_syn_options()
893 remaining -= size; in tcp_syn_options()
898 bpf_skops_hdr_opt_len(sk, skb, NULL, NULL, 0, opts, &remaining); in tcp_syn_options()
900 return MAX_TCP_OPTION_SPACE - remaining; in tcp_syn_options()
914 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_synack_options() local
918 remaining -= TCPOLEN_MD5SIG_ALIGNED; in tcp_synack_options()
929 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_synack_options()
935 remaining -= TCPOLEN_MSS_ALIGNED; in tcp_synack_options()
940 remaining -= TCPOLEN_WSCALE_ALIGNED; in tcp_synack_options()
953 remaining -= TCPOLEN_TSTAMP_ALIGNED; in tcp_synack_options()
958 remaining -= TCPOLEN_SACKPERM_ALIGNED; in tcp_synack_options()
966 if (remaining >= need) { in tcp_synack_options()
969 remaining -= need; in tcp_synack_options()
973 mptcp_set_option_cond(req, opts, &remaining); in tcp_synack_options()
975 smc_set_option_cond(tcp_sk(sk), ireq, opts, &remaining); in tcp_synack_options()
978 synack_type, opts, &remaining); in tcp_synack_options()
980 return MAX_TCP_OPTION_SPACE - remaining; in tcp_synack_options()
1020 unsigned int remaining = MAX_TCP_OPTION_SPACE - size; in tcp_established_options() local
1023 if (mptcp_established_options(sk, skb, &opt_size, remaining, in tcp_established_options()
1032 const unsigned int remaining = MAX_TCP_OPTION_SPACE - size; in tcp_established_options() local
1033 if (unlikely(remaining < TCPOLEN_SACK_BASE_ALIGNED + in tcp_established_options()
1039 (remaining - TCPOLEN_SACK_BASE_ALIGNED) / in tcp_established_options()
1048 unsigned int remaining = MAX_TCP_OPTION_SPACE - size; in tcp_established_options() local
1050 bpf_skops_hdr_opt_len(sk, skb, NULL, NULL, 0, opts, &remaining); in tcp_established_options()
1052 size = MAX_TCP_OPTION_SPACE - remaining; in tcp_established_options()