Lines Matching refs:evtp
118 struct lpfc_work_evt *evtp;
164 evtp = &ndlp->dev_loss_evt;
166 if (!list_empty(&evtp->evt_listp)) {
181 evtp->evt_arg1 = lpfc_nlp_get(ndlp);
184 if (evtp->evt_arg1) {
185 evtp->evt = LPFC_EVT_DEV_LOSS;
186 list_add_tail(&evtp->evt_listp, &phba->work_list);
443 * @evtp: Event data structure.
451 struct lpfc_work_evt *evtp)
459 fast_evt_data = container_of(evtp, struct lpfc_fast_path_event,
519 struct lpfc_work_evt *evtp = NULL;
527 list_remove_head((&phba->work_list), evtp, typeof(*evtp),
531 switch (evtp->evt) {
533 ndlp = (struct lpfc_nodelist *) (evtp->evt_arg1);
542 ndlp = (struct lpfc_nodelist *)(evtp->evt_arg1);
556 ndlp = (struct lpfc_nodelist *)(evtp->evt_arg1);
566 *(int *) (evtp->evt_arg1) = lpfc_online(phba);
568 *(int *) (evtp->evt_arg1) = 0;
569 complete((struct completion *)(evtp->evt_arg2));
574 *(int *)(evtp->evt_arg1) = 0;
575 complete((struct completion *)(evtp->evt_arg2));
580 *(int *)(evtp->evt_arg1) =
583 complete((struct completion *)(evtp->evt_arg2));
590 *(int *)(evtp->evt_arg1) =
593 complete((struct completion *)(evtp->evt_arg2));
597 *(int *)(evtp->evt_arg1)
601 complete((struct completion *)(evtp->evt_arg2));
604 lpfc_send_fastpath_evt(phba, evtp);
613 kfree(evtp);
797 struct lpfc_work_evt *evtp;
804 evtp = kmalloc(sizeof(struct lpfc_work_evt), GFP_ATOMIC);
805 if (!evtp)
808 evtp->evt_arg1 = arg1;
809 evtp->evt_arg2 = arg2;
810 evtp->evt = evt;
813 list_add_tail(&evtp->evt_listp, &phba->work_list);