Lines Matching refs:switchdev_work

2017 	struct dsa_switchdev_event_work *switchdev_work =  in dsa_slave_switchdev_event_work()  local
2019 struct net_device *dev = switchdev_work->dev; in dsa_slave_switchdev_event_work()
2025 switch (switchdev_work->event) { in dsa_slave_switchdev_event_work()
2027 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
2042 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
2055 kfree(switchdev_work->fdb_info.addr); in dsa_slave_switchdev_event_work()
2056 kfree(switchdev_work); in dsa_slave_switchdev_event_work()
2062 switchdev_work, in dsa_slave_switchdev_fdb_work_init()
2066 memcpy(&switchdev_work->fdb_info, fdb_info, in dsa_slave_switchdev_fdb_work_init()
2067 sizeof(switchdev_work->fdb_info)); in dsa_slave_switchdev_fdb_work_init()
2068 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in dsa_slave_switchdev_fdb_work_init()
2069 if (!switchdev_work->fdb_info.addr) in dsa_slave_switchdev_fdb_work_init()
2071 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in dsa_slave_switchdev_fdb_work_init()
2081 struct dsa_switchdev_event_work *switchdev_work; in dsa_slave_switchdev_event() local
2094 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dsa_slave_switchdev_event()
2095 if (!switchdev_work) in dsa_slave_switchdev_event()
2098 INIT_WORK(&switchdev_work->work, in dsa_slave_switchdev_event()
2100 switchdev_work->dev = dev; in dsa_slave_switchdev_event()
2101 switchdev_work->event = event; in dsa_slave_switchdev_event()
2106 if (dsa_slave_switchdev_fdb_work_init(switchdev_work, ptr)) in dsa_slave_switchdev_event()
2111 kfree(switchdev_work); in dsa_slave_switchdev_event()
2115 dsa_schedule_work(&switchdev_work->work); in dsa_slave_switchdev_event()
2119 kfree(switchdev_work); in dsa_slave_switchdev_event()