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

/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_bsg.c909 struct event_data *evt_dat = NULL; lpfc_bsg_ct_unsol_event() local
959 evt_dat = kzalloc(sizeof(*evt_dat), GFP_KERNEL); lpfc_bsg_ct_unsol_event()
960 if (evt_dat == NULL) { lpfc_bsg_ct_unsol_event()
972 evt_dat->len = iocbq->iocb.unsli3.rcvsli3.acc_len; lpfc_bsg_ct_unsol_event()
976 evt_dat->len += lpfc_bsg_ct_unsol_event()
981 evt_dat->data = kzalloc(evt_dat->len, GFP_KERNEL); lpfc_bsg_ct_unsol_event()
982 if (evt_dat->data == NULL) { lpfc_bsg_ct_unsol_event()
986 evt_dat->len); lpfc_bsg_ct_unsol_event()
987 kfree(evt_dat); lpfc_bsg_ct_unsol_event()
1015 if ((offset + size) > evt_dat->len) lpfc_bsg_ct_unsol_event()
1016 size = evt_dat->len - offset; lpfc_bsg_ct_unsol_event()
1031 kfree(evt_dat->data); lpfc_bsg_ct_unsol_event()
1032 kfree(evt_dat); lpfc_bsg_ct_unsol_event()
1040 memcpy((char *)(evt_dat->data) + offset, lpfc_bsg_ct_unsol_event()
1085 evt_dat->immed_dat = phba->ctx_idx; lpfc_bsg_ct_unsol_event()
1088 if (phba->ct_ctx[evt_dat->immed_dat].valid == lpfc_bsg_ct_unsol_event()
1095 evt_dat->immed_dat].oxid, lpfc_bsg_ct_unsol_event()
1097 evt_dat->immed_dat].SID); lpfc_bsg_ct_unsol_event()
1098 phba->ct_ctx[evt_dat->immed_dat].rxid = lpfc_bsg_ct_unsol_event()
1100 phba->ct_ctx[evt_dat->immed_dat].oxid = lpfc_bsg_ct_unsol_event()
1102 phba->ct_ctx[evt_dat->immed_dat].SID = lpfc_bsg_ct_unsol_event()
1104 phba->ct_ctx[evt_dat->immed_dat].valid = UNSOL_VALID; lpfc_bsg_ct_unsol_event()
1106 evt_dat->immed_dat = piocbq->iocb.ulpContext; lpfc_bsg_ct_unsol_event()
1108 evt_dat->type = FC_REG_CT_EVENT; lpfc_bsg_ct_unsol_event()
1109 list_add(&evt_dat->node, &evt->events_to_see); lpfc_bsg_ct_unsol_event()
1281 struct event_data *evt_dat = NULL; lpfc_bsg_hba_get_event() local
1306 evt_dat = list_entry(evt->events_to_get.prev, lpfc_bsg_hba_get_event()
1308 list_del(&evt_dat->node); lpfc_bsg_hba_get_event()
1317 if (evt_dat == NULL) { lpfc_bsg_hba_get_event()
1323 if (evt_dat->len > job->request_payload.payload_len) { lpfc_bsg_hba_get_event()
1324 evt_dat->len = job->request_payload.payload_len; lpfc_bsg_hba_get_event()
1331 event_reply->type = evt_dat->type; lpfc_bsg_hba_get_event()
1332 event_reply->immed_data = evt_dat->immed_dat; lpfc_bsg_hba_get_event()
1333 if (evt_dat->len > 0) lpfc_bsg_hba_get_event()
1337 evt_dat->data, evt_dat->len); lpfc_bsg_hba_get_event()
1341 if (evt_dat) { lpfc_bsg_hba_get_event()
1342 kfree(evt_dat->data); lpfc_bsg_hba_get_event()
1343 kfree(evt_dat); lpfc_bsg_hba_get_event()

Completed in 80 milliseconds