Lines Matching refs:hal
308 s1394_hal_t *hal; in nx1394_dma_allochdl() local
323 hal = s1394_dip_to_hal(ddi_get_parent(rdip)); in nx1394_dma_allochdl()
324 ASSERT(hal); in nx1394_dma_allochdl()
325 hal_attr = &hal->halinfo.dma_attr; in nx1394_dma_allochdl()
345 s1394_hal_t *hal; in nx1394_get_event_cookie() local
350 hal = s1394_dip_to_hal(dip); in nx1394_get_event_cookie()
351 ASSERT(hal); in nx1394_get_event_cookie()
353 ret = ndi_event_retrieve_cookie(hal->hal_ndi_event_hdl, in nx1394_get_event_cookie()
379 s1394_hal_t *hal; in nx1394_add_eventcall() local
384 hal = s1394_dip_to_hal(dip); in nx1394_add_eventcall()
385 ASSERT(hal); in nx1394_add_eventcall()
390 ret = ndi_event_add_callback(hal->hal_ndi_event_hdl, rdip, cookie, in nx1394_add_eventcall()
393 event_name = ndi_event_cookie_to_name(hal->hal_ndi_event_hdl, cookie); in nx1394_add_eventcall()
414 s1394_hal_t *hal; in nx1394_remove_eventcall() local
423 hal = s1394_dip_to_hal(dip); in nx1394_remove_eventcall()
424 ASSERT(hal); in nx1394_remove_eventcall()
429 ret = ndi_event_remove_callback(hal->hal_ndi_event_hdl, cb_id); in nx1394_remove_eventcall()
432 event_name = ndi_event_cookie_to_name(hal->hal_ndi_event_hdl, cookie); in nx1394_remove_eventcall()
461 s1394_hal_t *hal; in nx1394_post_event() local
464 hal = s1394_dip_to_hal(dip); in nx1394_post_event()
465 ASSERT(hal); in nx1394_post_event()
470 name = ndi_event_cookie_to_name(hal->hal_ndi_event_hdl, cookie); in nx1394_post_event()
474 mutex_enter(&hal->topology_tree_mutex); in nx1394_post_event()
475 localinfo.bus_generation = hal->generation_count; in nx1394_post_event()
476 localinfo.local_nodeID = hal->node_id; in nx1394_post_event()
477 mutex_exit(&hal->topology_tree_mutex); in nx1394_post_event()
480 ret = ndi_event_run_callbacks(hal->hal_ndi_event_hdl, in nx1394_post_event()
504 nx1394_define_events(s1394_hal_t *hal) in nx1394_define_events() argument
512 ret = ndi_event_alloc_hdl(hal->halinfo.dip, hal->halinfo.hw_interrupt, in nx1394_define_events()
513 &hal->hal_ndi_event_hdl, NDI_SLEEP); in nx1394_define_events()
519 ret = ndi_event_bind_set(hal->hal_ndi_event_hdl, &nx1394_events, in nx1394_define_events()
524 (void) ndi_event_free_hdl(hal->hal_ndi_event_hdl); in nx1394_define_events()
542 nx1394_undefine_events(s1394_hal_t *hal) in nx1394_undefine_events() argument
549 ret = ndi_event_unbind_set(hal->hal_ndi_event_hdl, &nx1394_events, in nx1394_undefine_events()
555 ret = ndi_event_free_hdl(hal->hal_ndi_event_hdl); in nx1394_undefine_events()