Lines Matching defs:field

62  * of the struct field.
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) \
77 rc = nvlist_add_##type##_array(nvl, #field, \
78 structure->field, sizeof (structure->field)); \
84 * use this macro when the array field is a ptr or you need to explictly
87 #define NVLIST_ADD_ARRAY_LEN(type, structure, field, len) \
89 rc = nvlist_add_##type##_array(nvl, #field, \
90 structure->field, len); \
95 #define NVLIST_ADD_DEVID(structure, field) \
97 rc = stmf_ic_scsi_devid_desc_marshal(nvl, #field, \
98 structure->field); \
103 #define NVLIST_ADD_RPORT(structure, field) \
105 rc = stmf_ic_remote_port_marshal(nvl, #field, \
106 structure->field); \
111 #define NVLIST_ADD_FIELD_UINT8(structure, field) \
112 NVLIST_ADD_FIELD(structure, field, uint8)
117 * of the struct field.
124 #define NVLIST_LOOKUP_FIELD(type, structure, field) \
126 rc = nvlist_lookup_##type(nvl, #field, \
127 &(structure->field)); \
129 stmf_ic_nvlookup_warn(__func__, #field); \
136 * Look up a field which gets stored into a structure bit field.
138 * in the bit field.
145 #define NVLIST_LOOKUP_BIT_FIELD(type, structure, field) \
148 rc = nvlist_lookup_##type(nvl, #field, &tmp); \
150 stmf_ic_nvlookup_warn(__func__, #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) \
166 rc = nvlist_lookup_boolean_value(nvl, #field, &tmp); \
168 stmf_ic_nvlookup_warn(__func__, #field); \
171 structure->field = (tmp ? 1 : 0); \
176 #define NV_PAIR(type, strct, field) #field, DATA_TYPE_##type, &(strct->field)
316 static inline void stmf_ic_nvlookup_warn(const char *func, char *field);
2052 * variable-sized field in the struct.
2217 * that field.
2287 stmf_ic_nvlookup_warn(const char *func, char *field)
2289 cmn_err(CE_WARN, "%s: nvlist lookup of %s failed", func, field);