Lines Matching refs:attribute
75 static int sysfs_rtnl_lock(struct kobject *kobj, struct attribute *attr, in sysfs_rtnl_lock()
700 static struct attribute *netdev_phys_attrs[] __ro_after_init = {
708 struct attribute *attr, int index) in netdev_phys_is_visible()
773 static struct attribute *net_class_attrs[] __ro_after_init = {
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, in rx_queue_attr_show()
932 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_show() local
935 if (!attribute->show) in rx_queue_attr_show()
938 return attribute->show(queue, buf); in rx_queue_attr_show()
941 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store()
944 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_store() local
947 if (!attribute->store) in rx_queue_attr_store()
950 return attribute->store(queue, buf, count); in rx_queue_attr_store()
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) in netdev_queue_attr_show()
1390 const struct netdev_queue_attribute *attribute in netdev_queue_attr_show() local
1394 if (!attribute->show) in netdev_queue_attr_show()
1397 return attribute->show(kobj, attr, queue, buf); in netdev_queue_attr_show()
1401 struct attribute *attr, in netdev_queue_attr_store()
1404 const struct netdev_queue_attribute *attribute in netdev_queue_attr_store() local
1408 if (!attribute->store) in netdev_queue_attr_store()
1411 return attribute->store(kobj, attr, queue, buf, count); in netdev_queue_attr_store()
1419 static ssize_t tx_timeout_show(struct kobject *kobj, struct attribute *attr, in tx_timeout_show()
1438 static ssize_t traffic_class_show(struct kobject *kobj, struct attribute *attr, in traffic_class_show()
1476 static ssize_t tx_maxrate_show(struct kobject *kobj, struct attribute *attr, in tx_maxrate_show()
1482 static ssize_t tx_maxrate_store(struct kobject *kobj, struct attribute *attr, in tx_maxrate_store()
1563 static ssize_t bql_show_hold_time(struct kobject *kobj, struct attribute *attr, in bql_show_hold_time()
1571 static ssize_t bql_set_hold_time(struct kobject *kobj, struct attribute *attr, in bql_set_hold_time()
1592 static ssize_t bql_show_stall_thrs(struct kobject *kobj, struct attribute *attr, in bql_show_stall_thrs()
1600 static ssize_t bql_set_stall_thrs(struct kobject *kobj, struct attribute *attr, in bql_set_stall_thrs()
1628 static ssize_t bql_show_stall_max(struct kobject *kobj, struct attribute *attr, in bql_show_stall_max()
1634 static ssize_t bql_set_stall_max(struct kobject *kobj, struct attribute *attr, in bql_set_stall_max()
1645 static ssize_t bql_show_stall_cnt(struct kobject *kobj, struct attribute *attr, in bql_show_stall_cnt()
1656 static ssize_t bql_show_inflight(struct kobject *kobj, struct attribute *attr, in bql_show_inflight()
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, in xps_cpus_show()
1800 static ssize_t xps_cpus_store(struct kobject *kobj, struct attribute *attr, in xps_cpus_store()
1843 static ssize_t xps_rxqs_show(struct kobject *kobj, struct attribute *attr, in xps_rxqs_show()
1869 static ssize_t xps_rxqs_store(struct kobject *kobj, struct attribute *attr, in xps_rxqs_store()
1914 static struct attribute *netdev_queue_default_attrs[] __ro_after_init = {