Lines Matching refs:data_left
364 size_t data_left = req->len - sizeof(sdp_pdu_hdr_t); in service_search_req() local
366 scanned = extract_des(pdata, data_left, &pattern, &dtd, SDP_TYPE_UUID); in service_search_req()
373 data_left -= scanned; in service_search_req()
383 if (data_left < sizeof(uint16_t)) { in service_search_req()
394 data_left -= sizeof(uint16_t); in service_search_req()
400 if (sdp_cstate_get(pdata, data_left, &cstate) < 0) { in service_search_req()
634 size_t data_left = req->len - sizeof(sdp_pdu_hdr_t); in service_attr_req() local
637 if (data_left < sizeof(uint32_t)) { in service_attr_req()
645 data_left -= sizeof(uint32_t); in service_attr_req()
647 if (data_left < sizeof(uint16_t)) { in service_attr_req()
655 data_left -= sizeof(uint16_t); in service_attr_req()
657 if (data_left < sizeof(sdp_pdu_hdr_t)) { in service_attr_req()
663 scanned = extract_des(pdata, data_left, &seq, &dtd, SDP_TYPE_ATTRID); in service_attr_req()
669 data_left -= scanned; in service_attr_req()
683 if (sdp_cstate_get(pdata, data_left, &cstate) < 0) { in service_attr_req()
787 size_t data_left; in service_search_attr_req() local
791 data_left = req->len - sizeof(sdp_pdu_hdr_t); in service_search_attr_req()
792 scanned = extract_des(pdata, data_left, &pattern, &dtd, SDP_TYPE_UUID); in service_search_attr_req()
802 data_left -= scanned; in service_search_attr_req()
804 if (data_left < sizeof(uint16_t)) { in service_search_attr_req()
812 data_left -= sizeof(uint16_t); in service_search_attr_req()
816 if (data_left < sizeof(sdp_pdu_hdr_t)) { in service_search_attr_req()
822 scanned = extract_des(pdata, data_left, &seq, &dtd, SDP_TYPE_ATTRID); in service_search_attr_req()
829 data_left -= scanned; in service_search_attr_req()
843 if (sdp_cstate_get(pdata, data_left, &cstate) < 0) { in service_search_attr_req()