Lines Matching refs:dd
275 int dd;
287 dd = g_io_channel_unix_get_fd(io);
289 if (read(dd, buf, sizeof(buf)) < 0)
334 if (hci_send_cmd(dd, OGF_LINK_CTL, OCF_SET_CONN_ENCRYPT,
642 int dd, err;
646 dd = hci_open_dev(index);
647 if (dd < 0)
654 err = ioctl(dd, HCIGETCONNINFO, cr);
672 if (hci_send_cmd(dd, OGF_LINK_CTL, OCF_AUTH_REQUESTED,
690 if (setsockopt(dd, SOL_HCI, HCI_FILTER, &nf, sizeof(nf)) < 0) {
696 io = g_io_channel_unix_new(dd);
706 close(dd);
2559 int dd;
2564 dd = hci_open_dev(index);
2565 if (dd < 0) {
2576 dev = init_dev_info(index, dd, FALSE, already_up);
2603 if (ioctl(dd, HCISETLINKMODE, (unsigned long) &dr) < 0)
2608 if (ioctl(dd, HCIDEVUP, index) < 0 && errno != EALREADY) {
2614 hci_close_dev(dd);
2618 hci_close_dev(dd);
3676 int dd, err;
3683 dd = hci_open_dev(index);
3685 if (dd < 0)
3689 err = hci_write_link_supervision_timeout(dd, htobs(handle),
3694 hci_close_dev(dd);