Lines Matching defs:bid
47 static void add_segment(uint8_t bid, struct frame *frm, int len)
54 if (bid > 15)
72 msg = &table[pos].msg[bid];
93 static void free_segment(uint8_t bid, struct frame *frm)
99 if (bid > 15)
111 msg = &table[pos].msg[bid];
128 static struct frame *get_segment(uint8_t bid, struct frame *frm)
133 if (bid > 15)
138 return &table[i].msg[bid];
162 uint8_t hdr, bid;
168 bid = (hdr & 0x3c) >> 2;
184 printf("CMTP: %s: id %d len %d\n", bst2str(hdr & 0x03), bid, len);
188 add_segment(bid, frm, len);
189 msg = get_segment(bid, frm);
198 free_segment(bid, frm);
201 add_segment(bid, frm, len);
204 free_segment(bid, frm);