Searched refs:patch_length (Results 1 – 1 of 1) sorted by relevance
653 u16 patch_length, num_patches; in rtlbt_parse_firmware() local784 patch_length = get_unaligned_le16(patch_length_base + in rtlbt_parse_firmware()798 BT_DBG("length=%x offset=%x index %d", patch_length, patch_offset, i); in rtlbt_parse_firmware()799 if (patch_length < sizeof(epatch_info->fw_version) || in rtlbt_parse_firmware()801 patch_length > btrtl_dev->fw_len - patch_offset) in rtlbt_parse_firmware()807 len = patch_length; in rtlbt_parse_firmware()808 buf = kvmalloc(patch_length, GFP_KERNEL); in rtlbt_parse_firmware()812 memcpy(buf, btrtl_dev->fw_data + patch_offset, patch_length - 4); in rtlbt_parse_firmware()813 memcpy(buf + patch_length - 4, &epatch_info->fw_version, 4); in rtlbt_parse_firmware()