Lines Matching refs:attr
45 struct device_attribute *attr, char *buf, in netdev_show() argument
66 struct device_attribute *attr, char *buf) \
68 return netdev_show(dev, attr, buf, format_##field); \
80 static ssize_t netdev_store(struct device *dev, struct device_attribute *attr, in netdev_store() argument
116 static ssize_t iflink_show(struct device *dev, struct device_attribute *attr, in iflink_show() argument
131 struct device_attribute *attr, in name_assign_type_show() argument
138 ret = netdev_show(dev, attr, buf, format_name_assign_type); in name_assign_type_show()
145 static ssize_t address_show(struct device *dev, struct device_attribute *attr, in address_show() argument
160 struct device_attribute *attr, char *buf) in broadcast_show() argument
176 static ssize_t carrier_store(struct device *dev, struct device_attribute *attr, in carrier_store() argument
179 return netdev_store(dev, attr, buf, len, change_carrier); in carrier_store()
183 struct device_attribute *attr, char *buf) in carrier_show() argument
194 struct device_attribute *attr, char *buf) in speed_show() argument
213 struct device_attribute *attr, char *buf) in duplex_show() argument
245 struct device_attribute *attr, char *buf) in dormant_show() argument
267 struct device_attribute *attr, char *buf) in operstate_show() argument
286 struct device_attribute *attr, in carrier_changes_show() argument
302 static ssize_t mtu_store(struct device *dev, struct device_attribute *attr, in mtu_store() argument
305 return netdev_store(dev, attr, buf, len, change_mtu); in mtu_store()
314 static ssize_t flags_store(struct device *dev, struct device_attribute *attr, in flags_store() argument
317 return netdev_store(dev, attr, buf, len, change_flags); in flags_store()
328 struct device_attribute *attr, in tx_queue_len_store() argument
334 return netdev_store(dev, attr, buf, len, change_tx_queue_len); in tx_queue_len_store()
345 struct device_attribute *attr, in gro_flush_timeout_store() argument
351 return netdev_store(dev, attr, buf, len, change_gro_flush_timeout); in gro_flush_timeout_store()
355 static ssize_t ifalias_store(struct device *dev, struct device_attribute *attr, in ifalias_store() argument
379 struct device_attribute *attr, char *buf) in ifalias_show() argument
399 static ssize_t group_store(struct device *dev, struct device_attribute *attr, in group_store() argument
402 return netdev_store(dev, attr, buf, len, change_group); in group_store()
408 struct device_attribute *attr, char *buf) in phys_port_id_show() argument
430 struct device_attribute *attr, char *buf) in phys_port_name_show() argument
452 struct device_attribute *attr, char *buf) in phys_switch_id_show() argument
474 &dev_attr_netdev_group.attr,
475 &dev_attr_type.attr,
476 &dev_attr_dev_id.attr,
477 &dev_attr_dev_port.attr,
478 &dev_attr_iflink.attr,
479 &dev_attr_ifindex.attr,
480 &dev_attr_name_assign_type.attr,
481 &dev_attr_addr_assign_type.attr,
482 &dev_attr_addr_len.attr,
483 &dev_attr_link_mode.attr,
484 &dev_attr_address.attr,
485 &dev_attr_broadcast.attr,
486 &dev_attr_speed.attr,
487 &dev_attr_duplex.attr,
488 &dev_attr_dormant.attr,
489 &dev_attr_operstate.attr,
490 &dev_attr_carrier_changes.attr,
491 &dev_attr_ifalias.attr,
492 &dev_attr_carrier.attr,
493 &dev_attr_mtu.attr,
494 &dev_attr_flags.attr,
495 &dev_attr_tx_queue_len.attr,
496 &dev_attr_gro_flush_timeout.attr,
497 &dev_attr_phys_port_id.attr,
498 &dev_attr_phys_port_name.attr,
499 &dev_attr_phys_switch_id.attr,
506 struct device_attribute *attr, char *buf, in netstat_show() argument
529 struct device_attribute *attr, char *buf) \
531 return netstat_show(d, attr, buf, \
561 &dev_attr_rx_packets.attr,
562 &dev_attr_tx_packets.attr,
563 &dev_attr_rx_bytes.attr,
564 &dev_attr_tx_bytes.attr,
565 &dev_attr_rx_errors.attr,
566 &dev_attr_tx_errors.attr,
567 &dev_attr_rx_dropped.attr,
568 &dev_attr_tx_dropped.attr,
569 &dev_attr_multicast.attr,
570 &dev_attr_collisions.attr,
571 &dev_attr_rx_length_errors.attr,
572 &dev_attr_rx_over_errors.attr,
573 &dev_attr_rx_crc_errors.attr,
574 &dev_attr_rx_frame_errors.attr,
575 &dev_attr_rx_fifo_errors.attr,
576 &dev_attr_rx_missed_errors.attr,
577 &dev_attr_tx_aborted_errors.attr,
578 &dev_attr_tx_carrier_errors.attr,
579 &dev_attr_tx_fifo_errors.attr,
580 &dev_attr_tx_heartbeat_errors.attr,
581 &dev_attr_tx_window_errors.attr,
582 &dev_attr_rx_compressed.attr,
583 &dev_attr_tx_compressed.attr,
610 struct rx_queue_attribute, attr)
614 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show() argument
617 struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_show()
626 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store() argument
629 struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_store()
724 struct rx_queue_attribute *attr, in show_rps_dev_flow_table_cnt() argument
747 struct rx_queue_attribute *attr, in store_rps_dev_flow_table_cnt() argument
816 &rps_cpus_attribute.attr,
817 &rps_dev_flow_table_cnt_attribute.attr,
931 struct attribute attr; member
933 struct netdev_queue_attribute *attr, char *buf);
935 struct netdev_queue_attribute *attr, const char *buf, size_t len);
938 struct netdev_queue_attribute, attr)
943 struct attribute *attr, char *buf) in netdev_queue_attr_show() argument
945 struct netdev_queue_attribute *attribute = to_netdev_queue_attr(attr); in netdev_queue_attr_show()
955 struct attribute *attr, in netdev_queue_attr_store() argument
958 struct netdev_queue_attribute *attribute = to_netdev_queue_attr(attr); in netdev_queue_attr_store()
1073 struct netdev_queue_attribute *attr, in bql_show_hold_time() argument
1103 struct netdev_queue_attribute *attr, in bql_show_inflight() argument
1116 struct netdev_queue_attribute *attr, \
1123 struct netdev_queue_attribute *attr, \
1138 &bql_limit_attribute.attr,
1139 &bql_limit_max_attribute.attr,
1140 &bql_limit_min_attribute.attr,
1141 &bql_hold_time_attribute.attr,
1142 &bql_inflight_attribute.attr,
1226 &queue_trans_timeout.attr,
1228 &xps_cpus_attribute.attr,
1229 &queue_tx_maxrate.attr,