Lines Matching refs:wrk
341 static void smcd_handle_sw_event(struct smc_ism_event_work *wrk) in smcd_handle_sw_event() argument
345 ev_info.info = wrk->event.info; in smcd_handle_sw_event()
346 switch (wrk->event.code) { in smcd_handle_sw_event()
348 smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); in smcd_handle_sw_event()
353 wrk->smcd->ops->signal_event(wrk->smcd, in smcd_handle_sw_event()
354 wrk->event.tok, in smcd_handle_sw_event()
366 struct smc_ism_event_work *wrk = in smc_ism_event_work() local
369 switch (wrk->event.type) { in smc_ism_event_work()
371 smc_smcd_terminate(wrk->smcd, wrk->event.tok, VLAN_VID_MASK); in smc_ism_event_work()
376 smcd_handle_sw_event(wrk); in smc_ism_event_work()
379 kfree(wrk); in smc_ism_event_work()
480 struct smc_ism_event_work *wrk; in smcd_handle_event() local
485 wrk = kmalloc(sizeof(*wrk), GFP_ATOMIC); in smcd_handle_event()
486 if (!wrk) in smcd_handle_event()
488 INIT_WORK(&wrk->work, smc_ism_event_work); in smcd_handle_event()
489 wrk->smcd = smcd; in smcd_handle_event()
490 wrk->event = *event; in smcd_handle_event()
491 queue_work(smcd->event_wq, &wrk->work); in smcd_handle_event()