Lines Matching defs:event
212 struct aac_event *event, void *arg);
336 "shutdown event registration failed\n");
373 aac_add_event(struct aac_softc *sc, struct aac_event *event)
376 switch (event->ev_type & AAC_EVENT_MASK) {
378 TAILQ_INSERT_TAIL(&sc->aac_ev_cmfree, event, ev_links);
381 device_printf(sc->aac_dev, "aac_add event: unknown event %d\n",
382 event->ev_type);
1407 struct aac_event *event;
1435 if ((event = TAILQ_FIRST(&sc->aac_ev_cmfree)) != NULL) {
1436 TAILQ_REMOVE(&sc->aac_ev_cmfree, event, ev_links);
1437 event->ev_callback(sc, event, event->ev_arg);
2944 aac_ioctl_event(struct aac_softc *sc, struct aac_event *event, void *arg)
2947 switch (event->ev_type) {
2951 aac_add_event(sc, event);
2954 free(event, M_AACBUF);
2980 struct aac_event *event;
2982 event = malloc(sizeof(struct aac_event), M_AACBUF,
2984 if (event == NULL) {
2989 event->ev_type = AAC_EVENT_CMFREE;
2990 event->ev_callback = aac_ioctl_event;
2991 event->ev_arg = &cm;
2992 aac_add_event(sc, event);
3053 struct aac_event *event;
3071 event = malloc(sizeof(struct aac_event), M_AACBUF,
3073 if (event == NULL) {
3078 event->ev_type = AAC_EVENT_CMFREE;
3079 event->ev_callback = aac_ioctl_event;
3080 event->ev_arg = &cm;
3081 aac_add_event(sc, event);
3238 /* Is it an event that we should care about? */