Lines Matching defs:attribute
590 static struct attribute *net_class_attrs[] __ro_after_init = {
626 /* Show a given an attribute in the statistics group */
648 /* generate a read-only statistics attribute */
683 static struct attribute *netstat_attrs[] __ro_after_init = {
717 static struct attribute *wireless_attrs[] = {
737 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr,
740 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr);
743 if (!attribute->show)
746 return attribute->show(queue, buf);
749 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr,
752 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr);
755 if (!attribute->store)
758 return attribute->store(queue, buf, count);
945 static struct attribute *rx_queue_default_attrs[] __ro_after_init = {
1120 struct attribute attr;
1131 struct attribute *attr, char *buf)
1133 const struct netdev_queue_attribute *attribute
1137 if (!attribute->show)
1140 return attribute->show(queue, buf);
1144 struct attribute *attr,
1147 const struct netdev_queue_attribute *attribute
1151 if (!attribute->store)
1154 return attribute->store(queue, buf, count);
1356 static struct attribute *dql_attrs[] __ro_after_init = {
1589 static struct attribute *netdev_queue_default_attrs[] __ro_after_init = {