Home | History | Annotate | Download | only in smp

Lines Matching refs:p_buf

112     BT_HDR *p_buf;
119 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb);
121 if (p_buf != NULL &&
122 smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf))
176 BT_HDR *p_buf = NULL ;
179 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + L2CAP_MIN_OFFSET)) != NULL)
181 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
191 p_buf->offset = L2CAP_MIN_OFFSET;
193 p_buf->len = SMP_PAIRING_REQ_SIZE;
196 return p_buf;
208 BT_HDR *p_buf = NULL ;
211 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + L2CAP_MIN_OFFSET)) != NULL)
213 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
218 p_buf->offset = L2CAP_MIN_OFFSET;
219 p_buf->len = SMP_CONFIRM_CMD_SIZE;
222 return p_buf;
233 BT_HDR *p_buf = NULL ;
236 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_INIT_CMD_SIZE + L2CAP_MIN_OFFSET)) != NULL)
238 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
243 p_buf->offset = L2CAP_MIN_OFFSET;
244 p_buf->len = SMP_INIT_CMD_SIZE;
247 return p_buf;
258 BT_HDR *p_buf = NULL ;
261 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_ENC_INFO_SIZE + L2CAP_MIN_OFFSET)) != NULL)
263 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
268 p_buf->offset = L2CAP_MIN_OFFSET;
269 p_buf->len = SMP_ENC_INFO_SIZE;
272 return p_buf;
283 BT_HDR *p_buf = NULL ;
286 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_MASTER_ID_SIZE + L2CAP_MIN_OFFSET)) != NULL)
288 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
294 p_buf->offset = L2CAP_MIN_OFFSET;
295 p_buf->len = SMP_MASTER_ID_SIZE;
298 return p_buf;
309 BT_HDR *p_buf = NULL ;
313 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_ID_INFO_SIZE + L2CAP_MIN_OFFSET)) != NULL)
315 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
322 p_buf->offset = L2CAP_MIN_OFFSET;
323 p_buf->len = SMP_ID_INFO_SIZE;
326 return p_buf;
337 BT_HDR *p_buf = NULL ;
343 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_ID_ADDR_SIZE + L2CAP_MIN_OFFSET)) != NULL)
345 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
352 p_buf->offset = L2CAP_MIN_OFFSET;
353 p_buf->len = SMP_ID_ADDR_SIZE;
356 return p_buf;
368 BT_HDR *p_buf = NULL ;
372 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_SIGN_INFO_SIZE + L2CAP_MIN_OFFSET)) != NULL)
374 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
379 p_buf->offset = L2CAP_MIN_OFFSET;
380 p_buf->len = SMP_SIGN_INFO_SIZE;
383 return p_buf;
394 BT_HDR *p_buf = NULL ;
397 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + L2CAP_MIN_OFFSET)) != NULL)
399 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
404 p_buf->offset = L2CAP_MIN_OFFSET;
405 p_buf->len = SMP_PAIR_FAIL_SIZE;
408 return p_buf;
419 BT_HDR *p_buf = NULL ;
423 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + 2 + L2CAP_MIN_OFFSET)) != NULL)
425 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
430 p_buf->offset = L2CAP_MIN_OFFSET;
431 p_buf->len = 2;
436 return p_buf;