Lines Matching defs:hal

75 	s1394_hal_t	*hal;
97 hal = s1394_dip_to_hal(ddi_get_parent(dip));
98 if (hal == NULL) {
106 ASSERT(MUTEX_NOT_HELD(&hal->topology_tree_mutex));
114 mutex_enter(&hal->topology_tree_mutex);
120 target->on_hal = hal;
135 mutex_exit(&hal->topology_tree_mutex);
153 /* Fill in hal node id */
191 mutex_exit(&hal->topology_tree_mutex);
294 s1394_hal_t *hal;
306 hal = target->on_hal;
308 rw_enter(&hal->target_list_rwlock, RW_WRITER);
314 rw_exit(&hal->target_list_rwlock);
321 hal->hal_kstats->cmd_alloc_fail++;
328 if (s1394_alloc_cmd(hal, flags, cmdp) != DDI_SUCCESS) {
330 rw_exit(&hal->target_list_rwlock);
336 hal->hal_kstats->cmd_alloc_fail++;
340 rw_exit(&hal->target_list_rwlock);
347 hal->halinfo.hw_interrupt);
375 s1394_hal_t *hal;
387 hal = target->on_hal;
389 rw_enter(&hal->target_list_rwlock, RW_WRITER);
395 rw_exit(&hal->target_list_rwlock);
410 rw_exit(&hal->target_list_rwlock);
422 rw_exit(&hal->target_list_rwlock);
430 kmem_cache_free(hal->hal_kmem_cachep, *cmdp);
436 hal->hal_kstats->cmd_free++;
964 s1394_hal_t *hal;
979 hal = target->on_hal;
990 (addr_lo < hal->physical_addr_lo) ||
991 (addr_hi > hal->physical_addr_hi)) {
1007 hal->hal_kstats->addr_alloc_fail++;
1018 (addr_lo < hal->physical_addr_lo) ||
1019 (addr_hi > hal->physical_addr_hi)) {
1035 hal->hal_kstats->addr_alloc_fail++;
1046 (addr_lo < hal->physical_addr_lo) ||
1047 (addr_hi > hal->physical_addr_hi)) {
1063 hal->hal_kstats->addr_alloc_fail++;
1077 hal->hal_kstats->addr_alloc_fail++;
1090 hal->hal_kstats->addr_alloc_fail++;
1094 if ((addr_lo >= hal->physical_addr_lo) &&
1095 (addr_hi <= hal->physical_addr_hi)) {
1096 rw_enter(&hal->target_list_rwlock, RW_WRITER);
1098 rw_exit(&hal->target_list_rwlock);
1129 s1394_hal_t *hal;
1140 hal = target->on_hal;
1144 if (s1394_free_addr_blk(hal, curr_blk) != DDI_SUCCESS) {
1159 hal->hal_kstats->addr_space_free++;
1191 s1394_hal_t *hal;
1210 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
1220 s1394_fa_convert_cmd(hal, resp);
1239 hal->hal_kstats->arreq_posted_write_error++;
1243 HAL_CALL(hal).response_complete(hal->halinfo.hal_private, resp,
1272 HAL_CALL(hal).response_complete(
1273 hal->halinfo.hal_private, resp, h_priv);
1299 HAL_CALL(hal).response_complete(
1300 hal->halinfo.hal_private, resp, h_priv);
1310 ret = s1394_send_response(hal, resp);
1606 s1394_hal_t *hal;
1619 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
1664 hal->halinfo.hw_interrupt);
1666 hal->halinfo.hw_interrupt);
1681 mutex_enter(&hal->isoch_cec_list_mutex);
1684 s1394_isoch_cec_list_insert(hal, cec_new);
1686 mutex_exit(&hal->isoch_cec_list_mutex);
1884 s1394_hal_t *hal;
1895 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
1950 hal->halinfo.hw_interrupt);
1952 hal->halinfo.hw_interrupt);
1968 mutex_enter(&hal->isoch_cec_list_mutex);
1971 s1394_isoch_cec_list_insert(hal, cec_new);
1973 mutex_exit(&hal->isoch_cec_list_mutex);
2003 s1394_hal_t *hal;
2012 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
2045 mutex_enter(&hal->isoch_cec_list_mutex);
2048 s1394_isoch_cec_list_remove(hal, cec_curr);
2050 mutex_exit(&hal->isoch_cec_list_mutex);
2095 s1394_hal_t *hal;
2107 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
2209 s1394_isoch_cec_member_list_insert(hal, cec_curr, member_new);
2259 s1394_hal_t *hal;
2273 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
2336 s1394_isoch_cec_member_list_remove(hal, cec_curr, member_temp);
2390 s1394_hal_t *hal;
2412 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
2455 generation = hal->generation_count;
2458 bw_alloc_units = s1394_compute_bw_alloc_units(hal,
2463 if (generation != hal->generation_count)
2470 ret = s1394_bandwidth_alloc(hal, bw_alloc_units, generation,
2495 if (generation != hal->generation_count)
2521 ret = s1394_channel_alloc(hal,
2526 ret = s1394_channel_alloc(hal,
2553 if (generation != hal->generation_count)
2560 ret = s1394_bandwidth_free(hal, bw_alloc_units,
2933 s1394_hal_t *hal;
2950 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
2999 generation = hal->generation_count;
3002 bw_alloc_units = s1394_compute_bw_alloc_units(hal,
3007 if (generation != hal->generation_count)
3014 ret = s1394_bandwidth_free(hal, bw_alloc_units, generation, &err);
3035 ret = s1394_channel_free(hal, chnl_mask, generation,
3038 ret = s1394_channel_free(hal, chnl_mask, generation,
3134 s1394_hal_t *hal;
3145 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3174 ret = HAL_CALL(hal).alloc_isoch_dma(hal->halinfo.hal_private, idi,
3209 s1394_hal_t *hal;
3218 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3221 HAL_CALL(hal).free_isoch_dma(hal->halinfo.hal_private, *t1394_idma_hdl);
3254 s1394_hal_t *hal;
3265 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3267 ret = HAL_CALL(hal).start_isoch_dma(hal->halinfo.hal_private,
3293 s1394_hal_t *hal;
3303 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3305 HAL_CALL(hal).stop_isoch_dma(hal->halinfo.hal_private,
3337 s1394_hal_t *hal;
3348 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3350 ret = HAL_CALL(hal).update_isoch_dma(hal->halinfo.hal_private,
3374 s1394_hal_t *hal;
3383 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3386 if (hal->halinfo.phy == H1394_PHY_1394A) {
3387 ret = HAL_CALL(hal).short_bus_reset(hal->halinfo.hal_private);
3394 ret = HAL_CALL(hal).bus_reset(hal->halinfo.hal_private);
3428 s1394_hal_t *hal;
3438 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3441 mutex_enter(&hal->topology_tree_mutex);
3444 if (bus_generation != hal->generation_count) {
3446 mutex_exit(&hal->topology_tree_mutex);
3455 tm_ptr = (uint32_t *)hal->CSR_topology_map;
3463 mutex_exit(&hal->topology_tree_mutex);
3476 mutex_exit(&hal->topology_tree_mutex);
3535 s1394_hal_t *hal;
3576 hal = target->on_hal;
3587 mutex_enter(&hal->local_config_rom_mutex);
3589 ret = s1394_add_config_rom_entry(hal, key, buffer, size,
3594 mutex_exit(&hal->local_config_rom_mutex);
3605 if (hal->config_rom_timer_set == B_FALSE) {
3606 hal->config_rom_timer_set = B_TRUE;
3607 mutex_exit(&hal->local_config_rom_mutex);
3608 hal->config_rom_timer =
3609 timeout(s1394_update_config_rom_callback, hal,
3612 mutex_exit(&hal->local_config_rom_mutex);
3639 s1394_hal_t *hal;
3651 hal = target->on_hal;
3662 mutex_enter(&hal->local_config_rom_mutex);
3664 ret = s1394_remove_config_rom_entry(hal, (void **)t1394_cfgrom_hdl,
3667 mutex_exit(&hal->local_config_rom_mutex);
3677 if (hal->config_rom_timer_set == B_FALSE) {
3678 hal->config_rom_timer_set = B_TRUE;
3679 mutex_exit(&hal->local_config_rom_mutex);
3680 hal->config_rom_timer =
3681 timeout(s1394_update_config_rom_callback, hal,
3684 mutex_exit(&hal->local_config_rom_mutex);
3711 s1394_hal_t *hal;
3723 hal = ((s1394_target_t *)t1394_hdl)->on_hal;
3728 mutex_enter(&hal->topology_tree_mutex);
3731 if (bus_generation != hal->generation_count) {
3733 mutex_exit(&hal->topology_tree_mutex);
3737 tnf_uint, current_gen, hal->generation_count);
3741 rw_enter(&hal->target_list_rwlock, RW_READER);
3761 hal, from_node, to_node);
3774 rw_exit(&hal->target_list_rwlock);
3776 mutex_exit(&hal->topology_tree_mutex);