Lines Matching refs:member
176 * vxge_container_of - Given a member, return the containing structure.
177 * @ptr: the pointer to the member.
179 * @member: the name of the member within the struct.
181 * Cast a member of a structure out to the containing structure.
183 #define vxge_container_of(ptr, type, member) (\
184 { __typeof(((type *)0)->member) *__mptr = (ptr); \
185 (type *)(void *)((char *)__mptr - ((ptr_t)&((type *)0)->member)); })
188 #define vxge_container_of(ptr, type, member) \
189 ((type *)(void *)((char *)(ptr) - ((ptr_t)&((type *)0)->member)))
193 * vxge_offsetof - Offset of the member in the containing structure.
195 * @m: the name of the member within the struct.
197 * Return the offset of the member @m in the structure @t.