Lines Matching full:net_device
54 typedef void switchdev_deferred_func_t(struct net_device *dev,
59 struct net_device *dev;
111 static int switchdev_deferred_enqueue(struct net_device *dev, in switchdev_deferred_enqueue()
132 struct net_device *dev, in switchdev_port_attr_notify()
158 static int switchdev_port_attr_set_now(struct net_device *dev, in switchdev_port_attr_set_now()
166 static void switchdev_port_attr_set_deferred(struct net_device *dev, in switchdev_port_attr_set_deferred()
180 static int switchdev_port_attr_set_defer(struct net_device *dev, in switchdev_port_attr_set_defer()
197 int switchdev_port_attr_set(struct net_device *dev, in switchdev_port_attr_set()
224 struct net_device *dev, in switchdev_port_obj_notify()
247 static void switchdev_obj_id_to_helpful_msg(struct net_device *dev, in switchdev_obj_id_to_helpful_msg()
340 static void switchdev_port_obj_add_deferred(struct net_device *dev, in switchdev_port_obj_add_deferred()
355 static int switchdev_port_obj_add_defer(struct net_device *dev, in switchdev_port_obj_add_defer()
372 int switchdev_port_obj_add(struct net_device *dev, in switchdev_port_obj_add()
384 static int switchdev_port_obj_del_now(struct net_device *dev, in switchdev_port_obj_del_now()
391 static void switchdev_port_obj_del_deferred(struct net_device *dev, in switchdev_port_obj_del_deferred()
404 static int switchdev_port_obj_del_defer(struct net_device *dev, in switchdev_port_obj_del_defer()
420 int switchdev_port_obj_del(struct net_device *dev, in switchdev_port_obj_del()
442 bool switchdev_port_obj_act_is_deferred(struct net_device *dev, in switchdev_port_obj_act_is_deferred()
509 int call_switchdev_notifiers(unsigned long val, struct net_device *dev, in call_switchdev_notifiers()
545 int call_switchdev_blocking_notifiers(unsigned long val, struct net_device *dev, in call_switchdev_blocking_notifiers()
558 bool (*check_cb)(const struct net_device *dev);
559 bool (*foreign_dev_check_cb)(const struct net_device *dev,
560 const struct net_device *foreign_dev);
561 const struct net_device *dev;
562 struct net_device *lower_dev;
565 static int switchdev_lower_dev_walk(struct net_device *lower_dev, in switchdev_lower_dev_walk()
569 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_lower_dev_walk()
570 const struct net_device *foreign_dev); in switchdev_lower_dev_walk()
571 bool (*check_cb)(const struct net_device *dev); in switchdev_lower_dev_walk()
572 const struct net_device *dev; in switchdev_lower_dev_walk()
586 static struct net_device *
587 switchdev_lower_dev_find_rcu(struct net_device *dev, in switchdev_lower_dev_find_rcu()
588 bool (*check_cb)(const struct net_device *dev), in switchdev_lower_dev_find_rcu()
589 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_lower_dev_find_rcu()
590 const struct net_device *foreign_dev)) in switchdev_lower_dev_find_rcu()
607 static struct net_device *
608 switchdev_lower_dev_find(struct net_device *dev, in switchdev_lower_dev_find()
609 bool (*check_cb)(const struct net_device *dev), in switchdev_lower_dev_find()
610 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_lower_dev_find()
611 const struct net_device *foreign_dev)) in switchdev_lower_dev_find()
628 static int __switchdev_handle_fdb_event_to_device(struct net_device *dev, in __switchdev_handle_fdb_event_to_device()
629 struct net_device *orig_dev, unsigned long event, in __switchdev_handle_fdb_event_to_device()
631 bool (*check_cb)(const struct net_device *dev), in __switchdev_handle_fdb_event_to_device()
632 bool (*foreign_dev_check_cb)(const struct net_device *dev, in __switchdev_handle_fdb_event_to_device()
633 const struct net_device *foreign_dev), in __switchdev_handle_fdb_event_to_device()
634 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev, in __switchdev_handle_fdb_event_to_device()
639 struct net_device *br, *lower_dev, *switchdev; in __switchdev_handle_fdb_event_to_device()
689 int switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event, in switchdev_handle_fdb_event_to_device()
691 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_fdb_event_to_device()
692 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_fdb_event_to_device()
693 const struct net_device *foreign_dev), in switchdev_handle_fdb_event_to_device()
694 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev, in switchdev_handle_fdb_event_to_device()
710 static int __switchdev_handle_port_obj_add(struct net_device *dev, in __switchdev_handle_port_obj_add()
712 bool (*check_cb)(const struct net_device *dev), in __switchdev_handle_port_obj_add()
713 bool (*foreign_dev_check_cb)(const struct net_device *dev, in __switchdev_handle_port_obj_add()
714 const struct net_device *foreign_dev), in __switchdev_handle_port_obj_add()
715 int (*add_cb)(struct net_device *dev, const void *ctx, in __switchdev_handle_port_obj_add()
720 struct net_device *br, *lower_dev, *switchdev; in __switchdev_handle_port_obj_add()
785 int switchdev_handle_port_obj_add(struct net_device *dev, in switchdev_handle_port_obj_add()
787 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add()
788 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add()
806 int switchdev_handle_port_obj_add_foreign(struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
808 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add_foreign()
809 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
810 const struct net_device *foreign_dev), in switchdev_handle_port_obj_add_foreign()
811 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add_foreign()
825 static int __switchdev_handle_port_obj_del(struct net_device *dev, in __switchdev_handle_port_obj_del()
827 bool (*check_cb)(const struct net_device *dev), in __switchdev_handle_port_obj_del()
828 bool (*foreign_dev_check_cb)(const struct net_device *dev, in __switchdev_handle_port_obj_del()
829 const struct net_device *foreign_dev), in __switchdev_handle_port_obj_del()
830 int (*del_cb)(struct net_device *dev, const void *ctx, in __switchdev_handle_port_obj_del()
834 struct net_device *br, *lower_dev, *switchdev; in __switchdev_handle_port_obj_del()
896 int switchdev_handle_port_obj_del(struct net_device *dev, in switchdev_handle_port_obj_del()
898 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del()
899 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del()
916 int switchdev_handle_port_obj_del_foreign(struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
918 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del_foreign()
919 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
920 const struct net_device *foreign_dev), in switchdev_handle_port_obj_del_foreign()
921 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del_foreign()
934 static int __switchdev_handle_port_attr_set(struct net_device *dev, in __switchdev_handle_port_attr_set()
936 bool (*check_cb)(const struct net_device *dev), in __switchdev_handle_port_attr_set()
937 int (*set_cb)(struct net_device *dev, const void *ctx, in __switchdev_handle_port_attr_set()
943 struct net_device *lower_dev; in __switchdev_handle_port_attr_set()
976 int switchdev_handle_port_attr_set(struct net_device *dev, in switchdev_handle_port_attr_set()
978 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_attr_set()
979 int (*set_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_attr_set()
993 int switchdev_bridge_port_offload(struct net_device *brport_dev, in switchdev_bridge_port_offload()
994 struct net_device *dev, const void *ctx, in switchdev_bridge_port_offload()
1020 void switchdev_bridge_port_unoffload(struct net_device *brport_dev, in switchdev_bridge_port_unoffload()
1041 int switchdev_bridge_port_replay(struct net_device *brport_dev, in switchdev_bridge_port_replay()
1042 struct net_device *dev, const void *ctx, in switchdev_bridge_port_replay()