Lines Matching refs:conns
142 btpan_cleanup_conn(&btpan_cb.conns[i]); in btif_pan_init()
170 btpan_cleanup_conn(&btpan_cb.conns[i]); in btif_pan_cleanup()
481 if (btpan_cb.conns[i].handle == handle) in btpan_find_conn_handle()
482 return &btpan_cb.conns[i]; in btpan_find_conn_handle()
491 if (memcmp(btpan_cb.conns[i].peer, addr, sizeof(BD_ADDR)) == 0) in btpan_find_conn_addr()
492 return &btpan_cb.conns[i]; in btpan_find_conn_addr()
569 BTIF_TRACE_DEBUG("conns[%d]:%d", i, btpan_cb.conns[i].handle); in btpan_new_conn()
570 if (btpan_cb.conns[i].handle == -1) in btpan_new_conn()
574 btpan_cb.conns[i].handle = handle; in btpan_new_conn()
575 bdcpy(btpan_cb.conns[i].peer, addr); in btpan_new_conn()
576 btpan_cb.conns[i].local_role = local_role; in btpan_new_conn()
577 btpan_cb.conns[i].remote_role = remote_role; in btpan_new_conn()
578 return &btpan_cb.conns[i]; in btpan_new_conn()
609 UINT16 handle = btpan_cb.conns[i].handle; in forward_bnep()
611 … (broadcast || memcmp(btpan_cb.conns[i].eth_addr, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0 in forward_bnep()
612 || memcmp(btpan_cb.conns[i].peer, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0)) { in forward_bnep()
809 if (btpan_cb.conns[i].handle != -1) in btif_pan_close_all_conns()
810 BTA_PanClose(btpan_cb.conns[i].handle); in btif_pan_close_all_conns()