Searched refs:rem_len (Results 1 – 5 of 5) sorted by relevance
/system/bt/stack/bnep/ |
D | bnep_main.c | 479 UINT16 rem_len = p_buf->len; in bnep_data_ind() local 498 if ((rem_len <= bnep_frame_hdr_sizes[type]) || (rem_len > BNEP_MTU_SIZE)) in bnep_data_ind() 505 rem_len--; in bnep_data_ind() 524 org_len = rem_len; in bnep_data_ind() 567 rem_len -= 14; in bnep_data_ind() 572 p = bnep_process_control_packet (p_bcb, p, &rem_len, FALSE); in bnep_data_ind() 576 extension_present && p && rem_len) in bnep_data_ind() 578 p_bcb->p_pending_data = (BT_HDR *)osi_malloc(rem_len); in bnep_data_ind() 579 memcpy((UINT8 *)(p_bcb->p_pending_data + 1), p, rem_len); in bnep_data_ind() 580 p_bcb->p_pending_data->len = rem_len; in bnep_data_ind() [all …]
|
D | bnep_utils.c | 762 UINT8 *bnep_process_control_packet (tBNEP_CONN *p_bcb, UINT8 *p, UINT16 *rem_len, BOOLEAN is_ext) in bnep_process_control_packet() argument 771 *rem_len = *rem_len - 1; in bnep_process_control_packet() 775 *rem_len = *rem_len - 1; in bnep_process_control_packet() 777 … ("BNEP processing control packet rem_len %d, is_ext %d, ctrl_type %d", *rem_len, is_ext, control_… in bnep_process_control_packet() 784 *rem_len = *rem_len - 1; in bnep_process_control_packet() 789 if (*rem_len < ((2 * len) + 1)) in bnep_process_control_packet() 798 *rem_len = *rem_len - (2 * len) - 1; in bnep_process_control_packet() 805 *rem_len = *rem_len - 2; in bnep_process_control_packet() 810 if (*rem_len < (len + 2)) in bnep_process_control_packet() 818 *rem_len = *rem_len - len - 2; in bnep_process_control_packet() [all …]
|
D | bnep_api.c | 278 UINT16 rem_len; in BNEP_ConnectResp() local 280 rem_len = p_bcb->p_pending_data->len; in BNEP_ConnectResp() 282 while (extension_present && p && rem_len) in BNEP_ConnectResp() 292 p = bnep_process_control_packet (p_bcb, p, &rem_len, TRUE); in BNEP_ConnectResp()
|
/system/bt/stack/sdp/ |
D | sdp_server.c | 320 INT16 rem_len; in process_service_attr_req() local 405 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]); in process_service_attr_req() 408 if (rem_len <= 0) in process_service_attr_req() 419 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len, in process_service_attr_req() 428 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req() 438 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len, in process_service_attr_req() 549 INT16 rem_len; in process_service_search_attr_req() local 630 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req() 631 if (rem_len < 3) in process_service_search_attr_req() 649 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req() [all …]
|
D | sdp_db.c | 934 UINT16 rem_len; in SDP_ReadRecord() local 945 rem_len = *p_data_len - (UINT16) (p_rsp - p_data); in SDP_ReadRecord() 947 if (p_attr->len > (UINT32)(rem_len - 6)) in SDP_ReadRecord()
|