Lines Matching refs:fw
1071 const struct firmware *fw; in stir421x_patch_device() local
1081 ret = request_firmware(&fw, stir421x_fw_name, &self->usbdev->dev); in stir421x_patch_device()
1087 __func__, stir421x_fw_name, fw->size); in stir421x_patch_device()
1092 if (!memcmp(fw->data, STIR421X_PATCH_PRODUCT_VER, in stir421x_patch_device()
1094 fw_version_ptr = fw->data + in stir421x_patch_device()
1121 for (i = 0; i < fw->size && fw->data[i] != in stir421x_patch_device()
1124 if (i < STIR421X_PATCH_CODE_OFFSET && i < fw->size && in stir421x_patch_device()
1125 STIR421X_PATCH_END_OF_HDR_TAG == fw->data[i]) { in stir421x_patch_device()
1126 if (!memcmp(fw->data + i + 1, STIR421X_PATCH_STMP_TAG, in stir421x_patch_device()
1131 ret = stir421x_fw_upload(self, &fw->data[i], in stir421x_patch_device()
1132 fw->size - i); in stir421x_patch_device()
1137 release_firmware(fw); in stir421x_patch_device()