Lines Matching defs:map
46 static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in,
49 /* Storage size needed for map includes 2 headers and then the
95 static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in,
98 memset(map, 0x00, sctp_ssnmap_size(in, out));
100 /* Start 'in' stream just after the map header. */
101 map->in.ssn = (__u16 *)&map[1];
102 map->in.len = in;
105 map->out.ssn = &map->in.ssn[in];
106 map->out.len = out;
108 return map;
112 void sctp_ssnmap_clear(struct sctp_ssnmap *map)
116 size = (map->in.len + map->out.len) * sizeof(__u16);
117 memset(map->in.ssn, 0x00, size);
121 void sctp_ssnmap_free(struct sctp_ssnmap *map)
123 if (map && map->malloced) {
126 size = sctp_ssnmap_size(map->in.len, map->out.len);
128 kfree(map);
130 free_pages((unsigned long)map, get_order(size));