Home
last modified time | relevance | path

Searched refs:p_params (Results 1 – 25 of 29) sorted by relevance

12

/system/bt/btif/src/
Dbtif_ble_advertiser.cc64 void parseParams(tBTM_BLE_ADV_PARAMS* p_params, in parseParams() argument
66 p_params->advertising_event_properties = params.advertising_event_properties; in parseParams()
67 p_params->adv_int_min = params.min_interval; in parseParams()
68 p_params->adv_int_max = params.max_interval; in parseParams()
69 p_params->channel_map = params.channel_map; in parseParams()
70 p_params->adv_filter_policy = 0; in parseParams()
71 p_params->tx_power = params.tx_power; in parseParams()
72 p_params->primary_advertising_phy = params.primary_advertising_phy; in parseParams()
73 p_params->secondary_advertising_phy = params.secondary_advertising_phy; in parseParams()
74 p_params->scan_request_notification_enable = in parseParams()
[all …]
Dbtif_core.cc128 char* p_params, int param_len, in btif_transfer_context() argument
144 p_copy_cback(event, p_msg->p_param, p_params); in btif_transfer_context()
145 } else if (p_params) { in btif_transfer_context()
146 memcpy(p_msg->p_param, p_params, param_len); /* callback parameter data */ in btif_transfer_context()
/system/nfc/src/nfc/llcp/
Dllcp_util.cc423 tLLCP_CONNECTION_PARAMS* p_params) { in llcp_util_send_connect() argument
428 if (p_params->miu != LLCP_DEFAULT_MIU) { in llcp_util_send_connect()
431 if (p_params->rw != LLCP_DEFAULT_RW) { in llcp_util_send_connect()
433 p_params->rw &= 0x0F; /* only 4 bits */ in llcp_util_send_connect()
435 if ((strlen(p_params->sn)) && (p_dlcb->remote_sap == LLCP_SAP_SDP)) { in llcp_util_send_connect()
436 sn_len = (uint16_t)(2 + strlen(p_params->sn)); /* TYPE, LEN, SN */ in llcp_util_send_connect()
454 UINT16_TO_BE_STREAM(p, p_params->miu - LLCP_DEFAULT_MIU); in llcp_util_send_connect()
460 UINT8_TO_BE_STREAM(p, p_params->rw); in llcp_util_send_connect()
466 memcpy(p, p_params->sn, sn_len - 2); in llcp_util_send_connect()
488 tLLCP_CONNECTION_PARAMS* p_params) { in llcp_util_parse_connect() argument
[all …]
Dllcp_dlc.cc117 tLLCP_CONNECTION_PARAMS* p_params; in llcp_dlsm_idle() local
123 p_params = (tLLCP_CONNECTION_PARAMS*)p_data; in llcp_dlsm_idle()
125 status = llcp_util_send_connect(p_dlcb, p_params); in llcp_dlsm_idle()
128 p_dlcb->local_miu = p_params->miu; in llcp_dlsm_idle()
129 p_dlcb->local_rw = p_params->rw; in llcp_dlsm_idle()
144 p_params = (tLLCP_CONNECTION_PARAMS*)p_data; in llcp_dlsm_idle()
146 if (p_params->miu > llcp_cb.lcb.peer_miu) { in llcp_dlsm_idle()
150 p_params->miu = llcp_cb.lcb.peer_miu; in llcp_dlsm_idle()
156 data.connect_ind.miu = p_params->miu; in llcp_dlsm_idle()
157 data.connect_ind.rw = p_params->rw; in llcp_dlsm_idle()
[all …]
Dllcp_api.cc840 tLLCP_CONNECTION_PARAMS* p_params) { in LLCP_ConnectReq() argument
855 if (!p_params) { in LLCP_ConnectReq()
859 p_params = &params; in LLCP_ConnectReq()
877 if (strlen(p_params->sn) > LLCP_MAX_SN_LEN) { in LLCP_ConnectReq()
879 strlen(p_params->sn)); in LLCP_ConnectReq()
884 if ((p_params) && (p_params->miu > llcp_cb.lcb.local_link_miu)) { in LLCP_ConnectReq()
908 llcp_dlsm_execute(p_dlcb, LLCP_DLC_EVENT_API_CONNECT_REQ, p_params); in LLCP_ConnectReq()
933 tLLCP_CONNECTION_PARAMS* p_params) { in LLCP_ConnectCfm() argument
941 if (!p_params) { in LLCP_ConnectCfm()
945 p_params = &params; in LLCP_ConnectCfm()
[all …]
/system/bt/stack/hcic/
Dhcicmds.cc1452 uint16_t conn_handle, enh_esco_params_t* p_params) { in btsnd_hcic_enhanced_set_up_synchronous_connection() argument
1463 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1464 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1465 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1466 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1468 p_params->transmit_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1469 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1470 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1472 p_params->receive_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1473 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
[all …]
/system/bt/stack/btm/
Dbtm_ble_cont_energy.cc46 static void btm_ble_cont_energy_cmpl_cback(tBTM_VSC_CMPL* p_params) { in btm_ble_cont_energy_cmpl_cback() argument
47 uint8_t* p = p_params->p_param_buf; in btm_ble_cont_energy_cmpl_cback()
48 uint16_t len = p_params->param_len; in btm_ble_cont_energy_cmpl_cback()
Dbtm_ble_multi_adv.cc671 void SetParameters(uint8_t inst_id, tBTM_BLE_ADV_PARAMS* p_params, in SetParameters() argument
691 p_params->advertising_event_properties; in SetParameters()
692 p_inst->tx_power = p_params->tx_power; in SetParameters()
693 p_inst->advertising_interval = p_params->adv_int_min; in SetParameters()
701 p_inst->inst_id, p_params->advertising_event_properties, in SetParameters()
702 p_params->adv_int_min, p_params->adv_int_max, p_params->channel_map, in SetParameters()
704 p_params->adv_filter_policy, p_inst->tx_power, in SetParameters()
705 p_params->primary_advertising_phy, 0x00, in SetParameters()
706 p_params->secondary_advertising_phy, sid, in SetParameters()
707 p_params->scan_request_notification_enable, cb); in SetParameters()
Dbtm_sco.cc1338 static uint16_t btm_sco_voice_settings_to_legacy(enh_esco_params_t* p_params) { in btm_sco_voice_settings_to_legacy() argument
1343 if (p_params->input_coding_format.coding_format == ESCO_CODING_FORMAT_ULAW) in btm_sco_voice_settings_to_legacy()
1345 else if (p_params->input_coding_format.coding_format == in btm_sco_voice_settings_to_legacy()
1351 switch (p_params->input_pcm_data_format) { in btm_sco_voice_settings_to_legacy()
1371 switch (p_params->transmit_coding_format.coding_format) { in btm_sco_voice_settings_to_legacy()
1389 voice_settings |= (uint16_t)(((p_params->input_pcm_payload_msb_position & 0x7) in btm_sco_voice_settings_to_legacy()
1393 if (p_params->input_coded_data_size == 16) in btm_sco_voice_settings_to_legacy()
Dbtm_ble_privacy.cc383 static void btm_ble_resolving_list_vsc_op_cmpl(tBTM_VSC_CMPL* p_params) { in btm_ble_resolving_list_vsc_op_cmpl() argument
384 uint8_t *p = p_params->p_param_buf, op_subcode; in btm_ble_resolving_list_vsc_op_cmpl()
385 uint16_t evt_len = p_params->param_len; in btm_ble_resolving_list_vsc_op_cmpl()
/system/bt/stack/test/common/
Dmock_stack_avdt_msg.cc31 void avdt_msg_send_rsp(AvdtpCcb* p_ccb, uint8_t sig_id, tAVDT_MSG* p_params) { in avdt_msg_send_rsp() argument
52 void avdt_msg_send_rej(AvdtpCcb* p_ccb, uint8_t sig_id, tAVDT_MSG* p_params) { in avdt_msg_send_rej() argument
59 tAVDT_MSG* p_params) { in avdt_msg_send_cmd() argument
/system/nfc/src/nfc/nfc/
Dnfc_main.cc928 tNFC_DISCOVER_PARAMS* p_params, in NFC_DiscoveryStart() argument
948 memcpy(p, p_params, params_size); in NFC_DiscoveryStart()
1237 tNFC_STATUS NFC_UpdateRFCommParams(tNFC_RF_COMM_PARAMS* p_params) { in NFC_UpdateRFCommParams() argument
1243 if (p_params->include_rf_tech_mode) { in NFC_UpdateRFCommParams()
1246 UINT8_TO_STREAM(p, p_params->rf_tech_n_mode); in NFC_UpdateRFCommParams()
1250 if (p_params->include_tx_bit_rate) { in NFC_UpdateRFCommParams()
1253 UINT8_TO_STREAM(p, p_params->tx_bit_rate); in NFC_UpdateRFCommParams()
1257 if (p_params->include_tx_bit_rate) { in NFC_UpdateRFCommParams()
1260 UINT8_TO_STREAM(p, p_params->rx_bit_rate); in NFC_UpdateRFCommParams()
1264 if (p_params->include_nfc_b_config) { in NFC_UpdateRFCommParams()
[all …]
/system/nfc/src/nfa/ce/
Dnfa_ce_act.cc327 uint8_t tlv[128], *p_params; in nfc_ce_t3t_set_listen_params() local
336 p_params = tlv; in nfc_ce_t3t_set_listen_params()
343 UINT8_TO_STREAM(p_params, NFC_PMID_LF_T3T_ID1 + t3t_idx); /* type */ in nfc_ce_t3t_set_listen_params()
345 UINT8_TO_STREAM(p_params, NCI_PARAM_LEN_LF_T3T_ID(NFC_GetNCIVersion())); in nfc_ce_t3t_set_listen_params()
347 UINT16_TO_BE_STREAM(p_params, p_cb->listen_info[i].t3t_system_code); in nfc_ce_t3t_set_listen_params()
348 ARRAY_TO_BE_STREAM(p_params, p_cb->listen_info[i].t3t_nfcid2, in nfc_ce_t3t_set_listen_params()
351 ARRAY_TO_BE_STREAM(p_params, p_cb->listen_info[i].t3t_pmm, in nfc_ce_t3t_set_listen_params()
363 UINT8_TO_STREAM(p_params, NFC_PMID_LF_T3T_FLAGS2); /* type */ in nfc_ce_t3t_set_listen_params()
364 UINT8_TO_STREAM(p_params, NCI_PARAM_LEN_LF_T3T_FLAGS2); /* length */ in nfc_ce_t3t_set_listen_params()
366 UINT16_TO_STREAM(p_params, t3t_flags2_mask); in nfc_ce_t3t_set_listen_params()
[all …]
/system/bt/btif/test/
Dbtif_hf_client_service_test.cc21 char* p_params, int param_len, in btif_transfer_context() argument
Dbtif_rc_test.cc84 char* p_params, int param_len, in btif_transfer_context() argument
/system/nfc/src/nfc/include/
Dllcp_int.h322 tLLCP_CONNECTION_PARAMS* p_params);
324 tLLCP_CONNECTION_PARAMS* p_params);
326 tLLCP_CONNECTION_PARAMS* p_params);
Dllcp_api.h456 tLLCP_CONNECTION_PARAMS* p_params);
470 tLLCP_CONNECTION_PARAMS* p_params);
/system/bt/stack/avdt/
Davdt_msg.cc1337 tAVDT_MSG* p_params) { in avdt_msg_send_cmd() argument
1347 (*avdt_msg_bld_cmd[sig_id - 1])(&p, p_params); in avdt_msg_send_cmd()
1393 void avdt_msg_send_rsp(AvdtpCcb* p_ccb, uint8_t sig_id, tAVDT_MSG* p_params) { in avdt_msg_send_rsp() argument
1403 (*avdt_msg_bld_rsp[sig_id - 1])(&p, p_params); in avdt_msg_send_rsp()
1411 p_params->hdr.label); in avdt_msg_send_rsp()
1433 void avdt_msg_send_rej(AvdtpCcb* p_ccb, uint8_t sig_id, tAVDT_MSG* p_params) { in avdt_msg_send_rej() argument
1446 AVDT_MSG_BLD_PARAM(p, p_params->hdr.err_param); in avdt_msg_send_rej()
1448 AVDT_MSG_BLD_SEID(p, p_params->hdr.err_param); in avdt_msg_send_rej()
1452 AVDT_MSG_BLD_ERR(p, p_params->hdr.err_code); in avdt_msg_send_rej()
1462 p_params->hdr.label); in avdt_msg_send_rej()
[all …]
Davdt_int.h933 tAVDT_MSG* p_params);
935 tAVDT_MSG* p_params);
937 tAVDT_MSG* p_params);
939 tAVDT_MSG* p_params);
/system/bt/test/mock/
Dmock_btif_core.cc82 char* p_params, int param_len, in btif_transfer_context() argument
Dmock_hcic_hcicmds.cc96 const RawAddress& bd_addr, enh_esco_params_t* p_params) { in btsnd_hcic_enhanced_accept_synchronous_connection() argument
103 uint16_t conn_handle, enh_esco_params_t* p_params) { in btsnd_hcic_enhanced_set_up_synchronous_connection() argument
/system/bt/stack/include/
Dble_advertiser.h126 virtual void SetParameters(uint8_t inst_id, tBTM_BLE_ADV_PARAMS* p_params,
/system/nfc/src/nfa/dm/
Dnfa_dm_act.cc1727 tNFA_TAG_PARAMS* p_params) { in nfa_dm_notify_activation_status() argument
1747 if (p_params) { in nfa_dm_notify_activation_status()
1748 memcpy(&(evt_data.activated.params), p_params, sizeof(tNFA_TAG_PARAMS)); in nfa_dm_notify_activation_status()
1753 if ((p_tech_params->param.pa.nfcid1_len == 0) && (p_params != nullptr)) { in nfa_dm_notify_activation_status()
1754 nfcid_len = sizeof(p_params->t1t.uid); in nfa_dm_notify_activation_status()
1755 p_nfcid = p_params->t1t.uid; in nfa_dm_notify_activation_status()
Dnfa_dm_api.cc843 tNFA_STATUS NFA_UpdateRFCommParams(tNFA_RF_COMM_PARAMS* p_params) { in NFA_UpdateRFCommParams() argument
852 memcpy(&p_msg->params, p_params, sizeof(tNFA_RF_COMM_PARAMS)); in NFA_UpdateRFCommParams()
/system/bt/btif/include/
Dbtif_common.h192 char* p_params, int param_len,

12