Lines Matching refs:p_dev

2330 BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if)  in gatt_is_bg_dev_for_app()  argument
2336 if (p_dev->in_use && (p_dev->gatt_if[i] == gatt_if)) in gatt_is_bg_dev_for_app()
2405 tGATT_BG_CONN_DEV *p_dev = NULL; in gatt_add_bg_dev_list() local
2409 if ((p_dev = gatt_find_bg_dev(bd_addr)) == NULL) in gatt_add_bg_dev_list()
2411 p_dev = gatt_alloc_bg_dev(bd_addr); in gatt_add_bg_dev_list()
2414 if (p_dev) in gatt_add_bg_dev_list()
2420 if (p_dev->gatt_if[i] == gatt_if) in gatt_add_bg_dev_list()
2425 else if (p_dev->gatt_if[i] == 0) in gatt_add_bg_dev_list()
2427 p_dev->gatt_if[i] = gatt_if; in gatt_add_bg_dev_list()
2437 if (p_dev->listen_gif[i] == gatt_if) in gatt_add_bg_dev_list()
2442 else if (p_dev->listen_gif[i] == 0) in gatt_add_bg_dev_list()
2448 p_dev->listen_gif[i] = gatt_if; in gatt_add_bg_dev_list()
2499 tGATT_BG_CONN_DEV *p_dev = NULL; in gatt_get_num_apps_for_bg_dev() local
2503 if ((p_dev = gatt_find_bg_dev(bd_addr)) != NULL) in gatt_get_num_apps_for_bg_dev()
2507 if (p_dev->gatt_if[i]) in gatt_get_num_apps_for_bg_dev()
2525 tGATT_BG_CONN_DEV *p_dev = NULL; in gatt_find_app_for_bg_dev() local
2529 if ((p_dev = gatt_find_bg_dev(bd_addr)) == NULL) in gatt_find_app_for_bg_dev()
2536 if (p_dev->gatt_if[i] != 0 ) in gatt_find_app_for_bg_dev()
2538 *p_gatt_if = p_dev->gatt_if[i]; in gatt_find_app_for_bg_dev()
2560 tGATT_BG_CONN_DEV *p_dev = NULL; in gatt_remove_bg_dev_from_list() local
2564 if ((p_dev = gatt_find_bg_dev(bd_addr)) == NULL) in gatt_remove_bg_dev_from_list()
2569 for (i = 0; i < GATT_MAX_APPS && (p_dev->gatt_if[i] > 0 || p_dev->listen_gif[i]); i ++) in gatt_remove_bg_dev_from_list()
2573 if (p_dev->gatt_if[i] == gatt_if) in gatt_remove_bg_dev_from_list()
2575 p_dev->gatt_if[i] = 0; in gatt_remove_bg_dev_from_list()
2578 p_dev->gatt_if[j - 1] = p_dev->gatt_if[j]; in gatt_remove_bg_dev_from_list()
2580 if (p_dev->gatt_if[0] == 0) in gatt_remove_bg_dev_from_list()
2581 ret = BTM_BleUpdateBgConnDev(FALSE, p_dev->remote_bda); in gatt_remove_bg_dev_from_list()
2590 if (p_dev->listen_gif[i] == gatt_if) in gatt_remove_bg_dev_from_list()
2592 p_dev->listen_gif[i] = 0; in gatt_remove_bg_dev_from_list()
2596 p_dev->listen_gif[j - 1] = p_dev->listen_gif[j]; in gatt_remove_bg_dev_from_list()
2598 if (p_dev->listen_gif[0] == 0) in gatt_remove_bg_dev_from_list()
2599 ret = BTM_BleUpdateAdvWhitelist(FALSE, p_dev->remote_bda); in gatt_remove_bg_dev_from_list()
2607 if (i != GATT_MAX_APPS && p_dev->gatt_if[0] == 0 && p_dev->listen_gif[0] == 0) in gatt_remove_bg_dev_from_list()
2609 memset(p_dev, 0, sizeof(tGATT_BG_CONN_DEV)); in gatt_remove_bg_dev_from_list()