Searched refs:s1394_statep (Results 1 – 4 of 4) sorted by relevance
47 s1394_state_t *s1394_statep; variable134 s1394_statep = kmem_zalloc(sizeof (s1394_state_t), KM_SLEEP); in s1394_init()136 s1394_statep->hal_head = NULL; in s1394_init()137 s1394_statep->hal_tail = NULL; in s1394_init()138 mutex_init(&s1394_statep->hal_list_mutex, NULL, MUTEX_DRIVER, NULL); in s1394_init()154 mutex_destroy(&s1394_statep->hal_list_mutex); in s1394_fini()156 kmem_free(s1394_statep, sizeof (s1394_state_t)); in s1394_fini()
71 mutex_enter(&s1394_statep->hal_list_mutex); in s1394_cleanup_for_detach()72 if ((s1394_statep->hal_head == hal) && in s1394_cleanup_for_detach()73 (s1394_statep->hal_tail == hal)) { in s1394_cleanup_for_detach()74 s1394_statep->hal_head = NULL; in s1394_cleanup_for_detach()75 s1394_statep->hal_tail = NULL; in s1394_cleanup_for_detach()81 if (s1394_statep->hal_head == hal) in s1394_cleanup_for_detach()82 s1394_statep->hal_head = hal->hal_next; in s1394_cleanup_for_detach()83 if (s1394_statep->hal_tail == hal) in s1394_cleanup_for_detach()84 s1394_statep->hal_tail = hal->hal_prev; in s1394_cleanup_for_detach()86 mutex_exit(&s1394_statep->hal_list_mutex); in s1394_cleanup_for_detach()[all …]
320 mutex_enter(&s1394_statep->hal_list_mutex); in h1394_attach()321 if ((s1394_statep->hal_head == NULL) && in h1394_attach()322 (s1394_statep->hal_tail == NULL)) { in h1394_attach()323 s1394_statep->hal_head = hal; in h1394_attach()324 s1394_statep->hal_tail = hal; in h1394_attach()326 s1394_statep->hal_tail->hal_next = hal; in h1394_attach()327 hal->hal_prev = s1394_statep->hal_tail; in h1394_attach()328 s1394_statep->hal_tail = hal; in h1394_attach()330 mutex_exit(&s1394_statep->hal_list_mutex); in h1394_attach()
943 extern s1394_state_t *s1394_statep;