Lines Matching refs:hshdr
212 const struct nvfw_hs_header *hshdr; in nvkm_falcon_fw_ctor_hs() local
223 hshdr = nvfw_hs_header(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs()
236 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs()
237 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs()
240 loc = hshdr->patch_loc; in nvkm_falcon_fw_ctor_hs()
241 sig = hshdr->patch_sig; in nvkm_falcon_fw_ctor_hs()
249 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size, blob->data, in nvkm_falcon_fw_ctor_hs()
250 1, hshdr->sig_prod_offset + sig, in nvkm_falcon_fw_ctor_hs()
251 1, hshdr->sig_dbg_offset + sig); in nvkm_falcon_fw_ctor_hs()
255 lhdr = nvfw_hs_load_header(subdev, blob->data + hshdr->hdr_offset); in nvkm_falcon_fw_ctor_hs()
304 const struct nvfw_hs_header_v2 *hshdr; in nvkm_falcon_fw_ctor_hs_v2() local
315 hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs_v2()
316 meta = (u32 *)(blob->data + hshdr->meta_data_offset); in nvkm_falcon_fw_ctor_hs_v2()
317 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs_v2()
318 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs_v2()
319 cnt = *(u32 *)(blob->data + hshdr->num_sig); in nvkm_falcon_fw_ctor_hs_v2()
326 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size / cnt, blob->data, in nvkm_falcon_fw_ctor_hs_v2()
327 cnt, hshdr->sig_prod_offset + sig, 0, 0); in nvkm_falcon_fw_ctor_hs_v2()
331 lhdr = nvfw_hs_load_header_v2(subdev, blob->data + hshdr->header_offset); in nvkm_falcon_fw_ctor_hs_v2()