• Home
  • Raw
  • Download

Lines Matching refs:remaining

473 				  unsigned int *remaining)  in bpf_skops_hdr_opt_len()  argument
480 !*remaining) in bpf_skops_hdr_opt_len()
514 sock_ops.remaining_opt_len = *remaining; in bpf_skops_hdr_opt_len()
521 if (err || sock_ops.remaining_opt_len == *remaining) in bpf_skops_hdr_opt_len()
524 opts->bpf_opt_len = *remaining - sock_ops.remaining_opt_len; in bpf_skops_hdr_opt_len()
528 *remaining -= opts->bpf_opt_len; in bpf_skops_hdr_opt_len()
580 unsigned int *remaining) in bpf_skops_hdr_opt_len() argument
707 unsigned int *remaining) in smc_set_option() argument
712 if (*remaining >= TCPOLEN_EXP_SMC_BASE_ALIGNED) { in smc_set_option()
714 *remaining -= TCPOLEN_EXP_SMC_BASE_ALIGNED; in smc_set_option()
724 unsigned int *remaining) in smc_set_option_cond() argument
729 if (*remaining >= TCPOLEN_EXP_SMC_BASE_ALIGNED) { in smc_set_option_cond()
731 *remaining -= TCPOLEN_EXP_SMC_BASE_ALIGNED; in smc_set_option_cond()
740 unsigned int *remaining) in mptcp_set_option_cond() argument
746 if (*remaining >= size) { in mptcp_set_option_cond()
748 *remaining -= size; in mptcp_set_option_cond()
762 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_syn_options() local
772 remaining -= TCPOLEN_MD5SIG_ALIGNED; in tcp_syn_options()
787 remaining -= TCPOLEN_MSS_ALIGNED; in tcp_syn_options()
793 remaining -= TCPOLEN_TSTAMP_ALIGNED; in tcp_syn_options()
798 remaining -= TCPOLEN_WSCALE_ALIGNED; in tcp_syn_options()
803 remaining -= TCPOLEN_SACKPERM_ALIGNED; in tcp_syn_options()
812 if (remaining >= need) { in tcp_syn_options()
815 remaining -= need; in tcp_syn_options()
821 smc_set_option(tp, opts, &remaining); in tcp_syn_options()
828 remaining -= size; in tcp_syn_options()
832 bpf_skops_hdr_opt_len(sk, skb, NULL, NULL, 0, opts, &remaining); in tcp_syn_options()
834 return MAX_TCP_OPTION_SPACE - remaining; in tcp_syn_options()
848 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_synack_options() local
853 remaining -= TCPOLEN_MD5SIG_ALIGNED; in tcp_synack_options()
867 remaining -= TCPOLEN_MSS_ALIGNED; in tcp_synack_options()
872 remaining -= TCPOLEN_WSCALE_ALIGNED; in tcp_synack_options()
878 remaining -= TCPOLEN_TSTAMP_ALIGNED; in tcp_synack_options()
883 remaining -= TCPOLEN_SACKPERM_ALIGNED; in tcp_synack_options()
891 if (remaining >= need) { in tcp_synack_options()
894 remaining -= need; in tcp_synack_options()
898 mptcp_set_option_cond(req, opts, &remaining); in tcp_synack_options()
900 smc_set_option_cond(tcp_sk(sk), ireq, opts, &remaining); in tcp_synack_options()
903 synack_type, opts, &remaining); in tcp_synack_options()
905 return MAX_TCP_OPTION_SPACE - remaining; in tcp_synack_options()
947 unsigned int remaining = MAX_TCP_OPTION_SPACE - size; in tcp_established_options() local
950 if (mptcp_established_options(sk, skb, &opt_size, remaining, in tcp_established_options()
959 const unsigned int remaining = MAX_TCP_OPTION_SPACE - size; in tcp_established_options() local
960 if (unlikely(remaining < TCPOLEN_SACK_BASE_ALIGNED + in tcp_established_options()
966 (remaining - TCPOLEN_SACK_BASE_ALIGNED) / in tcp_established_options()
975 unsigned int remaining = MAX_TCP_OPTION_SPACE - size; in tcp_established_options() local
977 bpf_skops_hdr_opt_len(sk, skb, NULL, NULL, 0, opts, &remaining); in tcp_established_options()
979 size = MAX_TCP_OPTION_SPACE - remaining; in tcp_established_options()