Lines Matching refs:virtual_fd
581 int start_polling(int dev_idx, int proto, int virtual_fd, int sd, int fid, int pid) in start_polling() argument
592 (void *)&virtual_fd); in start_polling()
605 int stop_polling(int dev_idx, int virtual_fd, int sd, int fid, int pid) in stop_polling() argument
612 (void *)&virtual_fd); in stop_polling()
719 int connect_tag(int dev_idx, int virtual_fd, int sd, int fid, int pid) in connect_tag() argument
728 write(virtual_fd, nci_rf_activate_ntf, sizeof(nci_rf_activate_ntf)); in connect_tag()
745 int read_write_nci_cmd(int nfc_sock, int virtual_fd, const __u8 *cmd, __u32 cmd_len, in read_write_nci_cmd() argument
752 len = read(virtual_fd, buf, cmd_len); in read_write_nci_cmd()
756 write(virtual_fd, rsp, rsp_len); in read_write_nci_cmd()
764 int read_tag(int nfc_sock, int virtual_fd) in read_tag() argument
766 if (read_write_nci_cmd(nfc_sock, virtual_fd, nci_t4t_select_cmd, in read_tag()
771 if (read_write_nci_cmd(nfc_sock, virtual_fd, nci_t4t_select_cmd2, in read_tag()
776 if (read_write_nci_cmd(nfc_sock, virtual_fd, nci_t4t_read_cmd, in read_tag()
781 if (read_write_nci_cmd(nfc_sock, virtual_fd, nci_t4t_select_cmd3, in read_tag()
786 if (read_write_nci_cmd(nfc_sock, virtual_fd, nci_t4t_read_cmd2, in read_tag()
791 return read_write_nci_cmd(nfc_sock, virtual_fd, nci_t4t_read_cmd3, in read_tag()
798 int virtual_fd; in virtual_deactivate_proc() local
803 virtual_fd = *(int *)data; in virtual_deactivate_proc()
805 len = read(virtual_fd, buf, deactcmd_len); in virtual_deactivate_proc()
809 write(virtual_fd, nci_rf_deact_rsp, sizeof(nci_rf_deact_rsp)); in virtual_deactivate_proc()
810 write(virtual_fd, nci_rf_deact_ntf, sizeof(nci_rf_deact_ntf)); in virtual_deactivate_proc()
815 int disconnect_tag(int nfc_sock, int virtual_fd) in disconnect_tag() argument
823 len = read(virtual_fd, buf, sizeof(nci_t4t_select_cmd3)); in disconnect_tag()
832 (void *)&virtual_fd); in disconnect_tag()