Lines Matching refs:conn
80 btpan_conn_t* conn = btpan_find_conn_addr(peer_addr); in bta_pan_co_open() local
81 if(conn == NULL) in bta_pan_co_open()
82 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); in bta_pan_co_open()
83 if(conn) in bta_pan_co_open()
87 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, in bta_pan_co_open()
88 conn->local_role, conn->remote_role); in bta_pan_co_open()
92 conn->handle = handle; in bta_pan_co_open()
103 conn->state = PAN_STATE_OPEN; in bta_pan_co_open()
123 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_close() local
124 if(conn && conn->state == PAN_STATE_OPEN) in bta_pan_co_close()
131 conn->state = PAN_STATE_CLOSE; in bta_pan_co_close()
170 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_tx_path() local
171 if (!conn) in bta_pan_co_tx_path()
176 else if(conn->state != PAN_STATE_OPEN) in bta_pan_co_tx_path()
179 __func__, conn, conn->state); in bta_pan_co_tx_path()
192 if(is_empty_eth_addr(conn->eth_addr) && is_valid_bt_eth_addr(src)) in bta_pan_co_tx_path()
195 bdaddr_to_string((bt_bdaddr_t *)conn->peer, bdstr, sizeof(bdstr))); in bta_pan_co_tx_path()
199 memcpy(conn->eth_addr, src, sizeof(conn->eth_addr)); in bta_pan_co_tx_path()
310 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_rx_flow() local
311 if(!conn || conn->state != PAN_STATE_OPEN) in bta_pan_co_rx_flow()