Home | History | Annotate | Download | only in lib

Lines Matching full:pdata

3168 	uint8_t *pdata = pdu;
3180 *pSvcRec = ntohl(bt_get_unaligned((uint32_t *) pdata));
3182 pdata += sizeof(uint32_t);
3270 static int copy_cstate(uint8_t *pdata, int pdata_len, const sdp_cstate_t *cstate)
3278 *pdata++ = len;
3279 memcpy(pdata, cstate->data, len);
3282 *pdata = 0;
3324 uint8_t *pdata, *_pdata;
3338 pdata = reqbuf + sizeof(sdp_pdu_hdr_t);
3342 seqlen = gen_searchseq_pdu(pdata, search);
3348 pdata += seqlen;
3351 bt_put_unaligned(htons(max_rec_num), (uint16_t *) pdata);
3353 pdata += sizeof(uint16_t);
3356 _pdata = pdata;
3391 pdata = rspbuf + sizeof(sdp_pdu_hdr_t);
3401 pdata += sizeof(uint16_t);
3404 rec_count = ntohs(bt_get_unaligned((uint16_t *) pdata));
3405 pdata += sizeof(uint16_t);
3417 extract_record_handle_seq(pdata, pdata_len, rsp, rec_count, &scanned);
3429 pdata = rspbuf + sizeof(sdp_pdu_hdr_t) + scanned;
3430 cstate_len = *(uint8_t *) pdata;
3432 cstate = (sdp_cstate_t *)pdata;
3486 uint8_t *pdata, *_pdata;
3510 pdata = reqbuf + sizeof(sdp_pdu_hdr_t);
3514 bt_put_unaligned(htonl(handle), (uint32_t *) pdata);
3516 pdata += sizeof(uint32_t);
3519 bt_put_unaligned(htons(65535), (uint16_t *) pdata);
3521 pdata += sizeof(uint16_t);
3524 seqlen = gen_attridseq_pdu(pdata, attrids,
3530 pdata += seqlen;
3535 _pdata = pdata;
3563 pdata = rspbuf + sizeof(sdp_pdu_hdr_t);
3571 rsp_count = ntohs(bt_get_unaligned((uint16_t *) pdata));
3573 pdata += sizeof(uint16_t);
3584 cstate_len = *(uint8_t *) (pdata + rsp_count);
3597 cstate = cstate_len > 0 ? (sdp_cstate_t *) (pdata + rsp_count) : 0;
3603 memcpy(targetPtr, pdata, rsp_count);
3611 pdata = rsp_concat_buf.data;
3614 rec = sdp_extract_pdu(pdata, pdata_len, &scanned);
3735 uint8_t *pdata;
3761 pdata = t->reqbuf + sizeof(sdp_pdu_hdr_t);
3765 seqlen = gen_searchseq_pdu(pdata, search);
3771 pdata += seqlen;
3773 bt_put_unaligned(htons(max_rec_num), (uint16_t *) pdata);
3775 pdata += sizeof(uint16_t);
3778 cstate_len = copy_cstate(pdata, SDP_REQ_BUFFER_SIZE - t->reqsize, NULL);
3836 uint8_t *pdata;
3862 pdata = t->reqbuf + sizeof(sdp_pdu_hdr_t);
3866 bt_put_unaligned(htonl(handle), (uint32_t *) pdata);
3868 pdata += sizeof(uint32_t);
3871 bt_put_unaligned(htons(65535), (uint16_t *) pdata);
3873 pdata += sizeof(uint16_t);
3876 seqlen = gen_attridseq_pdu(pdata, attrid_list,
3885 pdata += seqlen;
3889 cstate_len = copy_cstate(pdata, SDP_REQ_BUFFER_SIZE - t->reqsize, NULL);
3948 uint8_t *pdata;
3974 pdata = t->reqbuf + sizeof(sdp_pdu_hdr_t);
3978 seqlen = gen_searchseq_pdu(pdata, search);
3984 pdata += seqlen;
3986 bt_put_unaligned(htons(SDP_MAX_ATTR_LEN), (uint16_t *) pdata);
3988 pdata += sizeof(uint16_t);
3993 seqlen = gen_attridseq_pdu(pdata, attrid_list,
4000 pdata += seqlen;
4005 cstate_len = copy_cstate(pdata, SDP_REQ_BUFFER_SIZE - t->reqsize, NULL);
4071 uint8_t *pdata, *rspbuf, *targetPtr;
4096 pdata = rspbuf + sizeof(sdp_pdu_hdr_t);
4121 ssr_pdata = pdata;
4148 pdata += sizeof(uint16_t); /* point to csrc */
4151 *pcsrc += bt_get_unaligned((uint16_t *) pdata);
4153 pdata += sizeof(uint16_t); /* point to the first handle */
4160 rsp_count = ntohs(bt_get_unaligned((uint16_t *) pdata));
4169 pdata += sizeof(uint16_t); /* points to attribute list */
4173 status = ntohs(bt_get_unaligned((uint16_t *) pdata));
4183 pcstate = (sdp_cstate_t *) (pdata + rsp_count);
4205 memcpy(targetPtr, pdata, rsp_count);
4234 pdata = t->rsp_concat_buf.data;
4238 t->cb(pdu_id, status, pdata, size, t->udata);
4295 uint8_t *pdata, *_pdata;
4322 pdata = reqbuf + sizeof(sdp_pdu_hdr_t);
4326 seqlen = gen_searchseq_pdu(pdata, search);
4332 pdata += seqlen;
4334 bt_put_unaligned(htons(SDP_MAX_ATTR_LEN), (uint16_t *) pdata);
4336 pdata += sizeof(uint16_t);
4341 seqlen = gen_attridseq_pdu(pdata, attrids,
4347 pdata += seqlen;
4353 _pdata = pdata;
4383 pdata = rspbuf + sizeof(sdp_pdu_hdr_t);
4392 rsp_count = ntohs(bt_get_unaligned((uint16_t *) pdata));
4394 pdata += sizeof(uint16_t); /* pdata points to attribute list */
4403 cstate_len = *(uint8_t *) (pdata + rsp_count);
4415 cstate = cstate_len > 0 ? (sdp_cstate_t *) (pdata + rsp_count) : 0;
4421 memcpy(targetPtr, pdata, rsp_count);
4430 pdata = rsp_concat_buf.data;
4439 scanned = sdp_extract_seqtype(pdata, pdata_len, &dataType, &seqlen);
4445 pdata += scanned;
4449 sdp_record_t *rec = sdp_extract_pdu(pdata, pdata_len, &recsize);
4460 pdata += recsize;