Searched refs:drv_struct (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/include/linux/ |
| H A D | fwctl.h | 98 #define fwctl_alloc_device(parent, ops, drv_struct, member) \ argument 101 ((drv_struct *)NULL)->member)); \ 102 static_assert(offsetof(drv_struct, member) == 0); \ 103 (drv_struct *)_fwctl_alloc_device(parent, ops, \ 104 sizeof(drv_struct)); \
|
| H A D | iommufd.h | 235 #define iommufd_viommu_alloc(ictx, drv_struct, member, viommu_ops) \ argument 237 drv_struct *ret; \ 240 ((drv_struct *)NULL)->member)); \ 241 static_assert(offsetof(drv_struct, member.obj) == 0); \ 242 ret = (drv_struct *)_iommufd_object_alloc( \ 243 ictx, sizeof(drv_struct), IOMMUFD_OBJ_VIOMMU); \
|
| /linux-6.15/include/rdma/ |
| H A D | ib_verbs.h | 2298 #define INIT_RDMA_OBJ_SIZE(ib_struct, drv_struct, member) \ argument 2300 (sizeof(struct drv_struct) + \ 2301 BUILD_BUG_ON_ZERO(offsetof(struct drv_struct, member)) + \ 2303 !__same_type(((struct drv_struct *)NULL)->member, \ 2907 #define ib_alloc_device(drv_struct, member) \ argument 2908 container_of(_ib_alloc_device(sizeof(struct drv_struct) + \ 2910 struct drv_struct, member))), \ 2911 struct drv_struct, member)
|