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