Lines Matching defs:dev

236 static struct netdev_name_node *netdev_name_node_alloc(struct net_device *dev,  in netdev_name_node_alloc()
251 netdev_name_node_head_alloc(struct net_device *dev) in netdev_name_node_head_alloc()
303 int netdev_name_node_alt_create(struct net_device *dev, const char *name) in netdev_name_node_alt_create()
330 int netdev_name_node_alt_destroy(struct net_device *dev, const char *name) in netdev_name_node_alt_destroy()
350 static void netdev_name_node_alt_flush(struct net_device *dev) in netdev_name_node_alt_flush()
359 static void list_netdevice(struct net_device *dev) in list_netdevice()
378 static void unlist_netdevice(struct net_device *dev) in unlist_netdevice()
469 static inline void netdev_set_addr_lockdep_class(struct net_device *dev) in netdev_set_addr_lockdep_class()
484 static inline void netdev_set_addr_lockdep_class(struct net_device *dev) in netdev_set_addr_lockdep_class()
727 int netdev_boot_setup_check(struct net_device *dev) in netdev_boot_setup_check()
821 int dev_get_iflink(const struct net_device *dev) in dev_get_iflink()
839 int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb) in dev_fill_metadata_dst()
912 struct net_device *dev; in dev_get_by_name() local
937 struct net_device *dev; in __dev_get_by_index() local
961 struct net_device *dev; in dev_get_by_index_rcu() local
986 struct net_device *dev; in dev_get_by_index() local
1030 struct net_device *dev; in netdev_get_name() local
1068 struct net_device *dev; in dev_getbyhwaddr_rcu() local
1081 struct net_device *dev; in __dev_getfirstbyhwtype() local
1094 struct net_device *dev, *ret = NULL; in dev_getfirstbyhwtype() local
1122 struct net_device *dev, *ret; in __dev_get_by_flags() local
1244 struct net_device *dev, in dev_alloc_name_ns()
1271 int dev_alloc_name(struct net_device *dev, const char *name) in dev_alloc_name()
1277 static int dev_get_valid_name(struct net *net, struct net_device *dev, in dev_get_valid_name()
1303 int dev_change_name(struct net_device *dev, const char *newname) in dev_change_name()
1406 int dev_set_alias(struct net_device *dev, const char *alias, size_t len) in dev_set_alias()
1443 int dev_get_alias(const struct net_device *dev, char *name, size_t len) in dev_get_alias()
1463 void netdev_features_change(struct net_device *dev) in netdev_features_change()
1477 void netdev_state_change(struct net_device *dev) in netdev_state_change()
1501 void netdev_notify_peers(struct net_device *dev) in netdev_notify_peers()
1510 static int __dev_open(struct net_device *dev, struct netlink_ext_ack *extack) in __dev_open()
1571 int dev_open(struct net_device *dev, struct netlink_ext_ack *extack) in dev_open()
1591 struct net_device *dev; in __dev_close_many() local
1633 static void __dev_close(struct net_device *dev) in __dev_close()
1644 struct net_device *dev, *tmp; in dev_close_many() local
1671 void dev_close(struct net_device *dev) in dev_close()
1692 void dev_disable_lro(struct net_device *dev) in dev_disable_lro()
1716 static void dev_disable_gro_hw(struct net_device *dev) in dev_disable_gro_hw()
1748 struct net_device *dev) in call_netdevice_notifier()
1758 struct net_device *dev) in call_netdevice_register_notifiers()
1775 struct net_device *dev) in call_netdevice_unregister_notifiers()
1788 struct net_device *dev; in call_netdevice_register_net_notifiers() local
1807 struct net_device *dev; in call_netdevice_unregister_net_notifiers() local
1988 int register_netdevice_notifier_dev_net(struct net_device *dev, in register_netdevice_notifier_dev_net()
2005 int unregister_netdevice_notifier_dev_net(struct net_device *dev, in unregister_netdevice_notifier_dev_net()
2019 static void move_netdevice_notifiers_dev_net(struct net_device *dev, in move_netdevice_notifiers_dev_net()
2058 struct net_device *dev, in call_netdevice_notifiers_extack()
2078 int call_netdevice_notifiers(unsigned long val, struct net_device *dev) in call_netdevice_notifiers()
2094 struct net_device *dev, u32 arg) in call_netdevice_notifiers_mtu()
2209 bool is_skb_forwardable(const struct net_device *dev, const struct sk_buff *skb) in is_skb_forwardable()
2230 int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb) in __dev_forward_skb()
2261 int dev_forward_skb(struct net_device *dev, struct sk_buff *skb) in dev_forward_skb()
2313 bool dev_nit_active(struct net_device *dev) in dev_nit_active()
2324 void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev) in dev_queue_xmit_nit()
2403 static void netif_setup_tc(struct net_device *dev, unsigned int txq) in netif_setup_tc()
2428 int netdev_txq_to_tc(struct net_device *dev, unsigned int txq) in netdev_txq_to_tc()
2485 static bool remove_xps_queue_cpu(struct net_device *dev, in remove_xps_queue_cpu()
2507 static void reset_xps_maps(struct net_device *dev, in reset_xps_maps()
2521 static void clean_xps_maps(struct net_device *dev, const unsigned long *mask, in clean_xps_maps()
2544 static void netif_reset_xps_queues(struct net_device *dev, u16 offset, in netif_reset_xps_queues()
2581 static void netif_reset_xps_queues_gt(struct net_device *dev, u16 index) in netif_reset_xps_queues_gt()
2627 int __netif_set_xps_queue(struct net_device *dev, const unsigned long *mask, in __netif_set_xps_queue()
2825 int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask, in netif_set_xps_queue()
2839 static void netdev_unbind_all_sb_channels(struct net_device *dev) in netdev_unbind_all_sb_channels()
2850 void netdev_reset_tc(struct net_device *dev) in netdev_reset_tc()
2864 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset) in netdev_set_tc_queue()
2878 int netdev_set_num_tc(struct net_device *dev, u8 num_tc) in netdev_set_num_tc()
2893 void netdev_unbind_sb_channel(struct net_device *dev, in netdev_unbind_sb_channel()
2911 int netdev_bind_sb_channel_queue(struct net_device *dev, in netdev_bind_sb_channel_queue()
2937 int netdev_set_sb_channel(struct net_device *dev, u16 channel) in netdev_set_sb_channel()
2961 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq) in netif_set_real_num_tx_queues()
3011 int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq) in netif_set_real_num_rx_queues()
3139 void netif_device_detach(struct net_device *dev) in netif_device_detach()
3154 void netif_device_attach(struct net_device *dev) in netif_device_attach()
3168 static u16 skb_tx_hash(const struct net_device *dev, in skb_tx_hash()
3204 struct net_device *dev = skb->dev; in skb_warn_bad_offload() local
3407 struct net_device *dev = skb->dev; in __skb_gso_segment() local
3434 void netdev_rx_csum_fault(struct net_device *dev, struct sk_buff *skb) in netdev_rx_csum_fault()
3446 static int illegal_highdma(struct net_device *dev, struct sk_buff *skb) in illegal_highdma()
3504 struct net_device *dev, in passthru_features_check()
3512 struct net_device *dev, in dflt_features_check()
3519 struct net_device *dev, in gso_features_check()
3552 struct net_device *dev = skb->dev; in netif_skb_features() local
3581 static int xmit_one(struct sk_buff *skb, struct net_device *dev, in xmit_one()
3599 struct sk_buff *dev_hard_start_xmit(struct sk_buff *first, struct net_device *dev, in dev_hard_start_xmit()
3647 static struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device *dev, bool *again) in validate_xmit_skb()
3702 struct sk_buff *validate_xmit_skb_list(struct sk_buff *skb, struct net_device *dev, bool *again) in validate_xmit_skb_list()
3772 struct net_device *dev, in __dev_xmit_skb()
3892 sch_handle_egress(struct sk_buff *skb, int *ret, struct net_device *dev) in sch_handle_egress()
3934 static int __get_xps_queue_idx(struct net_device *dev, struct sk_buff *skb, in __get_xps_queue_idx()
3959 static int get_xps_queue(struct net_device *dev, struct net_device *sb_dev, in get_xps_queue()
4001 u16 dev_pick_tx_zero(struct net_device *dev, struct sk_buff *skb, in dev_pick_tx_zero()
4008 u16 dev_pick_tx_cpu_id(struct net_device *dev, struct sk_buff *skb, in dev_pick_tx_cpu_id()
4015 u16 netdev_pick_tx(struct net_device *dev, struct sk_buff *skb, in netdev_pick_tx()
4042 struct netdev_queue *netdev_core_pick_tx(struct net_device *dev, in netdev_core_pick_tx()
4098 struct net_device *dev = skb->dev; in __dev_queue_xmit() local
4221 struct net_device *dev = skb->dev; in __dev_direct_xmit() local
4298 set_rps_cpu(struct net_device *dev, struct sk_buff *skb, in set_rps_cpu()
4347 static int get_rps_cpu(struct net_device *dev, struct sk_buff *skb, in get_rps_cpu()
4455 bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, in rps_may_expire_flow()
4606 struct net_device *dev = skb->dev; in netif_get_rxqueue() local
4748 struct net_device *dev = skb->dev; in generic_xdp_tx() local
5056 bool netdev_is_rx_handler_busy(struct net_device *dev) in netdev_is_rx_handler_busy()
5077 int netdev_rx_handler_register(struct net_device *dev, in netdev_rx_handler_register()
5103 void netdev_rx_handler_unregister(struct net_device *dev) in netdev_rx_handler_unregister()
5515 static int generic_xdp_install(struct net_device *dev, struct netdev_bpf *xdp) in generic_xdp_install()
6744 void netif_napi_add(struct net_device *dev, struct napi_struct *napi, in netif_napi_add()
6934 struct net_device *dev; member
6967 struct net_device *dev = (struct net_device *)priv->data; in ____netdev_has_upper_dev() local
6981 bool netdev_has_upper_dev(struct net_device *dev, in netdev_has_upper_dev()
7005 bool netdev_has_upper_dev_all_rcu(struct net_device *dev, in netdev_has_upper_dev_all_rcu()
7024 bool netdev_has_any_upper_dev(struct net_device *dev) in netdev_has_any_upper_dev()
7039 struct net_device *netdev_master_upper_dev_get(struct net_device *dev) in netdev_master_upper_dev_get()
7056 static struct net_device *__netdev_master_upper_dev_get(struct net_device *dev) in __netdev_master_upper_dev_get()
7079 static bool netdev_has_any_lower_dev(struct net_device *dev) in netdev_has_any_lower_dev()
7104 struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev, in netdev_upper_get_next_dev_rcu()
7122 static struct net_device *__netdev_next_upper_dev(struct net_device *dev, in __netdev_next_upper_dev()
7139 static struct net_device *netdev_next_upper_dev_rcu(struct net_device *dev, in netdev_next_upper_dev_rcu()
7156 static int __netdev_walk_all_upper_dev(struct net_device *dev, in __netdev_walk_all_upper_dev()
7157 int (*fn)(struct net_device *dev, in __netdev_walk_all_upper_dev()
7205 int netdev_walk_all_upper_dev_rcu(struct net_device *dev, in netdev_walk_all_upper_dev_rcu()
7206 int (*fn)(struct net_device *dev, in netdev_walk_all_upper_dev_rcu()
7252 static bool __netdev_has_upper_dev(struct net_device *dev, in __netdev_has_upper_dev()
7277 void *netdev_lower_get_next_private(struct net_device *dev, in netdev_lower_get_next_private()
7303 void *netdev_lower_get_next_private_rcu(struct net_device *dev, in netdev_lower_get_next_private_rcu()
7332 void *netdev_lower_get_next(struct net_device *dev, struct list_head **iter) in netdev_lower_get_next()
7347 static struct net_device *netdev_next_lower_dev(struct net_device *dev, in netdev_next_lower_dev()
7362 static struct net_device *__netdev_next_lower_dev(struct net_device *dev, in __netdev_next_lower_dev()
7379 int netdev_walk_all_lower_dev(struct net_device *dev, in netdev_walk_all_lower_dev()
7380 int (*fn)(struct net_device *dev, in netdev_walk_all_lower_dev()
7426 static int __netdev_walk_all_lower_dev(struct net_device *dev, in __netdev_walk_all_lower_dev()
7427 int (*fn)(struct net_device *dev, in __netdev_walk_all_lower_dev()
7475 struct net_device *netdev_next_lower_dev_rcu(struct net_device *dev, in netdev_next_lower_dev_rcu()
7490 static u8 __netdev_upper_depth(struct net_device *dev) in __netdev_upper_depth()
7510 static u8 __netdev_lower_depth(struct net_device *dev) in __netdev_lower_depth()
7530 static int __netdev_update_upper_level(struct net_device *dev, in __netdev_update_upper_level()
7537 static int __netdev_update_lower_level(struct net_device *dev, in __netdev_update_lower_level()
7554 int netdev_walk_all_lower_dev_rcu(struct net_device *dev, in netdev_walk_all_lower_dev_rcu()
7555 int (*fn)(struct net_device *dev, in netdev_walk_all_lower_dev_rcu()
7610 void *netdev_lower_get_first_private_rcu(struct net_device *dev) in netdev_lower_get_first_private_rcu()
7629 struct net_device *netdev_master_upper_dev_get_rcu(struct net_device *dev) in netdev_master_upper_dev_get_rcu()
7641 static int netdev_adjacent_sysfs_add(struct net_device *dev, in netdev_adjacent_sysfs_add()
7652 static void netdev_adjacent_sysfs_del(struct net_device *dev, in netdev_adjacent_sysfs_del()
7663 static inline bool netdev_adjacent_is_neigh_list(struct net_device *dev, in netdev_adjacent_is_neigh_list()
7672 static int __netdev_adjacent_dev_insert(struct net_device *dev, in __netdev_adjacent_dev_insert()
7734 static void __netdev_adjacent_dev_remove(struct net_device *dev, in __netdev_adjacent_dev_remove()
7774 static int __netdev_adjacent_dev_link_lists(struct net_device *dev, in __netdev_adjacent_dev_link_lists()
7797 static void __netdev_adjacent_dev_unlink_lists(struct net_device *dev, in __netdev_adjacent_dev_unlink_lists()
7807 static int __netdev_adjacent_dev_link_neighbour(struct net_device *dev, in __netdev_adjacent_dev_link_neighbour()
7817 static void __netdev_adjacent_dev_unlink_neighbour(struct net_device *dev, in __netdev_adjacent_dev_unlink_neighbour()
7825 static int __netdev_upper_dev_link(struct net_device *dev, in __netdev_upper_dev_link()
7908 int netdev_upper_dev_link(struct net_device *dev, in netdev_upper_dev_link()
7936 int netdev_master_upper_dev_link(struct net_device *dev, in netdev_master_upper_dev_link()
7951 static void __netdev_upper_dev_unlink(struct net_device *dev, in __netdev_upper_dev_unlink()
7991 void netdev_upper_dev_unlink(struct net_device *dev, in netdev_upper_dev_unlink()
8032 struct net_device *dev, in netdev_adjacent_change_prepare()
8060 struct net_device *dev) in netdev_adjacent_change_commit()
8080 struct net_device *dev) in netdev_adjacent_change_abort()
8105 void netdev_bonding_info_change(struct net_device *dev, in netdev_bonding_info_change()
8130 struct net_device *netdev_get_xmit_slave(struct net_device *dev, in netdev_get_xmit_slave()
8142 static void netdev_adjacent_add_links(struct net_device *dev) in netdev_adjacent_add_links()
8167 static void netdev_adjacent_del_links(struct net_device *dev) in netdev_adjacent_del_links()
8192 void netdev_adjacent_rename_links(struct net_device *dev, char *oldname) in netdev_adjacent_rename_links()
8217 void *netdev_lower_dev_get_private(struct net_device *dev, in netdev_lower_dev_get_private()
8255 static void dev_change_rx_flags(struct net_device *dev, int flags) in dev_change_rx_flags()
8263 static int __dev_set_promiscuity(struct net_device *dev, int inc, bool notify) in __dev_set_promiscuity()
8322 int dev_set_promiscuity(struct net_device *dev, int inc) in dev_set_promiscuity()
8336 static int __dev_set_allmulti(struct net_device *dev, int inc, bool notify) in __dev_set_allmulti()
8381 int dev_set_allmulti(struct net_device *dev, int inc) in dev_set_allmulti()
8393 void __dev_set_rx_mode(struct net_device *dev) in __dev_set_rx_mode()
8421 void dev_set_rx_mode(struct net_device *dev) in dev_set_rx_mode()
8434 unsigned int dev_get_flags(const struct net_device *dev) in dev_get_flags()
8459 int __dev_change_flags(struct net_device *dev, unsigned int flags, in __dev_change_flags()
8525 void __dev_notify_flags(struct net_device *dev, unsigned int old_flags, in __dev_notify_flags()
8562 int dev_change_flags(struct net_device *dev, unsigned int flags, in dev_change_flags()
8578 int __dev_set_mtu(struct net_device *dev, int new_mtu) in __dev_set_mtu()
8591 int dev_validate_mtu(struct net_device *dev, int new_mtu, in dev_validate_mtu()
8615 int dev_set_mtu_ext(struct net_device *dev, int new_mtu, in dev_set_mtu_ext()
8654 int dev_set_mtu(struct net_device *dev, int new_mtu) in dev_set_mtu()
8672 int dev_change_tx_queue_len(struct net_device *dev, unsigned long new_len) in dev_change_tx_queue_len()
8704 void dev_set_group(struct net_device *dev, int new_group) in dev_set_group()
8716 int dev_pre_changeaddr_notify(struct net_device *dev, const char *addr, in dev_pre_changeaddr_notify()
8739 int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa, in dev_set_mac_address()
8766 int dev_set_mac_address_user(struct net_device *dev, struct sockaddr *sa, in dev_set_mac_address_user()
8781 struct net_device *dev; in dev_get_mac_address() local
8813 int dev_change_carrier(struct net_device *dev, bool new_carrier) in dev_change_carrier()
8832 int dev_get_phys_port_id(struct net_device *dev, in dev_get_phys_port_id()
8851 int dev_get_phys_port_name(struct net_device *dev, in dev_get_phys_port_name()
8874 int dev_get_port_parent_id(struct net_device *dev, in dev_get_port_parent_id()
8938 int dev_change_proto_down(struct net_device *dev, bool proto_down) in dev_change_proto_down()
8958 int dev_change_proto_down_generic(struct net_device *dev, bool proto_down) in dev_change_proto_down_generic()
8976 void dev_change_proto_down_reason(struct net_device *dev, unsigned long mask, in dev_change_proto_down_reason()
8996 struct net_device *dev; /* protected by rtnl_lock, no refcnt held */ member
9000 static enum bpf_xdp_mode dev_xdp_mode(struct net_device *dev, u32 flags) in dev_xdp_mode()
9011 static bpf_op_t dev_xdp_bpf_op(struct net_device *dev, enum bpf_xdp_mode mode) in dev_xdp_bpf_op()
9024 static struct bpf_xdp_link *dev_xdp_link(struct net_device *dev, in dev_xdp_link()
9030 static struct bpf_prog *dev_xdp_prog(struct net_device *dev, in dev_xdp_prog()
9040 static u8 dev_xdp_prog_count(struct net_device *dev) in dev_xdp_prog_count()
9051 u32 dev_xdp_prog_id(struct net_device *dev, enum bpf_xdp_mode mode) in dev_xdp_prog_id()
9058 static void dev_xdp_set_link(struct net_device *dev, enum bpf_xdp_mode mode, in dev_xdp_set_link()
9065 static void dev_xdp_set_prog(struct net_device *dev, enum bpf_xdp_mode mode, in dev_xdp_set_prog()
9072 static int dev_xdp_install(struct net_device *dev, enum bpf_xdp_mode mode, in dev_xdp_install()
9106 static void dev_xdp_uninstall(struct net_device *dev) in dev_xdp_uninstall()
9137 static int dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack, in dev_xdp_attach()
9246 static int dev_xdp_attach_link(struct net_device *dev, in dev_xdp_attach_link()
9253 static int dev_xdp_detach_link(struct net_device *dev, in dev_xdp_detach_link()
9393 struct net_device *dev; in bpf_xdp_link_attach() local
9451 int dev_change_xdp_fd(struct net_device *dev, struct netlink_ext_ack *extack, in dev_change_xdp_fd()
9511 static void net_set_todo(struct net_device *dev) in net_set_todo()
9561 static netdev_features_t netdev_fix_features(struct net_device *dev, in netdev_fix_features()
9645 int __netdev_update_features(struct net_device *dev) in __netdev_update_features()
9745 void netdev_update_features(struct net_device *dev) in netdev_update_features()
9762 void netdev_change_features(struct net_device *dev) in netdev_change_features()
9779 struct net_device *dev) in netif_stacked_transfer_operstate()
9798 static int netif_alloc_rx_queues(struct net_device *dev) in netif_alloc_rx_queues()
9832 static void netif_free_rx_queues(struct net_device *dev) in netif_free_rx_queues()
9846 static void netdev_init_one_queue(struct net_device *dev, in netdev_init_one_queue()
9860 static void netif_free_tx_queues(struct net_device *dev) in netif_free_tx_queues()
9865 static int netif_alloc_netdev_queues(struct net_device *dev) in netif_alloc_netdev_queues()
9886 void netif_tx_stop_all_queues(struct net_device *dev) in netif_tx_stop_all_queues()
9915 int register_netdevice(struct net_device *dev) in register_netdevice()
10090 int init_dummy_netdev(struct net_device *dev) in init_dummy_netdev()
10137 int register_netdev(struct net_device *dev) in register_netdev()
10149 int netdev_refcnt_read(const struct net_device *dev) in netdev_refcnt_read()
10173 static void netdev_wait_allrefs(struct net_device *dev) in netdev_wait_allrefs()
10261 struct net_device *dev = list_first_entry(&unlink_list, in netdev_run_todo() local
10280 struct net_device *dev in netdev_run_todo() local
10359 struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, in dev_get_stats()
10413 struct netdev_queue *dev_ingress_queue_create(struct net_device *dev) in dev_ingress_queue_create()
10433 void netdev_set_default_ethtool_ops(struct net_device *dev, in netdev_set_default_ethtool_ops()
10441 void netdev_freemem(struct net_device *dev) in netdev_freemem()
10466 struct net_device *dev; in alloc_netdev_mqs() local
10580 void free_netdev(struct net_device *dev) in free_netdev()
10655 void unregister_netdevice_queue(struct net_device *dev, struct list_head *head) in unregister_netdevice_queue()
10679 struct net_device *dev, *tmp; in unregister_netdevice_many() local
10787 void unregister_netdev(struct net_device *dev) in unregister_netdev()
10809 int dev_change_net_namespace(struct net_device *dev, struct net *net, const char *pat) in dev_change_net_namespace()
11068 const char *netdev_drivername(const struct net_device *dev) in netdev_drivername()
11084 static void __netdev_printk(const char *level, const struct net_device *dev, in __netdev_printk()
11103 void netdev_printk(const char *level, const struct net_device *dev, in netdev_printk()
11160 struct net_device *dev, *aux; in default_device_exit() local
11227 struct net_device *dev; in default_device_exit_batch() local