Lines Matching refs:conn
81 btpan_conn_t* conn = btpan_find_conn_addr(peer_addr); in bta_pan_co_open() local
82 if (conn == NULL) in bta_pan_co_open()
83 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); in bta_pan_co_open()
84 if (conn) { in bta_pan_co_open()
88 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, in bta_pan_co_open()
89 conn->local_role, conn->remote_role); in bta_pan_co_open()
93 conn->handle = handle; in bta_pan_co_open()
101 conn->state = PAN_STATE_OPEN; in bta_pan_co_open()
120 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_close() local
121 if (conn && conn->state == PAN_STATE_OPEN) { in bta_pan_co_close()
127 conn->state = PAN_STATE_CLOSE; in bta_pan_co_close()
164 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_tx_path() local
165 if (!conn) { in bta_pan_co_tx_path()
168 } else if (conn->state != PAN_STATE_OPEN) { in bta_pan_co_tx_path()
170 __func__, conn, conn->state); in bta_pan_co_tx_path()
182 if (is_empty_eth_addr(conn->eth_addr) && is_valid_bt_eth_addr(src)) { in bta_pan_co_tx_path()
183 VLOG(1) << __func__ << " pan bt peer addr: " << conn->peer in bta_pan_co_tx_path()
185 conn->eth_addr = src; in bta_pan_co_tx_path()
276 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_rx_flow() local
277 if (!conn || conn->state != PAN_STATE_OPEN) return; in bta_pan_co_rx_flow()