Lines Matching defs:tsn
10 * These functions manipulate sctp tsn mapping array.
69 int sctp_tsnmap_check(const struct sctp_tsnmap *map, __u32 tsn)
74 if (TSN_lte(tsn, map->cumulative_tsn_ack_point))
80 if (!TSN_lt(tsn, map->base_tsn + SCTP_TSN_MAP_SIZE))
84 gap = tsn - map->base_tsn;
95 int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn,
100 if (TSN_lt(tsn, map->base_tsn))
103 gap = tsn - map->base_tsn;
109 /* In this case the map has no gaps and the tsn we are
110 * recording is the next expected tsn. We don't touch
125 if (TSN_lt(map->max_tsn_seen, tsn))
126 map->max_tsn_seen = tsn;
190 void sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn)
194 if (TSN_lt(tsn, map->base_tsn))
196 if (!TSN_lt(tsn, map->base_tsn + SCTP_TSN_MAP_SIZE))
200 if (TSN_lt(map->max_tsn_seen, tsn))
201 map->max_tsn_seen = tsn;
203 gap = tsn - map->base_tsn + 1;
300 void sctp_tsnmap_renege(struct sctp_tsnmap *map, __u32 tsn)
304 if (TSN_lt(tsn, map->base_tsn))
307 if (!TSN_lt(tsn, map->base_tsn + map->len))
310 gap = tsn - map->base_tsn;