Lines Matching refs:net_device
41 static inline int dev_isalive(const struct net_device *dev) in dev_isalive()
76 struct net_device *ndev) in sysfs_rtnl_lock()
130 ssize_t (*format)(const struct net_device *, char *)) in netdev_show() argument
132 struct net_device *ndev = to_net_dev(dev); in netdev_show()
145 static ssize_t format_##field(const struct net_device *dev, char *buf) \
166 int (*set)(struct net_device *, unsigned long)) in netdev_store() argument
168 struct net_device *netdev = to_net_dev(dev); in netdev_store()
197 int (*set)(struct net_device *, unsigned long)) in netdev_lock_store() argument
199 struct net_device *netdev = to_net_dev(dev); in netdev_lock_store()
234 struct net_device *ndev = to_net_dev(dev); in iflink_show()
240 static ssize_t format_name_assign_type(const struct net_device *dev, char *buf) in format_name_assign_type()
249 struct net_device *ndev = to_net_dev(dev); in name_assign_type_show()
263 struct net_device *ndev = to_net_dev(dev); in address_show()
281 struct net_device *ndev = to_net_dev(dev); in broadcast_show()
292 static int change_carrier(struct net_device *dev, unsigned long new_carrier) in change_carrier()
302 struct net_device *netdev = to_net_dev(dev); in carrier_store()
316 struct net_device *netdev = to_net_dev(dev); in carrier_show()
341 struct net_device *netdev = to_net_dev(dev); in speed_show()
369 struct net_device *netdev = to_net_dev(dev); in duplex_show()
411 struct net_device *netdev = to_net_dev(dev); in testing_show()
423 struct net_device *netdev = to_net_dev(dev); in dormant_show()
445 const struct net_device *netdev = to_net_dev(dev); in operstate_show()
463 struct net_device *netdev = to_net_dev(dev); in carrier_changes_show()
475 struct net_device *netdev = to_net_dev(dev); in carrier_up_count_show()
485 struct net_device *netdev = to_net_dev(dev); in carrier_down_count_show()
493 static int change_mtu(struct net_device *dev, unsigned long new_mtu) in change_mtu()
505 static int change_flags(struct net_device *dev, unsigned long new_flags) in change_flags()
528 static int change_gro_flush_timeout(struct net_device *dev, unsigned long val) in change_gro_flush_timeout()
545 static int change_napi_defer_hard_irqs(struct net_device *dev, unsigned long val) in change_napi_defer_hard_irqs()
569 struct net_device *netdev = to_net_dev(dev); in ifalias_store()
599 const struct net_device *netdev = to_net_dev(dev); in ifalias_show()
610 static int change_group(struct net_device *dev, unsigned long new_group) in change_group()
624 static int change_proto_down(struct net_device *dev, unsigned long proto_down) in change_proto_down()
640 struct net_device *netdev = to_net_dev(dev); in phys_port_id_show()
661 struct net_device *netdev = to_net_dev(dev); in phys_port_name_show()
682 struct net_device *netdev = to_net_dev(dev); in phys_switch_id_show()
711 struct net_device *netdev = to_net_dev(dev); in netdev_phys_is_visible()
737 struct net_device *netdev = to_net_dev(dev); in threaded_show()
750 static int modify_napi_threaded(struct net_device *dev, unsigned long val) in modify_napi_threaded()
812 struct net_device *dev = to_net_dev(d); in netstat_show()
906 static bool wireless_group_needed(struct net_device *ndev) in wireless_group_needed()
1209 static int rx_queue_default_mask(struct net_device *dev, in rx_queue_default_mask()
1230 static int rx_queue_add_kobject(struct net_device *dev, int index) in rx_queue_add_kobject()
1289 static int rx_queue_change_owner(struct net_device *dev, int index, kuid_t kuid, in rx_queue_change_owner()
1309 net_rx_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in net_rx_queue_update_kobjects()
1345 static int net_rx_queue_change_owner(struct net_device *dev, int num, in net_rx_queue_change_owner()
1427 struct net_device *dev = queue->dev; in get_netdev_queue_index()
1439 struct net_device *dev = queue->dev; in traffic_class_show()
1485 struct net_device *dev = queue->dev; in tx_maxrate_store()
1711 static ssize_t xps_queue_show(struct net_device *dev, unsigned int index, in xps_queue_show()
1764 struct net_device *dev = queue->dev; in xps_cpus_show()
1802 struct net_device *dev = queue->dev; in xps_cpus_store()
1844 struct net_device *dev = queue->dev; in xps_rxqs_show()
1871 struct net_device *dev = queue->dev; in xps_rxqs_store()
1959 static bool netdev_uses_bql(const struct net_device *dev) in netdev_uses_bql()
1967 static int netdev_queue_add_kobject(struct net_device *dev, int index) in netdev_queue_add_kobject()
2021 static int tx_queue_change_owner(struct net_device *ndev, int index, in tx_queue_change_owner()
2040 netdev_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in netdev_queue_update_kobjects()
2080 static int net_tx_queue_change_owner(struct net_device *dev, int num, in net_tx_queue_change_owner()
2099 static int register_queue_kobjects(struct net_device *dev) in register_queue_kobjects()
2133 static int queue_change_owner(struct net_device *ndev, kuid_t kuid, kgid_t kgid) in queue_change_owner()
2158 static void remove_queue_kobjects(struct net_device *dev) in remove_queue_kobjects()
2218 const struct net_device *dev = to_net_dev(d); in netdev_uevent()
2242 struct net_device *dev = to_net_dev(d); in netdev_release()
2255 const struct net_device *dev = to_net_dev(d); in net_namespace()
2262 const struct net_device *dev = to_net_dev(d); in net_get_ownership()
2298 struct net_device *of_find_net_device_by_node(struct device_node *np) in of_find_net_device_by_node()
2314 void netdev_unregister_kobject(struct net_device *ndev) in netdev_unregister_kobject()
2331 int netdev_register_kobject(struct net_device *ndev) in netdev_register_kobject()
2374 int netdev_change_owner(struct net_device *ndev, const struct net *net_old, in netdev_change_owner()