Home
last modified time | relevance | path

Searched refs:param_len (Results 1 – 25 of 34) sorted by relevance

12

/system/nfc/src/nfc/llcp/
Dllcp_util.c46 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_link_params() local
50 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
51 if (length < param_len + 2) { in llcp_util_parse_link_params()
56 length -= param_len + 2; in llcp_util_parse_link_params()
60 if (param_len != LLCP_VERSION_LEN) { in llcp_util_parse_link_params()
70 if (param_len != LLCP_MIUX_LEN) { in llcp_util_parse_link_params()
82 if (param_len != LLCP_WKS_LEN) { in llcp_util_parse_link_params()
92 if (param_len != LLCP_LTO_LEN) { in llcp_util_parse_link_params()
103 if (param_len != LLCP_OPT_LEN) { in llcp_util_parse_link_params()
115 p += param_len; in llcp_util_parse_link_params()
[all …]
/system/bt/stack/sdp/
Dsdp_utils.cc325 uint8_t* sdpu_extract_uid_seq(uint8_t* p, uint16_t param_len, in sdpu_extract_uid_seq() argument
335 if (sizeof(descr) > param_len) return (NULL); in sdpu_extract_uid_seq()
336 param_len -= sizeof(descr); in sdpu_extract_uid_seq()
355 if (sizeof(uint8_t) > param_len) return (NULL); in sdpu_extract_uid_seq()
356 param_len -= sizeof(uint8_t); in sdpu_extract_uid_seq()
360 if (sizeof(uint16_t) > param_len) return (NULL); in sdpu_extract_uid_seq()
361 param_len -= sizeof(uint16_t); in sdpu_extract_uid_seq()
365 if (sizeof(uint32_t) > param_len) return (NULL); in sdpu_extract_uid_seq()
366 param_len -= sizeof(uint32_t); in sdpu_extract_uid_seq()
373 if (seq_len > param_len) return (NULL); in sdpu_extract_uid_seq()
[all …]
Dsdp_server.cc55 uint16_t param_len, uint8_t* p_req,
59 uint16_t param_len, uint8_t* p_req,
63 uint16_t param_len, uint8_t* p_req,
119 uint16_t trans_num, param_len; in sdp_server_handle_client_req() local
138 if (p_req + sizeof(param_len) > p_req_end) { in sdp_server_handle_client_req()
144 BE_STREAM_TO_UINT16(param_len, p_req); in sdp_server_handle_client_req()
146 if ((p_req + param_len) != p_req_end) { in sdp_server_handle_client_req()
154 process_service_search(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
158 process_service_attr_req(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
162 process_service_search_attr_req(p_ccb, trans_num, param_len, p_req, in sdp_server_handle_client_req()
[all …]
Dsdp_discovery.cc123 uint16_t param_len; in sdp_snd_service_search_req() local
160 param_len = (uint16_t)(p - p_param_len - 2); in sdp_snd_service_search_req()
161 UINT16_TO_BE_STREAM(p_param_len, param_len); in sdp_snd_service_search_req()
419 uint16_t param_len, list_byte_count; in process_service_attr_rsp() local
531 param_len = (uint16_t)(p - p_param_len - 2); in process_service_attr_rsp()
532 UINT16_TO_BE_STREAM(p_param_len, param_len); in process_service_attr_rsp()
563 uint16_t param_len, lists_byte_count = 0; in process_service_search_attr_rsp() local
680 param_len = p - p_param_len - 2; in process_service_search_attr_rsp()
681 UINT16_TO_BE_STREAM(p_param_len, param_len); in process_service_search_attr_rsp()
Dsdpint.h260 extern uint8_t* sdpu_extract_attr_seq(uint8_t* p, uint16_t param_len,
262 extern uint8_t* sdpu_extract_uid_seq(uint8_t* p, uint16_t param_len,
/system/bt/stack/avrc/
Davrc_bld_ct.cc194 uint8_t param_len = in avrc_bld_get_current_player_app_values_cmd() local
197 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_current_player_app_values_cmd()
225 uint8_t param_len = (2 * num_attrib_id) + 1; in avrc_bld_set_current_player_app_values_cmd() local
227 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_set_current_player_app_values_cmd()
255 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd() local
257 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_player_app_setting_attr_text_cmd()
284 uint8_t param_len = p_cmd->num_val + 1; in avrc_bld_get_player_app_setting_value_text_cmd() local
286 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_player_app_setting_value_text_cmd()
314 uint8_t param_len = (4 * num_attrib) + 9; in avrc_bld_get_element_attr_cmd() local
316 UINT16_TO_BE_STREAM(p_data, param_len); in avrc_bld_get_element_attr_cmd()
/system/bt/btif/src/
Dbtif_hd.cc295 int param_len = 0; in bte_hd_evt() local
304 param_len = sizeof(tBTA_HD_STATUS); in bte_hd_evt()
308 param_len = sizeof(tBTA_HD_REG_STATUS); in bte_hd_evt()
315 param_len = sizeof(tBTA_HD_CONN); in bte_hd_evt()
319 param_len += sizeof(tBTA_HD_GET_REPORT); in bte_hd_evt()
323 param_len = sizeof(tBTA_HD_SET_REPORT) + p_data->set_report.len; in bte_hd_evt()
328 param_len += sizeof(p_data->set_protocol); in bte_hd_evt()
332 param_len = sizeof(tBTA_HD_INTR_DATA) + p_data->intr_data.len; in bte_hd_evt()
338 (char*)p_data, param_len, p_copy_cback); in bte_hd_evt()
Dbtif_mce.cc101 uint16_t param_len = sizeof(tBTA_MCE); in mce_dm_cback() local
105 param_len += (p_data->mas_disc_comp.mas[i].srv_name_len + 1); in mce_dm_cback()
109 (char*)p_data, param_len, in mce_dm_cback()
Dbtif_hh.cc1083 int param_len = 0; in bte_hh_evt() local
1086 param_len = sizeof(tBTA_HH_STATUS); in bte_hh_evt()
1088 param_len = sizeof(tBTA_HH_CONN); in bte_hh_evt()
1090 param_len = sizeof(tBTA_HH_STATUS); in bte_hh_evt()
1092 param_len = sizeof(tBTA_HH_CBDATA); in bte_hh_evt()
1094 param_len = sizeof(tBTA_HH_DEV_DSCP_INFO); in bte_hh_evt()
1097 param_len = sizeof(tBTA_HH_HSDATA); in bte_hh_evt()
1100 param_len = sizeof(tBTA_HH_CBDATA); in bte_hh_evt()
1102 param_len = sizeof(tBTA_HH_DEV_INFO); in bte_hh_evt()
1104 param_len = 0; in bte_hh_evt()
[all …]
Dbtif_hl.cc3362 int param_len = 0; in btif_hl_cback() local
3367 param_len = sizeof(tBTA_HL_REGISTER_CFM); in btif_hl_cback()
3370 param_len = sizeof(tBTA_HL_SDP_INFO_IND); in btif_hl_cback()
3373 param_len = sizeof(tBTA_HL_DEREGISTER_CFM); in btif_hl_cback()
3376 param_len = sizeof(tBTA_HL_SDP_QUERY_CFM); in btif_hl_cback()
3379 param_len = sizeof(tBTA_HL_CCH_OPEN_CFM); in btif_hl_cback()
3382 param_len = sizeof(tBTA_HL_DCH_OPEN_CFM); in btif_hl_cback()
3385 param_len = sizeof(tBTA_HL_CCH_OPEN_IND); in btif_hl_cback()
3388 param_len = sizeof(tBTA_HL_DCH_CREATE_IND); in btif_hl_cback()
3391 param_len = sizeof(tBTA_HL_DCH_OPEN_IND); in btif_hl_cback()
[all …]
Dbtif_hf.cc605 int param_len = 0; in bte_hf_evt() local
610 param_len = sizeof(tBTA_AG_REGISTER); in bte_hf_evt()
612 param_len = sizeof(tBTA_AG_OPEN); in bte_hf_evt()
614 param_len = sizeof(tBTA_AG_CONN); in bte_hf_evt()
617 param_len = sizeof(tBTA_AG_HDR); in bte_hf_evt()
619 param_len = sizeof(tBTA_AG_VAL); in bte_hf_evt()
624 (char*)p_data, param_len, NULL); in bte_hf_evt()
Dbtif_core.cc190 char* p_params, int param_len, in btif_transfer_context() argument
193 sizeof(tBTIF_CONTEXT_SWITCH_CBACK) + param_len); in btif_transfer_context()
196 param_len); in btif_transfer_context()
208 memcpy(p_msg->p_param, p_params, param_len); /* callback parameter data */ in btif_transfer_context()
Dbtif_dm.cc2017 uint16_t param_len = 0; in bte_search_devices_evt() local
2019 if (p_data) param_len += sizeof(tBTA_DM_SEARCH); in bte_search_devices_evt()
2024 if (p_data->inq_res.p_eir) param_len += p_data->inq_res.eir_len; in bte_search_devices_evt()
2029 param_len += p_data->disc_res.raw_data_size; in bte_search_devices_evt()
2033 dump_dm_search_event(event), param_len); in bte_search_devices_evt()
2042 btif_dm_search_devices_evt, (uint16_t)event, (char*)p_data, param_len, in bte_search_devices_evt()
2043 (param_len > sizeof(tBTA_DM_SEARCH)) ? search_devices_copy_cb : NULL); in bte_search_devices_evt()
2058 uint16_t param_len = 0; in bte_dm_search_services_evt() local
2059 if (p_data) param_len += sizeof(tBTA_DM_SEARCH); in bte_dm_search_services_evt()
2064 param_len += (p_data->disc_res.num_uuids * MAX_UUID_SIZE); in bte_dm_search_services_evt()
[all …]
/system/bt/stack/hcic/
Dhciblecmds.cc398 uint8_t* param, uint16_t param_len) { in btsnd_hcic_ble_rand() argument
753 uint16_t param_len = 3 + (5 * phy_cnt); in btsnd_hcic_ble_set_extended_scan_params() local
754 p->len = HCIC_PREAMBLE_SIZE + param_len; in btsnd_hcic_ble_set_extended_scan_params()
758 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_set_extended_scan_params()
780 const int param_len = 6; in btsnd_hcic_ble_set_extended_scan_enable() local
781 p->len = HCIC_PREAMBLE_SIZE + param_len; in btsnd_hcic_ble_set_extended_scan_enable()
785 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_set_extended_scan_enable()
809 uint8_t param_len = 10 + (16 * phy_cnt); in btsnd_hcic_ble_ext_create_conn() local
811 p->len = HCIC_PREAMBLE_SIZE + param_len; in btsnd_hcic_ble_ext_create_conn()
815 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_ext_create_conn()
/system/bt/stack/btm/
Dbtm_devctl.cc585 void BTM_VendorSpecificCommand(uint16_t opcode, uint8_t param_len, in BTM_VendorSpecificCommand() argument
588 void* p_buf = osi_malloc(sizeof(BT_HDR) + sizeof(tBTM_CMPL_CB*) + param_len + in BTM_VendorSpecificCommand()
592 param_len); in BTM_VendorSpecificCommand()
595 btsnd_hcic_vendor_spec_cmd(p_buf, opcode, param_len, p_param_buf, in BTM_VendorSpecificCommand()
617 vcs_cplt_params.param_len = evt_len; /* Number of bytes in return info */ in btm_vsc_complete()
Dbtm_ble_cont_energy.cc45 uint16_t len = p_params->param_len; in btm_ble_cont_energy_cmpl_cback()
Dble_advertiser_hci_interface.cc57 uint8_t* param, uint16_t param_len) { in btm_ble_multi_adv_vsc_cmpl_cback() argument
61 LOG_ASSERT(param_len == 2) << "Received bad response length to multi-adv VSC"; in btm_ble_multi_adv_vsc_cmpl_cback()
96 uint8_t param_len, uint8_t* param_buf, in SendAdvCmd() argument
99 param_len, in SendAdvCmd()
/system/nfc/halimpl/bcm2079x/hal/hal/
Dnfc_hal_dm.c93 uint8_t num_param = 0, param_len, rem_len, *p_tlv; in nfc_hal_dm_set_config() local
115 param_len = *p_tlv++; /* param length */ in nfc_hal_dm_set_config()
118 if (rem_len >= param_len) { in nfc_hal_dm_set_config()
119 rem_len -= param_len; in nfc_hal_dm_set_config()
120 p_tlv += param_len; /* next param_type */ in nfc_hal_dm_set_config()
Dnfc_hal_nci.c418 STREAM_TO_UINT8(vcs_cplt_params.param_len, p); in nfc_hal_nci_proc_rx_bt_msg()
423 vcs_cplt_params.param_len -= 3; in nfc_hal_nci_proc_rx_bt_msg()
/system/bt/btif/include/
Dbtif_common.h218 char* p_params, int param_len,
/system/bt/stack/include/
Dsmp_api_types.h266 uint8_t param_len; member
Dbtm_ble_api_types.h274 uint8_t param_len; member
/system/bt/btif/test/
Dbtif_profile_queue_test.cc36 char* p_params, int param_len, in btif_transfer_context() argument
/system/nfc/src/hal/int/
Dnfc_hal_int.h251 uint16_t param_len; member
/system/nfc/src/nfc/nfc/
Dnfc_ncif.cc870 p_intf->intf_param.frame.param_len = len_act; in nfc_ncif_proc_activate()
871 if (p_intf->intf_param.frame.param_len > NFC_MAX_RAW_PARAMS) in nfc_ncif_proc_activate()
872 p_intf->intf_param.frame.param_len = NFC_MAX_RAW_PARAMS; in nfc_ncif_proc_activate()
875 p_intf->intf_param.frame.param_len); in nfc_ncif_proc_activate()

12