Lines Matching refs:net_device
30 struct net_device *dev_get_by_napi_id(unsigned int napi_id);
32 struct net_device *netdev_get_by_index_lock(struct net *net, int ifindex);
33 struct net_device *__netdev_put_lock(struct net_device *dev, struct net *net);
34 struct net_device *
35 netdev_xa_find_lock(struct net *net, struct net_device *dev,
38 DEFINE_FREE(netdev_unlock, struct net_device *, if (_T) netdev_unlock(_T));
41 for (struct net_device *var_name __free(netdev_unlock) = NULL; \
45 struct net_device *
47 struct net_device *
48 netdev_xa_find_lock_ops_compat(struct net *net, struct net_device *dev,
51 DEFINE_FREE(netdev_unlock_ops_compat, struct net_device *,
55 for (struct net_device *var_name __free(netdev_unlock_ops_compat) = NULL; \
66 void linkwatch_init_dev(struct net_device *dev);
69 void dev_addr_flush(struct net_device *dev);
70 int dev_addr_init(struct net_device *dev);
71 void dev_addr_check(struct net_device *dev);
74 void net_shaper_flush_netdev(struct net_device *dev);
75 void net_shaper_set_real_num_tx_queues(struct net_device *dev,
78 static inline void net_shaper_flush_netdev(struct net_device *dev) {} in net_shaper_flush_netdev()
79 static inline void net_shaper_set_real_num_tx_queues(struct net_device *dev, in net_shaper_set_real_num_tx_queues()
99 struct net_device *dev;
105 int netif_change_name(struct net_device *dev, const char *newname);
106 int dev_change_name(struct net_device *dev, const char *newname);
114 int netdev_name_node_alt_create(struct net_device *dev, const char *name);
115 int netdev_name_node_alt_destroy(struct net_device *dev, const char *name);
117 int dev_validate_mtu(struct net_device *dev, int mtu,
119 int netif_set_mtu_ext(struct net_device *dev, int new_mtu,
122 int dev_get_phys_port_id(struct net_device *dev,
124 int dev_get_phys_port_name(struct net_device *dev,
127 int netif_change_proto_down(struct net_device *dev, bool proto_down);
128 int dev_change_proto_down(struct net_device *dev, bool proto_down);
129 void netdev_change_proto_down_reason_locked(struct net_device *dev,
132 typedef int (*bpf_op_t)(struct net_device *dev, struct netdev_bpf *bpf);
133 int dev_change_xdp_fd(struct net_device *dev, struct netlink_ext_ack *extack,
136 int netif_change_tx_queue_len(struct net_device *dev, unsigned long new_len);
137 int dev_change_tx_queue_len(struct net_device *dev, unsigned long new_len);
138 void netif_set_group(struct net_device *dev, int new_group);
139 void dev_set_group(struct net_device *dev, int new_group);
140 int netif_change_carrier(struct net_device *dev, bool new_carrier);
141 int dev_change_carrier(struct net_device *dev, bool new_carrier);
143 void __dev_set_rx_mode(struct net_device *dev);
145 void __dev_notify_flags(struct net_device *dev, unsigned int old_flags,
152 static inline void netif_set_up(struct net_device *dev, bool value) in netif_set_up()
166 static inline void netif_set_gso_max_size(struct net_device *dev, in netif_set_gso_max_size()
175 static inline void netif_set_gso_max_segs(struct net_device *dev, in netif_set_gso_max_segs()
182 static inline void netif_set_gro_max_size(struct net_device *dev, in netif_set_gro_max_size()
191 static inline void netif_set_gso_ipv4_max_size(struct net_device *dev, in netif_set_gso_ipv4_max_size()
198 static inline void netif_set_gro_ipv4_max_size(struct net_device *dev, in netif_set_gro_ipv4_max_size()
231 static inline void netdev_set_defer_hard_irqs(struct net_device *netdev, in netdev_set_defer_hard_irqs()
277 static inline void netdev_set_gro_flush_timeout(struct net_device *netdev, in netdev_set_gro_flush_timeout()
327 napi_get_threaded_config(struct net_device *dev, struct napi_struct *n) in napi_get_threaded_config()
337 int netif_set_threaded(struct net_device *dev,
397 int dev_set_hwtstamp_phylib(struct net_device *dev,
400 int dev_get_hwtstamp_phylib(struct net_device *dev,