Lines Matching refs:field
58 #define NETDEVICE_SHOW(field, format_string) \ argument
59 static ssize_t format_##field(const struct net_device *dev, char *buf) \
61 return sprintf(buf, format_string, dev->field); \
63 static ssize_t field##_show(struct device *dev, \
66 return netdev_show(dev, attr, buf, format_##field); \
69 #define NETDEVICE_SHOW_RO(field, format_string) \ argument
70 NETDEVICE_SHOW(field, format_string); \
71 static DEVICE_ATTR_RO(field)
73 #define NETDEVICE_SHOW_RW(field, format_string) \ argument
74 NETDEVICE_SHOW(field, format_string); \
75 static DEVICE_ATTR_RW(field)