Searched refs:fwe (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/net/wireless/
H A Dat76c50x-usb.c1259 static int at76_load_external_fw(struct usb_device *udev, struct fwentry *fwe) at76_load_external_fw() argument
1266 u8 *buf = fwe->extfw; at76_load_external_fw()
1267 int size = fwe->extfw_size; at76_load_external_fw()
1306 if (at76_is_505a(fwe->board_type)) { at76_load_external_fw()
1320 static int at76_load_internal_fw(struct usb_device *udev, struct fwentry *fwe) at76_load_internal_fw() argument
1323 int need_remap = !at76_is_505a(fwe->board_type); at76_load_internal_fw()
1325 ret = at76_usbdfu_download(udev, fwe->intfw, fwe->intfw_size, at76_load_internal_fw()
1614 struct fwentry *fwe = &firmwares[board_type]; at76_load_firmware() local
1618 if (fwe->loaded) { at76_load_firmware()
1623 at76_dbg(DBG_FW, "downloading firmware %s", fwe->fwname); at76_load_firmware()
1624 ret = request_firmware(&fwe->fw, fwe->fwname, &udev->dev); at76_load_firmware()
1627 fwe->fwname); at76_load_firmware()
1634 fwh = (struct at76_fw_header *)(fwe->fw->data); at76_load_firmware()
1636 if (fwe->fw->size <= sizeof(*fwh)) { at76_load_firmware()
1638 "firmware is too short (0x%zx)\n", fwe->fw->size); at76_load_firmware()
1643 fwe->board_type = le32_to_cpu(fwh->board_type); at76_load_firmware()
1644 if (fwe->board_type != board_type) { at76_load_firmware()
1647 board_type, fwe->board_type); at76_load_firmware()
1651 fwe->fw_version.major = fwh->major; at76_load_firmware()
1652 fwe->fw_version.minor = fwh->minor; at76_load_firmware()
1653 fwe->fw_version.patch = fwh->patch; at76_load_firmware()
1654 fwe->fw_version.build = fwh->build; at76_load_firmware()
1657 fwe->intfw = (u8 *)fwh + le32_to_cpu(fwh->int_fw_offset); at76_load_firmware()
1658 fwe->intfw_size = le32_to_cpu(fwh->int_fw_len); at76_load_firmware()
1659 fwe->extfw = (u8 *)fwh + le32_to_cpu(fwh->ext_fw_offset); at76_load_firmware()
1660 fwe->extfw_size = le32_to_cpu(fwh->ext_fw_len); at76_load_firmware()
1662 fwe->loaded = 1; at76_load_firmware()
1666 fwe->fwname, fwh->major, fwh->minor, fwh->patch, fwh->build); at76_load_firmware()
1676 if (fwe->loaded) at76_load_firmware()
1677 return fwe; at76_load_firmware()
2438 struct fwentry *fwe; at76_probe() local
2454 fwe = at76_load_firmware(udev, board_type); at76_probe()
2455 if (!fwe) { at76_probe()
2479 ret = at76_load_internal_fw(udev, fwe); at76_probe()
2498 if ((fwe->fw_version.major > 0 || fwe->fw_version.minor >= 100) at76_probe()
2511 ret = at76_load_external_fw(udev, fwe); at76_probe()

Completed in 64 milliseconds