Lines Matching refs:image_att
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()
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()
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()
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()
3403 if (type == p_hwfn->nvm_info.image_att[i].image_type) 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()
3422 struct qed_nvm_image_att image_att; in qed_mcp_get_nvm_image() local
3427 rc = qed_mcp_get_nvm_image_att(p_hwfn, image_id, &image_att); in qed_mcp_get_nvm_image()
3432 if (image_att.length <= 4) { in qed_mcp_get_nvm_image()
3435 image_id, image_att.length); in qed_mcp_get_nvm_image()
3439 if (image_att.length > buffer_len) { in qed_mcp_get_nvm_image()
3443 image_id, image_att.length, buffer_len); in qed_mcp_get_nvm_image()
3447 return qed_mcp_nvm_read(p_hwfn->cdev, image_att.start_addr, in qed_mcp_get_nvm_image()
3448 p_buffer, image_att.length); in qed_mcp_get_nvm_image()