Lines Matching refs:table_group
995 struct iommu_table_group *table_group = iommu_data; in group_release() local
997 table_group->group = NULL; in group_release()
1000 void iommu_register_group(struct iommu_table_group *table_group, in iommu_register_group() argument
1012 table_group->group = grp; in iommu_register_group()
1013 iommu_group_set_iommudata(grp, table_group, group_release); in iommu_register_group()
1157 int iommu_add_device(struct iommu_table_group *table_group, struct device *dev) in iommu_add_device() argument
1175 __func__, dev_name(dev), iommu_group_id(table_group->group)); in iommu_add_device()
1205 static long spapr_tce_create_table(struct iommu_table_group *table_group, int num, in spapr_tce_create_table() argument
1209 struct iommu_table *tbl = table_group->tables[0]; in spapr_tce_create_table()
1223 static long spapr_tce_set_window(struct iommu_table_group *table_group, in spapr_tce_set_window() argument
1226 return tbl == table_group->tables[num] ? 0 : -EPERM; in spapr_tce_set_window()
1229 static long spapr_tce_unset_window(struct iommu_table_group *table_group, int num) in spapr_tce_unset_window() argument
1234 static long spapr_tce_take_ownership(struct iommu_table_group *table_group) in spapr_tce_take_ownership() argument
1239 struct iommu_table *tbl = table_group->tables[i]; in spapr_tce_take_ownership()
1249 iommu_release_ownership(table_group->tables[j]); in spapr_tce_take_ownership()
1255 static void spapr_tce_release_ownership(struct iommu_table_group *table_group) in spapr_tce_release_ownership() argument
1260 struct iommu_table *tbl = table_group->tables[i]; in spapr_tce_release_ownership()
1287 struct iommu_table_group *table_group; in spapr_tce_blocking_iommu_attach_dev() local
1293 table_group = iommu_group_get_iommudata(grp); in spapr_tce_blocking_iommu_attach_dev()
1294 ret = table_group->ops->take_ownership(table_group); in spapr_tce_blocking_iommu_attach_dev()
1303 struct iommu_table_group *table_group; in spapr_tce_blocking_iommu_set_platform_dma() local
1305 table_group = iommu_group_get_iommudata(grp); in spapr_tce_blocking_iommu_set_platform_dma()
1306 table_group->ops->release_ownership(table_group); in spapr_tce_blocking_iommu_set_platform_dma()