Lines Matching defs:attribute
75 static int sysfs_rtnl_lock(struct kobject *kobj, struct attribute *attr,
700 static struct attribute *netdev_phys_attrs[] __ro_after_init = {
708 struct attribute *attr, int index)
773 static struct attribute *net_class_attrs[] __ro_after_init = {
807 /* Show a given an attribute in the statistics group */
829 /* generate a read-only statistics attribute */
864 static struct attribute *netstat_attrs[] __ro_after_init = {
897 static struct attribute *wireless_attrs[] = {
929 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr,
932 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr);
935 if (!attribute->show)
938 return attribute->show(queue, buf);
941 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr,
944 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr);
947 if (!attribute->store)
950 return attribute->store(queue, buf, count);
1151 static struct attribute *rx_queue_default_attrs[] __ro_after_init = {
1375 struct attribute attr;
1376 ssize_t (*show)(struct kobject *kobj, struct attribute *attr,
1378 ssize_t (*store)(struct kobject *kobj, struct attribute *attr,
1388 struct attribute *attr, char *buf)
1390 const struct netdev_queue_attribute *attribute
1394 if (!attribute->show)
1397 return attribute->show(kobj, attr, queue, buf);
1401 struct attribute *attr,
1404 const struct netdev_queue_attribute *attribute
1408 if (!attribute->store)
1411 return attribute->store(kobj, attr, queue, buf, count);
1419 static ssize_t tx_timeout_show(struct kobject *kobj, struct attribute *attr,
1438 static ssize_t traffic_class_show(struct kobject *kobj, struct attribute *attr,
1476 static ssize_t tx_maxrate_show(struct kobject *kobj, struct attribute *attr,
1482 static ssize_t tx_maxrate_store(struct kobject *kobj, struct attribute *attr,
1563 static ssize_t bql_show_hold_time(struct kobject *kobj, struct attribute *attr,
1571 static ssize_t bql_set_hold_time(struct kobject *kobj, struct attribute *attr,
1592 static ssize_t bql_show_stall_thrs(struct kobject *kobj, struct attribute *attr,
1600 static ssize_t bql_set_stall_thrs(struct kobject *kobj, struct attribute *attr,
1628 static ssize_t bql_show_stall_max(struct kobject *kobj, struct attribute *attr,
1634 static ssize_t bql_set_stall_max(struct kobject *kobj, struct attribute *attr,
1645 static ssize_t bql_show_stall_cnt(struct kobject *kobj, struct attribute *attr,
1656 static ssize_t bql_show_inflight(struct kobject *kobj, struct attribute *attr,
1669 struct attribute *attr, \
1676 struct attribute *attr, \
1691 static struct attribute *dql_attrs[] __ro_after_init = {
1763 static ssize_t xps_cpus_show(struct kobject *kobj, struct attribute *attr,
1800 static ssize_t xps_cpus_store(struct kobject *kobj, struct attribute *attr,
1843 static ssize_t xps_rxqs_show(struct kobject *kobj, struct attribute *attr,
1869 static ssize_t xps_rxqs_store(struct kobject *kobj, struct attribute *attr,
1914 static struct attribute *netdev_queue_default_attrs[] __ro_after_init = {