Lines Matching refs:switchdev_work

1572 	struct dsa_switchdev_event_work *switchdev_work =  in dsa_slave_switchdev_event_work()  local
1574 struct net_device *dev = switchdev_work->dev; in dsa_slave_switchdev_event_work()
1580 switch (switchdev_work->event) { in dsa_slave_switchdev_event_work()
1582 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1597 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1610 kfree(switchdev_work->fdb_info.addr); in dsa_slave_switchdev_event_work()
1611 kfree(switchdev_work); in dsa_slave_switchdev_event_work()
1617 switchdev_work, in dsa_slave_switchdev_fdb_work_init()
1621 memcpy(&switchdev_work->fdb_info, fdb_info, in dsa_slave_switchdev_fdb_work_init()
1622 sizeof(switchdev_work->fdb_info)); in dsa_slave_switchdev_fdb_work_init()
1623 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in dsa_slave_switchdev_fdb_work_init()
1624 if (!switchdev_work->fdb_info.addr) in dsa_slave_switchdev_fdb_work_init()
1626 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in dsa_slave_switchdev_fdb_work_init()
1636 struct dsa_switchdev_event_work *switchdev_work; in dsa_slave_switchdev_event() local
1649 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dsa_slave_switchdev_event()
1650 if (!switchdev_work) in dsa_slave_switchdev_event()
1653 INIT_WORK(&switchdev_work->work, in dsa_slave_switchdev_event()
1655 switchdev_work->dev = dev; in dsa_slave_switchdev_event()
1656 switchdev_work->event = event; in dsa_slave_switchdev_event()
1661 if (dsa_slave_switchdev_fdb_work_init(switchdev_work, ptr)) in dsa_slave_switchdev_event()
1666 kfree(switchdev_work); in dsa_slave_switchdev_event()
1670 dsa_schedule_work(&switchdev_work->work); in dsa_slave_switchdev_event()
1674 kfree(switchdev_work); in dsa_slave_switchdev_event()