Lines Matching refs:block_hdr
11647 struct drxu_code_block_hdr block_hdr; in drx_check_firmware() local
11669 block_hdr.addr = be32_to_cpu(*(__be32 *)(mc_data + count)); in drx_check_firmware()
11671 block_hdr.size = be16_to_cpu(*(__be16 *)(mc_data + count)); in drx_check_firmware()
11673 block_hdr.flags = be16_to_cpu(*(__be16 *)(mc_data + count)); in drx_check_firmware()
11675 block_hdr.CRC = be16_to_cpu(*(__be16 *)(mc_data + count)); in drx_check_firmware()
11679 count, block_hdr.addr, block_hdr.size, block_hdr.flags, in drx_check_firmware()
11680 block_hdr.CRC); in drx_check_firmware()
11682 if (block_hdr.flags & 0x8) { in drx_check_firmware()
11683 u8 *auxblk = ((void *)mc_data) + block_hdr.addr; in drx_check_firmware()
11686 if (block_hdr.addr + sizeof(u16) > size) in drx_check_firmware()
11693 if (block_hdr.addr + 2 * sizeof(u16) + 2 * sizeof (u32) > size) in drx_check_firmware()
11712 } else if (count + block_hdr.size * sizeof(u16) > size) in drx_check_firmware()
11715 count += block_hdr.size * sizeof(u16); in drx_check_firmware()
11809 struct drxu_code_block_hdr block_hdr; in drx_ctrl_u_code() local
11813 block_hdr.addr = be32_to_cpu(*(__be32 *)(mc_data)); in drx_ctrl_u_code()
11815 block_hdr.size = be16_to_cpu(*(__be16 *)(mc_data)); in drx_ctrl_u_code()
11817 block_hdr.flags = be16_to_cpu(*(__be16 *)(mc_data)); in drx_ctrl_u_code()
11819 block_hdr.CRC = be16_to_cpu(*(__be16 *)(mc_data)); in drx_ctrl_u_code()
11823 (mc_data - mc_data_init), block_hdr.addr, in drx_ctrl_u_code()
11824 block_hdr.size, block_hdr.flags, block_hdr.CRC); in drx_ctrl_u_code()
11830 if ((block_hdr.size > 0x7FFF) || in drx_ctrl_u_code()
11831 (((block_hdr.flags & DRX_UCODE_CRC_FLAG) != 0) && in drx_ctrl_u_code()
11832 (block_hdr.CRC != drx_u_code_compute_crc(mc_data, block_hdr.size))) in drx_ctrl_u_code()
11840 if (!block_hdr.size) in drx_ctrl_u_code()
11843 mc_block_nr_bytes = block_hdr.size * ((u16) sizeof(u16)); in drx_ctrl_u_code()
11849 block_hdr.addr, in drx_ctrl_u_code()
11863 u32 curr_addr = block_hdr.addr; in drx_ctrl_u_code()