Lines Matching refs:firmware
64 static void LoadFirmware(const std::string& firmware, const std::string& root, int fw_fd, in LoadFirmware() argument
72 PLOG(ERROR) << "firmware: sendfile failed { '" << root << "', '" << firmware << "' }"; in LoadFirmware()
127 setenv("FIRMWARE", uevent.firmware.c_str(), 1); in RunExternalHandler()
196 << "' for devpath: '" << uevent.path << "' firmware: '" << uevent.firmware in GetFirmwarePath()
204 return uevent.firmware; in GetFirmwarePath()
210 return uevent.firmware; in GetFirmwarePath()
212 LOG(INFO) << "Loading firmware '" << *result << "' in place of '" << uevent.firmware in GetFirmwarePath()
217 LOG(INFO) << "firmware: loading '" << uevent.firmware << "' for '" << uevent.path << "'"; in GetFirmwarePath()
218 return uevent.firmware; in GetFirmwarePath()
222 const std::string& firmware) const { in ProcessFirmwareEvent()
228 PLOG(ERROR) << "couldn't open firmware loading fd for " << firmware; in ProcessFirmwareEvent()
234 PLOG(ERROR) << "couldn't open firmware data fd for " << firmware; in ProcessFirmwareEvent()
240 std::string file = firmware_directory + firmware; in ProcessFirmwareEvent()
253 LoadFirmware(firmware, root, fw_fd, sb.st_size, loading_fd, data_fd); in ProcessFirmwareEvent()
272 LOG(ERROR) << "firmware: could not find firmware for " << firmware; in ProcessFirmwareEvent()
314 PLOG(ERROR) << "could not fork to process firmware event for " << uevent.firmware; in HandleUevent()
318 auto firmware = GetFirmwarePath(uevent); in HandleUevent() local
319 ProcessFirmwareEvent("/sys" + uevent.path, firmware); in HandleUevent()