Lines Matching refs:csg_iface
780 struct panthor_fw_csg_iface *csg_iface = panthor_fw_get_csg_iface(ptdev, csg_idx); in panthor_init_cs_iface() local
786 (cs_idx * csg_iface->control->stream_stride); in panthor_init_cs_iface()
836 struct panthor_fw_csg_iface *csg_iface = &ptdev->fw->iface.groups[csg_idx]; in panthor_init_csg_iface() local
841 if (iface_offset + sizeof(*csg_iface) >= shared_section_sz) in panthor_init_csg_iface()
844 spin_lock_init(&csg_iface->lock); in panthor_init_csg_iface()
845 csg_iface->control = ptdev->fw->shared_section->mem->kmap + iface_offset; in panthor_init_csg_iface()
846 csg_iface->input = iface_fw_to_cpu_addr(ptdev, csg_iface->control->input_va); in panthor_init_csg_iface()
847 csg_iface->output = iface_fw_to_cpu_addr(ptdev, csg_iface->control->output_va); in panthor_init_csg_iface()
849 if (csg_iface->control->stream_num < MIN_CS_PER_CSG || in panthor_init_csg_iface()
850 csg_iface->control->stream_num > MAX_CS_PER_CSG) in panthor_init_csg_iface()
853 if (!csg_iface->input || !csg_iface->output) { in panthor_init_csg_iface()
862 if (!compare_csg(first_csg_iface->control, csg_iface->control)) { in panthor_init_csg_iface()
868 for (i = 0; i < csg_iface->control->stream_num; i++) { in panthor_init_csg_iface()
1238 struct panthor_fw_csg_iface *csg_iface = panthor_fw_get_csg_iface(ptdev, csg_slot); in panthor_fw_csg_wait_acks() local
1244 ret = panthor_fw_wait_acks(&csg_iface->input->req, in panthor_fw_csg_wait_acks()
1245 &csg_iface->output->ack, in panthor_fw_csg_wait_acks()