Lines Matching refs:fw
1069 const struct firmware *fw; in stir421x_patch_device() local
1079 ret = request_firmware(&fw, stir421x_fw_name, &self->usbdev->dev); in stir421x_patch_device()
1085 __func__, stir421x_fw_name, fw->size); in stir421x_patch_device()
1090 if (!memcmp(fw->data, STIR421X_PATCH_PRODUCT_VER, in stir421x_patch_device()
1092 fw_version_ptr = fw->data + in stir421x_patch_device()
1119 for (i = 0; i < fw->size && fw->data[i] != in stir421x_patch_device()
1122 if (i < STIR421X_PATCH_CODE_OFFSET && i < fw->size && in stir421x_patch_device()
1123 STIR421X_PATCH_END_OF_HDR_TAG == fw->data[i]) { in stir421x_patch_device()
1124 if (!memcmp(fw->data + i + 1, STIR421X_PATCH_STMP_TAG, in stir421x_patch_device()
1129 ret = stir421x_fw_upload(self, &fw->data[i], in stir421x_patch_device()
1130 fw->size - i); in stir421x_patch_device()
1135 release_firmware(fw); in stir421x_patch_device()