Home
last modified time | relevance | path

Searched refs:drv_struct (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/
H A Diommufd.h209 #define iommufd_viommu_alloc(ictx, drv_struct, member, viommu_ops) \ argument
211 drv_struct *ret; \
214 ((drv_struct *)NULL)->member)); \
215 static_assert(offsetof(drv_struct, member.obj) == 0); \
216 ret = (drv_struct *)_iommufd_object_alloc( \
217 ictx, sizeof(drv_struct), IOMMUFD_OBJ_VIOMMU); \
/linux/include/rdma/
H A Dib_verbs.h2280 #define INIT_RDMA_OBJ_SIZE(ib_struct, drv_struct, member) \ argument
2282 (sizeof(struct drv_struct) + \
2283 BUILD_BUG_ON_ZERO(offsetof(struct drv_struct, member)) + \
2285 !__same_type(((struct drv_struct *)NULL)->member, \
2874 #define ib_alloc_device(drv_struct, member) \
2875 container_of(_ib_alloc_device(sizeof(struct drv_struct) + \
2877 struct drv_struct, member))), \
2878 struct drv_struct, member)
2868 ib_alloc_device(drv_struct,member) global() argument