Lines Matching refs:p_inst
116 tBTM_BLE_MULTI_ADV_INST *p_inst ;
138 p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
180 if (cb_evt != 0 && p_inst->p_cback != NULL)
182 (p_inst->p_cback)(cb_evt, inst_id, p_inst->p_ref, status);
253 tBTM_STATUS btm_ble_multi_adv_set_params (tBTM_BLE_MULTI_ADV_INST *p_inst,
274 BDADDR_TO_STREAM (pp, p_inst->rpa);
297 UINT8_TO_STREAM (pp, p_inst->inst_id);
304 p_params->channel_map,p_params->adv_filter_policy,p_inst->inst_id,p_params->tx_power);
312 p_inst->adv_evt = p_params->adv_type;
316 alarm_set_on_queue(p_inst->adv_raddr_timer,
318 btm_ble_adv_raddr_timer_timeout, p_inst,
322 btm_ble_multi_adv_enq_op_q(BTM_BLE_MULTI_ADV_SET_PARAM, p_inst->inst_id, cb_evt);
339 tBTM_STATUS btm_ble_multi_adv_write_rpa (tBTM_BLE_MULTI_ADV_INST *p_inst, BD_ADDR random_addr)
346 random_addr[1], random_addr[0], p_inst->inst_id);
352 UINT8_TO_STREAM(pp, p_inst->inst_id);
361 alarm_set_on_queue(p_inst->adv_raddr_timer,
363 btm_ble_adv_raddr_timer_timeout, p_inst,
366 p_inst->inst_id, 0);
386 tBTM_BLE_MULTI_ADV_INST *p_inst = NULL;
408 p_inst = &(btm_multi_adv_cb.p_adv_inst[index]);
410 BTM_TRACE_EVENT ("btm_ble_multi_adv_gen_rpa_cmpl inst_id = %d", p_inst->inst_id);
416 p_inst->rpa[2] = p->param_buf[0];
417 p_inst->rpa[1] = p->param_buf[1];
418 p_inst->rpa[0] = p->param_buf[2];
427 p_inst->rpa[5] = output.param_buf[0];
428 p_inst->rpa[4] = output.param_buf[1];
429 p_inst->rpa[3] = output.param_buf[2];
432 if (p_inst->inst_id != BTM_BLE_MULTI_ADV_DEFAULT_STD &&
433 p_inst->inst_id < BTM_BleMaxMultiAdvInstanceCount())
436 btm_ble_multi_adv_write_rpa(p_inst, p_inst->rpa);
453 void btm_ble_multi_adv_configure_rpa (tBTM_BLE_MULTI_ADV_INST *p_inst)
471 btm_multi_adv_idx_q.inst_index_queue[btm_multi_adv_idx_q.rear] = p_inst->index;
489 tBTM_BLE_MULTI_ADV_INST *p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
491 if (TRUE == p_inst->in_use)
493 if (p_inst->adv_evt != BTM_BLE_CONNECT_DIR_EVT)
494 btm_ble_enable_multi_adv (TRUE, p_inst->inst_id, 0);
498 (p_inst->p_cback)(BTM_BLE_MULTI_ADV_DISABLE_EVT,p_inst->inst_id,p_inst->p_ref,0);
499 p_inst->in_use = FALSE;
518 tBTM_BLE_MULTI_ADV_INST *p_inst = &btm_multi_adv_cb.p_adv_inst[0];
520 for (i = 0; i < BTM_BleMaxMultiAdvInstanceCount() - 1; i ++, p_inst++)
522 p_inst->in_use = FALSE;
524 btm_ble_multi_adv_configure_rpa(p_inst);
526 alarm_cancel(p_inst->adv_raddr_timer);
550 tBTM_BLE_MULTI_ADV_INST *p_inst = &btm_multi_adv_cb.p_adv_inst[0];
560 if (NULL == p_inst)
566 for (i = 0; i < BTM_BleMaxMultiAdvInstanceCount() - 1; i ++, p_inst++)
568 if (FALSE == p_inst->in_use)
570 p_inst->in_use = TRUE;
573 rt = btm_ble_multi_adv_set_params(p_inst, p_params, 0);
579 p_inst->inst_id);
583 if ((rt = btm_ble_enable_multi_adv (TRUE, p_inst->inst_id,
586 p_inst->p_cback = p_cback;
587 p_inst->p_ref = p_ref;
593 p_inst->in_use = FALSE;
618 tBTM_BLE_MULTI_ADV_INST *p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
632 if (FALSE == p_inst->in_use)
640 if (BTM_CMD_STARTED == btm_ble_multi_adv_set_params(p_inst, p_params, 0))
878 tBTM_BLE_MULTI_ADV_INST *p_inst = NULL;
882 p_inst = &btm_multi_adv_cb.p_adv_inst[inst_id - 1];
883 if (NULL != p_inst)
884 return p_inst->p_ref;