Lines Matching defs:id
96 int i, id = -1;
100 id = i;
104 return id;
107 static inline void cmtp_free_block_id(struct cmtp_session *session, int id)
109 clear_bit(id, &session->blockids);
112 static inline void cmtp_add_msgpart(struct cmtp_session *session, int id, const unsigned char *buf, int count)
114 struct sk_buff *skb = session->reassembly[id], *nskb;
131 session->reassembly[id] = nskb;
139 __u8 hdr, hdrlen, id;
162 id = (hdr & 0x3c) >> 2;
164 BT_DBG("hdr 0x%02x hdrlen %d len %d id %d", hdr, hdrlen, len, id);
178 cmtp_add_msgpart(session, id, skb->data + hdrlen, len);
179 cmtp_recv_capimsg(session, session->reassembly[id]);
180 session->reassembly[id] = NULL;
183 cmtp_add_msgpart(session, id, skb->data + hdrlen, len);
186 if (session->reassembly[id] != NULL)
187 kfree_skb(session->reassembly[id]);
188 session->reassembly[id] = NULL;
239 if ((scb->id < 0) && ((scb->id = cmtp_alloc_block_id(session)) < 0)) {
247 | ((scb->id << 2) & 0x3c)
253 | ((scb->id << 2) & 0x3c)
265 cmtp_free_block_id(session, scb->id);