Lines Matching refs:accept_rs

464     l2cap_socket *accept_rs;  in on_srv_l2cap_psm_connect_l()  local
468 accept_rs = btsock_l2cap_alloc_l(sock->name, (const bt_bdaddr_t*)p_open->rem_bda, FALSE, 0); in on_srv_l2cap_psm_connect_l()
469 accept_rs->connected = TRUE; in on_srv_l2cap_psm_connect_l()
470 accept_rs->security = sock->security; in on_srv_l2cap_psm_connect_l()
471 accept_rs->fixed_chan = sock->fixed_chan; in on_srv_l2cap_psm_connect_l()
472 accept_rs->channel = sock->channel; in on_srv_l2cap_psm_connect_l()
473 accept_rs->handle = sock->handle; in on_srv_l2cap_psm_connect_l()
474 accept_rs->app_uid = sock->app_uid; in on_srv_l2cap_psm_connect_l()
476 accept_rs->is_le_coc = sock->is_le_coc; in on_srv_l2cap_psm_connect_l()
480 new_listen_id = accept_rs->id; in on_srv_l2cap_psm_connect_l()
481 accept_rs->id = sock->id; in on_srv_l2cap_psm_connect_l()
484 if (accept_rs) { in on_srv_l2cap_psm_connect_l()
487 btsock_thread_add_fd(pth, accept_rs->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, in on_srv_l2cap_psm_connect_l()
488 accept_rs->id); in on_srv_l2cap_psm_connect_l()
490 " connection", accept_rs->app_fd); in on_srv_l2cap_psm_connect_l()
492 send_app_connect_signal(sock->our_fd, &accept_rs->addr, sock->channel, 0, in on_srv_l2cap_psm_connect_l()
493 accept_rs->app_fd, p_open->tx_mtu); in on_srv_l2cap_psm_connect_l()
494 accept_rs->app_fd = -1; // The fd is closed after sent to app in send_app_connect_signal() in on_srv_l2cap_psm_connect_l()
505 l2cap_socket *accept_rs; in on_srv_l2cap_le_connect_l() local
509 accept_rs = btsock_l2cap_alloc_l(sock->name, (const bt_bdaddr_t*)p_open->rem_bda, FALSE, 0); in on_srv_l2cap_le_connect_l()
510 if (accept_rs) { in on_srv_l2cap_le_connect_l()
513 new_listen_id = accept_rs->id; in on_srv_l2cap_le_connect_l()
514 accept_rs->id = sock->id; in on_srv_l2cap_le_connect_l()
517 accept_rs->handle = p_open->handle; in on_srv_l2cap_le_connect_l()
518 accept_rs->connected = TRUE; in on_srv_l2cap_le_connect_l()
519 accept_rs->security = sock->security; in on_srv_l2cap_le_connect_l()
520 accept_rs->fixed_chan = sock->fixed_chan; in on_srv_l2cap_le_connect_l()
521 accept_rs->channel = sock->channel; in on_srv_l2cap_le_connect_l()
522 accept_rs->app_uid = sock->app_uid; in on_srv_l2cap_le_connect_l()
526 *(p_open->p_user_data) = UINT_TO_PTR(accept_rs->id); in on_srv_l2cap_le_connect_l()
530 btsock_thread_add_fd(pth, accept_rs->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, in on_srv_l2cap_le_connect_l()
531 accept_rs->id); in on_srv_l2cap_le_connect_l()
533 " connection", accept_rs->app_fd); in on_srv_l2cap_le_connect_l()
535 send_app_connect_signal(sock->our_fd, &accept_rs->addr, sock->channel, 0, in on_srv_l2cap_le_connect_l()
536 accept_rs->app_fd, p_open->tx_mtu); in on_srv_l2cap_le_connect_l()
537 accept_rs->app_fd = -1; //the fd is closed after sent to app in on_srv_l2cap_le_connect_l()