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()
648 struct tce_iommu_group *tcegrp; in tce_iommu_create_window() local
658 tcegrp = list_first_entry(&container->group_list, in tce_iommu_create_window()
660 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_window()
684 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_create_window()
685 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_window()
700 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_create_window()
701 table_group = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_create_window()
714 struct tce_iommu_group *tcegrp; in tce_iommu_remove_window() local
724 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_remove_window()
725 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()
1237 struct tce_iommu_group *tcegrp = NULL; in tce_iommu_attach_group() local
1268 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_attach_group()
1271 if (tcegrp->grp == iommu_group) { in tce_iommu_attach_group()
1277 table_group_tmp = iommu_group_get_iommudata(tcegrp->grp); in tce_iommu_attach_group()
1282 iommu_group_id(tcegrp->grp)); in tce_iommu_attach_group()
1288 tcegrp = kzalloc(sizeof(*tcegrp), GFP_KERNEL); in tce_iommu_attach_group()
1289 if (!tcegrp) { in tce_iommu_attach_group()
1299 tcegrp->grp = iommu_group; in tce_iommu_attach_group()
1300 list_add(&tcegrp->next, &container->group_list); in tce_iommu_attach_group()
1303 if (ret && tcegrp) in tce_iommu_attach_group()
1304 kfree(tcegrp); in tce_iommu_attach_group()
1318 struct tce_iommu_group *tcegrp; in tce_iommu_detach_group() local
1322 list_for_each_entry(tcegrp, &container->group_list, next) { in tce_iommu_detach_group()
1323 if (tcegrp->grp == iommu_group) { in tce_iommu_detach_group()
1335 list_del(&tcegrp->next); in tce_iommu_detach_group()
1336 kfree(tcegrp); in tce_iommu_detach_group()