/titanic_50/usr/src/uts/common/sys/fibre-channel/fca/qlc/ |
H A D | ql_mbx.h | 726 int ql_initialize_ip(ql_adapter_state_t *); 727 int ql_shutdown_ip(ql_adapter_state_t *); 728 int ql_online_selftest(ql_adapter_state_t *); 729 int ql_loop_back(ql_adapter_state_t *, uint16_t, lbp_t *, uint32_t, uint32_t); 730 int ql_echo(ql_adapter_state_t *, uint16_t, echo_t *); 731 int ql_send_change_request(ql_adapter_state_t *, uint16_t); 732 int ql_send_lfa(ql_adapter_state_t *, lfa_cmd_t *); 733 int ql_clear_aca(ql_adapter_state_t *, ql_tgt_t *, uint16_t); 734 int ql_target_reset(ql_adapter_state_t *, ql_tgt_t *, uint16_t); 735 int ql_abort_target(ql_adapter_state_t *, ql_tgt_t *, uint16_t); [all …]
|
H A D | ql_ioctl.h | 55 int ql_nv_util_load(ql_adapter_state_t *, void *, int); 56 int ql_nv_util_dump(ql_adapter_state_t *, void *, int); 57 int ql_vpd_load(ql_adapter_state_t *, void *, int); 58 int ql_vpd_dump(ql_adapter_state_t *, void *, int); 59 int32_t ql_vpd_lookup(ql_adapter_state_t *, uint8_t *, uint8_t *, int32_t); 60 int ql_r_m_w_flash(ql_adapter_state_t *, caddr_t, uint32_t, uint32_t, int); 61 int ql_get_nvram(ql_adapter_state_t *, void *, uint32_t, uint32_t);
|
H A D | ql_init.h | 944 int ql_initialize_adapter(ql_adapter_state_t *); 945 int ql_pci_sbus_config(ql_adapter_state_t *); 946 int ql_nvram_config(ql_adapter_state_t *); 947 uint16_t ql_get_nvram_word(ql_adapter_state_t *, uint32_t); 948 void ql_nv_write(ql_adapter_state_t *, uint16_t); 950 int ql_lock_nvram(ql_adapter_state_t *, uint32_t *, uint32_t); 951 void ql_release_nvram(ql_adapter_state_t *); 952 void ql_common_properties(ql_adapter_state_t *); 953 uint32_t ql_get_prop(ql_adapter_state_t *, char *); 954 int ql_load_isp_firmware(ql_adapter_state_t *); [all …]
|
H A D | ql_api.h | 1681 } ql_adapter_state_t; typedef 2177 void ql_populate_hba_fru_details(ql_adapter_state_t *, fc_fca_port_info_t *); 2178 void ql_setup_fruinfo(ql_adapter_state_t *); 2179 uint16_t ql_pci_config_get16(ql_adapter_state_t *, off_t); 2180 uint32_t ql_pci_config_get32(ql_adapter_state_t *, off_t); 2181 void ql_pci_config_put8(ql_adapter_state_t *, off_t, uint8_t); 2182 void ql_pci_config_put16(ql_adapter_state_t *, off_t, uint16_t); 2183 void ql_delay(ql_adapter_state_t *, clock_t); 2184 void ql_awaken_task_daemon(ql_adapter_state_t *, ql_srb_t *, uint32_t, 2186 int ql_abort_device(ql_adapter_state_t *, ql_tgt_t *, int); [all …]
|
H A D | ql_xioctl.h | 432 int ql_alloc_xioctl_resource(ql_adapter_state_t *); 433 void ql_free_xioctl_resource(ql_adapter_state_t *); 434 int ql_xioctl(ql_adapter_state_t *, int, intptr_t, int, cred_t *, int *); 435 void ql_enqueue_aen(ql_adapter_state_t *, uint16_t, void *); 436 int ql_setup_fcache(ql_adapter_state_t *); 437 void ql_blink_led(ql_adapter_state_t *); 440 int ql_dump_fcode(ql_adapter_state_t *, uint8_t *, uint32_t, uint32_t); 441 int ql_pci_dump(ql_adapter_state_t *, uint32_t *, uint32_t, int); 442 int ql_load_fcode(ql_adapter_state_t *, uint8_t *, uint32_t, uint32_t);
|
H A D | ql_nx.h | 1193 void ql_8021_reset_chip(ql_adapter_state_t *); 1194 int ql_8021_load_risc(ql_adapter_state_t *); 1195 void ql_8021_clr_hw_intr(ql_adapter_state_t *); 1196 void ql_8021_clr_fw_intr(ql_adapter_state_t *); 1197 void ql_8021_enable_intrs(ql_adapter_state_t *); 1198 void ql_8021_disable_intrs(ql_adapter_state_t *); 1199 void ql_8021_update_crb_int_ptr(ql_adapter_state_t *); 1200 int ql_8021_rom_read(ql_adapter_state_t *, uint32_t, uint32_t *); 1201 int ql_8021_rom_write(ql_adapter_state_t *, uint32_t, uint32_t); 1202 int ql_8021_rom_erase(ql_adapter_state_t *, uint32_t); [all …]
|
H A D | ql_iocb.h | 1478 void ql_start_iocb(ql_adapter_state_t *, ql_srb_t *); 1479 void ql_isp_cmd(ql_adapter_state_t *); 1480 int ql_marker(ql_adapter_state_t *, uint16_t, uint16_t, uint8_t); 1481 void ql_isp_rcvbuf(ql_adapter_state_t *); 1482 void ql_command_iocb(ql_adapter_state_t *, ql_srb_t *, void *); 1483 void ql_ms_iocb(ql_adapter_state_t *, ql_srb_t *, void *); 1484 void ql_ip_iocb(ql_adapter_state_t *, ql_srb_t *, void *); 1485 void ql_command_24xx_iocb(ql_adapter_state_t *, ql_srb_t *, void *); 1486 void ql_ms_24xx_iocb(ql_adapter_state_t *, ql_srb_t *, void *); 1487 void ql_ip_24xx_iocb(ql_adapter_state_t *, ql_srb_t *, void *); [all …]
|
H A D | ql_debug.h | 70 void ql_el_msg(ql_adapter_state_t *, const char *, int, ...); 72 int ql_flash_errlog(ql_adapter_state_t *, uint16_t, uint16_t, uint16_t, 74 void ql_dump_el_trace_buffer(ql_adapter_state_t *);
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_nx.c | 51 static void *ql_8021_pci_base_offsetfset(ql_adapter_state_t *, uint64_t); 52 static void ql_crb_addr_transform_setup(ql_adapter_state_t *); 53 static void ql_8021_pci_set_crbwindow_2M(ql_adapter_state_t *, uint64_t *); 54 static void ql_8021_wr_32(ql_adapter_state_t *, uint64_t, uint32_t); 55 static void ql_8021_rd_32(ql_adapter_state_t *, uint64_t, uint32_t *); 56 static int ql_8021_crb_win_lock(ql_adapter_state_t *); 57 static void ql_8021_crb_win_unlock(ql_adapter_state_t *); 58 static int ql_8021_pci_get_crb_addr_2M(ql_adapter_state_t *, uint64_t *); 59 static uint32_t ql_8021_pci_mem_bound_check(ql_adapter_state_t *, uint64_t, 61 static uint64_t ql_8021_pci_set_window(ql_adapter_state_t *, uint64_t); [all …]
|
H A D | ql_ioctl.c | 55 static int ql_busy_notification(ql_adapter_state_t *); 56 static int ql_idle_notification(ql_adapter_state_t *); 57 static int ql_get_feature_bits(ql_adapter_state_t *ha, uint16_t *features); 58 static int ql_set_feature_bits(ql_adapter_state_t *ha, uint16_t features); 59 static int ql_set_nvram_adapter_defaults(ql_adapter_state_t *ha); 60 static void ql_load_nvram(ql_adapter_state_t *ha, uint8_t addr, 62 static int ql_24xx_load_nvram(ql_adapter_state_t *, uint32_t, uint32_t); 63 static int ql_adm_op(ql_adapter_state_t *, void *, int); 64 static int ql_adm_adapter_info(ql_adapter_state_t *, ql_adm_op_t *, int); 65 static int ql_adm_extended_logging(ql_adapter_state_t *, ql_adm_op_t *); [all …]
|
H A D | ql_xioctl.c | 63 static int ql_sdm_ioctl(ql_adapter_state_t *, int, void *, int); 64 static int ql_sdm_setup(ql_adapter_state_t *, EXT_IOCTL **, void *, int, 67 static int ql_sdm_return(ql_adapter_state_t *, EXT_IOCTL *, void *, int); 68 static void ql_query(ql_adapter_state_t *, EXT_IOCTL *, int); 69 static void ql_qry_hba_node(ql_adapter_state_t *, EXT_IOCTL *, int); 70 static void ql_qry_hba_port(ql_adapter_state_t *, EXT_IOCTL *, int); 71 static void ql_qry_disc_port(ql_adapter_state_t *, EXT_IOCTL *, int); 72 static void ql_qry_disc_tgt(ql_adapter_state_t *, EXT_IOCTL *, int); 73 static void ql_qry_fw(ql_adapter_state_t *, EXT_IOCTL *, int); 74 static void ql_qry_chip(ql_adapter_state_t *, EXT_IOCTL *, int); [all …]
|
H A D | ql_hba_fru.c | 61 static uint32_t ql_get_basedev_len(ql_adapter_state_t *, uint32_t *, 63 static ql_adapter_state_t *ql_search_basedev(ql_adapter_state_t *, uint32_t); 232 ql_populate_hba_fru_details(ql_adapter_state_t *ha, in ql_populate_hba_fru_details() 508 ql_setup_fruinfo(ql_adapter_state_t *ha) in ql_setup_fruinfo() 511 ql_adapter_state_t *base_ha = NULL; in ql_setup_fruinfo() 583 ql_get_basedev_len(ql_adapter_state_t *ha, uint32_t *basedev_len, in ql_get_basedev_len() 653 static ql_adapter_state_t * 654 ql_search_basedev(ql_adapter_state_t *myha, uint32_t mybasedev_len) in ql_search_basedev() 657 ql_adapter_state_t *ha; in ql_search_basedev()
|
H A D | ql_debug.c | 48 static int ql_flash_errlog_store(ql_adapter_state_t *, uint32_t *); 49 int ql_validate_trace_desc(ql_adapter_state_t *ha); 50 char *ql_find_trace_start(ql_adapter_state_t *ha); 147 ql_el_msg(ql_adapter_state_t *ha, const char *fn, int ce, ...) in ql_el_msg() 289 ql_stacktrace(ql_adapter_state_t *ha) in ql_stacktrace() 334 ql_flash_errlog(ql_adapter_state_t *ha, uint16_t code, uint16_t d1, in ql_flash_errlog() 448 ql_flash_errlog_store(ql_adapter_state_t *ha, uint32_t *fdata) in ql_flash_errlog_store() 503 ql_dump_el_trace_buffer(ql_adapter_state_t *ha) in ql_dump_el_trace_buffer() 564 ql_validate_trace_desc(ql_adapter_state_t *ha) in ql_validate_trace_desc() 590 ql_find_trace_start(ql_adapter_state_t *ha) in ql_find_trace_start()
|
H A D | ql_mbx.c | 58 static int ql_mailbox_command(ql_adapter_state_t *, mbx_cmd_t *); 59 static int ql_task_mgmt_iocb(ql_adapter_state_t *, ql_tgt_t *, uint16_t, 61 static int ql_abort_cmd_iocb(ql_adapter_state_t *, ql_srb_t *); 62 static int ql_setup_mbox_dma_transfer(ql_adapter_state_t *, dma_mem_t *, 64 static int ql_setup_mbox_dma_resources(ql_adapter_state_t *, dma_mem_t *, 84 ql_mailbox_command(ql_adapter_state_t *vha, mbx_cmd_t *mcp) in ql_mailbox_command() 92 ql_adapter_state_t *ha = vha->pha; in ql_mailbox_command() 310 ql_setup_mbox_dma_transfer(ql_adapter_state_t *ha, dma_mem_t *mem_desc, in ql_setup_mbox_dma_transfer() 342 ql_setup_mbox_dma_resources(ql_adapter_state_t *ha, dma_mem_t *mem_desc, in ql_setup_mbox_dma_resources() 420 ql_initialize_ip(ql_adapter_state_t *ha) in ql_initialize_ip() [all …]
|
H A D | ql_api.c | 96 static uint16_t ql_wait_outstanding(ql_adapter_state_t *); 97 static void ql_task_mgmt(ql_adapter_state_t *, ql_tgt_t *, fc_packet_t *, 100 static void ql_task_thread(ql_adapter_state_t *); 102 static void ql_free_unsolicited_buffer(ql_adapter_state_t *, 105 static void ql_watchdog(ql_adapter_state_t *, uint32_t *, uint32_t *); 106 static void ql_cmd_timeout(ql_adapter_state_t *, ql_tgt_t *q, ql_srb_t *, 108 static void ql_halt(ql_adapter_state_t *, int); 109 static int ql_els_plogi(ql_adapter_state_t *, fc_packet_t *); 110 static int ql_els_flogi(ql_adapter_state_t *, fc_packet_t *); 111 static int ql_els_logo(ql_adapter_state_t *, fc_packet_t *); [all …]
|
H A D | ql_init.c | 60 static uint16_t ql_nvram_request(ql_adapter_state_t *, uint32_t); 61 static int ql_nvram_24xx_config(ql_adapter_state_t *); 62 static void ql_23_properties(ql_adapter_state_t *, nvram_t *); 63 static void ql_24xx_properties(ql_adapter_state_t *, nvram_24xx_t *); 64 static int ql_check_isp_firmware(ql_adapter_state_t *); 65 static int ql_chip_diag(ql_adapter_state_t *); 66 static int ql_load_flash_fw(ql_adapter_state_t *); 67 static int ql_configure_loop(ql_adapter_state_t *); 68 static int ql_configure_hba(ql_adapter_state_t *); 69 static int ql_configure_fabric(ql_adapter_state_t *); [all …]
|
H A D | ql_iocb.c | 53 static int ql_req_pkt(ql_adapter_state_t *, request_t **); 54 static void ql_continuation_iocb(ql_adapter_state_t *, ddi_dma_cookie_t *, 56 static void ql_isp24xx_rcvbuf(ql_adapter_state_t *); 57 static void ql_cmd_24xx_type_6_iocb(ql_adapter_state_t *, ql_srb_t *, void *); 72 ql_start_iocb(ql_adapter_state_t *vha, ql_srb_t *sp) in ql_start_iocb() 78 ql_adapter_state_t *ha = vha->pha; in ql_start_iocb() 269 ql_req_pkt(ql_adapter_state_t *vha, request_t **pktp) in ql_req_pkt() 275 ql_adapter_state_t *ha = vha->pha; in ql_req_pkt() 369 ql_isp_cmd(ql_adapter_state_t *vha) in ql_isp_cmd() 371 ql_adapter_state_t *ha = vha->pha; in ql_isp_cmd() [all …]
|
H A D | ql_isr.c | 56 static void ql_handle_uncommon_risc_intr(ql_adapter_state_t *, uint32_t, 58 static void ql_spurious_intr(ql_adapter_state_t *, int); 59 static void ql_mbx_completion(ql_adapter_state_t *, uint16_t, uint32_t *, 61 static void ql_async_event(ql_adapter_state_t *, uint32_t, ql_head_t *, 64 static void ql_response_pkt(ql_adapter_state_t *, ql_head_t *, uint32_t *, 66 static void ql_error_entry(ql_adapter_state_t *, response_t *, ql_head_t *, 68 static int ql_status_entry(ql_adapter_state_t *, sts_entry_t *, ql_head_t *, 70 static int ql_24xx_status_entry(ql_adapter_state_t *, sts_24xx_entry_t *, 72 static int ql_status_error(ql_adapter_state_t *, ql_srb_t *, sts_entry_t *, 74 static void ql_status_cont_entry(ql_adapter_state_t *, sts_cont_entry_t *, [all …]
|
/titanic_50/usr/src/cmd/mdb/common/modules/qlc/ |
H A D | qlc.c | 69 static int ql_24xx_dump_dcmd(ql_adapter_state_t *, uint_t, int, 71 static int ql_23xx_dump_dcmd(ql_adapter_state_t *, uint_t, int, 73 static int ql_25xx_dump_dcmd(ql_adapter_state_t *, uint_t, int, 75 static int ql_81xx_dump_dcmd(ql_adapter_state_t *, uint_t, int, 77 static void ql_elog_common(ql_adapter_state_t *, boolean_t); 261 ql_adapter_state_t *qlstate; in qlclinks_dcmd() 281 if ((qlstate = (ql_adapter_state_t *)mdb_alloc( in qlclinks_dcmd() 282 sizeof (ql_adapter_state_t), UM_SLEEP)) == NULL) { in qlclinks_dcmd() 293 if (mdb_vread(qlstate, sizeof (ql_adapter_state_t), in qlclinks_dcmd() 295 mdb_free(qlstate, sizeof (ql_adapter_state_t)); in qlclinks_dcmd() [all …]
|