Lines Matching defs:dev
59 struct net_device *dev; member
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()
561 const struct net_device *dev; member
572 const struct net_device *dev; in switchdev_lower_dev_walk() local
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()
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()
628 static int __switchdev_handle_fdb_event_to_device(struct net_device *dev, 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()
634 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev, 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()
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()
715 int (*add_cb)(struct net_device *dev, const void *ctx, 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()
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()
830 int (*del_cb)(struct net_device *dev, const void *ctx, 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()
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()
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()
994 struct net_device *dev, const void *ctx, in switchdev_bridge_port_offload()
1042 struct net_device *dev, const void *ctx, in switchdev_bridge_port_replay()