Lines Matching refs:switchdev_work

2757 	struct rocker_switchdev_event_work *switchdev_work =  in rocker_switchdev_event_work()  local
2759 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2764 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2766 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2777 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2787 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2788 kfree(switchdev_work); in rocker_switchdev_event_work()
2797 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2808 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2809 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
2812 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work); in rocker_switchdev_event()
2813 switchdev_work->rocker_port = rocker_port; in rocker_switchdev_event()
2814 switchdev_work->event = event; in rocker_switchdev_event()
2819 memcpy(&switchdev_work->fdb_info, ptr, in rocker_switchdev_event()
2820 sizeof(switchdev_work->fdb_info)); in rocker_switchdev_event()
2821 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in rocker_switchdev_event()
2822 if (unlikely(!switchdev_work->fdb_info.addr)) { in rocker_switchdev_event()
2823 kfree(switchdev_work); in rocker_switchdev_event()
2827 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in rocker_switchdev_event()
2833 kfree(switchdev_work); in rocker_switchdev_event()
2838 &switchdev_work->work); in rocker_switchdev_event()