Lines Matching refs:img

109 static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img)  in iwl_free_fw_img()  argument
112 for (i = 0; i < img->num_sec; i++) in iwl_free_fw_img()
113 iwl_free_fw_desc(drv, &img->sec[i]); in iwl_free_fw_img()
114 kfree(img->sec); in iwl_free_fw_img()
134 iwl_free_fw_img(drv, drv->fw.img + i); in iwl_dealloc_ucode()
301 struct fw_img_parsing img[IWL_UCODE_TYPE_MAX]; member
329 return &pieces->img[type].sec[sec]; in get_sec()
336 struct fw_img_parsing *img = &pieces->img[type]; in alloc_sec_data() local
339 size_t alloc_size = sizeof(*img->sec) * size; in alloc_sec_data()
341 if (img->sec && img->sec_counter >= size) in alloc_sec_data()
344 sec_memory = krealloc(img->sec, alloc_size, GFP_KERNEL); in alloc_sec_data()
348 img->sec = sec_memory; in alloc_sec_data()
349 img->sec_counter = size; in alloc_sec_data()
359 pieces->img[type].sec[sec].data = data; in set_sec_data()
369 pieces->img[type].sec[sec].size = size; in set_sec_size()
376 return pieces->img[type].sec[sec].size; in get_sec_size()
386 pieces->img[type].sec[sec].offset = offset; in set_sec_offset()
396 struct fw_img_parsing *img; in iwl_store_ucode_sec() local
406 img = &pieces->img[type]; in iwl_store_ucode_sec()
408 alloc_size = sizeof(*img->sec) * (img->sec_counter + 1); in iwl_store_ucode_sec()
409 sec = krealloc(img->sec, alloc_size, GFP_KERNEL); in iwl_store_ucode_sec()
412 img->sec = sec; in iwl_store_ucode_sec()
414 sec = &img->sec[img->sec_counter]; in iwl_store_ucode_sec()
420 ++img->sec_counter; in iwl_store_ucode_sec()
956 drv->fw.img[IWL_UCODE_REGULAR].is_dual_cpus = in iwl_parse_tlv_firmware()
958 drv->fw.img[IWL_UCODE_INIT].is_dual_cpus = in iwl_parse_tlv_firmware()
960 drv->fw.img[IWL_UCODE_WOWLAN].is_dual_cpus = in iwl_parse_tlv_firmware()
1140 drv->fw.img[IWL_UCODE_REGULAR].paging_mem_size = in iwl_parse_tlv_firmware()
1143 drv->fw.img[usniffer_img].paging_mem_size = in iwl_parse_tlv_firmware()
1347 sec = kcalloc(pieces->img[type].sec_counter, sizeof(*sec), GFP_KERNEL); in iwl_alloc_ucode()
1350 drv->fw.img[type].sec = sec; in iwl_alloc_ucode()
1351 drv->fw.img[type].num_sec = pieces->img[type].sec_counter; in iwl_alloc_ucode()
1353 for (i = 0; i < pieces->img[type].sec_counter; i++) in iwl_alloc_ucode()
1760 for (i = 0; i < ARRAY_SIZE(pieces->img); i++) in iwl_req_fw_callback()
1761 kfree(pieces->img[i].sec); in iwl_req_fw_callback()