Lines Matching refs:net_device
38 static inline int dev_isalive(const struct net_device *dev) in dev_isalive()
46 ssize_t (*format)(const struct net_device *, char *)) in netdev_show() argument
48 struct net_device *ndev = to_net_dev(dev); in netdev_show()
61 static ssize_t format_##field(const struct net_device *dev, char *buf) \
82 int (*set)(struct net_device *, unsigned long)) in netdev_store() argument
84 struct net_device *netdev = to_net_dev(dev); in netdev_store()
119 struct net_device *ndev = to_net_dev(dev); in iflink_show()
125 static ssize_t format_name_assign_type(const struct net_device *dev, char *buf) in format_name_assign_type()
134 struct net_device *ndev = to_net_dev(dev); in name_assign_type_show()
148 struct net_device *ndev = to_net_dev(dev); in address_show()
162 struct net_device *ndev = to_net_dev(dev); in broadcast_show()
169 static int change_carrier(struct net_device *dev, unsigned long new_carrier) in change_carrier()
185 struct net_device *netdev = to_net_dev(dev); in carrier_show()
196 struct net_device *netdev = to_net_dev(dev); in speed_show()
215 struct net_device *netdev = to_net_dev(dev); in duplex_show()
247 struct net_device *netdev = to_net_dev(dev); in dormant_show()
269 const struct net_device *netdev = to_net_dev(dev); in operstate_show()
289 struct net_device *netdev = to_net_dev(dev); in carrier_changes_show()
297 static int change_mtu(struct net_device *dev, unsigned long new_mtu) in change_mtu()
309 static int change_flags(struct net_device *dev, unsigned long new_flags) in change_flags()
321 static int change_tx_queue_len(struct net_device *dev, unsigned long new_len) in change_tx_queue_len()
338 static int change_gro_flush_timeout(struct net_device *dev, unsigned long val) in change_gro_flush_timeout()
358 struct net_device *netdev = to_net_dev(dev); in ifalias_store()
381 const struct net_device *netdev = to_net_dev(dev); in ifalias_show()
393 static int change_group(struct net_device *dev, unsigned long new_group) in change_group()
410 struct net_device *netdev = to_net_dev(dev); in phys_port_id_show()
432 struct net_device *netdev = to_net_dev(dev); in phys_port_name_show()
454 struct net_device *netdev = to_net_dev(dev); in phys_switch_id_show()
509 struct net_device *dev = to_net_dev(d); in netstat_show()
866 static int rx_queue_add_kobject(struct net_device *dev, int index) in rx_queue_add_kobject()
895 net_rx_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in net_rx_queue_update_kobjects()
988 struct net_device *dev = queue->dev; in get_netdev_queue_index()
1011 struct net_device *dev = queue->dev; in set_tx_maxrate()
1156 struct net_device *dev = queue->dev; in show_xps_map()
1195 struct net_device *dev = queue->dev; in store_xps_map()
1261 static int netdev_queue_add_kobject(struct net_device *dev, int index) in netdev_queue_add_kobject()
1290 netdev_queue_update_kobjects(struct net_device *dev, int old_num, int new_num) in netdev_queue_update_kobjects()
1319 static int register_queue_kobjects(struct net_device *dev) in register_queue_kobjects()
1350 static void remove_queue_kobjects(struct net_device *dev) in remove_queue_kobjects()
1405 struct net_device *dev = to_net_dev(d); in netdev_uevent()
1428 struct net_device *dev = to_net_dev(d); in netdev_release()
1438 struct net_device *dev; in net_namespace()
1439 dev = container_of(d, struct net_device, dev); in net_namespace()
1463 struct net_device *of_find_net_device_by_node(struct device_node *np) in of_find_net_device_by_node()
1479 void netdev_unregister_kobject(struct net_device *ndev) in netdev_unregister_kobject()
1493 int netdev_register_kobject(struct net_device *ndev) in netdev_register_kobject()