Lines Matching full: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;
205 struct net_device *dev;
236 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,
301 int switchdev_bridge_port_replay(struct net_device *brport_dev,
302 struct net_device *dev, const void *ctx,
308 int switchdev_port_attr_set(struct net_device *dev,
311 bool switchdev_port_obj_act_is_deferred(struct net_device *dev,
314 int switchdev_port_obj_add(struct net_device *dev,
317 int switchdev_port_obj_del(struct net_device *dev,
322 int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
328 int call_switchdev_blocking_notifiers(unsigned long val, struct net_device *dev,
332 int switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event,
334 bool (*check_cb)(const struct net_device *dev),
335 bool (*foreign_dev_check_cb)(const struct net_device *dev,
336 const struct net_device *foreign_dev),
337 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev,
341 int switchdev_handle_port_obj_add(struct net_device *dev,
343 bool (*check_cb)(const struct net_device *dev),
344 int (*add_cb)(struct net_device *dev, const void *ctx,
347 int switchdev_handle_port_obj_add_foreign(struct net_device *dev,
349 bool (*check_cb)(const struct net_device *dev),
350 bool (*foreign_dev_check_cb)(const struct net_device *dev,
351 const struct net_device *foreign_dev),
352 int (*add_cb)(struct net_device *dev, const void *ctx,
355 int switchdev_handle_port_obj_del(struct net_device *dev,
357 bool (*check_cb)(const struct net_device *dev),
358 int (*del_cb)(struct net_device *dev, const void *ctx,
360 int switchdev_handle_port_obj_del_foreign(struct net_device *dev,
362 bool (*check_cb)(const struct net_device *dev),
363 bool (*foreign_dev_check_cb)(const struct net_device *dev,
364 const struct net_device *foreign_dev),
365 int (*del_cb)(struct net_device *dev, const void *ctx,
368 int switchdev_handle_port_attr_set(struct net_device *dev,
370 bool (*check_cb)(const struct net_device *dev),
371 int (*set_cb)(struct net_device *dev, const void *ctx,
377 switchdev_bridge_port_offload(struct net_device *brport_dev, in switchdev_bridge_port_offload()
378 struct net_device *dev, const void *ctx, in switchdev_bridge_port_offload()
388 switchdev_bridge_port_unoffload(struct net_device *brport_dev, in switchdev_bridge_port_unoffload()
399 static inline int switchdev_port_attr_set(struct net_device *dev, in switchdev_port_attr_set()
406 static inline int switchdev_port_obj_add(struct net_device *dev, in switchdev_port_obj_add()
413 static inline int switchdev_port_obj_del(struct net_device *dev, in switchdev_port_obj_del()
430 struct net_device *dev, in call_switchdev_notifiers()
451 struct net_device *dev, in call_switchdev_blocking_notifiers()
459 switchdev_handle_fdb_event_to_device(struct net_device *dev, unsigned long event, in switchdev_handle_fdb_event_to_device()
461 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_fdb_event_to_device()
462 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_fdb_event_to_device()
463 const struct net_device *foreign_dev), in switchdev_handle_fdb_event_to_device()
464 int (*mod_cb)(struct net_device *dev, struct net_device *orig_dev, in switchdev_handle_fdb_event_to_device()
472 switchdev_handle_port_obj_add(struct net_device *dev, in switchdev_handle_port_obj_add()
474 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add()
475 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add()
482 static inline int switchdev_handle_port_obj_add_foreign(struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
484 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_add_foreign()
485 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_add_foreign()
486 const struct net_device *foreign_dev), in switchdev_handle_port_obj_add_foreign()
487 int (*add_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_add_foreign()
495 switchdev_handle_port_obj_del(struct net_device *dev, in switchdev_handle_port_obj_del()
497 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del()
498 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del()
505 switchdev_handle_port_obj_del_foreign(struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
507 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_obj_del_foreign()
508 bool (*foreign_dev_check_cb)(const struct net_device *dev, in switchdev_handle_port_obj_del_foreign()
509 const struct net_device *foreign_dev), in switchdev_handle_port_obj_del_foreign()
510 int (*del_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_obj_del_foreign()
517 switchdev_handle_port_attr_set(struct net_device *dev, in switchdev_handle_port_attr_set()
519 bool (*check_cb)(const struct net_device *dev), in switchdev_handle_port_attr_set()
520 int (*set_cb)(struct net_device *dev, const void *ctx, in switchdev_handle_port_attr_set()