Lines Matching defs:event
210 struct aac_event *event, void *arg);
321 "shutdown event registration failed\n");
426 aacraid_add_event(struct aac_softc *sc, struct aac_event *event)
429 switch (event->ev_type & AAC_EVENT_MASK) {
431 TAILQ_INSERT_TAIL(&sc->aac_ev_cmfree, event, ev_links);
434 device_printf(sc->aac_dev, "aac_add event: unknown event %d\n",
435 event->ev_type);
1135 struct aac_event *event;
1167 while ((event = TAILQ_FIRST(&sc->aac_ev_cmfree)) != NULL) {
1168 TAILQ_REMOVE(&sc->aac_ev_cmfree, event, ev_links);
1169 event->ev_callback(sc, event, event->ev_arg);
2737 aac_ioctl_event(struct aac_softc *sc, struct aac_event *event, void *arg)
2740 switch (event->ev_type) {
2744 aacraid_add_event(sc, event);
2747 free(event, M_AACRAIDBUF);
2773 struct aac_event *event;
2775 event = malloc(sizeof(struct aac_event), M_AACRAIDBUF,
2777 if (event == NULL) {
2782 event->ev_type = AAC_EVENT_CMFREE;
2783 event->ev_callback = aac_ioctl_event;
2784 event->ev_arg = &cm;
2785 aacraid_add_event(sc, event);
2863 struct aac_event *event;
2865 event = malloc(sizeof(struct aac_event), M_AACRAIDBUF,
2867 if (event == NULL) {
2872 event->ev_type = AAC_EVENT_CMFREE;
2873 event->ev_callback = aac_ioctl_event;
2874 event->ev_arg = &cm;
2875 aacraid_add_event(sc, event);
3130 /* Is it an event that we should care about? */