fwe 1254 drivers/net/wireless/atmel/at76c50x-usb.c static int at76_load_external_fw(struct usb_device *udev, struct fwentry *fwe) fwe 1261 drivers/net/wireless/atmel/at76c50x-usb.c u8 *buf = fwe->extfw; fwe 1262 drivers/net/wireless/atmel/at76c50x-usb.c int size = fwe->extfw_size; fwe 1301 drivers/net/wireless/atmel/at76c50x-usb.c if (at76_is_505a(fwe->board_type)) { fwe 1315 drivers/net/wireless/atmel/at76c50x-usb.c static int at76_load_internal_fw(struct usb_device *udev, struct fwentry *fwe) fwe 1318 drivers/net/wireless/atmel/at76c50x-usb.c int need_remap = !at76_is_505a(fwe->board_type); fwe 1320 drivers/net/wireless/atmel/at76c50x-usb.c ret = at76_usbdfu_download(udev, fwe->intfw, fwe->intfw_size, fwe 1609 drivers/net/wireless/atmel/at76c50x-usb.c struct fwentry *fwe = &firmwares[board_type]; fwe 1613 drivers/net/wireless/atmel/at76c50x-usb.c if (fwe->loaded) { fwe 1618 drivers/net/wireless/atmel/at76c50x-usb.c at76_dbg(DBG_FW, "downloading firmware %s", fwe->fwname); fwe 1619 drivers/net/wireless/atmel/at76c50x-usb.c ret = request_firmware(&fwe->fw, fwe->fwname, &udev->dev); fwe 1622 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fwname); fwe 1629 drivers/net/wireless/atmel/at76c50x-usb.c fwh = (struct at76_fw_header *)(fwe->fw->data); fwe 1631 drivers/net/wireless/atmel/at76c50x-usb.c if (fwe->fw->size <= sizeof(*fwh)) { fwe 1633 drivers/net/wireless/atmel/at76c50x-usb.c "firmware is too short (0x%zx)\n", fwe->fw->size); fwe 1638 drivers/net/wireless/atmel/at76c50x-usb.c fwe->board_type = le32_to_cpu(fwh->board_type); fwe 1639 drivers/net/wireless/atmel/at76c50x-usb.c if (fwe->board_type != board_type) { fwe 1642 drivers/net/wireless/atmel/at76c50x-usb.c board_type, fwe->board_type); fwe 1646 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fw_version.major = fwh->major; fwe 1647 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fw_version.minor = fwh->minor; fwe 1648 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fw_version.patch = fwh->patch; fwe 1649 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fw_version.build = fwh->build; fwe 1652 drivers/net/wireless/atmel/at76c50x-usb.c fwe->intfw = (u8 *)fwh + le32_to_cpu(fwh->int_fw_offset); fwe 1653 drivers/net/wireless/atmel/at76c50x-usb.c fwe->intfw_size = le32_to_cpu(fwh->int_fw_len); fwe 1654 drivers/net/wireless/atmel/at76c50x-usb.c fwe->extfw = (u8 *)fwh + le32_to_cpu(fwh->ext_fw_offset); fwe 1655 drivers/net/wireless/atmel/at76c50x-usb.c fwe->extfw_size = le32_to_cpu(fwh->ext_fw_len); fwe 1657 drivers/net/wireless/atmel/at76c50x-usb.c fwe->loaded = 1; fwe 1661 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fwname, fwh->major, fwh->minor, fwh->patch, fwh->build); fwe 1671 drivers/net/wireless/atmel/at76c50x-usb.c if (fwe->loaded) fwe 1672 drivers/net/wireless/atmel/at76c50x-usb.c return fwe; fwe 2438 drivers/net/wireless/atmel/at76c50x-usb.c struct fwentry *fwe; fwe 2454 drivers/net/wireless/atmel/at76c50x-usb.c fwe = at76_load_firmware(udev, board_type); fwe 2455 drivers/net/wireless/atmel/at76c50x-usb.c if (!fwe) { fwe 2479 drivers/net/wireless/atmel/at76c50x-usb.c ret = at76_load_internal_fw(udev, fwe); fwe 2496 drivers/net/wireless/atmel/at76c50x-usb.c if ((fwe->fw_version.major > 0 || fwe->fw_version.minor >= 100) fwe 2509 drivers/net/wireless/atmel/at76c50x-usb.c ret = at76_load_external_fw(udev, fwe);