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()
235 struct fw_img_parsing img[IWL_UCODE_TYPE_MAX]; member
263 return &pieces->img[type].sec[sec]; in get_sec()
270 struct fw_img_parsing *img = &pieces->img[type]; in alloc_sec_data() local
273 size_t alloc_size = sizeof(*img->sec) * size; in alloc_sec_data()
275 if (img->sec && img->sec_counter >= size) in alloc_sec_data()
278 sec_memory = krealloc(img->sec, alloc_size, GFP_KERNEL); in alloc_sec_data()
282 img->sec = sec_memory; in alloc_sec_data()
283 img->sec_counter = size; in alloc_sec_data()
293 pieces->img[type].sec[sec].data = data; in set_sec_data()
303 pieces->img[type].sec[sec].size = size; in set_sec_size()
310 return pieces->img[type].sec[sec].size; in get_sec_size()
320 pieces->img[type].sec[sec].offset = offset; in set_sec_offset()
330 struct fw_img_parsing *img; in iwl_store_ucode_sec() local
340 img = &pieces->img[type]; in iwl_store_ucode_sec()
342 alloc_size = sizeof(*img->sec) * (img->sec_counter + 1); in iwl_store_ucode_sec()
343 sec = krealloc(img->sec, alloc_size, GFP_KERNEL); in iwl_store_ucode_sec()
346 img->sec = sec; in iwl_store_ucode_sec()
348 sec = &img->sec[img->sec_counter]; in iwl_store_ucode_sec()
354 ++img->sec_counter; in iwl_store_ucode_sec()
890 drv->fw.img[IWL_UCODE_REGULAR].is_dual_cpus = in iwl_parse_tlv_firmware()
892 drv->fw.img[IWL_UCODE_INIT].is_dual_cpus = in iwl_parse_tlv_firmware()
894 drv->fw.img[IWL_UCODE_WOWLAN].is_dual_cpus = in iwl_parse_tlv_firmware()
1080 drv->fw.img[IWL_UCODE_REGULAR].paging_mem_size = in iwl_parse_tlv_firmware()
1083 drv->fw.img[usniffer_img].paging_mem_size = in iwl_parse_tlv_firmware()
1271 sec = kcalloc(pieces->img[type].sec_counter, sizeof(*sec), GFP_KERNEL); in iwl_alloc_ucode()
1274 drv->fw.img[type].sec = sec; in iwl_alloc_ucode()
1275 drv->fw.img[type].num_sec = pieces->img[type].sec_counter; in iwl_alloc_ucode()
1277 for (i = 0; i < pieces->img[type].sec_counter; i++) in iwl_alloc_ucode()
1687 for (i = 0; i < ARRAY_SIZE(pieces->img); i++) in iwl_req_fw_callback()
1688 kfree(pieces->img[i].sec); in iwl_req_fw_callback()