Lines Matching refs:fw

415 static const void *wdt87xx_get_fw_chunk(const struct firmware *fw, u32 id)  in wdt87xx_get_fw_chunk()  argument
420 while (pos < fw->size) { in wdt87xx_get_fw_chunk()
421 chunk_id = get_unaligned_le32(fw->data + in wdt87xx_get_fw_chunk()
424 return fw->data + pos; in wdt87xx_get_fw_chunk()
426 chunk_size = get_unaligned_le32(fw->data + in wdt87xx_get_fw_chunk()
502 const struct firmware *fw) in wdt87xx_validate_firmware() argument
510 data1 = get_unaligned_le32(fw->data + FW_FOURCC1_OFFSET); in wdt87xx_validate_firmware()
511 data2 = get_unaligned_le32(fw->data + FW_FOURCC2_OFFSET); in wdt87xx_validate_firmware()
517 size = get_unaligned_le32(fw->data + FW_SIZE_OFFSET); in wdt87xx_validate_firmware()
518 if (size != fw->size) { in wdt87xx_validate_firmware()
521 size, fw->size); in wdt87xx_validate_firmware()
529 fw_chunk = wdt87xx_get_fw_chunk(fw, CHUNK_ID_FRWR); in wdt87xx_validate_firmware()
786 const struct firmware *fw, u32 ck_id) in wdt87xx_load_chunk() argument
791 chunk = wdt87xx_get_fw_chunk(fw, ck_id); in wdt87xx_load_chunk()
817 const struct firmware *fw, in wdt87xx_do_update_firmware() argument
823 error = wdt87xx_validate_firmware(wdt, fw); in wdt87xx_do_update_firmware()
833 error = wdt87xx_load_chunk(client, fw, chunk_id); in wdt87xx_do_update_firmware()
863 const struct firmware *fw; in wdt87xx_update_firmware() local
866 error = request_firmware(&fw, fw_name, dev); in wdt87xx_update_firmware()
873 error = wdt87xx_do_update_firmware(client, fw, chunk_id); in wdt87xx_update_firmware()
875 release_firmware(fw); in wdt87xx_update_firmware()