Home | History | Annotate | Download | only in btm

Lines Matching defs:inst_id

67 void btm_ble_multi_adv_enq_op_q(UINT8 opcode, UINT8 inst_id, UINT8 cb_evt)
71 p_op_q->p_inst_id[p_op_q->next_idx] = inst_id;
113 UINT8 *p = p_params->p_param_buf, inst_id;
127 btm_ble_multi_adv_deq_op_q(&opcode, &inst_id, &cb_evt);
129 BTM_TRACE_DEBUG("op_code = %02x inst_id = %d cb_evt = %02x", opcode, inst_id, cb_evt);
131 if (opcode != subcode || inst_id == 0)
137 p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
147 btm_multi_adv_cb.p_adv_inst[inst_id-1].in_use = FALSE;
181 (p_inst->p_cback)(cb_evt, inst_id, p_inst->p_ref, status);
193 ** inst_id: adv instance ID, can not be 0
198 tBTM_STATUS btm_ble_enable_multi_adv (BOOLEAN enable, UINT8 inst_id, UINT8 cb_evt)
209 UINT8_TO_STREAM (pp, inst_id);
211 BTM_TRACE_EVENT (" btm_ble_enable_multi_adv: enb %d, Inst ID %d",enb,inst_id);
219 btm_ble_multi_adv_enq_op_q(BTM_BLE_MULTI_ADV_ENB, inst_id, cb_evt);
296 UINT8_TO_STREAM (pp, p_inst->inst_id);
303 p_params->channel_map,p_params->adv_filter_policy,p_inst->inst_id,p_params->tx_power);
322 btm_ble_multi_adv_enq_op_q(BTM_BLE_MULTI_ADV_SET_PARAM, p_inst->inst_id, cb_evt);
344 BTM_TRACE_EVENT ("%s-BD_ADDR:%02x-%02x-%02x-%02x-%02x-%02x,inst_id:%d",
346 random_addr[1], random_addr[0], p_inst->inst_id);
352 UINT8_TO_STREAM(pp, p_inst->inst_id);
365 btm_ble_multi_adv_enq_op_q(BTM_BLE_MULTI_ADV_SET_RANDOM_ADDR, p_inst->inst_id, 0);
409 BTM_TRACE_EVENT ("btm_ble_multi_adv_gen_rpa_cmpl inst_id = %d", p_inst->inst_id);
431 if (p_inst->inst_id != BTM_BLE_MULTI_ADV_DEFAULT_STD &&
432 p_inst->inst_id < BTM_BleMaxMultiAdvInstanceCount())
486 void btm_ble_multi_adv_reenable(UINT8 inst_id)
488 tBTM_BLE_MULTI_ADV_INST *p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
493 btm_ble_enable_multi_adv (TRUE, p_inst->inst_id, 0);
497 (p_inst->p_cback)(BTM_BLE_MULTI_ADV_DISABLE_EVT,p_inst->inst_id,p_inst->p_ref,0);
577 BTM_TRACE_EVENT("btm_ble_enable_multi_adv being called with inst_id:%d",
578 p_inst->inst_id);
582 if ((rt = btm_ble_enable_multi_adv (TRUE, p_inst->inst_id,
608 ** Parameters inst_id: adv instance ID
614 tBTM_STATUS BTM_BleUpdateAdvInstParam (UINT8 inst_id, tBTM_BLE_ADV_PARAMS *p_params)
617 tBTM_BLE_MULTI_ADV_INST *p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
619 BTM_TRACE_EVENT("BTM_BleUpdateAdvInstParam called with inst_id:%d", inst_id);
627 if (inst_id < BTM_BleMaxMultiAdvInstanceCount() &&
628 inst_id != BTM_BLE_MULTI_ADV_DEFAULT_STD &&
633 BTM_TRACE_DEBUG("adv instance %d is not active", inst_id);
637 btm_ble_enable_multi_adv(FALSE, inst_id, 0);
640 rt = btm_ble_enable_multi_adv(TRUE, inst_id, BTM_BLE_MULTI_ADV_PARAM_EVT);
652 ** Parameters inst_id: adv instance ID
660 tBTM_STATUS BTM_BleCfgAdvInstData (UINT8 inst_id, BOOLEAN is_scan_rsp,
682 BTM_TRACE_EVENT("BTM_BleCfgAdvInstData called with inst_id:%d", inst_id);
683 if (inst_id > BTM_BLE_MULTI_ADV_MAX || inst_id == BTM_BLE_MULTI_ADV_DEFAULT_STD)
692 UINT8_TO_STREAM(pp_temp, inst_id);
700 btm_ble_multi_adv_enq_op_q(sub_code, inst_id, BTM_BLE_MULTI_ADV_DATA_EVT);
711 ** Parameters inst_id: adv instance ID
716 tBTM_STATUS BTM_BleDisableAdvInstance (UINT8 inst_id)
721 BTM_TRACE_EVENT("BTM_BleDisableAdvInstance with inst_id:%d", inst_id);
731 if (inst_id < BTM_BleMaxMultiAdvInstanceCount() &&
732 inst_id != BTM_BLE_MULTI_ADV_DEFAULT_STD)
734 if ((rt = btm_ble_enable_multi_adv(FALSE, inst_id, BTM_BLE_MULTI_ADV_DISABLE_EVT))
737 btm_ble_multi_adv_configure_rpa(&btm_multi_adv_cb.p_adv_inst[inst_id-1]);
738 btu_stop_timer_oneshot(&btm_multi_adv_cb.p_adv_inst[inst_id-1].raddr_timer_ent);
739 btm_multi_adv_cb.p_adv_inst[inst_id-1].in_use = FALSE;
840 btm_multi_adv_cb.p_adv_inst[i].inst_id = i + 1;
875 ** Parameters inst_id - Instance ID
880 void* btm_ble_multi_adv_get_ref(UINT8 inst_id)
884 if (inst_id < BTM_BleMaxMultiAdvInstanceCount())
886 p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];