Lines Matching defs:work
16 struct work_struct work;
634 struct afk_receive_message_work *work;
637 work = container_of(work_, struct afk_receive_message_work, work);
639 type = FIELD_GET(RBEP_TYPE, work->message);
645 complete_all(&work->ep->started);
649 complete_all(&work->ep->stopped);
653 afk_getbuf(work->ep, work->message);
657 afk_init_rxtx(work->ep, work->message, &work->ep->txbfr);
661 afk_init_rxtx(work->ep, work->message, &work->ep->rxbfr);
665 while (afk_recv(work->ep))
670 dev_err(work->ep->dcp->dev,
674 kfree(work);
679 struct afk_receive_message_work *work;
682 work = kzalloc(sizeof(*work), GFP_KERNEL);
683 if (!work)
686 work->ep = ep;
687 work->message = message;
688 INIT_WORK(&work->work, afk_receive_message_worker);
689 queue_work(ep->wq, &work->work);