Home
last modified time | relevance | path

Searched refs:rem_len (Results 1 – 6 of 6) sorted by relevance

/system/bt/stack/bnep/
Dbnep_main.cc433 uint16_t rem_len = p_buf->len; in bnep_data_ind() local
434 if (rem_len == 0) { in bnep_data_ind()
461 if ((rem_len <= bnep_frame_hdr_sizes[type]) || (rem_len > BNEP_MTU_SIZE)) { in bnep_data_ind()
468 rem_len--; in bnep_data_ind()
486 org_len = rem_len; in bnep_data_ind()
540 rem_len -= 14; in bnep_data_ind()
545 p = bnep_process_control_packet(p_bcb, p, &rem_len, false); in bnep_data_ind()
549 rem_len) { in bnep_data_ind()
551 p_bcb->p_pending_data = (BT_HDR*)osi_malloc(rem_len + sizeof(BT_HDR)); in bnep_data_ind()
552 memcpy((uint8_t*)(p_bcb->p_pending_data + 1), p, rem_len); in bnep_data_ind()
[all …]
Dbnep_utils.cc723 uint16_t* rem_len, bool is_ext) { in bnep_process_control_packet() argument
727 if (p == NULL || rem_len == NULL) { in bnep_process_control_packet()
728 if (rem_len != NULL) *rem_len = 0; in bnep_process_control_packet()
730 rem_len); in bnep_process_control_packet()
733 uint16_t rem_len_orig = *rem_len; in bnep_process_control_packet()
736 if (*rem_len < 1) goto bad_packet_length; in bnep_process_control_packet()
738 *rem_len = *rem_len - 1; in bnep_process_control_packet()
741 if (*rem_len < 1) goto bad_packet_length; in bnep_process_control_packet()
743 *rem_len = *rem_len - 1; in bnep_process_control_packet()
747 __func__, *rem_len, is_ext, control_type); in bnep_process_control_packet()
[all …]
Dbnep_api.cc256 uint16_t rem_len; in BNEP_ConnectResp() local
258 rem_len = p_bcb->p_pending_data->len; in BNEP_ConnectResp()
260 while (extension_present && p && rem_len) { in BNEP_ConnectResp()
268 p = bnep_process_control_packet(p_bcb, p, &rem_len, true); in BNEP_ConnectResp()
/system/bt/stack/sdp/
Dsdp_server.cc317 int16_t rem_len; in process_service_attr_req() local
412 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_attr_req()
415 if (rem_len <= 0) { in process_service_attr_req()
431 p_rsp = sdpu_build_partial_attrib_entry(p_rsp, p_attr, rem_len, in process_service_attr_req()
439 } else if (rem_len < in process_service_attr_req()
451 p_rsp, p_attr, (uint16_t)rem_len, &p_ccb->cont_info.attr_offset); in process_service_attr_req()
551 int16_t rem_len; in process_service_search_attr_req() local
641 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
642 if (rem_len < 3) { in process_service_search_attr_req()
658 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
[all …]
Dsdp_discovery.cc344 unsigned int cpy_len, rem_len; in sdp_copy_raw_data() local
374 rem_len = SDP_MAX_LIST_BYTE_COUNT - (unsigned int)(p - &p_ccb->rsp_list[0]); in sdp_copy_raw_data()
375 if (cpy_len > rem_len) { in sdp_copy_raw_data()
376 SDP_TRACE_WARNING("rem_len :%d less than cpy_len:%d", rem_len, cpy_len); in sdp_copy_raw_data()
377 cpy_len = rem_len; in sdp_copy_raw_data()
Dsdp_db.cc870 uint16_t rem_len; in SDP_ReadRecord() local
879 rem_len = *p_data_len - (uint16_t)(p_rsp - p_data); in SDP_ReadRecord()
881 if (p_attr->len > (uint32_t)(rem_len - 6)) break; in SDP_ReadRecord()