Lines Matching refs:Uevent
39 static void LoadFirmware(const Uevent& uevent, const std::string& root, int fw_fd, size_t fw_size,
47 PLOG(ERROR) << "firmware: sendfile failed { '" << root << "', '" << uevent.firmware
60 static void ProcessFirmwareEvent(const Uevent& uevent) {
63 LOG(INFO) << "firmware: loading '" << uevent.firmware << "' for '" << uevent.path << "'";
65 std::string root = "/sys" + uevent.path;
71 PLOG(ERROR) << "couldn't open firmware loading fd for " << uevent.firmware;
77 PLOG(ERROR) << "couldn't open firmware data fd for " << uevent.firmware;
86 std::string file = firmware_dirs[i] + uevent.firmware;
90 LoadFirmware(uevent, root, fw_fd, sb.st_size, loading_fd, data_fd);
103 LOG(ERROR) << "firmware: could not find firmware for " << uevent.firmware;
109 void HandleFirmwareEvent(const Uevent& uevent) {
110 if (uevent.subsystem != "firmware" || uevent.action != "add") return;
115 PLOG(ERROR) << "could not fork to process firmware event for " << uevent.firmware;
119 ProcessFirmwareEvent(uevent);
120 LOG(INFO) << "loading " << uevent.path << " took " << t;