Lines Matching refs:fw_fd
652 static int load_firmware(int fw_fd, int loading_fd, int data_fd) in load_firmware() argument
658 if(fstat(fw_fd, &st) < 0) in load_firmware()
668 nr = read(fw_fd, buf, sizeof(buf)); in load_firmware()
706 int l, loading_fd, data_fd, fw_fd; in process_firmware_event() local
745 fw_fd = open(file1, O_RDONLY); in process_firmware_event()
746 if(fw_fd < 0) { in process_firmware_event()
747 fw_fd = open(file2, O_RDONLY); in process_firmware_event()
748 if (fw_fd < 0) { in process_firmware_event()
749 fw_fd = open(file3, O_RDONLY); in process_firmware_event()
750 if (fw_fd < 0) { in process_firmware_event()
766 if(!load_firmware(fw_fd, loading_fd, data_fd)) in process_firmware_event()
771 close(fw_fd); in process_firmware_event()