Lines Matching refs:first_unuse
179 uint8_t i, first_unuse = 0xff; in bta_gatts_register() local
197 if (first_unuse == 0xff && !p_cb->rcb[i].in_use) { in bta_gatts_register()
198 first_unuse = i; in bta_gatts_register()
205 if (first_unuse != 0xff) { in bta_gatts_register()
206 LOG(INFO) << "register application first_unuse rcb_idx=" << +first_unuse; in bta_gatts_register()
208 p_cb->rcb[first_unuse].in_use = true; in bta_gatts_register()
209 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback; in bta_gatts_register()
210 p_cb->rcb[first_unuse].app_uuid = p_msg->api_reg.app_uuid; in bta_gatts_register()
211 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register()
214 if (!p_cb->rcb[first_unuse].gatt_if) { in bta_gatts_register()
220 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()