Home
last modified time | relevance | path

Searched refs:fw_offset (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/sof/
Dloader.c569 size_t fw_offset) in check_header() argument
572 size_t fw_size = fw->size - fw_offset; in check_header()
574 if (fw->size <= fw_offset) { in check_header()
580 header = (struct snd_sof_fw_header *)(fw->data + fw_offset); in check_header()
603 size_t fw_offset) in load_modules() argument
612 header = (struct snd_sof_fw_header *)(fw->data + fw_offset); in load_modules()
618 module = (struct snd_sof_mod_hdr *)(fw->data + fw_offset + in load_modules()
620 remaining = fw->size - sizeof(*header) - fw_offset; in load_modules()
690 plat_data->fw_offset = ext_man_size; in snd_sof_load_firmware_raw()
717 ret = check_header(sdev, plat_data->fw, plat_data->fw_offset); in snd_sof_load_firmware_memcpy()
[all …]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
Dhda-loader.c294 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware_iccmax()
299 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware_iccmax()
342 if (plat_data->fw->size <= plat_data->fw_offset) { in hda_dsp_cl_boot_firmware()
347 stripped_firmware.data = plat_data->fw->data + plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
348 stripped_firmware.size = plat_data->fw->size - plat_data->fw_offset; in hda_dsp_cl_boot_firmware()
/kernel/linux/linux-5.10/drivers/staging/wfx/
Dfwio.c238 int fw_offset; in load_firmware_secure() local
258 ret = get_firmware(wdev, buf[PTE_INFO_KEYSET_IDX], &fw, &fw_offset); in load_firmware_secure()
261 header_size = fw_offset + FW_SIGNATURE_SIZE + FW_HASH_SIZE; in load_firmware_secure()
271 sram_write_dma_safe(wdev, WFX_DCA_FW_SIGNATURE, fw->data + fw_offset, in load_firmware_secure()
274 fw->data + fw_offset + FW_SIGNATURE_SIZE, in load_firmware_secure()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ucode.c635 uint64_t fw_offset = 0; in amdgpu_ucode_init_bo() local
658 amdgpu_ucode_init_single_fw(adev, ucode, adev->firmware.fw_buf_mc + fw_offset, in amdgpu_ucode_init_bo()
659 adev->firmware.fw_buf_ptr + fw_offset); in amdgpu_ucode_init_bo()
664 amdgpu_ucode_patch_jt(ucode, adev->firmware.fw_buf_mc + fw_offset, in amdgpu_ucode_init_bo()
665 adev->firmware.fw_buf_ptr + fw_offset); in amdgpu_ucode_init_bo()
666 fw_offset += ALIGN(le32_to_cpu(cp_hdr->jt_size) << 2, PAGE_SIZE); in amdgpu_ucode_init_bo()
668 fw_offset += ALIGN(ucode->ucode_size, PAGE_SIZE); in amdgpu_ucode_init_bo()
/kernel/linux/linux-5.10/include/sound/
Dsof.h31 size_t fw_offset; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c1871 u16 fw_offset, fw_ptp_cfg_offset; in ixgbe_verify_fw_version_82599() local
1881 if (hw->eeprom.ops.read(hw, offset, &fw_offset)) in ixgbe_verify_fw_version_82599()
1884 if (fw_offset == 0 || fw_offset == 0xFFFF) in ixgbe_verify_fw_version_82599()
1888 offset = fw_offset + IXGBE_FW_PASSTHROUGH_PATCH_CONFIG_PTR; in ixgbe_verify_fw_version_82599()
1919 u16 fw_offset, fw_lesm_param_offset, fw_lesm_state; in ixgbe_verify_lesm_fw_enabled_82599() local
1923 status = hw->eeprom.ops.read(hw, IXGBE_FW_PTR, &fw_offset); in ixgbe_verify_lesm_fw_enabled_82599()
1925 if (status || fw_offset == 0 || fw_offset == 0xFFFF) in ixgbe_verify_lesm_fw_enabled_82599()
1929 status = hw->eeprom.ops.read(hw, (fw_offset + in ixgbe_verify_lesm_fw_enabled_82599()
/kernel/linux/linux-5.10/drivers/net/usb/
Dr8152.c921 __le16 fw_offset; member
972 __le16 fw_offset; member
3529 u16 fw_offset, fw_reg, ba_reg, patch_en_addr, mode_reg, bp_start; in rtl8152_is_fw_phy_nc_ok() local
3546 fw_offset = __le16_to_cpu(phy->fw_offset); in rtl8152_is_fw_phy_nc_ok()
3547 if (fw_offset < sizeof(*phy)) { in rtl8152_is_fw_phy_nc_ok()
3553 if (length < fw_offset) { in rtl8152_is_fw_phy_nc_ok()
3558 length -= __le16_to_cpu(phy->fw_offset); in rtl8152_is_fw_phy_nc_ok()
3604 u16 fw_reg, bp_ba_addr, bp_en_addr, bp_start, fw_offset; in rtl8152_is_fw_mac_ok() local
3666 fw_offset = __le16_to_cpu(mac->fw_offset); in rtl8152_is_fw_mac_ok()
3667 if (fw_offset < sizeof(*mac)) { in rtl8152_is_fw_mac_ok()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dmelfas_mip4.c1080 const u8 *fw_data, u32 fw_size, u32 fw_offset) in mip4_flash_fw() argument
1108 for (offset = fw_offset; in mip4_flash_fw()
1109 offset < fw_offset + fw_size; in mip4_flash_fw()