Lines Matching refs:evtp

110 	struct lpfc_work_evt *evtp;  in lpfc_dev_loss_tmo_callbk()  local
145 evtp = &ndlp->dev_loss_evt; in lpfc_dev_loss_tmo_callbk()
147 if (!list_empty(&evtp->evt_listp)) in lpfc_dev_loss_tmo_callbk()
154 evtp->evt_arg1 = lpfc_nlp_get(ndlp); in lpfc_dev_loss_tmo_callbk()
155 if (evtp->evt_arg1) { in lpfc_dev_loss_tmo_callbk()
156 evtp->evt = LPFC_EVT_DEV_LOSS; in lpfc_dev_loss_tmo_callbk()
157 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_dev_loss_tmo_callbk()
421 struct lpfc_work_evt *evtp) in lpfc_send_fastpath_evt() argument
429 fast_evt_data = container_of(evtp, struct lpfc_fast_path_event, in lpfc_send_fastpath_evt()
488 struct lpfc_work_evt *evtp = NULL; in lpfc_work_list_done() local
496 list_remove_head((&phba->work_list), evtp, typeof(*evtp), in lpfc_work_list_done()
500 switch (evtp->evt) { in lpfc_work_list_done()
502 ndlp = (struct lpfc_nodelist *) (evtp->evt_arg1); in lpfc_work_list_done()
511 ndlp = (struct lpfc_nodelist *)(evtp->evt_arg1); in lpfc_work_list_done()
526 *(int *) (evtp->evt_arg1) = lpfc_online(phba); in lpfc_work_list_done()
528 *(int *) (evtp->evt_arg1) = 0; in lpfc_work_list_done()
529 complete((struct completion *)(evtp->evt_arg2)); in lpfc_work_list_done()
534 *(int *)(evtp->evt_arg1) = 0; in lpfc_work_list_done()
535 complete((struct completion *)(evtp->evt_arg2)); in lpfc_work_list_done()
540 *(int *)(evtp->evt_arg1) = in lpfc_work_list_done()
543 complete((struct completion *)(evtp->evt_arg2)); in lpfc_work_list_done()
550 *(int *)(evtp->evt_arg1) = in lpfc_work_list_done()
553 complete((struct completion *)(evtp->evt_arg2)); in lpfc_work_list_done()
557 *(int *)(evtp->evt_arg1) in lpfc_work_list_done()
561 complete((struct completion *)(evtp->evt_arg2)); in lpfc_work_list_done()
564 lpfc_send_fastpath_evt(phba, evtp); in lpfc_work_list_done()
573 kfree(evtp); in lpfc_work_list_done()
749 struct lpfc_work_evt *evtp; in lpfc_workq_post_event() local
756 evtp = kmalloc(sizeof(struct lpfc_work_evt), GFP_ATOMIC); in lpfc_workq_post_event()
757 if (!evtp) in lpfc_workq_post_event()
760 evtp->evt_arg1 = arg1; in lpfc_workq_post_event()
761 evtp->evt_arg2 = arg2; in lpfc_workq_post_event()
762 evtp->evt = evt; in lpfc_workq_post_event()
765 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_workq_post_event()