Lines Matching refs:acr

27 ga102_acr_wpr_patch(struct nvkm_acr *acr, s64 adjust)  in ga102_acr_wpr_patch()  argument
39 nvkm_robj(acr->wpr, offset, &hdr, sizeof(hdr)); in ga102_acr_wpr_patch()
40 wpr_header_v2_dump(&acr->subdev, &hdr); in ga102_acr_wpr_patch()
42 list_for_each_entry(lsfw, &acr->lsfw, head) { in ga102_acr_wpr_patch()
46 nvkm_robj(acr->wpr, hdr.wpr.lsb_offset, lsb, sizeof(*lsb)); in ga102_acr_wpr_patch()
47 lsb_header_v2_dump(&acr->subdev, lsb); in ga102_acr_wpr_patch()
49 lsfw->func->bld_patch(acr, lsb->bl_data_off, adjust); in ga102_acr_wpr_patch()
61 ga102_acr_wpr_build_lsb(struct nvkm_acr *acr, struct nvkm_acr_lsfw *lsfw) in ga102_acr_wpr_build_lsb() argument
113 ret = nvkm_falcon_get(fw.falcon, &acr->subdev); in ga102_acr_wpr_build_lsb()
122 nvkm_falcon_put(fw.falcon, &acr->subdev); in ga102_acr_wpr_build_lsb()
126 nvkm_wobj(acr->wpr, lsfw->offset.lsb, hdr, sizeof(*hdr)); in ga102_acr_wpr_build_lsb()
132 ga102_acr_wpr_build(struct nvkm_acr *acr, struct nvkm_acr_lsf *rtos) in ga102_acr_wpr_build() argument
140 nvkm_wo32(acr->wpr, 0x300, (2 << 16) | WPR_GENERIC_HEADER_ID_LSF_SHARED_SUB_WPR); in ga102_acr_wpr_build()
141 nvkm_wo32(acr->wpr, 0x304, 0x14); in ga102_acr_wpr_build()
142 nvkm_wo32(acr->wpr, 0x308, 0xffffffff); in ga102_acr_wpr_build()
143 nvkm_wo32(acr->wpr, 0x30c, 0); in ga102_acr_wpr_build()
144 nvkm_wo32(acr->wpr, 0x310, 0); in ga102_acr_wpr_build()
147 list_for_each_entry(lsfw, &acr->lsfw, head) { in ga102_acr_wpr_build()
161 nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr)); in ga102_acr_wpr_build()
165 ret = ga102_acr_wpr_build_lsb(acr, lsfw); in ga102_acr_wpr_build()
170 nvkm_wobj(acr->wpr, lsfw->offset.img, in ga102_acr_wpr_build()
175 lsfw->func->bld_write(acr, lsfw->offset.bld, lsfw); in ga102_acr_wpr_build()
183 nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr)); in ga102_acr_wpr_build()
188 ga102_acr_wpr_layout(struct nvkm_acr *acr) in ga102_acr_wpr_layout() argument
198 list_for_each_entry(lsfw, &acr->lsfw, head) { in ga102_acr_wpr_layout()
217 ga102_acr_wpr_parse(struct nvkm_acr *acr) in ga102_acr_wpr_parse() argument
219 const struct wpr_header_v2 *hdr = (void *)acr->wpr_fw->data; in ga102_acr_wpr_parse()
222 wpr_header_v2_dump(&acr->subdev, hdr); in ga102_acr_wpr_parse()
223 if (!nvkm_acr_lsfw_add(NULL, acr, NULL, (hdr++)->wpr.falcon_id)) in ga102_acr_wpr_parse()
290 ga102_acr_load(struct nvkm_acr *acr, int version, in ga102_acr_load() argument
293 struct nvkm_subdev *subdev = &acr->subdev; in ga102_acr_load()
297 acr, NULL, "acr/ucode_ahesasc", "AHESASC"); in ga102_acr_load()
302 acr, NULL, "acr/ucode_asb", "ASB"); in ga102_acr_load()
307 acr, NULL, "acr/ucode_unload", "unload"); in ga102_acr_load()