Lines Matching refs:net_device
37 static inline int dev_isalive(const struct net_device *dev) in dev_isalive()
45 ssize_t (*format)(const struct net_device *, char *)) in netdev_show() argument
47 struct net_device *ndev = to_net_dev(dev); in netdev_show()
60 static ssize_t format_##field(const struct net_device *dev, char *buf) \
81 int (*set)(struct net_device *, unsigned long)) in netdev_store() argument
83 struct net_device *netdev = to_net_dev(dev); in netdev_store()
118 struct net_device *ndev = to_net_dev(dev); in iflink_show()
124 static ssize_t format_name_assign_type(const struct net_device *dev, char *buf) in format_name_assign_type()
133 struct net_device *ndev = to_net_dev(dev); in name_assign_type_show()
147 struct net_device *ndev = to_net_dev(dev); in address_show()
161 struct net_device *ndev = to_net_dev(dev); in broadcast_show()
168 static int change_carrier(struct net_device *dev, unsigned long new_carrier) in change_carrier()
184 struct net_device *netdev = to_net_dev(dev); in carrier_show()
195 struct net_device *netdev = to_net_dev(dev); in speed_show()
214 struct net_device *netdev = to_net_dev(dev); in duplex_show()
246 struct net_device *netdev = to_net_dev(dev); in dormant_show()
268 const struct net_device *netdev = to_net_dev(dev); in operstate_show()
288 struct net_device *netdev = to_net_dev(dev); in carrier_changes_show()
296 static int change_mtu(struct net_device *dev, unsigned long new_mtu) in change_mtu()
308 static int change_flags(struct net_device *dev, unsigned long new_flags) in change_flags()
320 static int change_tx_queue_len(struct net_device *dev, unsigned long new_len) in change_tx_queue_len()
337 static int change_gro_flush_timeout(struct net_device *dev, unsigned long val) in change_gro_flush_timeout()
357 struct net_device *netdev = to_net_dev(dev); in ifalias_store()
380 const struct net_device *netdev = to_net_dev(dev); in ifalias_show()
392 static int change_group(struct net_device *dev, unsigned long new_group) in change_group()
406 static int change_proto_down(struct net_device *dev, unsigned long proto_down) in change_proto_down()
422 struct net_device *netdev = to_net_dev(dev); in phys_port_id_show()
444 struct net_device *netdev = to_net_dev(dev); in phys_port_name_show()
466 struct net_device *netdev = to_net_dev(dev); in phys_switch_id_show()
526 struct net_device *dev = to_net_dev(d); in netstat_show()
886 static int rx_queue_add_kobject(struct net_device *dev, int index) in rx_queue_add_kobject()
915 net_rx_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in net_rx_queue_update_kobjects()
1008 struct net_device *dev = queue->dev; in get_netdev_queue_index()
1028 struct net_device *dev = queue->dev; in set_tx_maxrate()
1173 struct net_device *dev = queue->dev; in show_xps_map()
1212 struct net_device *dev = queue->dev; in store_xps_map()
1278 static int netdev_queue_add_kobject(struct net_device *dev, int index) in netdev_queue_add_kobject()
1307 netdev_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in netdev_queue_update_kobjects()
1336 static int register_queue_kobjects(struct net_device *dev) in register_queue_kobjects()
1367 static void remove_queue_kobjects(struct net_device *dev) in remove_queue_kobjects()
1422 struct net_device *dev = to_net_dev(d); in netdev_uevent()
1445 struct net_device *dev = to_net_dev(d); in netdev_release()
1455 struct net_device *dev; in net_namespace()
1456 dev = container_of(d, struct net_device, dev); in net_namespace()
1489 struct net_device *of_find_net_device_by_node(struct device_node *np) in of_find_net_device_by_node()
1505 void netdev_unregister_kobject(struct net_device *ndev) in netdev_unregister_kobject()
1519 int netdev_register_kobject(struct net_device *ndev) in netdev_register_kobject()