Lines Matching refs:block_hdr
11645 struct drxu_code_block_hdr block_hdr; in drx_check_firmware() local
11667 block_hdr.addr = be32_to_cpu(*(__be32 *)(mc_data + count)); in drx_check_firmware()
11669 block_hdr.size = be16_to_cpu(*(__be16 *)(mc_data + count)); in drx_check_firmware()
11671 block_hdr.flags = be16_to_cpu(*(__be16 *)(mc_data + count)); in drx_check_firmware()
11673 block_hdr.CRC = be16_to_cpu(*(__be16 *)(mc_data + count)); in drx_check_firmware()
11677 count, block_hdr.addr, block_hdr.size, block_hdr.flags, in drx_check_firmware()
11678 block_hdr.CRC); in drx_check_firmware()
11680 if (block_hdr.flags & 0x8) { in drx_check_firmware()
11681 u8 *auxblk = ((void *)mc_data) + block_hdr.addr; in drx_check_firmware()
11684 if (block_hdr.addr + sizeof(u16) > size) in drx_check_firmware()
11691 if (block_hdr.addr + 2 * sizeof(u16) + 2 * sizeof (u32) > size) in drx_check_firmware()
11710 } else if (count + block_hdr.size * sizeof(u16) > size) in drx_check_firmware()
11713 count += block_hdr.size * sizeof(u16); in drx_check_firmware()
11807 struct drxu_code_block_hdr block_hdr; in drx_ctrl_u_code() local
11811 block_hdr.addr = be32_to_cpu(*(__be32 *)(mc_data)); in drx_ctrl_u_code()
11813 block_hdr.size = be16_to_cpu(*(__be16 *)(mc_data)); in drx_ctrl_u_code()
11815 block_hdr.flags = be16_to_cpu(*(__be16 *)(mc_data)); in drx_ctrl_u_code()
11817 block_hdr.CRC = be16_to_cpu(*(__be16 *)(mc_data)); in drx_ctrl_u_code()
11821 (mc_data - mc_data_init), block_hdr.addr, in drx_ctrl_u_code()
11822 block_hdr.size, block_hdr.flags, block_hdr.CRC); in drx_ctrl_u_code()
11828 if ((block_hdr.size > 0x7FFF) || in drx_ctrl_u_code()
11829 (((block_hdr.flags & DRX_UCODE_CRC_FLAG) != 0) && in drx_ctrl_u_code()
11830 (block_hdr.CRC != drx_u_code_compute_crc(mc_data, block_hdr.size))) in drx_ctrl_u_code()
11838 if (!block_hdr.size) in drx_ctrl_u_code()
11841 mc_block_nr_bytes = block_hdr.size * ((u16) sizeof(u16)); in drx_ctrl_u_code()
11847 block_hdr.addr, in drx_ctrl_u_code()
11861 u32 curr_addr = block_hdr.addr; in drx_ctrl_u_code()