Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/stack/bnep/
Dbnep_utils.cc724 uint16_t* rem_len, bool is_ext) { in bnep_process_control_packet() argument
728 if (p == NULL || rem_len == NULL) { in bnep_process_control_packet()
729 if (rem_len != NULL) *rem_len = 0; in bnep_process_control_packet()
731 fmt::ptr(rem_len)); in bnep_process_control_packet()
734 uint16_t rem_len_orig = *rem_len; in bnep_process_control_packet()
737 if (*rem_len < 1) goto bad_packet_length; in bnep_process_control_packet()
739 *rem_len = *rem_len - 1; in bnep_process_control_packet()
742 if (*rem_len < 1) goto bad_packet_length; in bnep_process_control_packet()
744 *rem_len = *rem_len - 1; in bnep_process_control_packet()
748 *rem_len, is_ext, control_type); in bnep_process_control_packet()
[all …]
Dbnep_main.cc333 uint16_t rem_len = p_buf->len; in bnep_data_ind() local
334 if (rem_len == 0) { in bnep_data_ind()
359 if ((rem_len <= bnep_frame_hdr_sizes[type]) || (rem_len > BNEP_MTU_SIZE)) { in bnep_data_ind()
366 rem_len--; in bnep_data_ind()
383 org_len = rem_len; in bnep_data_ind()
434 rem_len -= 14; in bnep_data_ind()
439 p = bnep_process_control_packet(p_bcb, p, &rem_len, false); in bnep_data_ind()
443 rem_len) { in bnep_data_ind()
445 p_bcb->p_pending_data = (BT_HDR*)osi_malloc(rem_len + sizeof(BT_HDR)); in bnep_data_ind()
446 memcpy((uint8_t*)(p_bcb->p_pending_data + 1), p, rem_len); in bnep_data_ind()
[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()
262 rem_len--; in BNEP_ConnectResp()
269 p = bnep_process_control_packet(p_bcb, p, &rem_len, true); in BNEP_ConnectResp()
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_server.cc447 int16_t rem_len; in process_service_attr_req() local
579 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_attr_req()
582 if (rem_len <= 0) { in process_service_attr_req()
597 p_rsp = sdpu_build_partial_attrib_entry(p_rsp, p_attr, rem_len, in process_service_attr_req()
605 } else if (rem_len < in process_service_attr_req()
617 p_rsp, p_attr, (uint16_t)rem_len, &p_ccb->cont_info.attr_offset); in process_service_attr_req()
819 int16_t rem_len; in process_service_search_attr_req() local
923 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
924 if (rem_len < 3) { in process_service_search_attr_req()
970 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
[all …]
Dsdp_discovery.cc203 unsigned int cpy_len, rem_len; in sdp_copy_raw_data() local
233 rem_len = SDP_MAX_LIST_BYTE_COUNT - (unsigned int)(p - &p_ccb->rsp_list[0]); in sdp_copy_raw_data()
234 if (cpy_len > rem_len) { in sdp_copy_raw_data()
235 log::warn("rem_len :{} less than cpy_len:{}", rem_len, cpy_len); in sdp_copy_raw_data()
236 cpy_len = rem_len; in sdp_copy_raw_data()
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_cl.cc749 int16_t rem_len = (int16_t)len - (4 /* octets */ + value.len); in gatt_process_notification() local
752 while (rem_len > 4 /* octets */) { in gatt_process_notification()
758 rem_len -= 4; in gatt_process_notification()
761 value.len = std::min((uint16_t)rem_len, value.len); in gatt_process_notification()
768 rem_len -= value.len; in gatt_process_notification()