Searched refs:s1394_statep (Results 1 – 4 of 4) sorted by relevance
43 s1394_state_t *s1394_statep; variable103 s1394_statep = kmem_zalloc(sizeof (s1394_state_t), KM_SLEEP); in s1394_init()105 s1394_statep->hal_head = NULL; in s1394_init()106 s1394_statep->hal_tail = NULL; in s1394_init()107 mutex_init(&s1394_statep->hal_list_mutex, NULL, MUTEX_DRIVER, NULL); in s1394_init()120 mutex_destroy(&s1394_statep->hal_list_mutex); in s1394_fini()122 kmem_free(s1394_statep, sizeof (s1394_state_t)); in s1394_fini()
64 mutex_enter(&s1394_statep->hal_list_mutex); in s1394_cleanup_for_detach()65 if ((s1394_statep->hal_head == hal) && in s1394_cleanup_for_detach()66 (s1394_statep->hal_tail == hal)) { in s1394_cleanup_for_detach()67 s1394_statep->hal_head = NULL; in s1394_cleanup_for_detach()68 s1394_statep->hal_tail = NULL; in s1394_cleanup_for_detach()74 if (s1394_statep->hal_head == hal) in s1394_cleanup_for_detach()75 s1394_statep->hal_head = hal->hal_next; in s1394_cleanup_for_detach()76 if (s1394_statep->hal_tail == hal) in s1394_cleanup_for_detach()77 s1394_statep->hal_tail = hal->hal_prev; in s1394_cleanup_for_detach()79 mutex_exit(&s1394_statep->hal_list_mutex); in s1394_cleanup_for_detach()[all …]
281 mutex_enter(&s1394_statep->hal_list_mutex); in h1394_attach()282 if ((s1394_statep->hal_head == NULL) && in h1394_attach()283 (s1394_statep->hal_tail == NULL)) { in h1394_attach()284 s1394_statep->hal_head = hal; in h1394_attach()285 s1394_statep->hal_tail = hal; in h1394_attach()287 s1394_statep->hal_tail->hal_next = hal; in h1394_attach()288 hal->hal_prev = s1394_statep->hal_tail; in h1394_attach()289 s1394_statep->hal_tail = hal; in h1394_attach()291 mutex_exit(&s1394_statep->hal_list_mutex); in h1394_attach()
907 extern s1394_state_t *s1394_statep;