Lines Matching full:fw
62 const struct firmware *fw; in mt76x2u_mcu_load_rom_patch() local
85 err = request_firmware(&fw, MT7662_ROM_PATCH, dev->mt76.dev); in mt76x2u_mcu_load_rom_patch()
89 if (!fw || !fw->data || fw->size <= sizeof(*hdr)) { in mt76x2u_mcu_load_rom_patch()
95 hdr = (struct mt76x02_patch_header *)fw->data; in mt76x2u_mcu_load_rom_patch()
119 err = mt76x02u_mcu_fw_send_data(dev, fw->data + sizeof(*hdr), in mt76x2u_mcu_load_rom_patch()
120 fw->size - sizeof(*hdr), in mt76x2u_mcu_load_rom_patch()
140 release_firmware(fw); in mt76x2u_mcu_load_rom_patch()
149 const struct firmware *fw; in mt76x2u_mcu_load_firmware() local
151 err = request_firmware(&fw, MT7662_FIRMWARE, dev->mt76.dev); in mt76x2u_mcu_load_firmware()
155 if (!fw || !fw->data || fw->size < sizeof(*hdr)) { in mt76x2u_mcu_load_firmware()
160 hdr = (const struct mt76x02_fw_header *)fw->data; in mt76x2u_mcu_load_firmware()
164 if (fw->size != len) { in mt76x2u_mcu_load_firmware()
198 err = mt76x02u_mcu_fw_send_data(dev, fw->data + sizeof(*hdr), in mt76x2u_mcu_load_firmware()
209 err = mt76x02u_mcu_fw_send_data(dev, fw->data + sizeof(*hdr) + ilm_len, in mt76x2u_mcu_load_firmware()
231 release_firmware(fw); in mt76x2u_mcu_load_firmware()