Lines Matching refs:fw
112 static ssize_t ipc3_fw_ext_man_size(struct snd_sof_dev *sdev, const struct firmware *fw) in ipc3_fw_ext_man_size() argument
116 head = (struct sof_ext_man_header *)fw->data; in ipc3_fw_ext_man_size()
123 if (fw->size < sizeof(*head)) in ipc3_fw_ext_man_size()
141 const struct firmware *fw = sdev->basefw.fw; in sof_ipc3_fw_parse_ext_man() local
149 head = (struct sof_ext_man_header *)fw->data; in sof_ipc3_fw_parse_ext_man()
151 if (remaining < 0 || remaining > sdev->basefw.fw->size) in sof_ipc3_fw_parse_ext_man()
153 ext_man_size = ipc3_fw_ext_man_size(sdev, fw); in sof_ipc3_fw_parse_ext_man()
169 iptr = (uintptr_t)fw->data + head->header_size; in sof_ipc3_fw_parse_ext_man()
318 const struct firmware *fw = sdev->basefw.fw; in sof_ipc3_load_fw_to_dsp() local
325 if (!fw) in sof_ipc3_load_fw_to_dsp()
328 header = (struct snd_sof_fw_header *)(fw->data + payload_offset); in sof_ipc3_load_fw_to_dsp()
338 module = (struct snd_sof_mod_hdr *)(fw->data + payload_offset + sizeof(*header)); in sof_ipc3_load_fw_to_dsp()
339 remaining = fw->size - sizeof(*header) - payload_offset; in sof_ipc3_load_fw_to_dsp()
341 if (remaining > fw->size) { in sof_ipc3_load_fw_to_dsp()
381 const struct firmware *fw = sdev->basefw.fw; in sof_ipc3_validate_firmware() local
383 size_t fw_size = fw->size - payload_offset; in sof_ipc3_validate_firmware()
385 if (fw->size <= payload_offset) { in sof_ipc3_validate_firmware()
392 header = (struct snd_sof_fw_header *)(fw->data + payload_offset); in sof_ipc3_validate_firmware()