Lines Matching refs:event_log
330 if (event >= 128 || !event || !ioc->event_log) in _ctl_check_event_type()
351 struct MPT2_IOCTL_EVENTS *event_log; in mpt2sas_ctl_add_to_event_log() local
357 if (!ioc->event_log) in mpt2sas_ctl_add_to_event_log()
366 event_log = ioc->event_log; in mpt2sas_ctl_add_to_event_log()
367 event_log[i].event = event; in mpt2sas_ctl_add_to_event_log()
368 event_log[i].context = ioc->event_context++; in mpt2sas_ctl_add_to_event_log()
372 memset(event_log[i].data, 0, MPT2_EVENT_DATA_SIZE); in mpt2sas_ctl_add_to_event_log()
373 memcpy(event_log[i].data, mpi_reply->EventData, sz); in mpt2sas_ctl_add_to_event_log()
1111 if (ioc->event_log) in _ctl_eventenable()
1120 ioc->event_log = kcalloc(MPT2SAS_CTL_EVENT_LOG_SIZE, in _ctl_eventenable()
1122 if (!ioc->event_log) { in _ctl_eventenable()
1159 if (!max || !ioc->event_log) in _ctl_eventreport()
1163 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport()
3072 kfree(ioc->event_log); in mpt2sas_ctl_exit()