Lines Matching refs:switchdev_work

1448 	struct adin1110_switchdev_event_work *switchdev_work;  in adin1110_switchdev_event_work()  local
1452 switchdev_work = container_of(work, struct adin1110_switchdev_event_work, work); in adin1110_switchdev_event_work()
1453 port_priv = switchdev_work->port_priv; in adin1110_switchdev_event_work()
1457 switch (switchdev_work->event) { in adin1110_switchdev_event_work()
1459 ret = adin1110_fdb_add(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1462 &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1465 adin1110_fdb_del(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1473 kfree(switchdev_work->fdb_info.addr); in adin1110_switchdev_event_work()
1474 kfree(switchdev_work); in adin1110_switchdev_event_work()
1484 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event() local
1490 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in adin1110_switchdev_event()
1491 if (WARN_ON(!switchdev_work)) in adin1110_switchdev_event()
1494 INIT_WORK(&switchdev_work->work, adin1110_switchdev_event_work); in adin1110_switchdev_event()
1495 switchdev_work->port_priv = port_priv; in adin1110_switchdev_event()
1496 switchdev_work->event = event; in adin1110_switchdev_event()
1501 memcpy(&switchdev_work->fdb_info, ptr, in adin1110_switchdev_event()
1502 sizeof(switchdev_work->fdb_info)); in adin1110_switchdev_event()
1503 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in adin1110_switchdev_event()
1505 if (!switchdev_work->fdb_info.addr) in adin1110_switchdev_event()
1508 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in adin1110_switchdev_event()
1513 kfree(switchdev_work); in adin1110_switchdev_event()
1517 queue_work(system_long_wq, &switchdev_work->work); in adin1110_switchdev_event()
1522 kfree(switchdev_work); in adin1110_switchdev_event()