Lines Matching refs:structure
67 #define NVLIST_ADD_FIELD(type, structure, field) \
69 rc = nvlist_add_##type(nvl, #field, structure->field); \
75 #define NVLIST_ADD_ARRAY(type, structure, field) \
78 structure->field, sizeof (structure->field)); \
87 #define NVLIST_ADD_ARRAY_LEN(type, structure, field, len) \
90 structure->field, len); \
95 #define NVLIST_ADD_DEVID(structure, field) \
98 structure->field); \
103 #define NVLIST_ADD_RPORT(structure, field) \
106 structure->field); \
111 #define NVLIST_ADD_FIELD_UINT8(structure, field) \
112 NVLIST_ADD_FIELD(structure, field, uint8)
124 #define NVLIST_LOOKUP_FIELD(type, structure, field) \
127 &(structure->field)); \
136 * Look up a field which gets stored into a structure bit field.
145 #define NVLIST_LOOKUP_BIT_FIELD(type, structure, field) \
153 structure->field = tmp; \
158 * Look up a boolean field which gets stored into a structure bit field.
163 #define NVLIST_LOOKUP_BIT_FIELD_BOOLEAN(structure, field) \
171 structure->field = (tmp ? 1 : 0); \