Lines Matching refs:gap
71 u32 gap;
84 gap = tsn - map->base_tsn;
87 if (gap < map->len && test_bit(gap, map->tsn_map))
98 u16 gap;
103 gap = tsn - map->base_tsn;
105 if (gap >= map->len && !sctp_tsnmap_grow(map, gap + 1))
108 if (!sctp_tsnmap_has_gap(map) && gap == 0) {
120 /* Either we already have a gap, or about to record a gap, so
129 set_bit(gap, map->tsn_map);
159 /* If there are no more gap acks possible, get out fast. */
192 u32 gap;
203 gap = tsn - map->base_tsn + 1;
205 map->base_tsn += gap;
206 map->cumulative_tsn_ack_point += gap;
207 if (gap >= map->len) {
208 /* If our gap is larger then the map size, just
213 /* If the gap is smaller than the map size,
214 * shift the map by 'gap' bits and update further.
216 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len);
253 u32 gap;
256 gap = max_tsn - base_tsn;
258 if (gap == 0 || gap >= map->len)
261 pending_data -= bitmap_weight(map->tsn_map, gap + 1);
302 u32 gap;
310 gap = tsn - map->base_tsn;
313 clear_bit(gap, map->tsn_map);
316 /* How many gap ack blocks do we have recorded? */
323 /* Refresh the gap ack information. */