Lines Matching refs:obj_hdr
447 static void *qat_uclo_find_chunk(struct icp_qat_uof_objhdr *obj_hdr, in qat_uclo_find_chunk() argument
453 ((uintptr_t)obj_hdr + sizeof(struct icp_qat_uof_objhdr)); in qat_uclo_find_chunk()
455 for (i = 0; i < obj_hdr->num_chunks; i++) { in qat_uclo_find_chunk()
496 struct icp_qat_uclo_objhdr *obj_hdr; in qat_uclo_map_chunk() local
509 obj_hdr = kzalloc(sizeof(*obj_hdr), GFP_KERNEL); in qat_uclo_map_chunk()
510 if (!obj_hdr) in qat_uclo_map_chunk()
512 obj_hdr->file_buff = chunk; in qat_uclo_map_chunk()
513 obj_hdr->checksum = file_chunk->checksum; in qat_uclo_map_chunk()
514 obj_hdr->size = file_chunk->size; in qat_uclo_map_chunk()
515 return obj_hdr; in qat_uclo_map_chunk()
612 chunk_hdr = qat_uclo_find_chunk(encap_uof_obj->obj_hdr, in qat_uclo_map_uimage()
620 obj_handle->obj_hdr->file_buff); in qat_uclo_map_uimage()
627 obj_handle->obj_hdr->file_buff); in qat_uclo_map_uimage()
633 (image->sbreak_tab + obj_handle->obj_hdr->file_buff); in qat_uclo_map_uimage()
686 qat_uclo_map_str_table(struct icp_qat_uclo_objhdr *obj_hdr, in qat_uclo_map_str_table() argument
692 obj_hdr->file_buff, tab_name, NULL); in qat_uclo_map_str_table()
696 memcpy(&str_table->table_len, obj_hdr->file_buff + in qat_uclo_map_str_table()
699 str_table->strings = (uintptr_t)obj_hdr->file_buff + in qat_uclo_map_str_table()
712 chunk_hdr = qat_uclo_find_chunk(encap_uof_obj->obj_hdr, in qat_uclo_map_initmem_table()
747 if (!(prod_type & obj_handle->encap_uof_obj.obj_hdr->ac_dev_type)) { in qat_uclo_check_uof_compat()
749 obj_handle->encap_uof_obj.obj_hdr->ac_dev_type, in qat_uclo_check_uof_compat()
754 if (obj_handle->encap_uof_obj.obj_hdr->max_cpu_ver < maj_ver || in qat_uclo_check_uof_compat()
755 obj_handle->encap_uof_obj.obj_hdr->min_cpu_ver > maj_ver) { in qat_uclo_check_uof_compat()
989 obj_handle->encap_uof_obj.beg_uof = obj_handle->obj_hdr->file_buff; in qat_uclo_parse_uof_obj()
990 obj_handle->encap_uof_obj.obj_hdr = (struct icp_qat_uof_objhdr *) in qat_uclo_parse_uof_obj()
991 obj_handle->obj_hdr->file_buff; in qat_uclo_parse_uof_obj()
1005 if (!obj_handle->obj_hdr->file_buff || in qat_uclo_parse_uof_obj()
1006 !qat_uclo_map_str_table(obj_handle->obj_hdr, ICP_QAT_UOF_STRT, in qat_uclo_parse_uof_obj()
1581 objhdl->obj_hdr = qat_uclo_map_chunk((char *)objhdl->obj_buf, filehdr, in qat_uclo_map_uof_obj()
1583 if (!objhdl->obj_hdr) { in qat_uclo_map_uof_obj()
1594 kfree(objhdl->obj_hdr); in qat_uclo_map_uof_obj()
1633 kfree(mobj_handle->obj_table.obj_hdr); in qat_uclo_del_mof()
1634 mobj_handle->obj_table.obj_hdr = NULL; in qat_uclo_del_mof()
1643 struct icp_qat_mof_objhdr *obj_hdr = mobj_handle->obj_table.obj_hdr; in qat_uclo_seek_obj_inside_mof() local
1647 if (!strncmp(obj_hdr[i].obj_name, obj_name, in qat_uclo_seek_obj_inside_mof()
1649 *obj_ptr = obj_hdr[i].obj_buf; in qat_uclo_seek_obj_inside_mof()
1650 *obj_size = obj_hdr[i].obj_size; in qat_uclo_seek_obj_inside_mof()
1705 mobj_handle->obj_table.obj_hdr = mobj_hdr; in qat_uclo_map_objs_from_mof()
1889 kfree(obj_handle->obj_hdr); in qat_uclo_del_obj()