Lines Matching refs:mobj_handle
1655 struct icp_qat_mof_handle *mobj_handle = handle->mobj_handle; in qat_uclo_map_mof_file_hdr() local
1659 mobj_handle->file_id = ICP_QAT_MOF_FID; in qat_uclo_map_mof_file_hdr()
1660 mobj_handle->mof_buf = (char *)mof_ptr; in qat_uclo_map_mof_file_hdr()
1661 mobj_handle->mof_size = mof_size; in qat_uclo_map_mof_file_hdr()
1672 mobj_handle->checksum = mof_ptr->checksum; in qat_uclo_map_mof_file_hdr()
1673 mobj_handle->min_ver = mof_ptr->min_ver; in qat_uclo_map_mof_file_hdr()
1674 mobj_handle->maj_ver = mof_ptr->maj_ver; in qat_uclo_map_mof_file_hdr()
1680 struct icp_qat_mof_handle *mobj_handle = handle->mobj_handle; in qat_uclo_del_mof() local
1682 kfree(mobj_handle->obj_table.obj_hdr); in qat_uclo_del_mof()
1683 mobj_handle->obj_table.obj_hdr = NULL; in qat_uclo_del_mof()
1684 kfree(handle->mobj_handle); in qat_uclo_del_mof()
1685 handle->mobj_handle = NULL; in qat_uclo_del_mof()
1688 static int qat_uclo_seek_obj_inside_mof(struct icp_qat_mof_handle *mobj_handle, in qat_uclo_seek_obj_inside_mof() argument
1692 struct icp_qat_mof_objhdr *obj_hdr = mobj_handle->obj_table.obj_hdr; in qat_uclo_seek_obj_inside_mof()
1695 for (i = 0; i < mobj_handle->obj_table.num_objs; i++) { in qat_uclo_seek_obj_inside_mof()
1708 static int qat_uclo_map_obj_from_mof(struct icp_qat_mof_handle *mobj_handle, in qat_uclo_map_obj_from_mof() argument
1716 obj = mobj_handle->uobjs_hdr + obj_chunkhdr->offset; in qat_uclo_map_obj_from_mof()
1719 obj = mobj_handle->sobjs_hdr + obj_chunkhdr->offset; in qat_uclo_map_obj_from_mof()
1726 mobj_hdr->obj_name = obj_chunkhdr->name + mobj_handle->sym_str; in qat_uclo_map_obj_from_mof()
1730 static int qat_uclo_map_objs_from_mof(struct icp_qat_mof_handle *mobj_handle) in qat_uclo_map_objs_from_mof() argument
1742 uobj_hdr = (struct icp_qat_mof_obj_hdr *)mobj_handle->uobjs_hdr; in qat_uclo_map_objs_from_mof()
1743 sobj_hdr = (struct icp_qat_mof_obj_hdr *)mobj_handle->sobjs_hdr; in qat_uclo_map_objs_from_mof()
1754 mobj_handle->obj_table.obj_hdr = mobj_hdr; in qat_uclo_map_objs_from_mof()
1755 valid_chunk = &mobj_handle->obj_table.num_objs; in qat_uclo_map_objs_from_mof()
1763 ret = qat_uclo_map_obj_from_mof(mobj_handle, in qat_uclo_map_objs_from_mof()
1773 ret = qat_uclo_map_obj_from_mof(mobj_handle, in qat_uclo_map_objs_from_mof()
1788 static void qat_uclo_map_mof_symobjs(struct icp_qat_mof_handle *mobj_handle, in qat_uclo_map_mof_symobjs() argument
1791 char **sym_str = (char **)&mobj_handle->sym_str; in qat_uclo_map_mof_symobjs()
1792 unsigned int *sym_size = &mobj_handle->sym_size; in qat_uclo_map_mof_symobjs()
1796 (mof_chunkhdr->offset + mobj_handle->mof_buf); in qat_uclo_map_mof_symobjs()
1798 (mobj_handle->mof_buf + mof_chunkhdr->offset + in qat_uclo_map_mof_symobjs()
1802 static void qat_uclo_map_mof_chunk(struct icp_qat_mof_handle *mobj_handle, in qat_uclo_map_mof_chunk() argument
1808 qat_uclo_map_mof_symobjs(mobj_handle, mof_chunkhdr); in qat_uclo_map_mof_chunk()
1810 mobj_handle->uobjs_hdr = mobj_handle->mof_buf + in qat_uclo_map_mof_chunk()
1813 mobj_handle->sobjs_hdr = mobj_handle->mof_buf + in qat_uclo_map_mof_chunk()
1846 struct icp_qat_mof_handle *mobj_handle; in qat_uclo_map_mof_obj() local
1861 mobj_handle = kzalloc(sizeof(*mobj_handle), GFP_KERNEL); in qat_uclo_map_mof_obj()
1862 if (!mobj_handle) in qat_uclo_map_mof_obj()
1865 handle->mobj_handle = mobj_handle; in qat_uclo_map_mof_obj()
1875 qat_uclo_map_mof_chunk(mobj_handle, &mof_chunkhdr[i]); in qat_uclo_map_mof_obj()
1878 if (!mobj_handle->sym_str || in qat_uclo_map_mof_obj()
1879 (!mobj_handle->uobjs_hdr && !mobj_handle->sobjs_hdr)) in qat_uclo_map_mof_obj()
1882 ret = qat_uclo_map_objs_from_mof(mobj_handle); in qat_uclo_map_mof_obj()
1887 return qat_uclo_seek_obj_inside_mof(mobj_handle, obj_name, in qat_uclo_map_mof_obj()
1924 if (handle->mobj_handle) in qat_uclo_del_obj()