Lines Matching full:pdata
254 uint8_t *pdata = buf->data + buf->data_size;
259 *pdata = sizeof(sdp_cont_state_t);
260 pdata += sizeof(uint8_t);
262 memcpy(pdata, cstate, sizeof(sdp_cont_state_t));
266 *pdata = 0;
363 uint8_t *pdata = req->buf + sizeof(sdp_pdu_hdr_t);
366 scanned = extract_des(pdata, data_left, &pattern, &dtd, SDP_TYPE_UUID);
372 pdata += scanned;
378 if (plen < mlen || plen != mlen + *(uint8_t *)(pdata+sizeof(uint16_t))) {
388 expected = ntohs(bt_get_unaligned((uint16_t *)pdata));
393 pdata += sizeof(uint16_t);
400 if (sdp_cstate_get(pdata, data_left, &cstate) < 0) {
409 pdata = buf->data;
412 pTotalRecordCount = (short *)pdata;
413 bt_put_unaligned(0, (uint16_t *)pdata);
414 pdata += sizeof(uint16_t);
418 pCurrentRecordCount = (short *)pdata;
419 bt_put_unaligned(0, (uint16_t *)pdata);
420 pdata += sizeof(uint16_t);
436 bt_put_unaligned(htonl(rec->handle), (uint32_t *)pdata);
437 pdata += sizeof(uint32_t);
493 pdata = (uint8_t *) pCurrentRecordCount + sizeof(uint16_t);
501 bt_put_unaligned(bt_get_unaligned((uint32_t *)(pCacheBuffer + i * sizeof(uint32_t))), (uint32_t *)pdata);
502 pdata += sizeof(uint32_t);
633 uint8_t *pdata = req->buf + sizeof(sdp_pdu_hdr_t);
642 handle = ntohl(bt_get_unaligned((uint32_t *)pdata));
644 pdata += sizeof(uint32_t);
652 max_rsp_size = ntohs(bt_get_unaligned((uint16_t *)pdata));
654 pdata += sizeof(uint16_t);
663 scanned = extract_des(pdata, data_left, &seq, &dtd, SDP_TYPE_ATTRID);
668 pdata += scanned;
674 if (plen < mlen || plen != mlen + *(uint8_t *)pdata) {
683 if (sdp_cstate_get(pdata, data_left, &cstate) < 0) {
779 uint8_t *pdata, *pResponse = NULL;
790 pdata = req->buf + sizeof(sdp_pdu_hdr_t);
792 scanned = extract_des(pdata, data_left, &pattern, &dtd, SDP_TYPE_UUID);
801 pdata += scanned;
809 max = ntohs(bt_get_unaligned((uint16_t *)pdata));
811 pdata += sizeof(uint16_t);
822 scanned = extract_des(pdata, data_left, &seq, &dtd, SDP_TYPE_ATTRID);
828 pdata += scanned;
834 if (plen < totscanned || plen != totscanned + *(uint8_t *)pdata) {
843 if (sdp_cstate_get(pdata, data_left, &cstate) < 0) {