Lines Matching refs:event_data
339 struct ibmasmfs_event_data *event_data; in event_file_open() local
347 event_data = kmalloc(sizeof(struct ibmasmfs_event_data), GFP_KERNEL); in event_file_open()
348 if (!event_data) in event_file_open()
351 ibmasm_event_reader_register(sp, &event_data->reader); in event_file_open()
353 event_data->sp = sp; in event_file_open()
354 event_data->active = 0; in event_file_open()
355 file->private_data = event_data; in event_file_open()
361 struct ibmasmfs_event_data *event_data = file->private_data; in event_file_close() local
363 ibmasm_event_reader_unregister(event_data->sp, &event_data->reader); in event_file_close()
364 kfree(event_data); in event_file_close()
370 struct ibmasmfs_event_data *event_data = file->private_data; in event_file_read() local
371 struct event_reader *reader = &event_data->reader; in event_file_read()
372 struct service_processor *sp = event_data->sp; in event_file_read()
384 if (event_data->active) { in event_file_read()
388 event_data->active = 1; in event_file_read()
407 event_data->active = 0; in event_file_read()
413 struct ibmasmfs_event_data *event_data = file->private_data; in event_file_write() local
422 ibmasm_cancel_next_event(&event_data->reader); in event_file_write()