Lines Matching defs:tsn
9 * These functions manipulate sctp tsn mapping array.
91 int sctp_tsnmap_check(const struct sctp_tsnmap *map, __u32 tsn)
96 if (TSN_lte(tsn, map->cumulative_tsn_ack_point))
102 if (!TSN_lt(tsn, map->base_tsn + SCTP_TSN_MAP_SIZE))
106 gap = tsn - map->base_tsn;
117 int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn)
121 if (TSN_lt(tsn, map->base_tsn))
124 gap = tsn - map->base_tsn;
130 /* In this case the map has no gaps and the tsn we are
131 * recording is the next expected tsn. We don't touch
143 if (TSN_lt(map->max_tsn_seen, tsn))
144 map->max_tsn_seen = tsn;
208 void sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn)
212 if (TSN_lt(tsn, map->base_tsn))
214 if (!TSN_lt(tsn, map->base_tsn + SCTP_TSN_MAP_SIZE))
218 if (TSN_lt(map->max_tsn_seen, tsn))
219 map->max_tsn_seen = tsn;
221 gap = tsn - map->base_tsn + 1;
322 void sctp_tsnmap_renege(struct sctp_tsnmap *map, __u32 tsn)
326 if (TSN_lt(tsn, map->base_tsn))
329 if (!TSN_lt(tsn, map->base_tsn + map->len))
332 gap = tsn - map->base_tsn;