Lines Matching refs:p_end
56 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db,
215 uint8_t* p_end = p + p_msg->len; in sdp_disc_server_rsp() local
230 process_service_search_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
237 process_service_attr_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
244 process_service_search_attr_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
344 uint8_t* p_end; in sdp_copy_raw_data() local
351 p_end = &p_ccb->rsp_list[0] + list_len; in sdp_copy_raw_data()
357 p = sdpu_get_len_from_type(p, p_end, type, &list_len); in sdp_copy_raw_data()
358 if (p == NULL || (p + list_len) > p_end) { in sdp_copy_raw_data()
523 uint8_t *p, *p_start, *p_end, *p_param_len; in process_service_search_attr_rsp() local
656 p_end = &p_ccb->rsp_list[p_ccb->list_len]; in process_service_search_attr_rsp()
658 if ((p + seq_len) != p_end) { in process_service_search_attr_rsp()
663 while (p < p_end) { in process_service_search_attr_rsp()
789 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db, in add_attr() argument
804 p = sdpu_get_len_from_type(p, p_end, type, &attr_len); in add_attr()
805 if (p == NULL || (p + attr_len) > p_end) { in add_attr()
819 if (p_attr_end > p_end) { in add_attr()
857 p = add_attr(p, p_end, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, in add_attr()
941 p = add_attr(p, p_end, p_db, p_rec, 0, p_attr, in add_attr()