Lines Matching refs:dev_fd
324 int dev_fd; in virtual_dev_open() local
327 dev_fd = *(int *)data; in virtual_dev_open()
329 len = read(dev_fd, buf, 258); in virtual_dev_open()
336 write(dev_fd, nci_reset_rsp, sizeof(nci_reset_rsp)); in virtual_dev_open()
338 len = read(dev_fd, buf, 258); in virtual_dev_open()
345 write(dev_fd, nci_init_rsp, sizeof(nci_init_rsp)); in virtual_dev_open()
347 len = read(dev_fd, buf, 258); in virtual_dev_open()
354 write(dev_fd, nci_rf_disc_map_rsp, sizeof(nci_rf_disc_map_rsp)); in virtual_dev_open()
364 int dev_fd; in virtual_dev_open_v2() local
367 dev_fd = *(int *)data; in virtual_dev_open_v2()
369 len = read(dev_fd, buf, 258); in virtual_dev_open_v2()
376 write(dev_fd, nci_reset_rsp_v2, sizeof(nci_reset_rsp_v2)); in virtual_dev_open_v2()
377 write(dev_fd, nci_reset_ntf, sizeof(nci_reset_ntf)); in virtual_dev_open_v2()
379 len = read(dev_fd, buf, 258); in virtual_dev_open_v2()
386 write(dev_fd, nci_init_rsp_v2, sizeof(nci_init_rsp_v2)); in virtual_dev_open_v2()
388 len = read(dev_fd, buf, 258); in virtual_dev_open_v2()
395 write(dev_fd, nci_rf_disc_map_rsp, sizeof(nci_rf_disc_map_rsp)); in virtual_dev_open_v2()
455 int dev_fd; in virtual_deinit() local
458 dev_fd = *(int *)data; in virtual_deinit()
460 len = read(dev_fd, buf, 258); in virtual_deinit()
467 write(dev_fd, nci_reset_rsp, sizeof(nci_reset_rsp)); in virtual_deinit()
477 int dev_fd; in virtual_deinit_v2() local
480 dev_fd = *(int *)data; in virtual_deinit_v2()
482 len = read(dev_fd, buf, 258); in virtual_deinit_v2()
489 write(dev_fd, nci_reset_rsp_v2, sizeof(nci_reset_rsp_v2)); in virtual_deinit_v2()
490 write(dev_fd, nci_reset_ntf, sizeof(nci_reset_ntf)); in virtual_deinit_v2()
540 int dev_fd; in virtual_poll_start() local
543 dev_fd = *(int *)data; in virtual_poll_start()
545 len = read(dev_fd, buf, 258); in virtual_poll_start()
552 write(dev_fd, nci_rf_disc_rsp, sizeof(nci_rf_disc_rsp)); in virtual_poll_start()
562 int dev_fd; in virtual_poll_stop() local
565 dev_fd = *(int *)data; in virtual_poll_stop()
567 len = read(dev_fd, buf, 258); in virtual_poll_stop()
574 write(dev_fd, nci_rf_deact_rsp, sizeof(nci_rf_deact_rsp)); in virtual_poll_stop()