Lines Matching defs:event
124 static int g_raid_update_disk(struct g_raid_disk *disk, u_int event);
125 static int g_raid_update_subdisk(struct g_raid_subdisk *subdisk, u_int event);
126 static int g_raid_update_volume(struct g_raid_volume *vol, u_int event);
127 static int g_raid_update_node(struct g_raid_softc *sc, u_int event);
136 g_raid_node_event2str(int event)
139 switch (event) {
176 g_raid_disk_event2str(int event)
179 switch (event) {
214 g_raid_subdisk_event2str(int event)
217 switch (event) {
254 g_raid_volume_event2str(int event)
257 switch (event) {
612 g_raid_event_send(void *arg, int event, int flags)
632 ep->e_event = event;
635 G_RAID_DEBUG1(4, sc, "Sending event %p. Waking up %p.", ep, sc);
649 MSLEEP(error, ep, &sc->sc_queue_mtx, PRIBIO | PDROP, "m:event",
878 * After retaste event was send (inside g_access()), we can send
879 * event to detach and destroy consumer.
881 * will not receive retaste event for the provider.
884 * after retaste event is sent.
1715 g_raid_update_volume(struct g_raid_volume *vol, u_int event)
1723 g_raid_volume_event2str(event),
1725 switch (event) {
1740 G_RAID_MD_VOLUME_EVENT(sc->sc_md, vol, event);
1760 g_raid_update_subdisk(struct g_raid_subdisk *sd, u_int event)
1770 g_raid_subdisk_event2str(event),
1774 G_RAID_TR_EVENT(vol->v_tr, sd, event);
1783 g_raid_update_disk(struct g_raid_disk *disk, u_int event)
1791 g_raid_disk_event2str(event),
1795 G_RAID_MD_EVENT(sc->sc_md, disk, event);
1800 * Node event.
1803 g_raid_update_node(struct g_raid_softc *sc, u_int event)
1808 g_raid_node_event2str(event));
1810 if (event == G_RAID_NODE_E_WAKE)
1813 G_RAID_MD_EVENT(sc->sc_md, NULL, event);
2484 G_RAID_DEBUG(0, "Warning! Cannot register shutdown event.");