Lines Matching refs:hal
911 int s1394_request_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp);
913 int s1394_claim_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp);
915 int s1394_free_addr_blk(s1394_hal_t *hal, s1394_addr_space_blk_t *blk);
917 int s1394_reserve_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp);
919 int s1394_init_addr_space(s1394_hal_t *hal);
921 void s1394_destroy_addr_space(s1394_hal_t *hal);
923 void s1394_free_list_insert(s1394_hal_t *hal, s1394_addr_space_blk_t *new_blk);
925 s1394_addr_space_blk_t *s1394_used_tree_search(s1394_hal_t *hal,
928 s1394_addr_space_blk_t *s1394_used_tree_delete(s1394_hal_t *hal,
931 boolean_t s1394_is_posted_write(s1394_hal_t *hal, uint64_t addr);
933 boolean_t s1394_is_physical_addr(s1394_hal_t *hal, uint64_t addr);
935 boolean_t s1394_is_csr_addr(s1394_hal_t *hal, uint64_t addr);
937 boolean_t s1394_is_normal_addr(s1394_hal_t *hal, uint64_t addr);
940 int s1394_alloc_cmd(s1394_hal_t *hal, uint_t flags, cmd1394_cmd_t **cmdp);
942 int s1394_free_cmd(s1394_hal_t *hal, cmd1394_cmd_t **cmdp);
944 int s1394_xfer_asynch_command(s1394_hal_t *hal, cmd1394_cmd_t *cmd, int *err);
946 int s1394_setup_asynch_command(s1394_hal_t *hal, s1394_target_t *target,
949 void s1394_insert_q_asynch_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
951 void s1394_remove_q_asynch_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
953 void s1394_atreq_cmd_complete(s1394_hal_t *hal, cmd1394_cmd_t *req,
956 void s1394_atresp_cmd_complete(s1394_hal_t *hal, cmd1394_cmd_t *resp,
959 int s1394_send_response(s1394_hal_t *hal, cmd1394_cmd_t *resp);
961 int s1394_compare_swap(s1394_hal_t *hal, s1394_target_t *target,
964 int s1394_split_lock_req(s1394_hal_t *hal, s1394_target_t *target,
967 void s1394_pending_q_insert(s1394_hal_t *hal, cmd1394_cmd_t *cmd, uint_t flags);
969 void s1394_resend_pending_cmds(s1394_hal_t *hal);
972 int s1394_parse_selfid_buffer(s1394_hal_t *hal, void *selfid_buf_addr,
975 void s1394_sort_selfids(s1394_hal_t *hal);
977 void s1394_init_topology_tree(s1394_hal_t *hal, boolean_t copied,
980 int s1394_topology_tree_build(s1394_hal_t *hal);
982 void s1394_topology_tree_mark_all_unvisited(s1394_hal_t *hal);
984 void s1394_old_tree_mark_all_unvisited(s1394_hal_t *hal);
986 void s1394_old_tree_mark_all_unmatched(s1394_hal_t *hal);
988 void s1394_copy_old_tree(s1394_hal_t *hal);
990 void s1394_match_tree_nodes(s1394_hal_t *hal);
992 int s1394_topology_tree_calculate_diameter(s1394_hal_t *hal);
996 int s1394_get_current_gap_count(s1394_hal_t *hal);
998 void s1394_speed_map_fill(s1394_hal_t *hal);
1000 uint8_t s1394_speed_map_get(s1394_hal_t *hal, uint32_t from_node,
1003 void s1394_update_speed_map_link_speeds(s1394_hal_t *hal);
1005 int s1394_get_isoch_rsrc_mgr(s1394_hal_t *hal);
1007 void s1394_physical_arreq_setup_all(s1394_hal_t *hal);
1013 s1394_node_t *s1394_topology_tree_get_root_node(s1394_hal_t *hal);
1016 int s1394_setup_CSR_space(s1394_hal_t *hal);
1018 void s1394_CSR_topology_map_update(s1394_hal_t *hal);
1020 void s1394_CSR_topology_map_disable(s1394_hal_t *hal);
1022 int s1394_init_local_config_rom(s1394_hal_t *hal);
1024 void s1394_destroy_local_config_rom(s1394_hal_t *hal);
1026 int s1394_add_config_rom_entry(s1394_hal_t *hal, uint8_t key,
1029 int s1394_remove_config_rom_entry(s1394_hal_t *hal, void **handle,
1035 void s1394_br_thread(s1394_hal_t *hal);
1037 void s1394_free_cfgrom(s1394_hal_t *hal, s1394_node_t *node,
1042 int s1394_read_rest_of_cfgrom(s1394_hal_t *hal, s1394_node_t *node,
1048 boolean_t s1394_valid_cfgrom(s1394_hal_t *hal, s1394_node_t *node);
1050 boolean_t s1394_valid_dir(s1394_hal_t *hal, s1394_node_t *node, uint32_t key,
1056 int s1394_lock_tree(s1394_hal_t *hal);
1058 void s1394_unlock_tree(s1394_hal_t *hal);
1063 int s1394_update_devinfo_tree(s1394_hal_t *hal, s1394_node_t *node);
1065 int s1394_offline_node(s1394_hal_t *hal, s1394_node_t *node);
1067 int s1394_process_topology_tree(s1394_hal_t *hal, int *wait_for_cbs,
1070 int s1394_process_old_tree(s1394_hal_t *hal);
1077 int s1394_fa_claim_addr(s1394_hal_t *hal, s1394_fa_type_t type,
1080 void s1394_fa_free_addr(s1394_hal_t *hal, s1394_fa_type_t type);
1082 void s1394_fa_list_add(s1394_hal_t *hal, s1394_target_t *target,
1085 int s1394_fa_list_remove(s1394_hal_t *hal, s1394_target_t *target,
1088 boolean_t s1394_fa_list_is_empty(s1394_hal_t *hal, s1394_fa_type_t type);
1090 uint_t s1394_fa_list_gen(s1394_hal_t *hal, s1394_fa_type_t type);
1094 void s1394_fa_convert_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
1096 void s1394_fa_restore_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
1098 void s1394_fa_check_restore_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd);
1101 int s1394_fcp_hal_init(s1394_hal_t *hal);
1124 void s1394_isoch_rsrc_realloc(s1394_hal_t *hal);
1126 void s1394_isoch_rsrc_realloc_notify(s1394_hal_t *hal);
1128 int s1394_channel_alloc(s1394_hal_t *hal, uint32_t channel_mask,
1131 int s1394_channel_free(s1394_hal_t *hal, uint32_t channel_mask,
1134 int s1394_bandwidth_alloc(s1394_hal_t *hal, uint32_t bw_alloc_units,
1137 uint_t s1394_compute_bw_alloc_units(s1394_hal_t *hal, uint_t bandwidth,
1140 int s1394_bandwidth_free(s1394_hal_t *hal, uint32_t bw_alloc_units,
1143 void s1394_isoch_cec_list_insert(s1394_hal_t *hal, s1394_isoch_cec_t *cec);
1145 void s1394_isoch_cec_list_remove(s1394_hal_t *hal, s1394_isoch_cec_t *cec);
1147 void s1394_isoch_cec_member_list_insert(s1394_hal_t *hal,
1150 void s1394_isoch_cec_member_list_remove(s1394_hal_t *hal,
1154 void s1394_cleanup_for_detach(s1394_hal_t *hal, uint_t cleanup_level);
1156 void s1394_hal_shutdown(s1394_hal_t *hal, boolean_t disable_hal);
1158 void s1394_initiate_hal_reset(s1394_hal_t *hal, int reason);
1160 boolean_t s1394_on_br_thread(s1394_hal_t *hal);
1162 void s1394_destroy_br_thread(s1394_hal_t *hal);
1164 void s1394_tickle_bus_reset_thread(s1394_hal_t *hal);
1168 int s1394_HAL_asynch_error(s1394_hal_t *hal, cmd1394_cmd_t *cmd,
1181 int s1394_ioctl(s1394_hal_t *hal, int cmd, intptr_t arg, int mode,
1184 void s1394_check_pwr_mgmt(s1394_hal_t *hal, s1394_target_t *target,
1187 int s1394_kstat_init(s1394_hal_t *hal);
1189 int s1394_kstat_delete(s1394_hal_t *hal);
1193 void s1394_addr_alloc_kstat(s1394_hal_t *hal, uint64_t addr);
1195 void s1394_print_node_info(s1394_hal_t *hal);
1199 s1394_target_t *s1394_target_from_dip(s1394_hal_t *hal, dev_info_t *tdip);
1200 s1394_target_t *s1394_target_from_dip_locked(s1394_hal_t *hal,
1203 void s1394_destroy_timers(s1394_hal_t *hal);