Searched refs:ocs (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-11-stable/sys/dev/ocs_fc/
H A Docs_pci.c41 #include "ocs.h"
70 static int32_t ocs_init_dma_tag(struct ocs_softc *ocs);
72 static int32_t ocs_setup_fcports(ocs_t *ocs);
115 ocs_map_bars(device_t dev, struct ocs_softc *ocs) argument
122 ocs->reg[0].rid = PCIR_BAR(PCI_64BIT_BAR0);
123 ocs->reg[0].res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
124 &ocs->reg[0].rid, RF_ACTIVE);
126 if (ocs->reg[0].res == NULL) {
128 ocs->reg[0].rid);
132 ocs
139 ocs_setup_params(struct ocs_softc *ocs) argument
321 ocs_setup_fcports(ocs_t *ocs) argument
367 ocs_device_attach(ocs_t *ocs) argument
464 struct ocs_softc *ocs; local
569 ocs_device_detach(ocs_t *ocs) argument
624 struct ocs_softc *ocs; local
686 ocs_release_bus(struct ocs_softc *ocs) argument
726 ocs_intr_alloc(struct ocs_softc *ocs) argument
767 ocs_intr_setup(struct ocs_softc *ocs) argument
794 ocs_intr_teardown(struct ocs_softc *ocs) argument
821 struct ocs_softc *ocs = NULL; local
857 struct ocs_softc *ocs = intr->softc; local
872 ocs_init_dma_tag(struct ocs_softc *ocs) argument
941 ocs_t *ocs = os; local
[all...]
H A Docs_xport.c40 #include "ocs.h"
61 * @param ocs Pointer to device instance.
66 ocs_xport_alloc(ocs_t *ocs) argument
70 ocs_assert(ocs, NULL);
71 xport = ocs_malloc(ocs, sizeof(*xport), OCS_M_ZERO);
73 xport->ocs = ocs;
91 ocs_t *ocs = xport->ocs; local
104 ocs_log_debug(ocs, "wai
132 ocs_t *ocs = xport->ocs; local
189 ocs_t *ocs = xport->ocs; local
313 ocs_t *ocs = xport->ocs; local
391 ocs_t *ocs = xport->ocs; local
604 ocs_t *ocs = xport->ocs; local
637 ocs_xport_domain_list_empty_cb(ocs_t *ocs, void *arg) argument
691 ocs_t *ocs = xport->ocs; local
725 ocs_t *ocs = NULL; local
808 ocs_t *ocs; local
920 ocs_t *ocs = NULL; local
1089 ocs_t *ocs; local
[all...]
H A Docs_drv_fc.h98 void (*domain_list_empty_cb)(ocs_t *ocs, void *arg); /*>> domain list empty callback */
154 #define ocs_is_fc_initiator_enabled() (ocs->enable_ini)
155 #define ocs_is_fc_target_enabled() (ocs->enable_tgt)
158 ocs_device_lock_init(ocs_t *ocs) argument
160 ocs_rlock_init(ocs, &ocs->lock, "ocsdevicelock");
163 ocs_device_lock_free(ocs_t *ocs) argument
165 ocs_rlock_free(&ocs->lock);
168 ocs_device_lock_try(ocs_t *ocs) argument
170 return ocs_rlock_try(&ocs
173 ocs_device_lock(ocs_t *ocs) argument
178 ocs_device_unlock(ocs_t *ocs) argument
187 ocs_io_alloc(ocs_t *ocs) argument
193 ocs_io_free(ocs_t *ocs, ocs_io_t *io) argument
[all...]
H A Docs_ioctl.c34 #include "ocs.h"
58 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len, uint8_t *change_status);
64 struct ocs_softc *ocs = cdev->si_drv1;
66 device_printf(ocs->dev, "%s\n", __func__);
75 struct ocs_softc *ocs = cdev->si_drv1;
77 device_printf(ocs->dev, "%s\n", __func__);
85 struct ocs_softc *ocs = arg; local
88 mtx_lock(&ocs->dbg_lock);
90 mtx_unlock(&ocs->dbg_lock);
98 ocs_process_sli_config (ocs_t *ocs, ocs_ioctl_elxu_mbox_ argument
198 ocs_process_mbx_ioctl(ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd) argument
275 ocs_process_ecd_helper(ocs_t *ocs, ocs_ioctl_ecd_helper_t *req) argument
356 struct ocs_softc *ocs = cdev->si_drv1; local
673 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len, uint8_t *change_status) argument
739 ocs_t *ocs = (ocs_t *)arg1; local
821 ocs_t *ocs = oidp->oid_arg1; local
861 ocs_t *ocs = oidp->oid_arg1; local
898 ocs_t *ocs = oidp->oid_arg1; local
909 ocs_t *ocs = oidp->oid_arg1; local
921 ocs_t *ocs = oidp->oid_arg1; local
951 ocs_t *ocs = oidp->oid_arg1; local
980 ocs_t *ocs = oidp->oid_arg1; local
1000 ocs_t *ocs = (ocs_t *)arg1; local
1077 ocs_sysctl_init(ocs_t *ocs) argument
1213 struct ocs_softc *ocs = os; local
1244 struct ocs_softc *ocs = os; local
[all...]
H A Docs.h31 * $FreeBSD: stable/11/sys/dev/ocs_fc/ocs.h 344054 2019-02-12 17:05:59Z ram $
83 ocs_t *ocs; member in struct:ocs_fcport_s
99 #define FCPORT(ocs, chan) (&((ocs_fcport *)(ocs)->fcports)[(chan)])
143 void (*domain_list_empty_cb)(ocs_t *ocs, void *arg);
229 ocs_device_lock_init(ocs_t *ocs) argument
231 ocs_rlock_init(ocs, &ocs->lock, "ocsdevicelock");
235 ocs_device_lock_try(ocs_t *ocs) argument
237 return ocs_rlock_try(&ocs
241 ocs_device_lock(ocs_t *ocs) argument
247 ocs_device_unlock(ocs_t *ocs) argument
253 ocs_device_lock_free(ocs_t *ocs) argument
274 ocs_io_alloc(ocs_t *ocs) argument
280 ocs_io_free(ocs_t *ocs, ocs_io_t *io) argument
[all...]
H A Docs_mgmt.c43 #include "ocs.h"
51 static int ocs_mgmt_firmware_write(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t);
52 static int ocs_mgmt_firmware_reset(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t);
53 static int ocs_mgmt_function_reset(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t);
56 static int ocs_mgmt_force_assert(ocs_t *ocs, char *, void *buf, uint32_t buf_len, void*, uint32_t);
60 ocs_mgmt_read_phys(ocs_t *ocs, char *, void *, uint32_t , void *, uint32_t);
108 static void get_chip_type(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf);
109 static void get_tgt_rscn_delay(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf);
110 static void get_tgt_rscn_period(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf);
111 static void get_inject_drop_cmd(ocs_t *ocs, cha
234 ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf) argument
308 ocs_mgmt_get(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
396 ocs_mgmt_set(ocs_t *ocs, char *name, char *value) argument
479 ocs_mgmt_exec(ocs_t *ocs, char *action, void *arg_in, uint32_t arg_in_length, void *arg_out, uint32_t arg_out_length) argument
538 ocs_mgmt_get_all(ocs_t *ocs, ocs_textbuf_t *textbuf) argument
576 ocs_mgmt_read_phys(ocs_t *ocs, char *name, void *arg_in, uint32_t arg_in_length, void *arg_out, uint32_t arg_out_length) argument
717 ocs_mgmt_firmware_reset(ocs_t *ocs, char *name, void *buf, uint32_t buf_len, void *arg_out, uint32_t arg_out_length) argument
760 ocs_mgmt_function_reset(ocs_t *ocs, char *name, void *buf, uint32_t buf_len, void *arg_out, uint32_t arg_out_length) argument
771 ocs_mgmt_firmware_write(ocs_t *ocs, char *name, void *buf, uint32_t buf_len, void *arg_out, uint32_t arg_out_length) argument
892 ocs_t *ocs = os; local
912 ocs_mgmt_get_sfp(ocs_t *ocs, uint16_t page, void *buf, uint32_t buf_len) argument
955 ocs_mgmt_force_assert(ocs_t *ocs, char *name, void *buf, uint32_t buf_len, void *arg_out, uint32_t arg_out_length) argument
961 get_nodes_count(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
969 get_driver_version(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
975 get_desc(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
981 get_fw_rev(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
987 get_fw_rev2(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
993 get_ipl(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
999 get_hw_rev1(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1009 get_hw_rev2(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1019 get_hw_rev3(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1028 get_wwnn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1038 get_wwpn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1048 get_fcid(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1061 get_sn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1077 get_pn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1095 get_sli4_intf_reg(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1103 get_phy_port_num(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1115 get_asic_id(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1123 get_chip_type(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1219 get_pci_vendor(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1226 get_pci_device(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1233 get_pci_subsystem_vendor(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1240 get_pci_subsystem_device(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1247 get_tgt_rscn_delay(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1253 get_tgt_rscn_period(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1259 get_inject_drop_cmd(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1266 get_inject_free_drop_cmd(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1273 get_inject_drop_data(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1280 get_inject_drop_resp(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1287 get_cmd_err_inject(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1293 get_cmd_delay_value(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1299 get_businfo(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1305 get_sfp_a0(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1348 get_sfp_a2(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1391 get_debug_mq_dump(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1399 get_debug_cq_dump(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1407 get_debug_wq_dump(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1414 get_debug_eq_dump(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1421 get_logmask(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1429 get_loglevel(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1437 get_current_speed(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1447 get_configured_speed(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1461 get_current_topology(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1471 get_configured_topology(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1481 get_current_link_state(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1495 get_configured_link_state(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1588 get_linkcfg(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1609 get_req_wwnn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1626 get_req_wwpn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1643 get_nodedb_mask(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
1659 set_req_wwnn(ocs_t *ocs, char *name, char *value) argument
1703 set_req_wwpn(ocs_t *ocs, char *name, char *value) argument
1746 set_nodedb_mask(ocs_t *ocs, char *name, char *value) argument
1762 set_linkcfg(ocs_t *ocs, char *name, char *value) argument
1814 set_debug_mq_dump(ocs_t *ocs, char *name, char *value) argument
1832 set_debug_cq_dump(ocs_t *ocs, char *name, char *value) argument
1850 set_debug_wq_dump(ocs_t *ocs, char *name, char *value) argument
1868 set_debug_eq_dump(ocs_t *ocs, char *name, char *value) argument
1886 set_logmask(ocs_t *ocs, char *name, char *value) argument
1895 set_loglevel(ocs_t *ocs, char *name, char *value) argument
1904 set_configured_speed(ocs_t *ocs, char *name, char *value) argument
1946 set_configured_topology(ocs_t *ocs, char *name, char *value) argument
1985 set_configured_link_state(ocs_t *ocs, char *name, char *value) argument
2033 get_port_protocol(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
2103 set_port_protocol(ocs_t *ocs, char *name, char *value) argument
2179 get_profile_list(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
2256 get_active_profile(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
2309 set_active_profile(ocs_t *ocs, char *name, char *value) argument
2374 get_nv_wwpn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
2412 get_nv_wwnn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
2449 get_node_abort_cnt(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf) argument
2522 set_nv_wwn(ocs_t *ocs, char *name, char *wwn_p) argument
2618 set_tgt_rscn_delay(ocs_t *ocs, char *name, char *value) argument
2626 set_tgt_rscn_period(ocs_t *ocs, char *name, char *value) argument
2634 set_inject_drop_cmd(ocs_t *ocs, char *name, char *value) argument
2642 set_inject_free_drop_cmd(ocs_t *ocs, char *name, char *value) argument
2650 set_inject_drop_data(ocs_t *ocs, char *name, char *value) argument
2658 set_inject_drop_resp(ocs_t *ocs, char *name, char *value) argument
2666 set_cmd_err_inject(ocs_t *ocs, char *name, char *value) argument
2674 set_cmd_delay_value(ocs_t *ocs, char *name, char *value) argument
[all...]
H A Docs_domain.c43 #include "ocs.h"
50 if (OCS_LOG_ENABLE_DOMAIN_SM_TRACE(domain->ocs)) \
51 ocs_log_info(domain->ocs, "[domain] %-20s %-20s\n", __func__, ocs_sm_event_name(evt)); \
56 if (OCS_LOG_ENABLE_DOMAIN_SM_TRACE(domain ? domain->ocs : NULL)) \
57 ocs_log_info(domain ? domain->ocs : NULL, fmt, ##__VA_ARGS__); \
62 ocs_log_info(domain ? domain->ocs : NULL, fmt, ##__VA_ARGS__); \
98 ocs_t *ocs = arg; local
118 domain = ocs_domain_find(ocs, fcf_wwn);
120 domain = ocs_domain_alloc(ocs, fcf_wwn);
122 ocs_log_err(ocs, "ocs_domain_allo
191 ocs_domain_find(ocs_t *ocs, uint64_t fcf_wwn) argument
220 ocs_domain_alloc(ocs_t *ocs, uint64_t fcf_wwn) argument
279 ocs_t *ocs; local
360 ocs_register_domain_list_empty_cb(ocs_t *ocs, void (*callback)(ocs_t *ocs, void *arg), void *arg) argument
384 ocs_domain_get_instance(ocs_t *ocs, uint32_t index) argument
[all...]
H A Docs_io.c43 #include "ocs.h"
66 ocs_t *ocs; /* Pointer to device object */ member in struct:ocs_io_pool_s
94 * @param ocs Driver instance's software context.
103 ocs_io_pool_create(ocs_t *ocs, uint32_t num_io, uint32_t num_sgl) argument
110 io_pool = ocs_malloc(ocs, sizeof(*io_pool), OCS_M_ZERO | OCS_M_NOWAIT);
112 ocs_log_err(ocs, "allocate of IO pool failed\n");
116 io_pool->ocs = ocs;
120 ocs_lock_init(ocs, &io_pool->lock, "io_pool lock[%d]", ocs
194 ocs_t *ocs; local
243 ocs_t *ocs; local
286 ocs_t *ocs; local
317 ocs_io_find_tgt_io(ocs_t *ocs, ocs_node_t *node, uint16_t ox_id, uint16_t rx_id) argument
344 ocs_io_get_instance(ocs_t *ocs, uint32_t index) argument
[all...]
H A Docs_unsol.c43 #include "ocs.h"
49 #define frame_printf(ocs, hdr, fmt, ...) \
53 ocs_log_debug(ocs, "[%06x.%s] %02x/%04x/%04x: " fmt, fc_be24toh((hdr)->d_id), s_id_text, \
57 static int32_t ocs_unsol_process(ocs_t *ocs, ocs_hw_sequence_t *seq);
67 static int32_t ocs_purge_pending(ocs_t *ocs, ocs_list_t *pend_list, ocs_lock_t *list_lock);
83 ocs_t *ocs = thread_data->ocs; local
87 ocs_log_debug(ocs, "%s running\n", mythread->name);
105 ocs_log_debug(ocs, "%s exiting\n", mythread->name);
120 ocs_t *ocs local
135 ocs_port_owned_abort(ocs_t *ocs, ocs_hw_io_t *hio) argument
165 ocs_t *ocs = arg; local
202 ocs_unsol_process(ocs_t *ocs, ocs_hw_sequence_t *seq) argument
279 ocs_t *ocs = node->ocs; local
337 ocs_t *ocs = domain->ocs; local
396 ocs_purge_pending(ocs_t *ocs, ocs_list_t *pend_list, ocs_lock_t *list_lock) argument
451 ocs_t *ocs = domain->ocs; local
494 ocs_t *ocs = domain->ocs; local
519 ocs_t *ocs = domain->ocs; local
547 ocs_t *ocs = domain->ocs; local
580 ocs_t *ocs = domain->ocs; local
793 ocs_validate_fcp_cmd(ocs_t *ocs, ocs_hw_sequence_t *seq) argument
886 ocs_t *ocs = node->ocs; local
984 ocs_t *ocs = node->ocs; local
1075 ocs_t *ocs = node->ocs; local
1235 ocs_t *ocs = node->ocs; local
[all...]
H A Docs_utils.h96 ocs_t *ocs; member in struct:__anon7659
104 extern int32_t ocs_textbuf_alloc(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t length);
106 extern int32_t ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer, uint32_t length);
107 extern void ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf);
148 #define OCS_LOG_ENABLE_SM_TRACE(ocs) (((ocs) != NULL) ? (((ocs)->logmask & (1U << 0)) != 0) : 0)
149 #define OCS_LOG_ENABLE_ELS_TRACE(ocs) (((ocs) != NULL) ? (((ocs)
223 ocs_t *ocs; member in struct:__anon7662
[all...]
H A Docs_domain.h41 extern int32_t ocs_domain_init(ocs_t *ocs, ocs_domain_t *domain);
42 extern ocs_domain_t *ocs_domain_find(ocs_t *ocs, uint64_t fcf_wwn);
43 extern ocs_domain_t *ocs_domain_alloc(ocs_t *ocs, uint64_t fcf_wwn);
46 extern void ocs_register_domain_list_empty_cb(ocs_t *ocs, void (*callback)(ocs_t *ocs, void *arg), void *arg);
58 return ocs_device_lock_try(domain->ocs);
65 ocs_device_lock(domain->ocs);
72 ocs_device_unlock(domain->ocs);
H A Docs_cam.c46 #include "ocs.h"
66 static uint32_t ocs_abort_initiator_io(struct ocs_softc *ocs, union ccb *accb);
67 static void ocs_abort_inot(struct ocs_softc *ocs, union ccb *ccb);
68 static void ocs_abort_atio(struct ocs_softc *ocs, union ccb *ccb);
75 ocs_fcp_change_role(struct ocs_softc *ocs, ocs_fcport *fcp, uint32_t new_role);
79 static void ocs_delete_target(ocs_t *ocs, ocs_fcport *fcp, int tgt);
85 static inline ocs_io_t *ocs_scsi_find_io(struct ocs_softc *ocs, uint32_t tag) argument
88 return ocs_io_get_instance(ocs, tag);
97 if(io->ocs->io_in_use != 0)
98 atomic_subtract_acq_32(&io->ocs
102 ocs_attach_port(ocs_t *ocs, int chan) argument
147 ocs_detach_port(ocs_t *ocs, int32_t chan) argument
179 ocs_cam_attach(ocs_t *ocs) argument
221 ocs_cam_detach(ocs_t *ocs) argument
252 ocs_scsi_tgt_new_device(ocs_t *ocs) argument
273 ocs_scsi_tgt_del_device(ocs_t *ocs) argument
352 ocs_t *ocs = sport->ocs; local
404 ocs_t *ocs = node->ocs; local
476 ocs_t *ocs = node->ocs; local
533 ocs_t *ocs = io->ocs; local
663 ocs_t *ocs = tmfio->ocs; local
792 ocs_scsi_ini_new_device(ocs_t *ocs) argument
810 ocs_scsi_ini_del_device(ocs_t *ocs) argument
888 ocs_t *ocs = sport->ocs; local
916 ocs_t *ocs = sport->ocs; local
927 ocs_t *ocs = sport->ocs; local
1016 struct ocs_softc *ocs = node->ocs; local
1066 ocs_delete_target(ocs_t *ocs, ocs_fcport *fcp, int tgt) argument
1105 ocs_t *ocs = fcp->ocs; local
1164 struct ocs_softc *ocs = node->ocs; local
1293 ocs_t *ocs = io->ocs; local
1349 struct ocs_softc *ocs = csio->ccb_h.ccb_ocs_ptr; local
1419 struct ocs_softc *ocs = NULL; local
1466 struct ocs_softc *ocs = csio->ccb_h.ccb_ocs_ptr; local
1596 ocs_build_scsi_sgl(struct ocs_softc *ocs, union ccb *ccb, ocs_io_t *io, ocs_scsi_sgl_t *sgl, uint32_t sgl_max) argument
1639 ocs_target_io(struct ocs_softc *ocs, union ccb *ccb) argument
1775 ocs_initiator_io(struct ocs_softc *ocs, union ccb *ccb) argument
1881 ocs_fcp_change_role(struct ocs_softc *ocs, ocs_fcport *fcp, uint32_t new_role) argument
1952 struct ocs_softc *ocs = (struct ocs_softc *)cam_sim_softc(sim); local
2525 ocs_tgt_resource_abort(struct ocs_softc *ocs, ocs_tgt_resource_t *trsrc) argument
2556 ocs_abort_atio(struct ocs_softc *ocs, union ccb *ccb) argument
2617 ocs_abort_inot(struct ocs_softc *ocs, union ccb *ccb) argument
2647 ocs_abort_initiator_io(struct ocs_softc *ocs, union ccb *accb) argument
[all...]
H A Docs_sport.c40 #include "ocs.h"
84 ocs_t *ocs = arg; local
89 ocs_log_debug(ocs, "OCS_HW_PORT_ALLOC_OK\n");
93 ocs_log_debug(ocs, "OCS_HW_PORT_ALLOC_FAIL\n");
97 ocs_log_debug(ocs, "OCS_HW_PORT_ATTACH_OK\n");
101 ocs_log_debug(ocs, "OCS_HW_PORT_ATTACH_FAIL\n");
105 ocs_log_debug(ocs, "OCS_HW_PORT_FREE_OK\n");
109 ocs_log_debug(ocs, "OCS_HW_PORT_FREE_FAIL\n");
113 ocs_log_test(ocs, "unknown event %#x\n", event);
142 if (domain->ocs
925 ocs_t *ocs = domain->ocs; local
973 ocs_t *ocs = sport->ocs; local
1097 ocs_sport_vport_del(ocs_t *ocs, ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn) argument
1157 ocs_vport_del_all(ocs_t *ocs) argument
1487 ocs_t *ocs = sport->ocs; local
1524 ocs_vport_create_spec(ocs_t *ocs, uint64_t wwnn, uint64_t wwpn, uint32_t fc_id, uint32_t enable_ini, uint32_t enable_tgt, void *tgt_data, void *ini_data) argument
1750 ocs_t *ocs; local
1852 ocs_t *ocs; local
[all...]
H A Docs_scsi.c44 #include "ocs.h"
54 #define SCSI_ITT_SIZE(ocs) ((ocs->ocs_xport == OCS_XPORT_FC) ? 4 : 8)
56 #define SCSI_IOFMT_ARGS(io) io->instance_index, SCSI_ITT_SIZE(io->ocs), io->init_task_tag, SCSI_ITT_SIZE(io->ocs), io->tgt_task_tag, io->hw_tag
58 #define enable_tsend_auto_resp(ocs) ((ocs->ctrlmask & OCS_CTRLMASK_XPORT_DISABLE_AUTORSP_TSEND) == 0)
59 #define enable_treceive_auto_resp(ocs) ((ocs->ctrlmask & OCS_CTRLMASK_XPORT_DISABLE_AUTORSP_TRECEIVE) == 0)
61 #define scsi_io_printf(io, fmt, ...) ocs_log_info(io->ocs, "[
176 ocs_t *ocs; local
254 ocs_t *ocs = io->ocs; local
327 ocs_t *ocs; local
511 ocs_t *ocs = io->ocs; local
611 ocs_scsi_dif_check_app_tag(ocs_t *ocs, ocs_hw_dif_info_t *dif_info, uint16_t exp_app_tag, ocs_dif_t *dif) argument
637 ocs_scsi_dif_check_ref_tag(ocs_t *ocs, ocs_hw_dif_info_t *dif_info, uint32_t exp_ref_tag, ocs_dif_t *dif) argument
697 ocs_t *ocs = hw->os; local
807 ocs_scsi_convert_dif_info(ocs_t *ocs, ocs_scsi_dif_info_t *scsi_dif_info, ocs_hw_dif_info_t *hw_dif_info) argument
1002 ocs_scsi_check_pending(ocs_t *ocs) argument
1135 ocs_t *ocs = io->ocs; local
1215 ocs_t *ocs = io->ocs; local
1261 ocs_t *ocs = io->ocs; local
1478 ocs_t *ocs; local
1648 ocs_t *ocs; local
1768 ocs_t *ocs = NULL; local
1867 ocs_t *ocs; local
1939 ocs_t *ocs; local
2013 ocs_t *ocs; local
2142 ocs_t *ocs; local
2504 ocs_t *ocs; local
2674 ocs_t *ocs; local
2735 ocs_scsi_get_property(ocs_t *ocs, ocs_scsi_property_e prop) argument
2799 ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop) argument
2951 ocs_scsi_register_bounce(ocs_t *ocs, void(*fctn)(void(*fctn)(void *arg), void *arg, uint32_t s_id, uint32_t d_id, uint32_t ox_id)) argument
[all...]
H A Docs_ddump.c40 #include "ocs.h"
409 ocs_t *ocs = hw->os; local
416 ocs_assert(ocs);
418 ocs_ddump_section(textbuf, "hw", ocs->instance_index);
487 ocs_ddump_section(textbuf, "workaround", ocs->instance_index);
489 ocs_ddump_endsection(textbuf, "workaround", ocs->instance_index);
492 ocs_ddump_section(textbuf, "io_inuse", ocs->instance_index);
496 ocs_ddump_endsection(textbuf, "io_inuse", ocs->instance_index);
498 ocs_ddump_section(textbuf, "io_wait_free", ocs->instance_index);
502 ocs_ddump_endsection(textbuf, "io_wait_free", ocs
641 ocs_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t flags, uint32_t qentries) argument
804 ocs_save_ddump(ocs_t *ocs, uint32_t flags, uint32_t qentries) argument
838 ocs_t *ocs; local
869 ocs_clear_saved_ddump(ocs_t *ocs) argument
[all...]
H A Docs_node.c45 #include "ocs.h"
50 #define SCSI_ITT_SIZE(ocs) ((ocs->ocs_xport == OCS_XPORT_FC) ? 4 : 8)
52 #define SCSI_IOFMT_ARGS(io) io->instance_index, SCSI_ITT_SIZE(io->ocs), io->init_task_tag, SCSI_ITT_SIZE(io->ocs), io->tgt_task_tag, io->hw_tag
54 #define scsi_io_printf(io, fmt, ...) ocs_log_debug(io->ocs, "[%s]" SCSI_IOFMT fmt, \
92 ocs_log_debug(node->ocs, "[%s] initiate ELS abort %s\n", node->display_name, els->display_name);
108 * @param arg pointer to ocs
117 ocs_t *ocs = arg; local
140 ocs_log_test(ocs, "unhandle
236 ocs_node_create_pool(ocs_t *ocs, uint32_t node_count) argument
308 ocs_node_free_pool(ocs_t *ocs) argument
347 ocs_node_get_instance(ocs_t *ocs, uint32_t index) argument
379 ocs_t *ocs = sport->ocs; local
470 ocs_t *ocs; local
631 ocs_t *ocs = node->ocs; local
736 ocs_t *ocs = node->ocs; local
927 ocs_t *ocs; local
1232 ocs_t *ocs = NULL; local
1621 ocs_t *ocs = NULL; local
1671 ocs_t *ocs = NULL; local
2115 ocs_t *ocs = node->ocs; local
2185 ocs_t *ocs = node->ocs; local
2263 ocs_t *ocs = node->ocs; local
2339 ocs_t *ocs = node->ocs; local
[all...]
H A Docs_ddump.h45 extern int ocs_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t flags, uint32_t qentries);
54 extern int32_t ocs_save_ddump(ocs_t *ocs, uint32_t flags, uint32_t qentries);
55 extern int32_t ocs_get_saved_ddump(ocs_t *ocs, ocs_textbuf_t *textbuf);
57 extern int32_t ocs_clear_saved_ddump(ocs_t *ocs);
H A Docs_mgmt.h109 extern void ocs_mgmt_get_list(ocs_t *ocs, ocs_textbuf_t *textbuf);
110 extern void ocs_mgmt_get_all(ocs_t *ocs, ocs_textbuf_t *textbuf);
111 extern int ocs_mgmt_get(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf);
112 extern int ocs_mgmt_set(ocs_t *ocs, char *name, char *value);
113 extern int ocs_mgmt_exec(ocs_t *ocs, char *action, void *arg_in, uint32_t arg_in_length,
H A Docs_els.c43 #include "ocs.h"
53 if (OCS_LOG_ENABLE_ELS_TRACE(ocs)) \
54 ocs_log_info(ocs, "[%s] %-20s\n", node->display_name, __func__); \
58 ocs_log_debug(els->node->ocs, "[%s]" ELS_IOFMT " %-8s " fmt, els->node->display_name, ELS_IOFMT_ARGS(els), els->display_name, ##__VA_ARGS__);
168 ocs_t *ocs; local
172 ocs_assert(node->ocs, NULL);
173 ocs = node->ocs;
174 ocs_assert(ocs->xport, NULL);
175 xport = ocs
291 ocs_t *ocs; local
460 ocs_t *ocs; local
554 ocs_t *ocs; local
621 ocs_t *ocs = node->ocs; local
676 ocs_t *ocs; local
736 ocs_t *ocs; local
791 ocs_t *ocs = node->ocs; local
854 ocs_t *ocs = node->ocs; local
908 ocs_t *ocs; local
968 ocs_t *ocs; local
1031 ocs_t *ocs = node->ocs; local
1081 ocs_t *ocs = node->ocs; local
1130 ocs_t *ocs = node->ocs; local
1180 ocs_t *ocs = node->ocs; local
1239 ocs_t *ocs = node->ocs; local
1288 ocs_t *ocs = node->ocs; local
1350 ocs_t *ocs = node->ocs; local
1389 ocs_t *ocs = node->ocs; local
1454 ocs_t *ocs = node->ocs; local
1511 ocs_t *ocs = node->ocs; local
1563 ocs_t *ocs = node->ocs; local
1610 ocs_t *ocs = node->ocs; local
1661 ocs_t *ocs; local
1718 ocs_t *ocs = node->ocs; local
1771 ocs_t *ocs = node->ocs; local
1833 ocs_t *ocs = node->ocs; local
1912 ocs_t *ocs; local
2002 ocs_t *ocs; local
2052 ocs_t *ocs; local
[all...]
H A Docs_sport.h63 return ocs_device_lock_try(sport->ocs);
70 ocs_device_lock(sport->ocs);
77 ocs_device_unlock(sport->ocs);
95 extern int32_t ocs_sport_vport_del(ocs_t *ocs, ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn);
96 extern void ocs_vport_del_all(ocs_t *ocs);
97 extern int8_t ocs_vport_create_spec(ocs_t *ocs, uint64_t wwnn, uint64_t wwpn, uint32_t fc_id, uint32_t enable_ini, uint32_t enable_tgt, void *tgt_data, void *ini_data);
H A Docs_os.c39 #include "ocs.h"
94 * @param ocs Pointer to the driver's context
101 ocs_reg_read32(ocs_t *ocs, uint32_t rset, uint32_t off) argument
105 reg = &ocs->reg[rset];
118 * @param ocs Pointer to the driver's context
125 ocs_reg_read16(ocs_t *ocs, uint32_t rset, uint32_t off) argument
129 reg = &ocs->reg[rset];
142 * @param ocs Pointer to the driver's context
149 ocs_reg_read8(ocs_t *ocs, uint32_t rset, uint32_t off) argument
153 reg = &ocs
174 ocs_reg_write32(ocs_t *ocs, uint32_t rset, uint32_t off, uint32_t val) argument
199 ocs_reg_write16(ocs_t *ocs, uint32_t rset, uint32_t off, uint16_t val) argument
224 ocs_reg_write8(ocs_t *ocs, uint32_t rset, uint32_t off, uint8_t val) argument
321 struct ocs_softc *ocs = os; local
363 struct ocs_softc *ocs = os; local
568 _ocs_log(ocs_t *ocs, const char *func_name, int line, const char *fmt, ...) argument
885 ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func) argument
[all...]
H A Docs_node.h45 if (OCS_LOG_ENABLE_SM_TRACE(node->ocs)) \
46 ocs_log_info(node->ocs, "[%s] %-20s\n", node->display_name, ocs_sm_event_name(evt)); \
49 #define node_printf(node, fmt, ...) ocs_log_debug(node->ocs, "[%s] " fmt, node->display_name, ##__VA_ARGS__)
53 ocs_t *ocs = NULL; \
56 ocs = node->ocs; \
57 ocs_assert(ocs, NULL); \
122 extern int32_t ocs_node_create_pool(ocs_t *ocs, uint32_t node_count);
123 extern void ocs_node_free_pool(ocs_t *ocs);
124 extern ocs_node_t *ocs_node_get_instance(ocs_t *ocs, uint32_
[all...]
H A Docs_io.h44 if (OCS_LOG_ENABLE_IO_ERRORS(io->ocs)) \
45 ocs_log_warn(io->ocs, fmt, ##__VA_ARGS__); \
73 ocs_t *ocs; /**< pointer back to ocs */ member in struct:ocs_io_s
187 extern ocs_io_pool_t *ocs_io_pool_create(ocs_t *ocs, uint32_t num_io, uint32_t num_sgl);
193 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 Docs_cam.h118 extern int32_t ocs_cam_attach(ocs_t *ocs);
119 extern int32_t ocs_cam_detach(ocs_t *ocs);
H A Docs_utils.c39 #include "ocs.h"
968 ocs_queue_history_init(ocs_t *ocs, ocs_hw_q_hist_t *q_hist) argument
970 q_hist->ocs = ocs;
973 ocs_log_debug(ocs, "q_hist not NULL, skipping init\n");
977 q_hist->q_hist = ocs_malloc(ocs, sizeof(*q_hist->q_hist)*OCS_Q_HIST_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
980 ocs_log_err(ocs, "Could not allocate queue history buffer\n");
982 ocs_lock_init(ocs, &q_hist->q_hist_lock, "queue history lock[%d]", ocs_instance(ocs));
999 ocs_t *ocs local
1694 ocs_textbuf_alloc(ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t length) argument
1747 ocs_textbuf_segment_free(ocs_t *ocs, ocs_textbuf_segment_t *segment) argument
1776 ocs_textbuf_init(ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer, uint32_t length) argument
1799 ocs_textbuf_free(ocs_t *ocs, ocs_textbuf_t *textbuf) argument
2327 ocs_ramlog_init(ocs_t *ocs, uint32_t buffer_len, uint32_t buffer_count) argument
2377 ocs_ramlog_free(ocs_t *ocs, ocs_ramlog_t *ramlog) argument
2409 ocs_ramlog_clear(ocs_t *ocs, ocs_ramlog_t *ramlog, int clear_start_of_day, int clear_recent) argument
2442 ocs_t *ocs = os; local
[all...]

Completed in 291 milliseconds

12