Lines Matching refs: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,
132 struct net_device *dev,
158 static int switchdev_port_attr_set_now(struct net_device *dev,
166 static void switchdev_port_attr_set_deferred(struct net_device *dev,
180 static int switchdev_port_attr_set_defer(struct net_device *dev,
197 int switchdev_port_attr_set(struct net_device *dev,
224 struct net_device *dev,
247 static void switchdev_obj_id_to_helpful_msg(struct net_device *dev,
340 static void switchdev_port_obj_add_deferred(struct net_device *dev,
355 static int switchdev_port_obj_add_defer(struct net_device *dev,
372 int switchdev_port_obj_add(struct net_device *dev,
384 static int switchdev_port_obj_del_now(struct net_device *dev,
391 static void switchdev_port_obj_del_deferred(struct net_device *dev,
404 static int switchdev_port_obj_del_defer(struct net_device *dev,
420 int switchdev_port_obj_del(struct net_device *dev,
442 bool switchdev_port_obj_act_is_deferred(struct net_device *dev,
509 int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
535 int call_switchdev_blocking_notifiers(unsigned long val, struct net_device *dev,
547 bool (*check_cb)(const struct net_device *dev);
548 bool (*foreign_dev_check_cb)(const struct net_device *dev,
549 const struct net_device *foreign_dev);
550 const struct net_device *dev;
551 struct net_device *lower_dev;
554 static int switchdev_lower_dev_walk(struct net_device *lower_dev,
558 bool (*foreign_dev_check_cb)(const struct net_device *dev,
559 const struct net_device *foreign_dev);
560 bool (*check_cb)(const struct net_device *dev);
561 const struct net_device *dev;
575 static struct net_device *
576 switchdev_lower_dev_find_rcu(struct net_device *dev,
577 bool (*check_cb)(const struct net_device *dev),
578 bool (*foreign_dev_check_cb)(const struct net_device *dev,
579 const struct net_device *foreign_dev))
596 static struct net_device *
597 switchdev_lower_dev_find(struct net_device *dev,
598 bool (*check_cb)(const struct net_device *dev),
599 bool (*foreign_dev_check_cb)(const struct net_device *dev,
600 const struct net_device *foreign_dev))
617 static int __switchdev_handle_fdb_event_to_device(struct net_device *dev,
618 struct net_device *orig_dev, unsigned long event,
620 bool (*check_cb)(const struct net_device *dev),
621 bool (*foreign_dev_check_cb)(const struct net_device *dev,
622 const struct net_device *foreign_dev),
623 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev,
628 struct net_device *br, *lower_dev, *switchdev;
678 int switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event,
680 bool (*check_cb)(const struct net_device *dev),
681 bool (*foreign_dev_check_cb)(const struct net_device *dev,
682 const struct net_device *foreign_dev),
683 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev,
699 static int __switchdev_handle_port_obj_add(struct net_device *dev,
701 bool (*check_cb)(const struct net_device *dev),
702 bool (*foreign_dev_check_cb)(const struct net_device *dev,
703 const struct net_device *foreign_dev),
704 int (*add_cb)(struct net_device *dev, const void *ctx,
709 struct net_device *br, *lower_dev, *switchdev;
774 int switchdev_handle_port_obj_add(struct net_device *dev,
776 bool (*check_cb)(const struct net_device *dev),
777 int (*add_cb)(struct net_device *dev, const void *ctx,
795 int switchdev_handle_port_obj_add_foreign(struct net_device *dev,
797 bool (*check_cb)(const struct net_device *dev),
798 bool (*foreign_dev_check_cb)(const struct net_device *dev,
799 const struct net_device *foreign_dev),
800 int (*add_cb)(struct net_device *dev, const void *ctx,
814 static int __switchdev_handle_port_obj_del(struct net_device *dev,
816 bool (*check_cb)(const struct net_device *dev),
817 bool (*foreign_dev_check_cb)(const struct net_device *dev,
818 const struct net_device *foreign_dev),
819 int (*del_cb)(struct net_device *dev, const void *ctx,
823 struct net_device *br, *lower_dev, *switchdev;
885 int switchdev_handle_port_obj_del(struct net_device *dev,
887 bool (*check_cb)(const struct net_device *dev),
888 int (*del_cb)(struct net_device *dev, const void *ctx,
905 int switchdev_handle_port_obj_del_foreign(struct net_device *dev,
907 bool (*check_cb)(const struct net_device *dev),
908 bool (*foreign_dev_check_cb)(const struct net_device *dev,
909 const struct net_device *foreign_dev),
910 int (*del_cb)(struct net_device *dev, const void *ctx,
923 static int __switchdev_handle_port_attr_set(struct net_device *dev,
925 bool (*check_cb)(const struct net_device *dev),
926 int (*set_cb)(struct net_device *dev, const void *ctx,
932 struct net_device *lower_dev;
965 int switchdev_handle_port_attr_set(struct net_device *dev,
967 bool (*check_cb)(const struct net_device *dev),
968 int (*set_cb)(struct net_device *dev, const void *ctx,
982 int switchdev_bridge_port_offload(struct net_device *brport_dev,
983 struct net_device *dev, const void *ctx,
1009 void switchdev_bridge_port_unoffload(struct net_device *brport_dev,
1030 int switchdev_bridge_port_replay(struct net_device *brport_dev,
1031 struct net_device *dev, const void *ctx,