Lines Matching refs:nvm_info
690 p_hwfn->nvm_info.valid = false; in qed_mcp_nvm_wr_cmd()
3352 struct qed_nvm_image_info nvm_info; in qed_mcp_nvm_info_populate() local
3357 if (p_hwfn->nvm_info.valid) in qed_mcp_nvm_info_populate()
3367 nvm_info.num_images = 0; in qed_mcp_nvm_info_populate()
3369 p_ptt, &nvm_info.num_images); in qed_mcp_nvm_info_populate()
3373 } else if (rc || !nvm_info.num_images) { in qed_mcp_nvm_info_populate()
3378 nvm_info.image_att = kmalloc_array(nvm_info.num_images, in qed_mcp_nvm_info_populate()
3381 if (!nvm_info.image_att) { in qed_mcp_nvm_info_populate()
3387 for (i = 0; i < nvm_info.num_images; i++) { in qed_mcp_nvm_info_populate()
3389 &nvm_info.image_att[i], i); in qed_mcp_nvm_info_populate()
3397 nvm_info.image_att[i].len); in qed_mcp_nvm_info_populate()
3401 if (nvm_info.num_images) { in qed_mcp_nvm_info_populate()
3402 p_hwfn->nvm_info.num_images = nvm_info.num_images; in qed_mcp_nvm_info_populate()
3403 kfree(p_hwfn->nvm_info.image_att); in qed_mcp_nvm_info_populate()
3404 p_hwfn->nvm_info.image_att = nvm_info.image_att; in qed_mcp_nvm_info_populate()
3405 p_hwfn->nvm_info.valid = true; in qed_mcp_nvm_info_populate()
3412 kfree(nvm_info.image_att); in qed_mcp_nvm_info_populate()
3420 kfree(p_hwfn->nvm_info.image_att); in qed_mcp_nvm_info_free()
3421 p_hwfn->nvm_info.image_att = NULL; in qed_mcp_nvm_info_free()
3422 p_hwfn->nvm_info.valid = false; in qed_mcp_nvm_info_free()
3464 for (i = 0; i < p_hwfn->nvm_info.num_images; i++) in qed_mcp_get_nvm_image_att()
3465 if (type == p_hwfn->nvm_info.image_att[i].image_type) in qed_mcp_get_nvm_image_att()
3467 if (i == p_hwfn->nvm_info.num_images) { in qed_mcp_get_nvm_image_att()
3474 p_image_att->start_addr = p_hwfn->nvm_info.image_att[i].nvm_start_addr; in qed_mcp_get_nvm_image_att()
3475 p_image_att->length = p_hwfn->nvm_info.image_att[i].len; in qed_mcp_get_nvm_image_att()