Lines Matching full:pieces
4695 struct il4965_firmware_pieces *pieces) in il4965_load_firmware() argument
4714 pieces->inst_size = le32_to_cpu(ucode->v1.inst_size); in il4965_load_firmware()
4715 pieces->data_size = le32_to_cpu(ucode->v1.data_size); in il4965_load_firmware()
4716 pieces->init_size = le32_to_cpu(ucode->v1.init_size); in il4965_load_firmware()
4717 pieces->init_data_size = le32_to_cpu(ucode->v1.init_data_size); in il4965_load_firmware()
4718 pieces->boot_size = le32_to_cpu(ucode->v1.boot_size); in il4965_load_firmware()
4725 hdr_size + pieces->inst_size + pieces->data_size + in il4965_load_firmware()
4726 pieces->init_size + pieces->init_data_size + pieces->boot_size) { in il4965_load_firmware()
4733 pieces->inst = src; in il4965_load_firmware()
4734 src += pieces->inst_size; in il4965_load_firmware()
4735 pieces->data = src; in il4965_load_firmware()
4736 src += pieces->data_size; in il4965_load_firmware()
4737 pieces->init = src; in il4965_load_firmware()
4738 src += pieces->init_size; in il4965_load_firmware()
4739 pieces->init_data = src; in il4965_load_firmware()
4740 src += pieces->init_data_size; in il4965_load_firmware()
4741 pieces->boot = src; in il4965_load_firmware()
4742 src += pieces->boot_size; in il4965_load_firmware()
4758 struct il4965_firmware_pieces pieces; in il4965_ucode_callback() local
4767 memset(&pieces, 0, sizeof(pieces)); in il4965_ucode_callback()
4786 err = il4965_load_firmware(il, ucode_raw, &pieces); in il4965_ucode_callback()
4827 D_INFO("f/w package hdr runtime inst size = %zd\n", pieces.inst_size); in il4965_ucode_callback()
4828 D_INFO("f/w package hdr runtime data size = %zd\n", pieces.data_size); in il4965_ucode_callback()
4829 D_INFO("f/w package hdr init inst size = %zd\n", pieces.init_size); in il4965_ucode_callback()
4830 D_INFO("f/w package hdr init data size = %zd\n", pieces.init_data_size); in il4965_ucode_callback()
4831 D_INFO("f/w package hdr boot inst size = %zd\n", pieces.boot_size); in il4965_ucode_callback()
4834 if (pieces.inst_size > il->hw_params.max_inst_size) { in il4965_ucode_callback()
4836 pieces.inst_size); in il4965_ucode_callback()
4840 if (pieces.data_size > il->hw_params.max_data_size) { in il4965_ucode_callback()
4842 pieces.data_size); in il4965_ucode_callback()
4846 if (pieces.init_size > il->hw_params.max_inst_size) { in il4965_ucode_callback()
4848 pieces.init_size); in il4965_ucode_callback()
4852 if (pieces.init_data_size > il->hw_params.max_data_size) { in il4965_ucode_callback()
4854 pieces.init_data_size); in il4965_ucode_callback()
4858 if (pieces.boot_size > il->hw_params.max_bsm_size) { in il4965_ucode_callback()
4860 pieces.boot_size); in il4965_ucode_callback()
4869 il->ucode_code.len = pieces.inst_size; in il4965_ucode_callback()
4872 il->ucode_data.len = pieces.data_size; in il4965_ucode_callback()
4875 il->ucode_data_backup.len = pieces.data_size; in il4965_ucode_callback()
4883 if (pieces.init_size && pieces.init_data_size) { in il4965_ucode_callback()
4884 il->ucode_init.len = pieces.init_size; in il4965_ucode_callback()
4887 il->ucode_init_data.len = pieces.init_data_size; in il4965_ucode_callback()
4895 if (pieces.boot_size) { in il4965_ucode_callback()
4896 il->ucode_boot.len = pieces.boot_size; in il4965_ucode_callback()
4911 pieces.inst_size); in il4965_ucode_callback()
4912 memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size); in il4965_ucode_callback()
4922 pieces.data_size); in il4965_ucode_callback()
4923 memcpy(il->ucode_data.v_addr, pieces.data, pieces.data_size); in il4965_ucode_callback()
4924 memcpy(il->ucode_data_backup.v_addr, pieces.data, pieces.data_size); in il4965_ucode_callback()
4927 if (pieces.init_size) { in il4965_ucode_callback()
4929 pieces.init_size); in il4965_ucode_callback()
4930 memcpy(il->ucode_init.v_addr, pieces.init, pieces.init_size); in il4965_ucode_callback()
4934 if (pieces.init_data_size) { in il4965_ucode_callback()
4936 pieces.init_data_size); in il4965_ucode_callback()
4937 memcpy(il->ucode_init_data.v_addr, pieces.init_data, in il4965_ucode_callback()
4938 pieces.init_data_size); in il4965_ucode_callback()
4943 pieces.boot_size); in il4965_ucode_callback()
4944 memcpy(il->ucode_boot.v_addr, pieces.boot, pieces.boot_size); in il4965_ucode_callback()