Lines Matching refs:nvm_info
665 p_hwfn->nvm_info.valid = false; in qed_mcp_nvm_wr_cmd()
3290 struct qed_nvm_image_info nvm_info; in qed_mcp_nvm_info_populate() local
3295 if (p_hwfn->nvm_info.valid) in qed_mcp_nvm_info_populate()
3305 nvm_info.num_images = 0; in qed_mcp_nvm_info_populate()
3307 p_ptt, &nvm_info.num_images); in qed_mcp_nvm_info_populate()
3311 } else if (rc || !nvm_info.num_images) { in qed_mcp_nvm_info_populate()
3316 nvm_info.image_att = kmalloc_array(nvm_info.num_images, in qed_mcp_nvm_info_populate()
3319 if (!nvm_info.image_att) { in qed_mcp_nvm_info_populate()
3325 for (i = 0; i < nvm_info.num_images; i++) { in qed_mcp_nvm_info_populate()
3327 &nvm_info.image_att[i], i); in qed_mcp_nvm_info_populate()
3335 nvm_info.image_att[i].len); in qed_mcp_nvm_info_populate()
3339 if (nvm_info.num_images) { in qed_mcp_nvm_info_populate()
3340 p_hwfn->nvm_info.num_images = nvm_info.num_images; in qed_mcp_nvm_info_populate()
3341 kfree(p_hwfn->nvm_info.image_att); in qed_mcp_nvm_info_populate()
3342 p_hwfn->nvm_info.image_att = nvm_info.image_att; in qed_mcp_nvm_info_populate()
3343 p_hwfn->nvm_info.valid = true; in qed_mcp_nvm_info_populate()
3350 kfree(nvm_info.image_att); in qed_mcp_nvm_info_populate()
3358 kfree(p_hwfn->nvm_info.image_att); in qed_mcp_nvm_info_free()
3359 p_hwfn->nvm_info.image_att = NULL; in qed_mcp_nvm_info_free()
3360 p_hwfn->nvm_info.valid = false; in qed_mcp_nvm_info_free()
3402 for (i = 0; i < p_hwfn->nvm_info.num_images; i++) in qed_mcp_get_nvm_image_att()
3403 if (type == p_hwfn->nvm_info.image_att[i].image_type) in qed_mcp_get_nvm_image_att()
3405 if (i == p_hwfn->nvm_info.num_images) { in qed_mcp_get_nvm_image_att()
3412 p_image_att->start_addr = p_hwfn->nvm_info.image_att[i].nvm_start_addr; in qed_mcp_get_nvm_image_att()
3413 p_image_att->length = p_hwfn->nvm_info.image_att[i].len; in qed_mcp_get_nvm_image_att()