pieces 4707 drivers/net/wireless/intel/iwlegacy/4965-mac.c struct il4965_firmware_pieces *pieces) pieces 4726 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->inst_size = le32_to_cpu(ucode->v1.inst_size); pieces 4727 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->data_size = le32_to_cpu(ucode->v1.data_size); pieces 4728 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->init_size = le32_to_cpu(ucode->v1.init_size); pieces 4729 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->init_data_size = le32_to_cpu(ucode->v1.init_data_size); pieces 4730 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->boot_size = le32_to_cpu(ucode->v1.boot_size); pieces 4737 drivers/net/wireless/intel/iwlegacy/4965-mac.c hdr_size + pieces->inst_size + pieces->data_size + pieces 4738 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->init_size + pieces->init_data_size + pieces->boot_size) { pieces 4745 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->inst = src; pieces 4746 drivers/net/wireless/intel/iwlegacy/4965-mac.c src += pieces->inst_size; pieces 4747 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->data = src; pieces 4748 drivers/net/wireless/intel/iwlegacy/4965-mac.c src += pieces->data_size; pieces 4749 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->init = src; pieces 4750 drivers/net/wireless/intel/iwlegacy/4965-mac.c src += pieces->init_size; pieces 4751 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->init_data = src; pieces 4752 drivers/net/wireless/intel/iwlegacy/4965-mac.c src += pieces->init_data_size; pieces 4753 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->boot = src; pieces 4754 drivers/net/wireless/intel/iwlegacy/4965-mac.c src += pieces->boot_size; pieces 4770 drivers/net/wireless/intel/iwlegacy/4965-mac.c struct il4965_firmware_pieces pieces; pieces 4779 drivers/net/wireless/intel/iwlegacy/4965-mac.c memset(&pieces, 0, sizeof(pieces)); pieces 4798 drivers/net/wireless/intel/iwlegacy/4965-mac.c err = il4965_load_firmware(il, ucode_raw, &pieces); pieces 4839 drivers/net/wireless/intel/iwlegacy/4965-mac.c D_INFO("f/w package hdr runtime inst size = %zd\n", pieces.inst_size); pieces 4840 drivers/net/wireless/intel/iwlegacy/4965-mac.c D_INFO("f/w package hdr runtime data size = %zd\n", pieces.data_size); pieces 4841 drivers/net/wireless/intel/iwlegacy/4965-mac.c D_INFO("f/w package hdr init inst size = %zd\n", pieces.init_size); pieces 4842 drivers/net/wireless/intel/iwlegacy/4965-mac.c D_INFO("f/w package hdr init data size = %zd\n", pieces.init_data_size); pieces 4843 drivers/net/wireless/intel/iwlegacy/4965-mac.c D_INFO("f/w package hdr boot inst size = %zd\n", pieces.boot_size); pieces 4846 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.inst_size > il->hw_params.max_inst_size) { pieces 4848 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.inst_size); pieces 4852 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.data_size > il->hw_params.max_data_size) { pieces 4854 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.data_size); pieces 4858 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.init_size > il->hw_params.max_inst_size) { pieces 4860 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.init_size); pieces 4864 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.init_data_size > il->hw_params.max_data_size) { pieces 4866 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.init_data_size); pieces 4870 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.boot_size > il->hw_params.max_bsm_size) { pieces 4872 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.boot_size); pieces 4881 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->ucode_code.len = pieces.inst_size; pieces 4884 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->ucode_data.len = pieces.data_size; pieces 4887 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->ucode_data_backup.len = pieces.data_size; pieces 4895 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.init_size && pieces.init_data_size) { pieces 4896 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->ucode_init.len = pieces.init_size; pieces 4899 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->ucode_init_data.len = pieces.init_data_size; pieces 4907 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.boot_size) { pieces 4908 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->ucode_boot.len = pieces.boot_size; pieces 4923 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.inst_size); pieces 4924 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size); pieces 4934 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.data_size); pieces 4935 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_data.v_addr, pieces.data, pieces.data_size); pieces 4936 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_data_backup.v_addr, pieces.data, pieces.data_size); pieces 4939 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.init_size) { pieces 4941 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.init_size); pieces 4942 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_init.v_addr, pieces.init, pieces.init_size); pieces 4946 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (pieces.init_data_size) { pieces 4948 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.init_data_size); pieces 4949 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_init_data.v_addr, pieces.init_data, pieces 4950 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.init_data_size); pieces 4955 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces.boot_size); pieces 4956 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_boot.v_addr, pieces.boot, pieces.boot_size); pieces 313 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static struct fw_sec *get_sec(struct iwl_firmware_pieces *pieces, pieces 317 drivers/net/wireless/intel/iwlwifi/iwl-drv.c return &pieces->img[type].sec[sec]; pieces 320 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void alloc_sec_data(struct iwl_firmware_pieces *pieces, pieces 324 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct fw_img_parsing *img = &pieces->img[type]; pieces 340 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void set_sec_data(struct iwl_firmware_pieces *pieces, pieces 345 drivers/net/wireless/intel/iwlwifi/iwl-drv.c alloc_sec_data(pieces, type, sec); pieces 347 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->img[type].sec[sec].data = data; pieces 350 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void set_sec_size(struct iwl_firmware_pieces *pieces, pieces 355 drivers/net/wireless/intel/iwlwifi/iwl-drv.c alloc_sec_data(pieces, type, sec); pieces 357 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->img[type].sec[sec].size = size; pieces 360 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static size_t get_sec_size(struct iwl_firmware_pieces *pieces, pieces 364 drivers/net/wireless/intel/iwlwifi/iwl-drv.c return pieces->img[type].sec[sec].size; pieces 367 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void set_sec_offset(struct iwl_firmware_pieces *pieces, pieces 372 drivers/net/wireless/intel/iwlwifi/iwl-drv.c alloc_sec_data(pieces, type, sec); pieces 374 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->img[type].sec[sec].offset = offset; pieces 403 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_store_ucode_sec(struct iwl_firmware_pieces *pieces, pieces 412 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (WARN_ON(!pieces || !data || type >= IWL_UCODE_TYPE_MAX)) pieces 417 drivers/net/wireless/intel/iwlwifi/iwl-drv.c img = &pieces->img[type]; pieces 498 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_firmware_pieces *pieces) pieces 516 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST, pieces 518 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA, pieces 520 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST, pieces 522 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA, pieces 535 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST, pieces 537 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA, pieces 539 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST, pieces 541 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA, pieces 564 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST) + pieces 565 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA) + pieces 566 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST) + pieces 567 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA)) { pieces 576 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST, src); pieces 577 drivers/net/wireless/intel/iwlwifi/iwl-drv.c src += get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST); pieces 578 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST, pieces 580 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA, src); pieces 581 drivers/net/wireless/intel/iwlwifi/iwl-drv.c src += get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA); pieces 582 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA, pieces 584 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST, src); pieces 585 drivers/net/wireless/intel/iwlwifi/iwl-drv.c src += get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST); pieces 586 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST, pieces 588 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA, src); pieces 589 drivers/net/wireless/intel/iwlwifi/iwl-drv.c src += get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA); pieces 590 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA, pieces 599 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_firmware_pieces *pieces, pieces 668 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_REGULAR, pieces 670 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_REGULAR, pieces 672 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_REGULAR, pieces 677 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_REGULAR, pieces 679 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_REGULAR, pieces 681 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_REGULAR, pieces 686 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_INIT, pieces 688 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_INIT, pieces 690 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_INIT, pieces 695 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_INIT, pieces 697 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_INIT, pieces 699 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_INIT, pieces 746 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->init_evtlog_ptr = pieces 752 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->init_evtlog_size = pieces 758 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->init_errlog_ptr = pieces 764 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->inst_evtlog_ptr = pieces 770 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->inst_evtlog_size = pieces 776 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->inst_errlog_ptr = pieces 785 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_WOWLAN, pieces 787 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_WOWLAN, pieces 789 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_WOWLAN, pieces 794 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_data(pieces, IWL_UCODE_WOWLAN, pieces 796 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_size(pieces, IWL_UCODE_WOWLAN, pieces 798 drivers/net/wireless/intel/iwlwifi/iwl-drv.c set_sec_offset(pieces, IWL_UCODE_WOWLAN, pieces 809 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_REGULAR, pieces 814 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_INIT, pieces 819 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_WOWLAN, pieces 841 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_REGULAR, pieces 846 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_INIT, pieces 851 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_WOWLAN, pieces 910 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_ver = (u8 *)tlv_data; pieces 911 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (*pieces->dbg_dest_ver == 1) { pieces 913 drivers/net/wireless/intel/iwlwifi/iwl-drv.c } else if (*pieces->dbg_dest_ver == 0) { pieces 918 drivers/net/wireless/intel/iwlwifi/iwl-drv.c *pieces->dbg_dest_ver); pieces 922 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->dbg_dest_tlv_init) { pieces 928 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv_init = true; pieces 931 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv_v1 = dest_v1; pieces 934 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv = dest; pieces 957 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!pieces->dbg_dest_tlv_init) { pieces 971 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->dbg_conf_tlv[conf->id]) { pieces 984 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_conf_tlv[conf->id] = conf; pieces 985 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_conf_tlv_len[conf->id] = tlv_len; pieces 1000 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->dbg_trigger_tlv[trigger_id]) { pieces 1009 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_trigger_tlv[trigger_id] = trigger; pieces 1010 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_trigger_tlv_len[trigger_id] = tlv_len; pieces 1026 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_store_ucode_sec(pieces, tlv_data, pieces 1074 drivers/net/wireless/intel/iwlwifi/iwl-drv.c size = sizeof(*pieces->dbg_mem_tlv) * pieces 1075 drivers/net/wireless/intel/iwlwifi/iwl-drv.c (pieces->n_mem_tlv + 1); pieces 1076 drivers/net/wireless/intel/iwlwifi/iwl-drv.c n = krealloc(pieces->dbg_mem_tlv, size, GFP_KERNEL); pieces 1079 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_mem_tlv = n; pieces 1080 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_mem_tlv[pieces->n_mem_tlv] = *dbg_mem; pieces 1081 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->n_mem_tlv++; pieces 1204 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_firmware_pieces *pieces, pieces 1210 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec = kcalloc(pieces->img[type].sec_counter, sizeof(*sec), GFP_KERNEL); pieces 1214 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[type].num_sec = pieces->img[type].sec_counter; pieces 1216 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < pieces->img[type].sec_counter; i++) pieces 1217 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_alloc_fw_desc(drv, &sec[i], get_sec(pieces, type, i))) pieces 1224 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_firmware_pieces *pieces, pieces 1228 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, pieces 1231 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, pieces 1234 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST)); pieces 1236 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA)); pieces 1239 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST) > pieces 1242 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, pieces 1247 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA) > pieces 1250 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, pieces 1255 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST) > pieces 1258 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_INIT, pieces 1263 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA) > pieces 1266 drivers/net/wireless/intel/iwlwifi/iwl-drv.c get_sec_size(pieces, IWL_UCODE_REGULAR, pieces 1325 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_firmware_pieces *pieces; pieces 1341 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces = kzalloc(sizeof(*pieces), GFP_KERNEL); pieces 1342 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!pieces) pieces 1361 drivers/net/wireless/intel/iwlwifi/iwl-drv.c err = iwl_parse_v1_v2_firmware(drv, ucode_raw, pieces); pieces 1363 drivers/net/wireless/intel/iwlwifi/iwl-drv.c err = iwl_parse_tlv_firmware(drv, ucode_raw, pieces, pieces 1391 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (fw->type == IWL_FW_DVM && validate_sec_sizes(drv, pieces, pieces 1402 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_alloc_ucode(drv, pieces, i)) pieces 1405 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->dbg_dest_tlv_init) { pieces 1415 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (*pieces->dbg_dest_ver == 0) { pieces 1416 drivers/net/wireless/intel/iwlwifi/iwl-drv.c memcpy(drv->fw.dbg.dest_tlv, pieces->dbg_dest_tlv_v1, pieces 1422 drivers/net/wireless/intel/iwlwifi/iwl-drv.c dest_tlv->version = pieces->dbg_dest_tlv->version; pieces 1424 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->monitor_mode; pieces 1426 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->size_power; pieces 1428 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->wrap_count; pieces 1430 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->write_ptr_reg; pieces 1432 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->base_shift; pieces 1434 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->reg_ops, pieces 1446 drivers/net/wireless/intel/iwlwifi/iwl-drv.c dest_tlv->base_reg = pieces->dbg_dest_tlv->cfg_reg; pieces 1448 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_dest_tlv->size_shift; pieces 1453 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->dbg_conf_tlv[i]) { pieces 1455 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kmemdup(pieces->dbg_conf_tlv[i], pieces 1456 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_conf_tlv_len[i], pieces 1458 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!pieces->dbg_conf_tlv_len[i]) pieces 1486 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->dbg_trigger_tlv[i]) { pieces 1494 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (WARN_ON(pieces->dbg_trigger_tlv_len[i] < pieces 1499 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_trigger_tlv_len[i]; pieces 1501 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kmemdup(pieces->dbg_trigger_tlv[i], pieces 1511 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.mem_tlv = pieces->dbg_mem_tlv; pieces 1512 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->dbg_mem_tlv = NULL; pieces 1513 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.n_mem_tlv = pieces->n_mem_tlv; pieces 1520 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->init_evtlog_ptr = pieces->init_evtlog_ptr; pieces 1521 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->init_evtlog_size) pieces 1522 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->init_evtlog_size = (pieces->init_evtlog_size - 16)/12; pieces 1526 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->init_errlog_ptr = pieces->init_errlog_ptr; pieces 1527 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->inst_evtlog_ptr = pieces->inst_evtlog_ptr; pieces 1528 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces->inst_evtlog_size) pieces 1529 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->inst_evtlog_size = (pieces->inst_evtlog_size - 16)/12; pieces 1533 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->inst_errlog_ptr = pieces->inst_errlog_ptr; pieces 1614 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (pieces) { pieces 1615 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < ARRAY_SIZE(pieces->img); i++) pieces 1616 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(pieces->img[i].sec); pieces 1617 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(pieces->dbg_mem_tlv); pieces 1618 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(pieces);