Lines Matching refs:hal
267 s1394_hal_t *hal; in nx1394_dma_allochdl() local
279 hal = s1394_dip_to_hal(ddi_get_parent(rdip)); in nx1394_dma_allochdl()
280 ASSERT(hal); in nx1394_dma_allochdl()
281 hal_attr = &hal->halinfo.dma_attr; in nx1394_dma_allochdl()
299 s1394_hal_t *hal; in nx1394_get_event_cookie() local
301 hal = s1394_dip_to_hal(dip); in nx1394_get_event_cookie()
302 ASSERT(hal); in nx1394_get_event_cookie()
304 ret = ndi_event_retrieve_cookie(hal->hal_ndi_event_hdl, in nx1394_get_event_cookie()
325 s1394_hal_t *hal; in nx1394_add_eventcall() local
330 hal = s1394_dip_to_hal(dip); in nx1394_add_eventcall()
331 ASSERT(hal); in nx1394_add_eventcall()
333 ret = ndi_event_add_callback(hal->hal_ndi_event_hdl, rdip, cookie, in nx1394_add_eventcall()
336 event_name = ndi_event_cookie_to_name(hal->hal_ndi_event_hdl, cookie); in nx1394_add_eventcall()
353 s1394_hal_t *hal; in nx1394_remove_eventcall() local
362 hal = s1394_dip_to_hal(dip); in nx1394_remove_eventcall()
363 ASSERT(hal); in nx1394_remove_eventcall()
365 ret = ndi_event_remove_callback(hal->hal_ndi_event_hdl, cb_id); in nx1394_remove_eventcall()
368 event_name = ndi_event_cookie_to_name(hal->hal_ndi_event_hdl, cookie); in nx1394_remove_eventcall()
393 s1394_hal_t *hal; in nx1394_post_event() local
396 hal = s1394_dip_to_hal(dip); in nx1394_post_event()
397 ASSERT(hal); in nx1394_post_event()
399 name = ndi_event_cookie_to_name(hal->hal_ndi_event_hdl, cookie); in nx1394_post_event()
403 mutex_enter(&hal->topology_tree_mutex); in nx1394_post_event()
404 localinfo.bus_generation = hal->generation_count; in nx1394_post_event()
405 localinfo.local_nodeID = hal->node_id; in nx1394_post_event()
406 mutex_exit(&hal->topology_tree_mutex); in nx1394_post_event()
409 ret = ndi_event_run_callbacks(hal->hal_ndi_event_hdl, in nx1394_post_event()
426 nx1394_define_events(s1394_hal_t *hal) in nx1394_define_events() argument
431 ret = ndi_event_alloc_hdl(hal->halinfo.dip, hal->halinfo.hw_interrupt, in nx1394_define_events()
432 &hal->hal_ndi_event_hdl, NDI_SLEEP); in nx1394_define_events()
435 ret = ndi_event_bind_set(hal->hal_ndi_event_hdl, &nx1394_events, in nx1394_define_events()
438 (void) ndi_event_free_hdl(hal->hal_ndi_event_hdl); in nx1394_define_events()
451 nx1394_undefine_events(s1394_hal_t *hal) in nx1394_undefine_events() argument
455 ret = ndi_event_unbind_set(hal->hal_ndi_event_hdl, &nx1394_events, in nx1394_undefine_events()
458 ret = ndi_event_free_hdl(hal->hal_ndi_event_hdl); in nx1394_undefine_events()