Lines Matching refs:gap
54 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 gap);
93 u32 gap; in sctp_tsnmap_check() local
106 gap = tsn - map->base_tsn; in sctp_tsnmap_check()
109 if (gap < map->len && test_bit(gap, map->tsn_map)) in sctp_tsnmap_check()
119 u16 gap; in sctp_tsnmap_mark() local
124 gap = tsn - map->base_tsn; in sctp_tsnmap_mark()
126 if (gap >= map->len && !sctp_tsnmap_grow(map, gap)) in sctp_tsnmap_mark()
129 if (!sctp_tsnmap_has_gap(map) && gap == 0) { in sctp_tsnmap_mark()
147 set_bit(gap, map->tsn_map); in sctp_tsnmap_mark()
210 u32 gap; in sctp_tsnmap_skip() local
221 gap = tsn - map->base_tsn + 1; in sctp_tsnmap_skip()
223 map->base_tsn += gap; in sctp_tsnmap_skip()
224 map->cumulative_tsn_ack_point += gap; in sctp_tsnmap_skip()
225 if (gap >= map->len) { in sctp_tsnmap_skip()
234 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len); in sctp_tsnmap_skip()
271 u32 gap, i; in sctp_tsnmap_pending() local
274 gap = max_tsn - base_tsn; in sctp_tsnmap_pending()
276 if (gap == 0 || gap >= map->len) in sctp_tsnmap_pending()
279 for (i = 0; i < gap+1; i++) { in sctp_tsnmap_pending()
324 u32 gap; in sctp_tsnmap_renege() local
332 gap = tsn - map->base_tsn; in sctp_tsnmap_renege()
335 clear_bit(gap, map->tsn_map); in sctp_tsnmap_renege()
363 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 gap) in sctp_tsnmap_grow() argument
369 if (gap >= SCTP_TSN_MAP_SIZE) in sctp_tsnmap_grow()
372 inc = ALIGN((gap - map->len),BITS_PER_LONG) + SCTP_TSN_MAP_INCREMENT; in sctp_tsnmap_grow()