Lines Matching refs:pieces

4701 		     struct il4965_firmware_pieces *pieces)  in il4965_load_firmware()  argument
4720 pieces->inst_size = le32_to_cpu(ucode->v1.inst_size); in il4965_load_firmware()
4721 pieces->data_size = le32_to_cpu(ucode->v1.data_size); in il4965_load_firmware()
4722 pieces->init_size = le32_to_cpu(ucode->v1.init_size); in il4965_load_firmware()
4723 pieces->init_data_size = le32_to_cpu(ucode->v1.init_data_size); in il4965_load_firmware()
4724 pieces->boot_size = le32_to_cpu(ucode->v1.boot_size); in il4965_load_firmware()
4731 hdr_size + pieces->inst_size + pieces->data_size + in il4965_load_firmware()
4732 pieces->init_size + pieces->init_data_size + pieces->boot_size) { in il4965_load_firmware()
4739 pieces->inst = src; in il4965_load_firmware()
4740 src += pieces->inst_size; in il4965_load_firmware()
4741 pieces->data = src; in il4965_load_firmware()
4742 src += pieces->data_size; in il4965_load_firmware()
4743 pieces->init = src; in il4965_load_firmware()
4744 src += pieces->init_size; in il4965_load_firmware()
4745 pieces->init_data = src; in il4965_load_firmware()
4746 src += pieces->init_data_size; in il4965_load_firmware()
4747 pieces->boot = src; in il4965_load_firmware()
4748 src += pieces->boot_size; in il4965_load_firmware()
4764 struct il4965_firmware_pieces pieces; in il4965_ucode_callback() local
4773 memset(&pieces, 0, sizeof(pieces)); in il4965_ucode_callback()
4792 err = il4965_load_firmware(il, ucode_raw, &pieces); in il4965_ucode_callback()
4833 D_INFO("f/w package hdr runtime inst size = %zd\n", pieces.inst_size); in il4965_ucode_callback()
4834 D_INFO("f/w package hdr runtime data size = %zd\n", pieces.data_size); in il4965_ucode_callback()
4835 D_INFO("f/w package hdr init inst size = %zd\n", pieces.init_size); in il4965_ucode_callback()
4836 D_INFO("f/w package hdr init data size = %zd\n", pieces.init_data_size); in il4965_ucode_callback()
4837 D_INFO("f/w package hdr boot inst size = %zd\n", pieces.boot_size); in il4965_ucode_callback()
4840 if (pieces.inst_size > il->hw_params.max_inst_size) { in il4965_ucode_callback()
4842 pieces.inst_size); in il4965_ucode_callback()
4846 if (pieces.data_size > il->hw_params.max_data_size) { in il4965_ucode_callback()
4848 pieces.data_size); in il4965_ucode_callback()
4852 if (pieces.init_size > il->hw_params.max_inst_size) { in il4965_ucode_callback()
4854 pieces.init_size); in il4965_ucode_callback()
4858 if (pieces.init_data_size > il->hw_params.max_data_size) { in il4965_ucode_callback()
4860 pieces.init_data_size); in il4965_ucode_callback()
4864 if (pieces.boot_size > il->hw_params.max_bsm_size) { in il4965_ucode_callback()
4866 pieces.boot_size); in il4965_ucode_callback()
4875 il->ucode_code.len = pieces.inst_size; in il4965_ucode_callback()
4878 il->ucode_data.len = pieces.data_size; in il4965_ucode_callback()
4881 il->ucode_data_backup.len = pieces.data_size; in il4965_ucode_callback()
4889 if (pieces.init_size && pieces.init_data_size) { in il4965_ucode_callback()
4890 il->ucode_init.len = pieces.init_size; in il4965_ucode_callback()
4893 il->ucode_init_data.len = pieces.init_data_size; in il4965_ucode_callback()
4901 if (pieces.boot_size) { in il4965_ucode_callback()
4902 il->ucode_boot.len = pieces.boot_size; in il4965_ucode_callback()
4917 pieces.inst_size); in il4965_ucode_callback()
4918 memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size); in il4965_ucode_callback()
4928 pieces.data_size); in il4965_ucode_callback()
4929 memcpy(il->ucode_data.v_addr, pieces.data, pieces.data_size); in il4965_ucode_callback()
4930 memcpy(il->ucode_data_backup.v_addr, pieces.data, pieces.data_size); in il4965_ucode_callback()
4933 if (pieces.init_size) { in il4965_ucode_callback()
4935 pieces.init_size); in il4965_ucode_callback()
4936 memcpy(il->ucode_init.v_addr, pieces.init, pieces.init_size); in il4965_ucode_callback()
4940 if (pieces.init_data_size) { in il4965_ucode_callback()
4942 pieces.init_data_size); in il4965_ucode_callback()
4943 memcpy(il->ucode_init_data.v_addr, pieces.init_data, in il4965_ucode_callback()
4944 pieces.init_data_size); in il4965_ucode_callback()
4949 pieces.boot_size); in il4965_ucode_callback()
4950 memcpy(il->ucode_boot.v_addr, pieces.boot, pieces.boot_size); in il4965_ucode_callback()