Lines Matching full: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()
120 /* Either we already have a gap, or about to record a gap, so in sctp_tsnmap_mark()
129 set_bit(gap, map->tsn_map); in sctp_tsnmap_mark()
141 /* Initialize a Gap Ack Block iterator from memory being provided. */
149 /* Get the next Gap Ack Blocks. Returns 0 if there was not another block
159 /* If there are no more gap acks possible, get out fast. */ in sctp_tsnmap_next_gap_ack()
167 /* The Gap Ack Block happens to end at the end of the map. */ in sctp_tsnmap_next_gap_ack()
171 /* If we found a Gap Ack Block, return the start and end and in sctp_tsnmap_next_gap_ack()
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()
208 /* If our gap is larger then the map size, just in sctp_tsnmap_skip()
213 /* If the gap is smaller than the map size, in sctp_tsnmap_skip()
214 * shift the map by 'gap' bits and update further. 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()
266 /* This is a private helper for finding Gap Ack Blocks. It searches a
267 * single array for the start and end of a Gap Ack Block.
270 * or (respectively) the end of a Gap Ack Block.
278 * early if we have found the end of the Gap Ack Block. in sctp_tsnmap_find_gap_ack()
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()
316 /* How many gap ack blocks do we have recorded? */
323 /* Refresh the gap ack information. */ in sctp_tsnmap_num_gabs()