Lines Matching refs:data_fd
1721 int i, ret, dev_fd, data_fd, key_fd = -1; in do_rpmb_read_block() local
1767 data_fd = STDOUT_FILENO; in do_rpmb_read_block()
1769 data_fd = open(argv[4], O_WRONLY | O_CREAT | O_APPEND, in do_rpmb_read_block()
1771 if (data_fd < 0) { in do_rpmb_read_block()
1844 ret = DO_IO(write, data_fd, frame_out->data, sizeof(frame_out->data)); in do_rpmb_read_block()
1858 if (data_fd != STDOUT_FILENO) in do_rpmb_read_block()
1859 close(data_fd); in do_rpmb_read_block()
1868 int ret, dev_fd, key_fd, data_fd; in do_rpmb_write_block() local
1905 data_fd = STDIN_FILENO; in do_rpmb_write_block()
1907 data_fd = open(argv[3], O_RDONLY); in do_rpmb_write_block()
1908 if (data_fd < 0) { in do_rpmb_write_block()
1914 ret = DO_IO(read, data_fd, frame_in.data, sizeof(frame_in.data)); in do_rpmb_write_block()
1968 if (data_fd != STDIN_FILENO) in do_rpmb_write_block()
1969 close(data_fd); in do_rpmb_write_block()