Lines Matching refs:field

137 #define fcoe_ctlr_show_function(field, format_string, sz, cast)	\
138 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \
143 if (ctlr->f->get_fcoe_ctlr_##field) \
144 ctlr->f->get_fcoe_ctlr_##field(ctlr); \
146 cast fcoe_ctlr_##field(ctlr)); \
149 #define fcoe_fcf_show_function(field, format_string, sz, cast) \
150 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \
156 if (ctlr->f->get_fcoe_fcf_##field) \
157 ctlr->f->get_fcoe_fcf_##field(fcf); \
159 cast fcoe_fcf_##field(fcf)); \
162 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \
163 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \
168 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
171 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \
172 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \
177 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \
180 #define fcoe_ctlr_private_rd_attr(field, format_string, sz) \
181 fcoe_ctlr_private_show_function(field, format_string, sz, ) \
182 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \
183 show_fcoe_ctlr_device_##field, NULL)
185 #define fcoe_ctlr_rd_attr(field, format_string, sz) \
186 fcoe_ctlr_show_function(field, format_string, sz, ) \
187 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \
188 show_fcoe_ctlr_device_##field, NULL)
190 #define fcoe_fcf_rd_attr(field, format_string, sz) \
191 fcoe_fcf_show_function(field, format_string, sz, ) \
192 static FCOE_DEVICE_ATTR(fcf, field, S_IRUGO, \
193 show_fcoe_fcf_device_##field, NULL)
195 #define fcoe_fcf_private_rd_attr(field, format_string, sz) \
196 fcoe_fcf_private_show_function(field, format_string, sz, ) \
197 static FCOE_DEVICE_ATTR(fcf, field, S_IRUGO, \
198 show_fcoe_fcf_device_##field, NULL)
200 #define fcoe_ctlr_private_rd_attr_cast(field, format_string, sz, cast) \
201 fcoe_ctlr_private_show_function(field, format_string, sz, (cast)) \
202 static FCOE_DEVICE_ATTR(ctlr, field, S_IRUGO, \
203 show_fcoe_ctlr_device_##field, NULL)
205 #define fcoe_fcf_private_rd_attr_cast(field, format_string, sz, cast) \
206 fcoe_fcf_private_show_function(field, format_string, sz, (cast)) \
207 static FCOE_DEVICE_ATTR(fcf, field, S_IRUGO, \
208 show_fcoe_fcf_device_##field, NULL)