Searched refs:evt_dat (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_bsg.c910 struct event_data *evt_dat = NULL; lpfc_bsg_ct_unsol_event() local
961 evt_dat = kzalloc(sizeof(*evt_dat), GFP_KERNEL); lpfc_bsg_ct_unsol_event()
962 if (evt_dat == NULL) { lpfc_bsg_ct_unsol_event()
974 evt_dat->len = iocbq->iocb.unsli3.rcvsli3.acc_len; lpfc_bsg_ct_unsol_event()
978 evt_dat->len += lpfc_bsg_ct_unsol_event()
983 evt_dat->data = kzalloc(evt_dat->len, GFP_KERNEL); lpfc_bsg_ct_unsol_event()
984 if (evt_dat->data == NULL) { lpfc_bsg_ct_unsol_event()
988 evt_dat->len); lpfc_bsg_ct_unsol_event()
989 kfree(evt_dat); lpfc_bsg_ct_unsol_event()
1017 if ((offset + size) > evt_dat->len) lpfc_bsg_ct_unsol_event()
1018 size = evt_dat->len - offset; lpfc_bsg_ct_unsol_event()
1033 kfree(evt_dat->data); lpfc_bsg_ct_unsol_event()
1034 kfree(evt_dat); lpfc_bsg_ct_unsol_event()
1042 memcpy((char *)(evt_dat->data) + offset, lpfc_bsg_ct_unsol_event()
1087 evt_dat->immed_dat = phba->ctx_idx; lpfc_bsg_ct_unsol_event()
1090 if (phba->ct_ctx[evt_dat->immed_dat].valid == lpfc_bsg_ct_unsol_event()
1097 evt_dat->immed_dat].oxid, lpfc_bsg_ct_unsol_event()
1099 evt_dat->immed_dat].SID); lpfc_bsg_ct_unsol_event()
1100 phba->ct_ctx[evt_dat->immed_dat].rxid = lpfc_bsg_ct_unsol_event()
1102 phba->ct_ctx[evt_dat->immed_dat].oxid = lpfc_bsg_ct_unsol_event()
1104 phba->ct_ctx[evt_dat->immed_dat].SID = lpfc_bsg_ct_unsol_event()
1106 phba->ct_ctx[evt_dat->immed_dat].valid = UNSOL_VALID; lpfc_bsg_ct_unsol_event()
1108 evt_dat->immed_dat = piocbq->iocb.ulpContext; lpfc_bsg_ct_unsol_event()
1110 evt_dat->type = FC_REG_CT_EVENT; lpfc_bsg_ct_unsol_event()
1111 list_add(&evt_dat->node, &evt->events_to_see); lpfc_bsg_ct_unsol_event()
1283 struct event_data *evt_dat = NULL; lpfc_bsg_hba_get_event() local
1308 evt_dat = list_entry(evt->events_to_get.prev, lpfc_bsg_hba_get_event()
1310 list_del(&evt_dat->node); lpfc_bsg_hba_get_event()
1319 if (evt_dat == NULL) { lpfc_bsg_hba_get_event()
1325 if (evt_dat->len > job->request_payload.payload_len) { lpfc_bsg_hba_get_event()
1326 evt_dat->len = job->request_payload.payload_len; lpfc_bsg_hba_get_event()
1333 event_reply->type = evt_dat->type; lpfc_bsg_hba_get_event()
1334 event_reply->immed_data = evt_dat->immed_dat; lpfc_bsg_hba_get_event()
1335 if (evt_dat->len > 0) lpfc_bsg_hba_get_event()
1339 evt_dat->data, evt_dat->len); lpfc_bsg_hba_get_event()
1343 if (evt_dat) { lpfc_bsg_hba_get_event()
1344 kfree(evt_dat->data); lpfc_bsg_hba_get_event()
1345 kfree(evt_dat); lpfc_bsg_hba_get_event()

Completed in 77 milliseconds