/illumos-gate/usr/src/uts/common/sys/1394/ |
H A D | s1394.h | 218 typedef struct s1394_hal_s s1394_hal_t; typedef 443 s1394_hal_t *on_hal; 508 s1394_hal_t *hal_next; 509 s1394_hal_t *hal_prev; 849 s1394_hal_t *sent_on_hal; 902 s1394_hal_t *hal_head; 903 s1394_hal_t *hal_tail; 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); [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/ |
H A D | s1394_bus_reset.c | 50 static void s1394_hal_stack_push(s1394_hal_t *hal, void *o); 52 static void *s1394_hal_stack_pop(s1394_hal_t *hal); 54 static void s1394_hal_queue_insert(s1394_hal_t *hal, void *o); 56 static void *s1394_hal_queue_remove(s1394_hal_t *hal); 58 static void s1394_node_number_list_add(s1394_hal_t *hal, int node_num); 60 static void s1394_speed_map_fill_speed_N(s1394_hal_t *hal, int min_spd); 62 static void s1394_speed_map_initialize(s1394_hal_t *hal); 83 s1394_parse_selfid_buffer(s1394_hal_t *hal, void *selfid_buf_addr, in s1394_parse_selfid_buffer() 177 s1394_sort_selfids(s1394_hal_t *hal) in s1394_sort_selfids() 336 s1394_init_topology_tree(s1394_hal_t *hal, boolean_t copied, in s1394_init_topology_tree() [all …]
|
H A D | s1394_misc.c | 48 extern void nx1394_undefine_events(s1394_hal_t *hal); 49 static void s1394_cleanup_node_cfgrom(s1394_hal_t *hal); 58 s1394_cleanup_for_detach(s1394_hal_t *hal, uint_t cleanup_level) in s1394_cleanup_for_detach() 143 kmem_free(hal, sizeof (s1394_hal_t)); in s1394_cleanup_for_detach() 161 s1394_hal_shutdown(s1394_hal_t *hal, boolean_t disable_hal) in s1394_hal_shutdown() 204 s1394_initiate_hal_reset(s1394_hal_t *hal, int reason) in s1394_initiate_hal_reset() 225 s1394_on_br_thread(s1394_hal_t *hal) in s1394_on_br_thread() 238 s1394_destroy_br_thread(s1394_hal_t *hal) in s1394_destroy_br_thread() 267 s1394_tickle_bus_reset_thread(s1394_hal_t *hal) in s1394_tickle_bus_reset_thread() 319 s1394_HAL_asynch_error(s1394_hal_t *hal, cmd1394_cmd_t *cmd, in s1394_HAL_asynch_error() [all …]
|
H A D | s1394_fa.c | 51 s1394_fa_claim_addr(s1394_hal_t *hal, s1394_fa_type_t type, in s1394_fa_claim_addr() 86 s1394_fa_free_addr(s1394_hal_t *hal, s1394_fa_type_t type) in s1394_fa_free_addr() 103 s1394_fa_list_add(s1394_hal_t *hal, s1394_target_t *target, in s1394_fa_list_add() 124 s1394_fa_list_remove(s1394_hal_t *hal, s1394_target_t *target, in s1394_fa_list_remove() 151 s1394_fa_list_is_empty(s1394_hal_t *hal, s1394_fa_type_t type) in s1394_fa_list_is_empty() 164 s1394_fa_list_gen(s1394_hal_t *hal, s1394_fa_type_t type) in s1394_fa_list_gen() 187 s1394_fa_convert_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd) in s1394_fa_convert_cmd() 203 s1394_fa_restore_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd) in s1394_fa_restore_cmd() 219 s1394_fa_check_restore_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd) in s1394_fa_check_restore_cmd() 235 s1394_hal_t *hal = cmd->cmd_callback_arg; in s1394_fa_completion_cb()
|
H A D | s1394_cmp.c | 42 static void s1394_cmp_init(s1394_hal_t *hal); 43 static void s1394_cmp_fini(s1394_hal_t *hal); 48 static void s1394_cmp_notify_reg_change(s1394_hal_t *hal, t1394_cmp_reg_t reg, 86 s1394_hal_t *hal = target->on_hal; in s1394_cmp_register() 126 s1394_hal_t *hal = target->on_hal; in s1394_cmp_unregister() 147 s1394_hal_t *hal = target->on_hal; in s1394_cmp_read() 170 s1394_hal_t *hal = target->on_hal; in s1394_cmp_cas() 201 s1394_cmp_init(s1394_hal_t *hal) in s1394_cmp_init() 213 s1394_cmp_fini(s1394_hal_t *hal) in s1394_cmp_fini() 227 s1394_hal_t *hal = req->cmd_callback_arg; in s1394_cmp_ompr_recv_read_request() [all …]
|
H A D | s1394_dev_disc.c | 101 static void s1394_wait_for_events(s1394_hal_t *hal, int firsttime); 103 static int s1394_wait_for_cfgrom_callbacks(s1394_hal_t *hal, uint_t wait_gen, 104 hcmd_ret_t(*handle_cmd_fn)(s1394_hal_t *hal, cmd1394_cmd_t *cmd)); 106 static void s1394_flush_cmplq(s1394_hal_t *hal); 108 static void s1394_br_thread_exit(s1394_hal_t *hal); 110 static void s1394_target_bus_reset_notifies(s1394_hal_t *hal, 113 static int s1394_alloc_cfgrom(s1394_hal_t *hal, s1394_node_t *node, 116 static int s1394_cfgrom_scan_phase1(s1394_hal_t *hal); 118 static hcmd_ret_t s1394_br_thread_handle_cmd_phase1(s1394_hal_t *hal, 121 static int s1394_cfgrom_scan_phase2(s1394_hal_t *hal); [all …]
|
H A D | s1394_csr.c | 77 static void s1394_common_CSR_routine(s1394_hal_t *hal, cmd1394_cmd_t *req); 79 static int s1394_init_config_rom_structures(s1394_hal_t *hal); 81 static int s1394_destroy_config_rom_structures(s1394_hal_t *hal); 88 s1394_setup_CSR_space(s1394_hal_t *hal) in s1394_setup_CSR_space() 445 s1394_hal_t *hal; in s1394_CSR_state_clear() 452 hal = (s1394_hal_t *)req->cmd_callback_arg; in s1394_CSR_state_clear() 549 s1394_hal_t *hal; in s1394_CSR_state_set() 558 hal = (s1394_hal_t *)req->cmd_callback_arg; in s1394_CSR_state_set() 641 s1394_hal_t *hal; in s1394_CSR_node_ids() 643 hal = (s1394_hal_t *)req->cmd_callback_arg; in s1394_CSR_node_ids() [all …]
|
H A D | h1394.c | 54 extern int nx1394_define_events(s1394_hal_t *hal); 55 extern void nx1394_undefine_events(s1394_hal_t *hal); 117 s1394_hal_t *hal; in h1394_attach() 126 hal = (s1394_hal_t *)(*sl_private); in h1394_attach() 137 hal = kmem_zalloc(sizeof (s1394_hal_t), KM_SLEEP); in h1394_attach() 317 s1394_hal_t *hal; in h1394_detach() 319 hal = (s1394_hal_t *)(*sl_private); in h1394_detach() 365 s1394_hal_t *hal; in h1394_alloc_cmd() 368 hal = (s1394_hal_t *)sl_private; in h1394_alloc_cmd() 399 s1394_hal_t *hal; in h1394_free_cmd() [all …]
|
H A D | s1394_fcp.c | 51 static void s1394_fcp_recv_write_unclaimed(s1394_hal_t *hal, 79 s1394_fcp_hal_init(s1394_hal_t *hal) in s1394_fcp_hal_init() 131 s1394_hal_t *hal = target->on_hal; in s1394_fcp_register_common() 157 s1394_hal_t *hal = target->on_hal; in s1394_fcp_unregister_common() 233 s1394_hal_t *hal = (s1394_hal_t *)req->cmd_callback_arg; in s1394_fcp_recv_write_request() 304 s1394_fcp_recv_write_unclaimed(s1394_hal_t *hal, cmd1394_cmd_t *req) in s1394_fcp_recv_write_unclaimed()
|
H A D | nx1394.c | 267 s1394_hal_t *hal; in nx1394_dma_allochdl() 299 s1394_hal_t *hal; in nx1394_get_event_cookie() 325 s1394_hal_t *hal; in nx1394_add_eventcall() 353 s1394_hal_t *hal; in nx1394_remove_eventcall() 393 s1394_hal_t *hal; in nx1394_post_event() 426 nx1394_define_events(s1394_hal_t *hal) in nx1394_define_events() 451 nx1394_undefine_events(s1394_hal_t *hal) in nx1394_undefine_events()
|
H A D | s1394_addr.c | 44 static s1394_addr_space_blk_t *s1394_free_list_search(s1394_hal_t *hal, 47 static s1394_addr_space_blk_t *s1394_free_list_find(s1394_hal_t *hal, 50 static s1394_addr_space_blk_t *s1394_free_list_delete(s1394_hal_t *hal, 53 static void s1394_used_tree_insert(s1394_hal_t *hal, s1394_addr_space_blk_t *x); 83 s1394_request_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp) in s1394_request_addr_blk() 172 s1394_claim_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp) in s1394_claim_addr_blk() 387 s1394_free_addr_blk(s1394_hal_t *hal, s1394_addr_space_blk_t *blk) in s1394_free_addr_blk() 420 s1394_reserve_addr_blk(s1394_hal_t *hal, t1394_alloc_addr_t *addr_allocp) in s1394_reserve_addr_blk() 582 s1394_init_addr_space(s1394_hal_t *hal) in s1394_init_addr_space() 715 s1394_destroy_addr_space(s1394_hal_t *hal) in s1394_destroy_addr_space() [all …]
|
H A D | s1394_hotplug.c | 49 static void s1394_send_remove_event(s1394_hal_t *hal, dev_info_t *dip, 51 static void s1394_send_insert_event(s1394_hal_t *hal, dev_info_t *dip, 53 static dev_info_t *s1394_create_devinfo(s1394_hal_t *hal, s1394_node_t *node, 55 static void s1394_update_unit_dir_location(s1394_hal_t *hal, dev_info_t *tdip, 64 s1394_send_remove_event(s1394_hal_t *hal, dev_info_t *dip, in s1394_send_remove_event() 87 s1394_send_insert_event(s1394_hal_t *hal, dev_info_t *dip, in s1394_send_insert_event() 115 s1394_create_devinfo(s1394_hal_t *hal, s1394_node_t *node, uint32_t *unit_dir, in s1394_create_devinfo() 419 s1394_update_devinfo_tree(s1394_hal_t *hal, s1394_node_t *node) in s1394_update_devinfo_tree() 578 s1394_offline_node(s1394_hal_t *hal, s1394_node_t *node) in s1394_offline_node() 677 s1394_process_topology_tree(s1394_hal_t *hal, int *wait_for_cbs, in s1394_process_topology_tree() [all …]
|
H A D | t1394.c | 73 s1394_hal_t *hal; in t1394_attach() 269 s1394_hal_t *hal; in t1394_alloc_cmd() 338 s1394_hal_t *hal; in t1394_free_cmd() 408 s1394_hal_t *to_hal; in t1394_read() 547 s1394_hal_t *to_hal; in t1394_write() 701 s1394_hal_t *to_hal; in t1394_lock() 827 s1394_hal_t *hal; in t1394_alloc_addr() 911 err = s1394_request_addr_blk((s1394_hal_t *)target->on_hal, in t1394_alloc_addr() 922 err = s1394_claim_addr_blk((s1394_hal_t *)target->on_hal, in t1394_alloc_addr() 964 s1394_hal_t *hal; in t1394_free_addr() [all …]
|
H A D | s1394_isoch.c | 50 s1394_isoch_rsrc_realloc(s1394_hal_t *hal) in s1394_isoch_rsrc_realloc() 190 s1394_isoch_rsrc_realloc_notify(s1394_hal_t *hal) in s1394_isoch_rsrc_realloc_notify() 291 s1394_channel_alloc(s1394_hal_t *hal, uint32_t channel_mask, uint_t generation, in s1394_channel_alloc() 446 s1394_channel_free(s1394_hal_t *hal, uint32_t channel_mask, uint_t generation, in s1394_channel_free() 591 s1394_bandwidth_alloc(s1394_hal_t *hal, uint32_t bw_alloc_units, in s1394_bandwidth_alloc() 724 s1394_compute_bw_alloc_units(s1394_hal_t *hal, uint_t bandwidth, uint_t speed) in s1394_compute_bw_alloc_units() 769 s1394_bandwidth_free(s1394_hal_t *hal, uint32_t bw_alloc_units, in s1394_bandwidth_free() 896 s1394_isoch_cec_list_insert(s1394_hal_t *hal, s1394_isoch_cec_t *cec) in s1394_isoch_cec_list_insert() 927 s1394_isoch_cec_list_remove(s1394_hal_t *hal, s1394_isoch_cec_t *cec) in s1394_isoch_cec_list_remove() 963 s1394_isoch_cec_member_list_insert(s1394_hal_t *hal, s1394_isoch_cec_t *cec, in s1394_isoch_cec_member_list_insert() [all …]
|
H A D | s1394_asynch.c | 47 static cmd1394_cmd_t *s1394_pending_q_remove(s1394_hal_t *hal); 49 static boolean_t s1394_process_pending_q(s1394_hal_t *hal); 51 static boolean_t s1394_pending_q_helper(s1394_hal_t *hal, cmd1394_cmd_t *cmd); 64 s1394_alloc_cmd(s1394_hal_t *hal, uint_t flags, cmd1394_cmd_t **cmdp) in s1394_alloc_cmd() 123 s1394_free_cmd(s1394_hal_t *hal, cmd1394_cmd_t **cmdp) in s1394_free_cmd() 156 s1394_xfer_asynch_command(s1394_hal_t *hal, cmd1394_cmd_t *cmd, int *err) in s1394_xfer_asynch_command() 304 s1394_setup_asynch_command(s1394_hal_t *hal, s1394_target_t *target, in s1394_setup_asynch_command() 344 s_priv->sent_on_hal = (s1394_hal_t *)hal; in s1394_setup_asynch_command() 508 s1394_insert_q_asynch_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd) in s1394_insert_q_asynch_cmd() 549 s1394_remove_q_asynch_cmd(s1394_hal_t *hal, cmd1394_cmd_t *cmd) in s1394_remove_q_asynch_cmd() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/s1394/ |
H A D | s1394.c | 32 static int print_node_info(s1394_hal_t *hal); 42 s1394_hal_t hal; in speedmap() 46 if (mdb_vread(&hal, sizeof (s1394_hal_t), addr) == -1) { in speedmap() 86 s1394_hal_t hal; in speedmap_walk_step() 92 if (mdb_vread(&hal, sizeof (s1394_hal_t), addr) == -1) { in speedmap_walk_step() 134 print_node_info(s1394_hal_t *hal) in print_node_info()
|