Lines Matching refs:event_log
326 if (event >= 128 || !event || !ioc->event_log) in _ctl_check_event_type()
345 struct MPT3_IOCTL_EVENTS *event_log; in mpt3sas_ctl_add_to_event_log() local
351 if (!ioc->event_log) in mpt3sas_ctl_add_to_event_log()
360 event_log = ioc->event_log; in mpt3sas_ctl_add_to_event_log()
361 event_log[i].event = event; in mpt3sas_ctl_add_to_event_log()
362 event_log[i].context = ioc->event_context++; in mpt3sas_ctl_add_to_event_log()
366 memset(event_log[i].data, 0, MPT3_EVENT_DATA_SIZE); in mpt3sas_ctl_add_to_event_log()
367 memcpy(event_log[i].data, mpi_reply->EventData, sz); in mpt3sas_ctl_add_to_event_log()
1265 if (ioc->event_log) in _ctl_eventenable()
1270 ioc->event_log = kcalloc(MPT3SAS_CTL_EVENT_LOG_SIZE, in _ctl_eventenable()
1272 if (!ioc->event_log) { in _ctl_eventenable()
1309 if (!max || !ioc->event_log) in _ctl_eventreport()
1313 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport()
4183 kfree(ioc->event_log); in mpt3sas_ctl_exit()