Lines Matching full:fw
17 const struct firmware *fw = NULL; in mt76pci_load_rom_patch() local
43 ret = request_firmware(&fw, MT7662_ROM_PATCH, dev->mt76.dev); in mt76pci_load_rom_patch()
47 if (!fw || !fw->data || fw->size <= sizeof(*hdr)) { in mt76pci_load_rom_patch()
53 hdr = (struct mt76x02_patch_header *)fw->data; in mt76pci_load_rom_patch()
58 cur = (__le32 *)(fw->data + sizeof(*hdr)); in mt76pci_load_rom_patch()
59 len = fw->size - sizeof(*hdr); in mt76pci_load_rom_patch()
76 release_firmware(fw); in mt76pci_load_rom_patch()
83 const struct firmware *fw; in mt76pci_load_firmware() local
89 ret = request_firmware(&fw, MT7662_FIRMWARE, dev->mt76.dev); in mt76pci_load_firmware()
93 if (!fw || !fw->data || fw->size < sizeof(*hdr)) in mt76pci_load_firmware()
96 hdr = (const struct mt76x02_fw_header *)fw->data; in mt76pci_load_firmware()
102 if (fw->size != len) in mt76pci_load_firmware()
113 cur = (__le32 *)(fw->data + sizeof(*hdr)); in mt76pci_load_firmware()
140 release_firmware(fw); in mt76pci_load_firmware()
147 release_firmware(fw); in mt76pci_load_firmware()
153 release_firmware(fw); in mt76pci_load_firmware()