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()
132 iwl_free_fw_img(drv, drv->fw.img + i); in iwl_dealloc_ucode()
236 struct fw_img_parsing img[IWL_UCODE_TYPE_MAX]; member
264 return &pieces->img[type].sec[sec]; in get_sec()
271 struct fw_img_parsing *img = &pieces->img[type]; in alloc_sec_data() local
274 size_t alloc_size = sizeof(*img->sec) * size; in alloc_sec_data()
276 if (img->sec && img->sec_counter >= size) in alloc_sec_data()
279 sec_memory = krealloc(img->sec, alloc_size, GFP_KERNEL); in alloc_sec_data()
283 img->sec = sec_memory; in alloc_sec_data()
284 img->sec_counter = size; in alloc_sec_data()
294 pieces->img[type].sec[sec].data = data; in set_sec_data()
304 pieces->img[type].sec[sec].size = size; in set_sec_size()
311 return pieces->img[type].sec[sec].size; in get_sec_size()
321 pieces->img[type].sec[sec].offset = offset; in set_sec_offset()
354 struct fw_img_parsing *img; in iwl_store_ucode_sec() local
364 img = &pieces->img[type]; in iwl_store_ucode_sec()
366 alloc_size = sizeof(*img->sec) * (img->sec_counter + 1); in iwl_store_ucode_sec()
367 sec = krealloc(img->sec, alloc_size, GFP_KERNEL); in iwl_store_ucode_sec()
370 img->sec = sec; in iwl_store_ucode_sec()
372 sec = &img->sec[img->sec_counter]; in iwl_store_ucode_sec()
378 ++img->sec_counter; in iwl_store_ucode_sec()
854 drv->fw.img[IWL_UCODE_REGULAR].is_dual_cpus = in iwl_parse_tlv_firmware()
856 drv->fw.img[IWL_UCODE_INIT].is_dual_cpus = in iwl_parse_tlv_firmware()
858 drv->fw.img[IWL_UCODE_WOWLAN].is_dual_cpus = in iwl_parse_tlv_firmware()
1047 drv->fw.img[IWL_UCODE_REGULAR].paging_mem_size = in iwl_parse_tlv_firmware()
1050 drv->fw.img[usniffer_img].paging_mem_size = in iwl_parse_tlv_firmware()
1247 sec = kcalloc(pieces->img[type].sec_counter, sizeof(*sec), GFP_KERNEL); in iwl_alloc_ucode()
1250 drv->fw.img[type].sec = sec; in iwl_alloc_ucode()
1251 drv->fw.img[type].num_sec = pieces->img[type].sec_counter; in iwl_alloc_ucode()
1253 for (i = 0; i < pieces->img[type].sec_counter; i++) in iwl_alloc_ucode()
1663 for (i = 0; i < ARRAY_SIZE(pieces->img); i++) in iwl_req_fw_callback()
1664 kfree(pieces->img[i].sec); in iwl_req_fw_callback()