Lines Matching refs:lsfw
37 struct nvkm_acr_lsfw *lsfw; in gp102_acr_wpr_patch() local
44 list_for_each_entry(lsfw, &acr->lsfw, head) { in gp102_acr_wpr_patch()
45 if (lsfw->id != hdr.falcon_id) in gp102_acr_wpr_patch()
51 lsfw->func->bld_patch(acr, lsb.tail.bl_data_off, adjust); in gp102_acr_wpr_patch()
62 gp102_acr_wpr_build_lsb(struct nvkm_acr *acr, struct nvkm_acr_lsfw *lsfw) in gp102_acr_wpr_build_lsb() argument
66 if (WARN_ON(lsfw->sig->size != sizeof(hdr.signature))) in gp102_acr_wpr_build_lsb()
69 memcpy(&hdr.signature, lsfw->sig->data, lsfw->sig->size); in gp102_acr_wpr_build_lsb()
70 gm200_acr_wpr_build_lsb_tail(lsfw, &hdr.tail); in gp102_acr_wpr_build_lsb()
72 nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr)); in gp102_acr_wpr_build_lsb()
79 struct nvkm_acr_lsfw *lsfw; in gp102_acr_wpr_build() local
84 list_for_each_entry(lsfw, &acr->lsfw, head) { in gp102_acr_wpr_build()
85 struct lsf_signature_v1 *sig = (void *)lsfw->sig->data; in gp102_acr_wpr_build()
87 .falcon_id = lsfw->id, in gp102_acr_wpr_build()
88 .lsb_offset = lsfw->offset.lsb, in gp102_acr_wpr_build()
90 .lazy_bootstrap = rtos && lsfw->id != rtos->id, in gp102_acr_wpr_build()
100 ret = gp102_acr_wpr_build_lsb(acr, lsfw); in gp102_acr_wpr_build()
105 nvkm_wobj(acr->wpr, lsfw->offset.img, in gp102_acr_wpr_build()
106 lsfw->img.data, in gp102_acr_wpr_build()
107 lsfw->img.size); in gp102_acr_wpr_build()
110 lsfw->func->bld_write(acr, lsfw->offset.bld, lsfw); in gp102_acr_wpr_build()
136 struct nvkm_acr_lsfw *lsfw; in gp102_acr_wpr_layout() local
144 list_for_each_entry(lsfw, &acr->lsfw, head) { in gp102_acr_wpr_layout()
146 lsfw->offset.lsb = wpr; in gp102_acr_wpr_layout()
150 lsfw->offset.img = wpr; in gp102_acr_wpr_layout()
151 wpr += lsfw->img.size; in gp102_acr_wpr_layout()
154 lsfw->offset.bld = wpr; in gp102_acr_wpr_layout()
155 lsfw->bl_data_size = ALIGN(lsfw->func->bld_size, 256); in gp102_acr_wpr_layout()
156 wpr += lsfw->bl_data_size; in gp102_acr_wpr_layout()
166 struct nvkm_acr_lsfw *lsfw; in gp102_acr_wpr_parse() local
170 lsfw = nvkm_acr_lsfw_add(NULL, acr, NULL, (hdr++)->falcon_id); in gp102_acr_wpr_parse()
171 if (IS_ERR(lsfw)) in gp102_acr_wpr_parse()
172 return PTR_ERR(lsfw); in gp102_acr_wpr_parse()