Lines Matching refs:switchdev_work

2062 	struct dsa_switchdev_event_work *switchdev_work =  in dsa_slave_switchdev_event_work()  local
2064 struct net_device *dev = switchdev_work->dev; in dsa_slave_switchdev_event_work()
2070 switch (switchdev_work->event) { in dsa_slave_switchdev_event_work()
2072 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
2087 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
2100 kfree(switchdev_work->fdb_info.addr); in dsa_slave_switchdev_event_work()
2101 kfree(switchdev_work); in dsa_slave_switchdev_event_work()
2107 switchdev_work, in dsa_slave_switchdev_fdb_work_init()
2111 memcpy(&switchdev_work->fdb_info, fdb_info, in dsa_slave_switchdev_fdb_work_init()
2112 sizeof(switchdev_work->fdb_info)); in dsa_slave_switchdev_fdb_work_init()
2113 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in dsa_slave_switchdev_fdb_work_init()
2114 if (!switchdev_work->fdb_info.addr) in dsa_slave_switchdev_fdb_work_init()
2116 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in dsa_slave_switchdev_fdb_work_init()
2126 struct dsa_switchdev_event_work *switchdev_work; in dsa_slave_switchdev_event() local
2139 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dsa_slave_switchdev_event()
2140 if (!switchdev_work) in dsa_slave_switchdev_event()
2143 INIT_WORK(&switchdev_work->work, in dsa_slave_switchdev_event()
2145 switchdev_work->dev = dev; in dsa_slave_switchdev_event()
2146 switchdev_work->event = event; in dsa_slave_switchdev_event()
2151 if (dsa_slave_switchdev_fdb_work_init(switchdev_work, ptr)) in dsa_slave_switchdev_event()
2156 kfree(switchdev_work); in dsa_slave_switchdev_event()
2160 dsa_schedule_work(&switchdev_work->work); in dsa_slave_switchdev_event()
2164 kfree(switchdev_work); in dsa_slave_switchdev_event()