Lines Matching defs:attribute
624 static struct attribute *net_class_attrs[] __ro_after_init = {
661 /* Show a given an attribute in the statistics group */
683 /* generate a read-only statistics attribute */
718 static struct attribute *netstat_attrs[] __ro_after_init = {
751 static struct attribute *wireless_attrs[] = {
783 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr,
786 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr);
789 if (!attribute->show)
792 return attribute->show(queue, buf);
795 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr,
798 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr);
801 if (!attribute->store)
804 return attribute->store(queue, buf, count);
1003 static struct attribute *rx_queue_default_attrs[] __ro_after_init = {
1194 struct attribute attr;
1205 struct attribute *attr, char *buf)
1207 const struct netdev_queue_attribute *attribute
1211 if (!attribute->show)
1214 return attribute->show(queue, buf);
1218 struct attribute *attr,
1221 const struct netdev_queue_attribute *attribute
1225 if (!attribute->store)
1228 return attribute->store(queue, buf, count);
1433 static struct attribute *dql_attrs[] __ro_after_init = {
1635 static struct attribute *netdev_queue_default_attrs[] __ro_after_init = {