Lines Matching refs:channel
74 int channel; //channel (fixed_chan) or PSM (!fixed_chan) member
281 if ((sock->channel >= 0) && (sock->server == TRUE)) { in btsock_l2cap_free_l()
283 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE); in btsock_l2cap_free_l()
285 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP); in btsock_l2cap_free_l()
408 return sock_send_all(sock->our_fd, (const uint8_t*)&sock->channel, sizeof(sock->channel)) in send_app_psm_or_chan_l()
409 == sizeof(sock->channel); in send_app_psm_or_chan_l()
413 int channel, int status, int send_fd, int tx_mtu) in send_app_connect_signal() argument
418 cs.channel = channel; in send_app_connect_signal()
491 accept_rs->channel = sock->channel; in on_srv_l2cap_psm_connect_l()
508 APPL_TRACE_DEBUG("server fd:%d, scn:%d", sock->our_fd, sock->channel); in on_srv_l2cap_psm_connect_l()
509 send_app_connect_signal(sock->our_fd, &accept_rs->addr, sock->channel, 0, in on_srv_l2cap_psm_connect_l()
538 accept_rs->channel = sock->channel; in on_srv_l2cap_le_connect_l()
550 APPL_TRACE_DEBUG("server fd:%d, scn:%d", sock->our_fd, sock->channel); in on_srv_l2cap_le_connect_l()
551 send_app_connect_signal(sock->our_fd, &accept_rs->addr, sock->channel, 0, in on_srv_l2cap_le_connect_l()
566 if (send_app_connect_signal(sock->our_fd, &sock->addr, sock->channel, 0, -1, p_open->tx_mtu)) { in on_cl_l2cap_psm_connect_l()
569 " server:%d", sock->id, sock->channel, sock->server); in on_cl_l2cap_psm_connect_l()
585 if (send_app_connect_signal(sock->our_fd, &sock->addr, sock->channel, 0, -1, p_open->tx_mtu)) { in on_cl_l2cap_le_connect_l()
588 " server:%d", sock->id, sock->channel, sock->server); in on_cl_l2cap_le_connect_l()
632 sock->channel, sock->server); in on_l2cap_close()
637 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP); in on_l2cap_close()
832 sock->channel = psm; in on_l2cap_psm_assigned()
854 if (BTA_JvL2capStartServerLE(sock->security, 0, NULL, sock->channel, in btSock_start_l2cap_server_l()
862 if(sock->channel < 0) { in btSock_start_l2cap_server_l()
868 sock->channel, L2CAP_MAX_SDU_LENGTH, &cfg, btsock_l2cap_cbk, (void*)sock->id) in btSock_start_l2cap_server_l()
877 int channel, int* sock_fd, int flags, char listen) in btsock_l2cap_listen_or_connect() argument
887 if(channel < 0) { in btsock_l2cap_listen_or_connect()
891 fixed_chan = (channel & L2CAP_MASK_FIXED_CHANNEL) != 0; in btsock_l2cap_listen_or_connect()
892 channel &=~ L2CAP_MASK_FIXED_CHANNEL; in btsock_l2cap_listen_or_connect()
906 sock->channel = channel; in btsock_l2cap_listen_or_connect()
922 if (BTA_JvL2capConnectLE(sock->security, 0, NULL, channel, in btsock_l2cap_listen_or_connect()
929 channel, L2CAP_MAX_SDU_LENGTH, &cfg, sock->addr.address, in btsock_l2cap_listen_or_connect()
952 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, int flags) in btsock_l2cap_listen() argument
954 return btsock_l2cap_listen_or_connect(name, NULL, channel, sock_fd, flags, 1); in btsock_l2cap_listen()
957 bt_status_t btsock_l2cap_connect(const bt_bdaddr_t *bd_addr, int channel, int* sock_fd, int flags) in btsock_l2cap_connect() argument
959 return btsock_l2cap_listen_or_connect(NULL, bd_addr, channel, sock_fd, flags, 0); in btsock_l2cap_connect()
1036 if(BTA_JvL2capWriteFixed(sock->channel, (BD_ADDR*)&sock->addr, in btsock_l2cap_signaled()