Lines Matching refs:ucode_hdr
135 static int get_ucode_type(struct otx_cpt_ucode_hdr *ucode_hdr, int *ucode_type) in get_ucode_type() argument
141 strlcpy(tmp_ver_str, ucode_hdr->ver_str, OTX_CPT_UCODE_VER_STR_SZ); in get_ucode_type()
145 nn = ucode_hdr->ver_num.nn; in get_ucode_type()
287 struct otx_cpt_ucode_hdr *ucode_hdr; in process_tar_file() local
298 ucode_hdr = (struct otx_cpt_ucode_hdr *) data; in process_tar_file()
303 if (get_ucode_type(ucode_hdr, &ucode_type)) in process_tar_file()
306 ucode_size = ntohl(ucode_hdr->code_length) * 2; in process_tar_file()
319 memcpy(tar_info->ucode.ver_str, ucode_hdr->ver_str, in process_tar_file()
321 tar_info->ucode.ver_num = ucode_hdr->ver_num; in process_tar_file()
887 struct otx_cpt_ucode_hdr *ucode_hdr; in ucode_load() local
896 ucode_hdr = (struct otx_cpt_ucode_hdr *) fw->data; in ucode_load()
897 memcpy(ucode->ver_str, ucode_hdr->ver_str, OTX_CPT_UCODE_VER_STR_SZ); in ucode_load()
898 ucode->ver_num = ucode_hdr->ver_num; in ucode_load()
899 ucode->size = ntohl(ucode_hdr->code_length) * 2; in ucode_load()
907 ret = get_ucode_type(ucode_hdr, &ucode->type); in ucode_load()