Lines Matching refs:attr

44 			   struct device_attribute *attr, char *buf,  in netdev_show()  argument
65 struct device_attribute *attr, char *buf) \
67 return netdev_show(dev, attr, buf, format_##field); \
79 static ssize_t netdev_store(struct device *dev, struct device_attribute *attr, in netdev_store() argument
115 static ssize_t iflink_show(struct device *dev, struct device_attribute *attr, in iflink_show() argument
130 struct device_attribute *attr, in name_assign_type_show() argument
137 ret = netdev_show(dev, attr, buf, format_name_assign_type); in name_assign_type_show()
144 static ssize_t address_show(struct device *dev, struct device_attribute *attr, in address_show() argument
159 struct device_attribute *attr, char *buf) in broadcast_show() argument
175 static ssize_t carrier_store(struct device *dev, struct device_attribute *attr, in carrier_store() argument
178 return netdev_store(dev, attr, buf, len, change_carrier); in carrier_store()
182 struct device_attribute *attr, char *buf) in carrier_show() argument
193 struct device_attribute *attr, char *buf) in speed_show() argument
212 struct device_attribute *attr, char *buf) in duplex_show() argument
244 struct device_attribute *attr, char *buf) in dormant_show() argument
266 struct device_attribute *attr, char *buf) in operstate_show() argument
285 struct device_attribute *attr, in carrier_changes_show() argument
301 static ssize_t mtu_store(struct device *dev, struct device_attribute *attr, in mtu_store() argument
304 return netdev_store(dev, attr, buf, len, change_mtu); in mtu_store()
313 static ssize_t flags_store(struct device *dev, struct device_attribute *attr, in flags_store() argument
316 return netdev_store(dev, attr, buf, len, change_flags); in flags_store()
327 struct device_attribute *attr, in tx_queue_len_store() argument
333 return netdev_store(dev, attr, buf, len, change_tx_queue_len); in tx_queue_len_store()
344 struct device_attribute *attr, in gro_flush_timeout_store() argument
350 return netdev_store(dev, attr, buf, len, change_gro_flush_timeout); in gro_flush_timeout_store()
354 static ssize_t ifalias_store(struct device *dev, struct device_attribute *attr, in ifalias_store() argument
378 struct device_attribute *attr, char *buf) in ifalias_show() argument
398 static ssize_t group_store(struct device *dev, struct device_attribute *attr, in group_store() argument
401 return netdev_store(dev, attr, buf, len, change_group); in group_store()
412 struct device_attribute *attr, in proto_down_store() argument
415 return netdev_store(dev, attr, buf, len, change_proto_down); in proto_down_store()
420 struct device_attribute *attr, char *buf) in phys_port_id_show() argument
442 struct device_attribute *attr, char *buf) in phys_port_name_show() argument
464 struct device_attribute *attr, char *buf) in phys_switch_id_show() argument
473 struct switchdev_attr attr = { in phys_switch_id_show() local
478 ret = switchdev_port_attr_get(netdev, &attr); in phys_switch_id_show()
480 ret = sprintf(buf, "%*phN\n", attr.u.ppid.id_len, in phys_switch_id_show()
481 attr.u.ppid.id); in phys_switch_id_show()
490 &dev_attr_netdev_group.attr,
491 &dev_attr_type.attr,
492 &dev_attr_dev_id.attr,
493 &dev_attr_dev_port.attr,
494 &dev_attr_iflink.attr,
495 &dev_attr_ifindex.attr,
496 &dev_attr_name_assign_type.attr,
497 &dev_attr_addr_assign_type.attr,
498 &dev_attr_addr_len.attr,
499 &dev_attr_link_mode.attr,
500 &dev_attr_address.attr,
501 &dev_attr_broadcast.attr,
502 &dev_attr_speed.attr,
503 &dev_attr_duplex.attr,
504 &dev_attr_dormant.attr,
505 &dev_attr_operstate.attr,
506 &dev_attr_carrier_changes.attr,
507 &dev_attr_ifalias.attr,
508 &dev_attr_carrier.attr,
509 &dev_attr_mtu.attr,
510 &dev_attr_flags.attr,
511 &dev_attr_tx_queue_len.attr,
512 &dev_attr_gro_flush_timeout.attr,
513 &dev_attr_phys_port_id.attr,
514 &dev_attr_phys_port_name.attr,
515 &dev_attr_phys_switch_id.attr,
516 &dev_attr_proto_down.attr,
523 struct device_attribute *attr, char *buf, in netstat_show() argument
546 struct device_attribute *attr, char *buf) \
548 return netstat_show(d, attr, buf, \
578 &dev_attr_rx_packets.attr,
579 &dev_attr_tx_packets.attr,
580 &dev_attr_rx_bytes.attr,
581 &dev_attr_tx_bytes.attr,
582 &dev_attr_rx_errors.attr,
583 &dev_attr_tx_errors.attr,
584 &dev_attr_rx_dropped.attr,
585 &dev_attr_tx_dropped.attr,
586 &dev_attr_multicast.attr,
587 &dev_attr_collisions.attr,
588 &dev_attr_rx_length_errors.attr,
589 &dev_attr_rx_over_errors.attr,
590 &dev_attr_rx_crc_errors.attr,
591 &dev_attr_rx_frame_errors.attr,
592 &dev_attr_rx_fifo_errors.attr,
593 &dev_attr_rx_missed_errors.attr,
594 &dev_attr_tx_aborted_errors.attr,
595 &dev_attr_tx_carrier_errors.attr,
596 &dev_attr_tx_fifo_errors.attr,
597 &dev_attr_tx_heartbeat_errors.attr,
598 &dev_attr_tx_window_errors.attr,
599 &dev_attr_rx_compressed.attr,
600 &dev_attr_tx_compressed.attr,
627 struct rx_queue_attribute, attr)
631 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show() argument
634 struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_show()
643 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store() argument
646 struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_store()
744 struct rx_queue_attribute *attr, in show_rps_dev_flow_table_cnt() argument
767 struct rx_queue_attribute *attr, in store_rps_dev_flow_table_cnt() argument
836 &rps_cpus_attribute.attr,
837 &rps_dev_flow_table_cnt_attribute.attr,
951 struct attribute attr; member
953 struct netdev_queue_attribute *attr, char *buf);
955 struct netdev_queue_attribute *attr, const char *buf, size_t len);
958 struct netdev_queue_attribute, attr)
963 struct attribute *attr, char *buf) in netdev_queue_attr_show() argument
965 struct netdev_queue_attribute *attribute = to_netdev_queue_attr(attr); in netdev_queue_attr_show()
975 struct attribute *attr, in netdev_queue_attr_store() argument
978 struct netdev_queue_attribute *attribute = to_netdev_queue_attr(attr); in netdev_queue_attr_store()
1090 struct netdev_queue_attribute *attr, in bql_show_hold_time() argument
1120 struct netdev_queue_attribute *attr, in bql_show_inflight() argument
1133 struct netdev_queue_attribute *attr, \
1140 struct netdev_queue_attribute *attr, \
1155 &bql_limit_attribute.attr,
1156 &bql_limit_max_attribute.attr,
1157 &bql_limit_min_attribute.attr,
1158 &bql_hold_time_attribute.attr,
1159 &bql_inflight_attribute.attr,
1243 &queue_trans_timeout.attr,
1245 &xps_cpus_attribute.attr,
1246 &queue_tx_maxrate.attr,