Lines Matching refs:event
60 struct ibmasm_event *event; in ibmasm_receive_event() local
67 event = &buffer->events[buffer->next_index]; in ibmasm_receive_event()
68 memcpy_fromio(event->data, data, data_size); in ibmasm_receive_event()
69 event->data_size = data_size; in ibmasm_receive_event()
70 event->serial_number = buffer->next_serial_number; in ibmasm_receive_event()
94 struct ibmasm_event *event; in ibmasm_get_next_event() local
110 event = &buffer->events[index]; in ibmasm_get_next_event()
111 while (event->serial_number < reader->next_serial_number) { in ibmasm_get_next_event()
113 event = &buffer->events[index]; in ibmasm_get_next_event()
115 memcpy(reader->data, event->data, event->data_size); in ibmasm_get_next_event()
116 reader->data_size = event->data_size; in ibmasm_get_next_event()
117 reader->next_serial_number = event->serial_number + 1; in ibmasm_get_next_event()
121 return event->data_size; in ibmasm_get_next_event()
153 struct ibmasm_event *event; in ibmasm_event_buffer_init() local
163 event = buffer->events; in ibmasm_event_buffer_init()
164 for (i=0; i<IBMASM_NUM_EVENTS; i++, event++) in ibmasm_event_buffer_init()
165 event->serial_number = 0; in ibmasm_event_buffer_init()