Lines Matching refs:hshdr

219 	const struct nvfw_hs_header *hshdr;  in nvkm_falcon_fw_ctor_hs()  local
230 hshdr = nvfw_hs_header(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs()
243 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs()
244 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs()
247 loc = hshdr->patch_loc; in nvkm_falcon_fw_ctor_hs()
248 sig = hshdr->patch_sig; in nvkm_falcon_fw_ctor_hs()
256 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size, blob->data, in nvkm_falcon_fw_ctor_hs()
257 1, hshdr->sig_prod_offset + sig, in nvkm_falcon_fw_ctor_hs()
258 1, hshdr->sig_dbg_offset + sig); in nvkm_falcon_fw_ctor_hs()
262 lhdr = nvfw_hs_load_header(subdev, blob->data + hshdr->hdr_offset); in nvkm_falcon_fw_ctor_hs()
311 const struct nvfw_hs_header_v2 *hshdr; in nvkm_falcon_fw_ctor_hs_v2() local
322 hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs_v2()
323 meta = (u32 *)(blob->data + hshdr->meta_data_offset); in nvkm_falcon_fw_ctor_hs_v2()
324 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs_v2()
325 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs_v2()
326 cnt = *(u32 *)(blob->data + hshdr->num_sig); in nvkm_falcon_fw_ctor_hs_v2()
333 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size / cnt, blob->data, in nvkm_falcon_fw_ctor_hs_v2()
334 cnt, hshdr->sig_prod_offset + sig, 0, 0); in nvkm_falcon_fw_ctor_hs_v2()
338 lhdr = nvfw_hs_load_header_v2(subdev, blob->data + hshdr->header_offset); in nvkm_falcon_fw_ctor_hs_v2()