Lines Matching refs:switchdev_work

1428 	struct adin1110_switchdev_event_work *switchdev_work;  in adin1110_switchdev_event_work()  local
1432 switchdev_work = container_of(work, struct adin1110_switchdev_event_work, work); in adin1110_switchdev_event_work()
1433 port_priv = switchdev_work->port_priv; in adin1110_switchdev_event_work()
1437 switch (switchdev_work->event) { in adin1110_switchdev_event_work()
1439 ret = adin1110_fdb_add(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1442 &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1445 adin1110_fdb_del(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1453 kfree(switchdev_work->fdb_info.addr); in adin1110_switchdev_event_work()
1454 kfree(switchdev_work); in adin1110_switchdev_event_work()
1464 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event() local
1470 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in adin1110_switchdev_event()
1471 if (WARN_ON(!switchdev_work)) in adin1110_switchdev_event()
1474 INIT_WORK(&switchdev_work->work, adin1110_switchdev_event_work); in adin1110_switchdev_event()
1475 switchdev_work->port_priv = port_priv; in adin1110_switchdev_event()
1476 switchdev_work->event = event; in adin1110_switchdev_event()
1481 memcpy(&switchdev_work->fdb_info, ptr, in adin1110_switchdev_event()
1482 sizeof(switchdev_work->fdb_info)); in adin1110_switchdev_event()
1483 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in adin1110_switchdev_event()
1485 if (!switchdev_work->fdb_info.addr) in adin1110_switchdev_event()
1488 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in adin1110_switchdev_event()
1493 kfree(switchdev_work); in adin1110_switchdev_event()
1497 queue_work(system_long_wq, &switchdev_work->work); in adin1110_switchdev_event()
1502 kfree(switchdev_work); in adin1110_switchdev_event()