Home | History | Annotate | Download | only in compat

Lines Matching defs:csk

240 static int enable_sixaxis(int csk)
246 return write(csk, buf, sizeof(buf));
249 static int create_device(int ctl, int csk, int isk, uint8_t subclass, int nosdp, int nocheck, int bootonly, int encrypt, int timeout)
261 if (getsockname(csk, (struct sockaddr *) &addr, &addrlen) < 0)
269 if (getpeername(csk, (struct sockaddr *) &addr, &addrlen) < 0)
275 req.ctrl_sock = csk;
302 if (getsockopt(csk, SOL_L2CAP, L2CAP_CONNINFO, &conn, &size) < 0)
338 enable_sixaxis(csk);
348 static void run_server(int ctl, int csk, int isk, uint8_t subclass, int nosdp, int nocheck, int bootonly, int encrypt, int timeout)
362 p[0].fd = csk;
378 ncsk = l2cap_accept(csk, NULL);
451 int csk, isk, err;
507 csk = l2cap_connect(src, dst, L2CAP_PSM_HIDP_CTRL);
508 if (csk < 0) {
517 close(csk);
522 err = create_device(ctl, csk, isk, subclass, 1, 1, bootonly, encrypt, timeout);
528 close(csk);
698 int opt, ctl, csk, isk;
786 csk = l2cap_listen(&bdaddr, L2CAP_PSM_HIDP_CTRL, lm, 10);
787 if (csk < 0) {
797 close(csk);
851 run_server(ctl, csk, isk, subclass, nosdp, nocheck, bootonly, encrypt, timeout);
855 close(csk);