Lines Matching refs:switchdev_work

2717 	struct rocker_switchdev_event_work *switchdev_work =  in rocker_switchdev_event_work()  local
2719 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2724 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2726 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2737 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2747 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2748 kfree(switchdev_work); in rocker_switchdev_event_work()
2757 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2768 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2769 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
2772 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work); in rocker_switchdev_event()
2773 switchdev_work->rocker_port = rocker_port; in rocker_switchdev_event()
2774 switchdev_work->event = event; in rocker_switchdev_event()
2779 memcpy(&switchdev_work->fdb_info, ptr, in rocker_switchdev_event()
2780 sizeof(switchdev_work->fdb_info)); in rocker_switchdev_event()
2781 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in rocker_switchdev_event()
2782 if (unlikely(!switchdev_work->fdb_info.addr)) { in rocker_switchdev_event()
2783 kfree(switchdev_work); in rocker_switchdev_event()
2787 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in rocker_switchdev_event()
2793 kfree(switchdev_work); in rocker_switchdev_event()
2798 &switchdev_work->work); in rocker_switchdev_event()