Lines Matching refs:field

446 #define sas_phy_show_simple(field, name, format_string, cast)		\  argument
453 return snprintf(buf, 20, format_string, cast phy->field); \
456 #define sas_phy_simple_attr(field, name, format_string, type) \ argument
457 sas_phy_show_simple(field, name, format_string, (type)) \
460 #define sas_phy_show_protocol(field, name) \ argument
467 if (!phy->field) \
469 return get_sas_protocol_names(phy->field, buf); \
472 #define sas_phy_protocol_attr(field, name) \ argument
473 sas_phy_show_protocol(field, name) \
476 #define sas_phy_show_linkspeed(field) \ argument
478 show_sas_phy_##field(struct device *dev, \
483 return get_sas_linkspeed_names(phy->field, buf); \
487 #define sas_phy_store_linkspeed(field) \ argument
489 store_sas_phy_##field(struct device *dev, \
503 rates.field = value; \
509 #define sas_phy_linkspeed_rw_attr(field) \ argument
510 sas_phy_show_linkspeed(field) \
511 sas_phy_store_linkspeed(field) \
512 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, \
513 store_sas_phy_##field)
515 #define sas_phy_linkspeed_attr(field) \ argument
516 sas_phy_show_linkspeed(field) \
517 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, NULL)
520 #define sas_phy_show_linkerror(field) \ argument
522 show_sas_phy_##field(struct device *dev, \
533 return snprintf(buf, 20, "%u\n", phy->field); \
536 #define sas_phy_linkerror_attr(field) \ argument
537 sas_phy_show_linkerror(field) \
538 static DEVICE_ATTR(field, S_IRUGO, show_sas_phy_##field, NULL)
817 #define sas_port_show_simple(field, name, format_string, cast) \ argument
824 return snprintf(buf, 20, format_string, cast port->field); \
827 #define sas_port_simple_attr(field, name, format_string, type) \ argument
828 sas_port_show_simple(field, name, format_string, (type)) \
1164 #define sas_rphy_show_simple(field, name, format_string, cast) \ argument
1171 return snprintf(buf, 20, format_string, cast rphy->field); \
1174 #define sas_rphy_simple_attr(field, name, format_string, type) \ argument
1175 sas_rphy_show_simple(field, name, format_string, (type)) \
1179 #define sas_rphy_show_protocol(field, name) \ argument
1186 if (!rphy->field) \
1188 return get_sas_protocol_names(rphy->field, buf); \
1191 #define sas_rphy_protocol_attr(field, name) \ argument
1192 sas_rphy_show_protocol(field, name) \
1298 #define sas_end_dev_show_simple(field, name, format_string, cast) \ argument
1306 return snprintf(buf, 20, format_string, cast rdev->field); \
1309 #define sas_end_dev_simple_attr(field, name, format_string, type) \ argument
1310 sas_end_dev_show_simple(field, name, format_string, (type)) \
1327 #define sas_expander_show_simple(field, name, format_string, cast) \ argument
1335 return snprintf(buf, 20, format_string, cast edev->field); \
1338 #define sas_expander_simple_attr(field, name, format_string, type) \ argument
1339 sas_expander_show_simple(field, name, format_string, (type)) \
1717 #define SETUP_TEMPLATE(attrb, field, perm, test) \ argument
1718 i->private_##attrb[count] = dev_attr_##field; \
1724 #define SETUP_TEMPLATE_RW(attrb, field, perm, test, ro_test, ro_perm) \ argument
1725 i->private_##attrb[count] = dev_attr_##field; \
1735 #define SETUP_RPORT_ATTRIBUTE(field) \ argument
1736 SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, 1)
1738 #define SETUP_OPTIONAL_RPORT_ATTRIBUTE(field, func) \ argument
1739 SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, i->f->func)
1741 #define SETUP_PHY_ATTRIBUTE(field) \ argument
1742 SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, 1)
1744 #define SETUP_PHY_ATTRIBUTE_RW(field) \ argument
1745 SETUP_TEMPLATE_RW(phy_attrs, field, S_IRUGO | S_IWUSR, 1, \
1748 #define SETUP_OPTIONAL_PHY_ATTRIBUTE_RW(field, func) \ argument
1749 SETUP_TEMPLATE_RW(phy_attrs, field, S_IRUGO | S_IWUSR, 1, \
1752 #define SETUP_PORT_ATTRIBUTE(field) \ argument
1753 SETUP_TEMPLATE(port_attrs, field, S_IRUGO, 1)
1755 #define SETUP_OPTIONAL_PHY_ATTRIBUTE(field, func) \ argument
1756 SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, i->f->func)
1758 #define SETUP_PHY_ATTRIBUTE_WRONLY(field) \ argument
1759 SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, 1)
1761 #define SETUP_OPTIONAL_PHY_ATTRIBUTE_WRONLY(field, func) \ argument
1762 SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, i->f->func)
1764 #define SETUP_END_DEV_ATTRIBUTE(field) \ argument
1765 SETUP_TEMPLATE(end_dev_attrs, field, S_IRUGO, 1)
1767 #define SETUP_EXPANDER_ATTRIBUTE(field) \ argument
1768 SETUP_TEMPLATE(expander_attrs, expander_##field, S_IRUGO, 1)