Lines Matching refs:tcegrp
243 struct tce_iommu_group *tcegrp; in tce_iommu_enable() local
280 tcegrp = list_first_entry(&container->group_list, in tce_iommu_enable()
282 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_enable()
347 struct tce_iommu_group *tcegrp; in tce_iommu_release() local
352 tcegrp = list_first_entry(&container->group_list, in tce_iommu_release()
354 tce_iommu_detach_group(iommu_data, tcegrp->grp); in tce_iommu_release()
647 struct tce_iommu_group *tcegrp; in tce_iommu_create_window() local
657 tcegrp = list_first_entry(&container->group_list, in tce_iommu_create_window()
659 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_window()
683 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_create_window()
684 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_window()
699 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_create_window()
700 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_window()
713 struct tce_iommu_group *tcegrp; in tce_iommu_remove_window() local
725 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_remove_window()
726 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_remove_window()
752 struct tce_iommu_group *tcegrp; in tce_iommu_create_default_window() local
761 tcegrp = list_first_entry(&container->group_list, in tce_iommu_create_default_window()
763 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_default_window()
859 struct tce_iommu_group *tcegrp; in tce_iommu_ioctl() local
865 tcegrp = list_first_entry(&container->group_list, in tce_iommu_ioctl()
867 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_ioctl()
1095 struct tce_iommu_group *tcegrp; in tce_iommu_ioctl() local
1098 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_ioctl()
1099 ret = vfio_spapr_ioctl_eeh_pe_op(tcegrp->grp, arg); in tce_iommu_ioctl()
1242 struct tce_iommu_group *tcegrp = NULL; in tce_iommu_attach_group() local
1273 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_attach_group()
1276 if (tcegrp->grp == iommu_group) { in tce_iommu_attach_group()
1282 table_group_tmp = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_attach_group()
1287 iommu_group_id(tcegrp->grp)); in tce_iommu_attach_group()
1293 tcegrp = kzalloc(sizeof(*tcegrp), GFP_KERNEL); in tce_iommu_attach_group()
1294 if (!tcegrp) { in tce_iommu_attach_group()
1304 tcegrp->grp = iommu_group; in tce_iommu_attach_group()
1305 list_add(&tcegrp->next, &container->group_list); in tce_iommu_attach_group()
1308 if (ret && tcegrp) in tce_iommu_attach_group()
1309 kfree(tcegrp); in tce_iommu_attach_group()
1323 struct tce_iommu_group *tcegrp; in tce_iommu_detach_group() local
1327 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_detach_group()
1328 if (tcegrp->grp == iommu_group) { in tce_iommu_detach_group()
1340 list_del(&tcegrp->next); in tce_iommu_detach_group()
1341 kfree(tcegrp); in tce_iommu_detach_group()