Lines Matching refs:wrk
327 static void smcd_handle_sw_event(struct smc_ism_event_work *wrk) in smcd_handle_sw_event() argument
331 ev_info.info = wrk->event.info; in smcd_handle_sw_event()
332 switch (wrk->event.code) { in smcd_handle_sw_event()
334 smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); in smcd_handle_sw_event()
339 wrk->smcd->ops->signal_event(wrk->smcd, in smcd_handle_sw_event()
340 wrk->event.tok, in smcd_handle_sw_event()
370 struct smc_ism_event_work *wrk = in smc_ism_event_work() local
373 switch (wrk->event.type) { in smc_ism_event_work()
375 smc_smcd_terminate(wrk->smcd, wrk->event.tok, VLAN_VID_MASK); in smc_ism_event_work()
380 smcd_handle_sw_event(wrk); in smc_ism_event_work()
383 kfree(wrk); in smc_ism_event_work()
505 struct smc_ism_event_work *wrk; in smcd_handle_event() local
510 wrk = kmalloc(sizeof(*wrk), GFP_ATOMIC); in smcd_handle_event()
511 if (!wrk) in smcd_handle_event()
513 INIT_WORK(&wrk->work, smc_ism_event_work); in smcd_handle_event()
514 wrk->smcd = smcd; in smcd_handle_event()
515 wrk->event = *event; in smcd_handle_event()
516 queue_work(smcd->event_wq, &wrk->work); in smcd_handle_event()