Lines Matching refs:cache
1837 static int tcp_sack_cache_ok(const struct tcp_sock *tp, const struct tcp_sack_block *cache) in tcp_sack_cache_ok() argument
1839 return cache < tp->recv_sack_cache + ARRAY_SIZE(tp->recv_sack_cache); in tcp_sack_cache_ok()
1851 struct tcp_sack_block *cache; in tcp_sacktag_write_queue() local
1939 cache = tp->recv_sack_cache + ARRAY_SIZE(tp->recv_sack_cache); in tcp_sacktag_write_queue()
1941 cache = tp->recv_sack_cache; in tcp_sacktag_write_queue()
1943 while (tcp_sack_cache_ok(tp, cache) && !cache->start_seq && in tcp_sacktag_write_queue()
1944 !cache->end_seq) in tcp_sacktag_write_queue()
1945 cache++; in tcp_sacktag_write_queue()
1958 while (tcp_sack_cache_ok(tp, cache) && in tcp_sacktag_write_queue()
1959 !before(start_seq, cache->end_seq)) in tcp_sacktag_write_queue()
1960 cache++; in tcp_sacktag_write_queue()
1963 if (tcp_sack_cache_ok(tp, cache) && !dup_sack && in tcp_sacktag_write_queue()
1964 after(end_seq, cache->start_seq)) { in tcp_sacktag_write_queue()
1967 if (before(start_seq, cache->start_seq)) { in tcp_sacktag_write_queue()
1972 cache->start_seq, in tcp_sacktag_write_queue()
1977 if (!after(end_seq, cache->end_seq)) in tcp_sacktag_write_queue()
1982 cache->end_seq); in tcp_sacktag_write_queue()
1985 if (tcp_highest_sack_seq(tp) == cache->end_seq) { in tcp_sacktag_write_queue()
1990 cache++; in tcp_sacktag_write_queue()
1994 skb = tcp_sacktag_skip(skb, sk, cache->end_seq); in tcp_sacktag_write_queue()
1996 cache++; in tcp_sacktag_write_queue()