Lines Matching refs:gap
71 u32 gap; in sctp_tsnmap_check() local
84 gap = tsn - map->base_tsn; in sctp_tsnmap_check()
87 if (gap < map->len && test_bit(gap, map->tsn_map)) in sctp_tsnmap_check()
98 u16 gap; in sctp_tsnmap_mark() local
103 gap = tsn - map->base_tsn; in sctp_tsnmap_mark()
105 if (gap >= map->len && !sctp_tsnmap_grow(map, gap + 1)) in sctp_tsnmap_mark()
108 if (!sctp_tsnmap_has_gap(map) && gap == 0) { in sctp_tsnmap_mark()
129 set_bit(gap, map->tsn_map); in sctp_tsnmap_mark()
192 u32 gap; in sctp_tsnmap_skip() local
203 gap = tsn - map->base_tsn + 1; in sctp_tsnmap_skip()
205 map->base_tsn += gap; in sctp_tsnmap_skip()
206 map->cumulative_tsn_ack_point += gap; in sctp_tsnmap_skip()
207 if (gap >= map->len) { in sctp_tsnmap_skip()
216 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len); in sctp_tsnmap_skip()
253 u32 gap; in sctp_tsnmap_pending() local
256 gap = max_tsn - base_tsn; in sctp_tsnmap_pending()
258 if (gap == 0 || gap >= map->len) in sctp_tsnmap_pending()
261 pending_data -= bitmap_weight(map->tsn_map, gap + 1); in sctp_tsnmap_pending()
302 u32 gap; in sctp_tsnmap_renege() local
310 gap = tsn - map->base_tsn; in sctp_tsnmap_renege()
313 clear_bit(gap, map->tsn_map); in sctp_tsnmap_renege()