45 #include <linux/slab.h>
46 #include <linux/types.h>
47 #include <linux/bitmap.h>
52 static void sctp_tsnmap_find_gap_ack(
unsigned long *
map,
__u16 off,
61 map->
tsn_map = kzalloc(len>>3, gfp);
127 if (gap >= map->
len && !sctp_tsnmap_grow(map, gap))
130 if (!sctp_tsnmap_has_gap(map) && gap == 0) {
139 trans->
asoc->peer.sack_generation;
156 sctp_tsnmap_update(map);
229 if (gap >= map->
len) {
239 sctp_tsnmap_update(map);
253 unsigned long zero_bit;
277 pending_data = max_tsn - cum_tsn;
280 if (gap == 0 || gap >= map->
len)
283 for (i = 0; i < gap+1; i++) {
298 static void sctp_tsnmap_find_gap_ack(
unsigned long *map,
__u16 off,
350 if (sctp_tsnmap_has_gap(map)) {
351 __u16 start = 0, end = 0;