Lines Matching refs:net_device

52 	struct net_device *orig_dev;
56 void (*complete)(struct net_device *dev, int err, void *priv);
88 struct net_device *orig_dev;
92 void (*complete)(struct net_device *dev, int err, void *priv);
126 struct net_device *p_port;
127 struct net_device *s_port;
185 struct net_device *i_port;
207 struct net_device *dev;
237 struct net_device *dev;
271 static inline struct net_device *
291 int switchdev_bridge_port_offload(struct net_device *brport_dev,
292 struct net_device *dev, const void *ctx,
297 void switchdev_bridge_port_unoffload(struct net_device *brport_dev,
303 int switchdev_port_attr_set(struct net_device *dev,
306 int switchdev_port_obj_add(struct net_device *dev,
309 int switchdev_port_obj_del(struct net_device *dev,
314 int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
320 int call_switchdev_blocking_notifiers(unsigned long val, struct net_device *dev,
324 void switchdev_port_fwd_mark_set(struct net_device *dev,
325 struct net_device *group_dev,
328 int switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event,
330 bool (*check_cb)(const struct net_device *dev),
331 bool (*foreign_dev_check_cb)(const struct net_device *dev,
332 const struct net_device *foreign_dev),
333 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev,
337 int switchdev_handle_port_obj_add(struct net_device *dev,
339 bool (*check_cb)(const struct net_device *dev),
340 int (*add_cb)(struct net_device *dev, const void *ctx,
343 int switchdev_handle_port_obj_add_foreign(struct net_device *dev,
345 bool (*check_cb)(const struct net_device *dev),
346 bool (*foreign_dev_check_cb)(const struct net_device *dev,
347 const struct net_device *foreign_dev),
348 int (*add_cb)(struct net_device *dev, const void *ctx,
351 int switchdev_handle_port_obj_del(struct net_device *dev,
353 bool (*check_cb)(const struct net_device *dev),
354 int (*del_cb)(struct net_device *dev, const void *ctx,
356 int switchdev_handle_port_obj_del_foreign(struct net_device *dev,
358 bool (*check_cb)(const struct net_device *dev),
359 bool (*foreign_dev_check_cb)(const struct net_device *dev,
360 const struct net_device *foreign_dev),
361 int (*del_cb)(struct net_device *dev, const void *ctx,
364 int switchdev_handle_port_attr_set(struct net_device *dev,
366 bool (*check_cb)(const struct net_device *dev),
367 int (*set_cb)(struct net_device *dev, const void *ctx,
373 switchdev_bridge_port_offload(struct net_device *brport_dev, in switchdev_bridge_port_offload()
374 struct net_device *dev, const void *ctx, in switchdev_bridge_port_offload()
384 switchdev_bridge_port_unoffload(struct net_device *brport_dev, in switchdev_bridge_port_unoffload()
395 static inline int switchdev_port_attr_set(struct net_device *dev, in switchdev_port_attr_set()
402 static inline int switchdev_port_obj_add(struct net_device *dev, in switchdev_port_obj_add()
409 static inline int switchdev_port_obj_del(struct net_device *dev, in switchdev_port_obj_del()
426 struct net_device *dev, in call_switchdev_notifiers()
447 struct net_device *dev, in call_switchdev_blocking_notifiers()
455 switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event, in switchdev_handle_fdb_event_to_device()
457 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_fdb_event_to_device()
458 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_fdb_event_to_device()
459 const struct net_device *foreign_dev), in switchdev_handle_fdb_event_to_device()
460 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev, in switchdev_handle_fdb_event_to_device()
468 switchdev_handle_port_obj_add(struct net_device *dev, in switchdev_handle_port_obj_add()
470 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add()
471 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add()
478 static inline int switchdev_handle_port_obj_add_foreign(struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
480 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add_foreign()
481 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
482 const struct net_device *foreign_dev), in switchdev_handle_port_obj_add_foreign()
483 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add_foreign()
491 switchdev_handle_port_obj_del(struct net_device *dev, in switchdev_handle_port_obj_del()
493 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del()
494 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del()
501 switchdev_handle_port_obj_del_foreign(struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
503 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del_foreign()
504 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
505 const struct net_device *foreign_dev), in switchdev_handle_port_obj_del_foreign()
506 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del_foreign()
513 switchdev_handle_port_attr_set(struct net_device *dev, in switchdev_handle_port_attr_set()
515 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_attr_set()
516 int (*set_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_attr_set()