Lines Matching refs:wrk
225 static void smcd_handle_sw_event(struct smc_ism_event_work *wrk) in smcd_handle_sw_event() argument
229 ev_info.info = wrk->event.info; in smcd_handle_sw_event()
230 switch (wrk->event.code) { in smcd_handle_sw_event()
232 smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); in smcd_handle_sw_event()
237 wrk->smcd->ops->signal_event(wrk->smcd, in smcd_handle_sw_event()
238 wrk->event.tok, in smcd_handle_sw_event()
268 struct smc_ism_event_work *wrk = in smc_ism_event_work() local
271 switch (wrk->event.type) { in smc_ism_event_work()
273 smc_smcd_terminate(wrk->smcd, wrk->event.tok, VLAN_VID_MASK); in smc_ism_event_work()
278 smcd_handle_sw_event(wrk); in smc_ism_event_work()
281 kfree(wrk); in smc_ism_event_work()
401 struct smc_ism_event_work *wrk; in smcd_handle_event() local
406 wrk = kmalloc(sizeof(*wrk), GFP_ATOMIC); in smcd_handle_event()
407 if (!wrk) in smcd_handle_event()
409 INIT_WORK(&wrk->work, smc_ism_event_work); in smcd_handle_event()
410 wrk->smcd = smcd; in smcd_handle_event()
411 wrk->event = *event; in smcd_handle_event()
412 queue_work(smcd->event_wq, &wrk->work); in smcd_handle_event()