Lines Matching refs:sock
83 int sock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI);
87 if(sock < 0) {
94 if (setsockopt(sock, SOL_HCI, HCI_DATA_DIR, &opt, sizeof(opt)) < 0) {
103 if(bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
109 return sock;
152 int sock = get_hci_sock();
154 if (sock < 0)
155 return sock;
157 ret = vendor_sleep(sock);
158 close(sock);
165 int sock = get_hci_sock();
168 if (sock < 0)
169 return sock;
178 ret = vendor_high_priority(sock, acl);
179 close(sock);
186 int sock = get_hci_sock();
190 if (sock < 0)
191 return sock;
200 ret = get_acl_handle(sock, bdaddr);
203 ret = vendor_high_priority(sock, ret);
206 close(sock);