Lines Matching refs:field

453 #define sas_phy_show_simple(field, name, format_string, cast)		\  argument
460 return snprintf(buf, 20, format_string, cast phy->field); \
463 #define sas_phy_simple_attr(field, name, format_string, type) \ argument
464 sas_phy_show_simple(field, name, format_string, (type)) \
467 #define sas_phy_show_protocol(field, name) \ argument
474 if (!phy->field) \
476 return get_sas_protocol_names(phy->field, buf); \
479 #define sas_phy_protocol_attr(field, name) \ argument
480 sas_phy_show_protocol(field, name) \
483 #define sas_phy_show_linkspeed(field) \ argument
485 show_sas_phy_##field(struct device *dev, \
490 return get_sas_linkspeed_names(phy->field, buf); \
494 #define sas_phy_store_linkspeed(field) \ argument
496 store_sas_phy_##field(struct device *dev, \
510 rates.field = value; \
516 #define sas_phy_linkspeed_rw_attr(field) \ argument
517 sas_phy_show_linkspeed(field) \
518 sas_phy_store_linkspeed(field) \
519 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, \
520 store_sas_phy_##field)
522 #define sas_phy_linkspeed_attr(field) \ argument
523 sas_phy_show_linkspeed(field) \
524 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, NULL)
527 #define sas_phy_show_linkerror(field) \ argument
529 show_sas_phy_##field(struct device *dev, \
540 return snprintf(buf, 20, "%u\n", phy->field); \
543 #define sas_phy_linkerror_attr(field) \ argument
544 sas_phy_show_linkerror(field) \
545 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, NULL)
820 #define sas_port_show_simple(field, name, format_string, cast) \ argument
827 return snprintf(buf, 20, format_string, cast port->field); \
830 #define sas_port_simple_attr(field, name, format_string, type) \ argument
831 sas_port_show_simple(field, name, format_string, (type)) \
1167 #define sas_rphy_show_simple(field, name, format_string, cast) \ argument
1174 return snprintf(buf, 20, format_string, cast rphy->field); \
1177 #define sas_rphy_simple_attr(field, name, format_string, type) \ argument
1178 sas_rphy_show_simple(field, name, format_string, (type)) \
1182 #define sas_rphy_show_protocol(field, name) \ argument
1189 if (!rphy->field) \
1191 return get_sas_protocol_names(rphy->field, buf); \
1194 #define sas_rphy_protocol_attr(field, name) \ argument
1195 sas_rphy_show_protocol(field, name) \
1311 #define sas_end_dev_show_simple(field, name, format_string, cast) \ argument
1319 return snprintf(buf, 20, format_string, cast rdev->field); \
1322 #define sas_end_dev_simple_attr(field, name, format_string, type) \ argument
1323 sas_end_dev_show_simple(field, name, format_string, (type)) \
1340 #define sas_expander_show_simple(field, name, format_string, cast) \ argument
1348 return snprintf(buf, 20, format_string, cast edev->field); \
1351 #define sas_expander_simple_attr(field, name, format_string, type) \ argument
1352 sas_expander_show_simple(field, name, format_string, (type)) \
1735 #define SETUP_TEMPLATE(attrb, field, perm, test) \ argument
1736 i->private_##attrb[count] = dev_attr_##field; \
1742 #define SETUP_TEMPLATE_RW(attrb, field, perm, test, ro_test, ro_perm) \ argument
1743 i->private_##attrb[count] = dev_attr_##field; \
1753 #define SETUP_RPORT_ATTRIBUTE(field) \ argument
1754 SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, 1)
1756 #define SETUP_OPTIONAL_RPORT_ATTRIBUTE(field, func) \ argument
1757 SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, i->f->func)
1759 #define SETUP_PHY_ATTRIBUTE(field) \ argument
1760 SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, 1)
1762 #define SETUP_PHY_ATTRIBUTE_RW(field) \ argument
1763 SETUP_TEMPLATE_RW(phy_attrs, field, S_IRUGO | S_IWUSR, 1, \
1766 #define SETUP_OPTIONAL_PHY_ATTRIBUTE_RW(field, func) \ argument
1767 SETUP_TEMPLATE_RW(phy_attrs, field, S_IRUGO | S_IWUSR, 1, \
1770 #define SETUP_PORT_ATTRIBUTE(field) \ argument
1771 SETUP_TEMPLATE(port_attrs, field, S_IRUGO, 1)
1773 #define SETUP_OPTIONAL_PHY_ATTRIBUTE(field, func) \ argument
1774 SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, i->f->func)
1776 #define SETUP_PHY_ATTRIBUTE_WRONLY(field) \ argument
1777 SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, 1)
1779 #define SETUP_OPTIONAL_PHY_ATTRIBUTE_WRONLY(field, func) \ argument
1780 SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, i->f->func)
1782 #define SETUP_END_DEV_ATTRIBUTE(field) \ argument
1783 SETUP_TEMPLATE(end_dev_attrs, field, S_IRUGO, 1)
1785 #define SETUP_EXPANDER_ATTRIBUTE(field) \ argument
1786 SETUP_TEMPLATE(expander_attrs, expander_##field, S_IRUGO, 1)