/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_mgmt.c | 50 static int ocs_mgmt_firmware_write(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t… 51 static int ocs_mgmt_firmware_reset(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t… 52 static int ocs_mgmt_function_reset(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t… 55 static int ocs_mgmt_force_assert(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t); 59 static void get_nodes_count(ocs_t *, char *, ocs_textbuf_t*); 60 static void get_desc(ocs_t *, char *, ocs_textbuf_t*); 61 static void get_fw_rev(ocs_t *, char *, ocs_textbuf_t*); 62 static void get_fw_rev2(ocs_t *, char *, ocs_textbuf_t*); 63 static void get_ipl(ocs_t *, char *, ocs_textbuf_t*); 64 static void get_wwnn(ocs_t *, char *, ocs_textbuf_t*); [all …]
|
H A D | ocs_mgmt.h | 62 typedef void (*ocs_mgmt_get_func)(ocs_t *, char *, ocs_textbuf_t*); 63 typedef int (*ocs_mgmt_set_func)(ocs_t *, char *, char *); 64 typedef int (*ocs_mgmt_action_func)(ocs_t *, char *, void *, uint32_t, void *, uint32_t); 104 extern void ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf); 105 extern void ocs_mgmt_get_all(ocs_t *ocs, ocs_textbuf_t *textbuf); 106 extern int ocs_mgmt_get(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf); 107 extern int ocs_mgmt_set(ocs_t *ocs, char *name, char *value); 108 extern int ocs_mgmt_exec(ocs_t *ocs, char *action, void *arg_in, uint32_t arg_in_length, 111 extern int set_req_wwnn(ocs_t*, char*, char*); 112 extern int set_req_wwpn(ocs_t*, char*, char*); [all …]
|
H A D | ocs_drv_fc.h | 94 void (*domain_list_empty_cb)(ocs_t *ocs, void *arg); /*>> domain list empty callback */ 154 ocs_device_lock_init(ocs_t *ocs) in ocs_device_lock_init() 159 ocs_device_lock_free(ocs_t *ocs) in ocs_device_lock_free() 164 ocs_device_lock_try(ocs_t *ocs) in ocs_device_lock_try() 169 ocs_device_lock(ocs_t *ocs) in ocs_device_lock() 174 ocs_device_unlock(ocs_t *ocs) in ocs_device_unlock() 179 extern ocs_t *ocs_get_instance(uint32_t index); 180 extern int32_t ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func); 183 ocs_io_alloc(ocs_t *ocs) in ocs_io_alloc() 189 ocs_io_free(ocs_t *ocs, ocs_io_t *io) in ocs_io_free()
|
H A D | ocs.h | 76 ocs_t *ocs; 135 void (*domain_list_empty_cb)(ocs_t *ocs, void *arg); 220 ocs_device_lock_init(ocs_t *ocs) in ocs_device_lock_init() 226 ocs_device_lock_try(ocs_t *ocs) in ocs_device_lock_try() 232 ocs_device_lock(ocs_t *ocs) in ocs_device_lock() 238 ocs_device_unlock(ocs_t *ocs) in ocs_device_unlock() 244 ocs_device_lock_free(ocs_t *ocs) in ocs_device_lock_free() 249 extern int32_t ocs_device_detach(ocs_t *ocs); 251 extern int32_t ocs_device_attach(ocs_t *ocs); 265 ocs_io_alloc(ocs_t *ocs) in ocs_io_alloc() [all …]
|
H A D | ocs_utils.h | 92 ocs_t *ocs; 100 extern int32_t ocs_textbuf_alloc(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t length); 102 extern int32_t ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer, uint32_t length); 103 extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf); 214 ocs_t *ocs; 223 extern void ocs_queue_history_init(ocs_t *, ocs_hw_q_hist_t*); 293 extern int32_t ocs_pm_request(ocs_t *ocs, ocs_pm_msg_e msg, int32_t (*callback)(ocs_t *ocs, int32_t… 295 extern ocs_pm_state_e ocs_pm_get_state(ocs_t *ocs); 296 extern const char *ocs_pm_get_state_string(ocs_t *ocs); 325 extern ocs_ramlog_t *ocs_ramlog_init(ocs_t *ocs, uint32_t buffer_len, uint32_t buffer_count); [all …]
|
H A D | ocs_gendump.h | 35 extern int ocs_gen_dump(ocs_t *ocs); 36 extern int ocs_fdb_dump(ocs_t *ocs); 37 extern int ocs_dump_to_host(ocs_t *ocs, void *buf, uint32_t buflen); 38 extern int ocs_function_speciic_dump(ocs_t *ocs, void *buf, uint32_t buflen);
|
H A D | ocs_domain.h | 39 extern int32_t ocs_domain_init(ocs_t *ocs, ocs_domain_t *domain); 40 extern ocs_domain_t *ocs_domain_find(ocs_t *ocs, uint64_t fcf_wwn); 41 extern ocs_domain_t *ocs_domain_alloc(ocs_t *ocs, uint64_t fcf_wwn); 44 extern void ocs_register_domain_list_empty_cb(ocs_t *ocs, void (*callback)(ocs_t *ocs, void *arg), …
|
H A D | ocs_scsi.h | 270 extern ocs_io_t *ocs_io_get_instance(ocs_t *ocs, uint32_t index); 272 extern void ocs_scsi_register_bounce(ocs_t *ocs, void(*fctn)(void(*fctn)(void *arg), void *arg, 281 extern int32_t ocs_scsi_tgt_new_device(ocs_t *ocs); 282 extern int32_t ocs_scsi_tgt_del_device(ocs_t *ocs); 301 extern ocs_domain_t *ocs_domain_get_instance(ocs_t *ocs, uint32_t index); 319 extern uint32_t ocs_scsi_get_property(ocs_t *ocs, ocs_scsi_property_e prop); 320 extern void *ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop); 332 extern int32_t ocs_scsi_ini_new_device(ocs_t *ocs); 333 extern int32_t ocs_scsi_ini_del_device(ocs_t *ocs); 387 extern void ocs_scsi_check_pending(ocs_t *ocs);
|
H A D | ocs_ddump.h | 43 extern int ocs_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t flags, uint32_t qentries); 52 extern int32_t ocs_save_ddump(ocs_t *ocs, uint32_t flags, uint32_t qentries); 53 extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf); 55 extern int32_t ocs_clear_saved_ddump(ocs_t *ocs);
|
H A D | ocs_unsol.c | 54 static int32_t ocs_unsol_process(ocs_t *ocs, ocs_hw_sequence_t *seq); 64 static int32_t ocs_purge_pending(ocs_t *ocs, ocs_list_t *pend_list, ocs_lock_t *list_lock); 80 ocs_t *ocs = thread_data->ocs; in ocs_unsol_rq_thread() 94 ocs_unsol_process((ocs_t*)seq->hw->os, seq); in ocs_unsol_rq_thread() 117 ocs_t *ocs = arg; in ocs_unsol_abort_cb() 131 ocs_port_owned_abort(ocs_t *ocs, ocs_hw_io_t *hio) in ocs_port_owned_abort() 161 ocs_t *ocs = arg; in ocs_unsolicited_cb() 198 ocs_unsol_process(ocs_t *ocs, ocs_hw_sequence_t *seq) in ocs_unsol_process() 275 ocs_t *ocs = node->ocs; in ocs_process_node_pending() 333 ocs_t *ocs = domain->ocs; in ocs_domain_process_pending() [all …]
|
H A D | ocs_xport.c | 64 ocs_xport_alloc(ocs_t *ocs) in ocs_xport_alloc() 89 ocs_t *ocs = xport->ocs; in ocs_xport_rq_threads_teardown() 130 ocs_t *ocs = xport->ocs; in ocs_xport_rq_threads_create() 187 ocs_t *ocs = xport->ocs; in ocs_xport_attach() 305 ocs_t *ocs = xport->ocs; in ocs_xport_initialize_auto_xfer_ready() 384 ocs_topology_setup(ocs_t *ocs) in ocs_topology_setup() 413 ocs_t *ocs = xport->ocs; in ocs_xport_initialize() 633 ocs_t *ocs = xport->ocs; in ocs_xport_detach() 666 ocs_xport_domain_list_empty_cb(ocs_t *ocs, void *arg) in ocs_xport_domain_list_empty_cb() 720 ocs_t *ocs = xport->ocs; in ocs_xport_force_free() [all …]
|
H A D | ocs_gendump.c | 41 ocs_t *ocs; in ocs_gen_dump_reset() 76 ocs_gen_dump(ocs_t *ocs) in ocs_gen_dump() 84 ocs_t *nxt_ocs; in ocs_gen_dump() 195 ocs_fdb_dump(ocs_t *ocs) in ocs_fdb_dump() 248 ocs_dump_to_host(ocs_t *ocs, void *buf, uint32_t buflen) in ocs_dump_to_host() 319 ocs_function_speciic_dump(ocs_t *ocs, void *buf, uint32_t buflen) in ocs_function_speciic_dump()
|
H A D | ocs_els.c | 165 ocs_t *ocs; in ocs_els_io_alloc_size() 288 ocs_t *ocs; in _ocs_els_io_free() 456 ocs_t *ocs; in ocs_els_req_cb() 549 ocs_t *ocs; in ocs_els_acc_cb() 616 ocs_t *ocs = node->ocs; in ocs_send_plogi() 670 ocs_t *ocs; in ocs_send_flogi() 730 ocs_t *ocs; in ocs_send_fdisc() 785 ocs_t *ocs = node->ocs; in ocs_send_prli() 848 ocs_t *ocs = node->ocs; in ocs_send_prlo() 902 ocs_t *ocs; in ocs_send_logo() [all …]
|
H A D | ocs_node.h | 50 ocs_t *ocs = NULL; \ 119 extern int32_t ocs_node_create_pool(ocs_t *ocs, uint32_t node_count); 120 extern void ocs_node_free_pool(ocs_t *ocs); 121 extern ocs_node_t *ocs_node_get_instance(ocs_t *ocs, uint32_t index); 198 extern void ocs_node_dump(ocs_t *ocs);
|
H A D | ocs_ioctl.c | 56 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len, uint8_t *change_status); 86 ocs_process_sli_config (ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd, ocs_dma_t *dma) in ocs_process_sli_config() 197 ocs_process_mbx_ioctl(ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd) in ocs_process_mbx_ioctl() 279 ocs_process_ecd_helper (ocs_t *ocs, ocs_ioctl_ecd_helper_t *req) in ocs_process_ecd_helper() 672 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len, in ocs_firmware_write() 737 ocs_t *ocs = (ocs_t *)arg1; in ocs_sys_fwupgrade() 817 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_wwnn() 856 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_wwpn() 892 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_current_topology() 903 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_current_speed() [all …]
|
H A D | ocs_io.c | 64 ocs_t *ocs; /* Pointer to device object */ 101 ocs_io_pool_create(ocs_t *ocs, uint32_t num_io, uint32_t num_sgl) in ocs_io_pool_create() 192 ocs_t *ocs; in ocs_io_pool_free() 241 ocs_t *ocs; in ocs_io_pool_io_alloc() 284 ocs_t *ocs; in ocs_io_pool_io_free() 315 ocs_io_find_tgt_io(ocs_t *ocs, ocs_node_t *node, uint16_t ox_id, uint16_t rx_id) in ocs_io_find_tgt_io() 342 ocs_io_get_instance(ocs_t *ocs, uint32_t index) in ocs_io_get_instance()
|
H A D | ocs_scsi.c | 81 static uint32_t ocs_scsi_dif_check_app_tag(ocs_t *ocs, ocs_hw_dif_info_t *dif_info, uint16_t exp_ap… 82 static uint32_t ocs_scsi_dif_check_ref_tag(ocs_t *ocs, ocs_hw_dif_info_t *dif_info, uint32_t exp_re… 83 static int32_t ocs_scsi_convert_dif_info(ocs_t *ocs, ocs_scsi_dif_info_t *scsi_dif_info, 170 ocs_t *ocs; in ocs_scsi_io_alloc() 249 ocs_t *ocs = io->ocs; in _ocs_scsi_io_free() 320 ocs_t *ocs; in ocs_target_io_cb() 503 ocs_t *ocs = io->ocs; in ocs_scsi_dif_check_unknown() 602 ocs_scsi_dif_check_app_tag(ocs_t *ocs, ocs_hw_dif_info_t *dif_info, uint16_t exp_app_tag, ocs_dif_t… in ocs_scsi_dif_check_app_tag() 628 ocs_scsi_dif_check_ref_tag(ocs_t *ocs, ocs_hw_dif_info_t *dif_info, uint32_t exp_ref_tag, ocs_dif_t… in ocs_scsi_dif_check_ref_tag() 687 ocs_t *ocs = hw->os; in ocs_scsi_build_sgls() [all …]
|
H A D | ocs_io.h | 70 ocs_t *ocs; /**< pointer back to ocs */ 184 extern ocs_io_pool_t *ocs_io_pool_create(ocs_t *ocs, uint32_t num_io, uint32_t num_sgl); 190 extern ocs_io_t *ocs_io_find_tgt_io(ocs_t *ocs, ocs_node_t *node, uint16_t ox_id, uint16_t rx_id);
|
H A D | ocs_sport.h | 93 extern int32_t ocs_sport_vport_del(ocs_t *ocs, ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn); 94 extern void ocs_vport_del_all(ocs_t *ocs); 95 extern int8_t ocs_vport_create_spec(ocs_t *ocs, uint64_t wwnn, uint64_t wwpn, uint32_t fc_id, uint3…
|
H A D | ocs_os.c | 99 ocs_reg_read32(ocs_t *ocs, uint32_t rset, uint32_t off) in ocs_reg_read32() 123 ocs_reg_read16(ocs_t *ocs, uint32_t rset, uint32_t off) in ocs_reg_read16() 147 ocs_reg_read8(ocs_t *ocs, uint32_t rset, uint32_t off) in ocs_reg_read8() 172 ocs_reg_write32(ocs_t *ocs, uint32_t rset, uint32_t off, uint32_t val) in ocs_reg_write32() 197 ocs_reg_write16(ocs_t *ocs, uint32_t rset, uint32_t off, uint16_t val) in ocs_reg_write16() 222 ocs_reg_write8(ocs_t *ocs, uint32_t rset, uint32_t off, uint8_t val) in ocs_reg_write8() 566 void _ocs_log(ocs_t *ocs, const char *func_name, int line, const char *fmt, ...) in _ocs_log() 884 ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func) in ocs_get_bus_dev_func()
|
H A D | ocs_xport.h | 55 ocs_t *ocs; 162 ocs_t *ocs; 202 extern ocs_xport_t *ocs_xport_alloc(ocs_t *ocs);
|
H A D | ocs_cam.h | 115 extern int32_t ocs_cam_attach(ocs_t *ocs); 116 extern int32_t ocs_cam_detach(ocs_t *ocs);
|
H A D | ocs_cam.c | 99 static void ocs_delete_target(ocs_t *ocs, ocs_fcport *fcp, int tgt); 122 ocs_attach_port(ocs_t *ocs, int chan) in ocs_attach_port() 167 ocs_detach_port(ocs_t *ocs, int32_t chan) in ocs_detach_port() 199 ocs_cam_attach(ocs_t *ocs) in ocs_cam_attach() 241 ocs_cam_detach(ocs_t *ocs) in ocs_cam_detach() 272 ocs_scsi_tgt_new_device(ocs_t *ocs) in ocs_scsi_tgt_new_device() 293 ocs_scsi_tgt_del_device(ocs_t *ocs) in ocs_scsi_tgt_del_device() 371 ocs_t *ocs = sport->ocs; in ocs_scsi_tgt_new_sport() 423 ocs_t *ocs = node->ocs; in ocs_scsi_new_initiator() 495 ocs_t *ocs = node->ocs; in ocs_scsi_del_initiator() [all …]
|
H A D | ocs_node.c | 114 ocs_t *ocs = arg; in ocs_remote_node_cb() 233 ocs_node_create_pool(ocs_t *ocs, uint32_t node_count) in ocs_node_create_pool() 304 ocs_node_free_pool(ocs_t *ocs) in ocs_node_free_pool() 343 ocs_node_get_instance(ocs_t *ocs, uint32_t index) in ocs_node_get_instance() 375 ocs_t *ocs = sport->ocs; in ocs_node_alloc() 466 ocs_t *ocs; in ocs_node_free() 627 ocs_t *ocs = node->ocs; in ocs_node_attach() 732 ocs_t *ocs = node->ocs; in ocs_node_send_ls_io_cleanup() 922 ocs_t *ocs; in ocs_node_initiate_cleanup() 1224 ocs_t *ocs = NULL; in __ocs_node_common() [all …]
|
H A D | ocs_common.h | 154 ocs_t *ocs; /**< pointer to ocs */ 214 ocs_t *ocs; /**< pointer back to ocs */ 322 ocs_t *ocs; /**< pointer back to ocs structure */
|