Home
last modified time | relevance | path

Searched refs:ocs_t (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/sys/dev/ocs_fc/
H A Docs_mgmt.c67 static void get_sn(ocs_t *, char *, ocs_textbuf_t*);
68 static void get_pn(ocs_t *, char *, ocs_textbuf_t*);
120 static int set_logmask(ocs_t*, char*, char*);
122 static int set_linkcfg(ocs_t*, char*, char*);
123 static int set_nodedb_mask(ocs_t*, char*, char*);
134 static int set_nv_wwn(ocs_t*, char*, char*);
135 static int set_loglevel(ocs_t*, char*, char*);
376 ocs_mgmt_set(ocs_t *ocs, char *name, char *value) in ocs_mgmt_set()
565 ocs_t *other_ocs; in ocs_mgmt_firmware_reset()
731 ocs_t *ocs = os; in ocs_mgmt_sfp_cb()
[all …]
H A Docs_mgmt.h62 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);
111 extern int set_req_wwnn(ocs_t*, char*, char*);
112 extern int set_req_wwpn(ocs_t*, char*, char*);
113 extern int set_configured_speed(ocs_t*, char*, char*);
[all …]
H A Docs_drv_fc.h94 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 Docs.h76 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 Docs_utils.h92 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 Docs_gendump.h35 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 Docs_domain.h39 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 Docs_ddump.h43 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 Docs_scsi.h270 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 Docs_unsol.c117 ocs_t *ocs = arg; in ocs_unsol_abort_cb()
161 ocs_t *ocs = arg; in ocs_unsolicited_cb()
275 ocs_t *ocs = node->ocs; in ocs_process_node_pending()
333 ocs_t *ocs = domain->ocs; in ocs_domain_process_pending()
447 ocs_t *ocs = domain->ocs; in ocs_domain_purge_pending()
490 ocs_t *ocs = domain->ocs; in ocs_domain_frames_held()
515 ocs_t *ocs = domain->ocs; in ocs_domain_hold_frames()
882 ocs_t *ocs = node->ocs; in ocs_dispatch_fcp_cmd()
980 ocs_t *ocs = node->ocs; in ocs_dispatch_fcp_cmd_auto_xfer_rdy()
1071 ocs_t *ocs = node->ocs; in ocs_dispatch_fcp_data()
[all …]
H A Docs_gendump.c41 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 Docs_xport.c64 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()
413 ocs_t *ocs = xport->ocs; in ocs_xport_initialize()
633 ocs_t *ocs = xport->ocs; in ocs_xport_detach()
754 ocs_t *ocs = NULL; in ocs_xport_control()
837 ocs_t *ocs; in ocs_xport_control()
948 ocs_t *ocs = NULL; in ocs_xport_status()
[all …]
H A Docs_node.h50 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 Docs_els.c165 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()
670 ocs_t *ocs; in ocs_send_flogi()
730 ocs_t *ocs; in ocs_send_fdisc()
902 ocs_t *ocs; in ocs_send_logo()
961 ocs_t *ocs; in ocs_send_adisc()
1654 ocs_t *ocs; in ocs_send_adisc_acc()
1901 ocs_t *ocs; in ocs_bls_send_acc()
[all …]
H A Docs_ioctl.c197 ocs_process_mbx_ioctl(ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd) in ocs_process_mbx_ioctl()
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()
915 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_config_topology()
945 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_config_speed()
974 ocs_t *ocs = oidp->oid_arg1; in ocs_sysctl_fcid()
993 ocs_t *ocs = (ocs_t *)arg1; in ocs_sysctl_port_state()
[all …]
H A Docs_io.c64 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 Docs_io.h70 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 Docs_sport.h93 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 Docs_scsi.c170 ocs_t *ocs; in ocs_scsi_io_alloc()
320 ocs_t *ocs; in ocs_target_io_cb()
1462 ocs_t *ocs; in ocs_scsi_xfer_data()
1631 ocs_t *ocs; in ocs_scsi_send_resp()
1751 ocs_t *ocs = NULL; in ocs_scsi_send_tmf_resp()
1849 ocs_t *ocs; in ocs_target_abort_cb()
1921 ocs_t *ocs; in ocs_scsi_tgt_abort_io()
1995 ocs_t *ocs; in ocs_target_bls_resp_cb()
2123 ocs_t *ocs; in ocs_initiator_io_cb()
2488 ocs_t *ocs; in ocs_scsi_send_io()
[all …]
H A Docs_os.c99 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 Docs_cam.h115 extern int32_t ocs_cam_attach(ocs_t *ocs);
116 extern int32_t ocs_cam_detach(ocs_t *ocs);
H A Docs_xport.h55 ocs_t *ocs;
162 ocs_t *ocs;
202 extern ocs_xport_t *ocs_xport_alloc(ocs_t *ocs);
H A Docs_common.h154 ocs_t *ocs; /**< pointer to ocs */
214 ocs_t *ocs; /**< pointer back to ocs */
322 ocs_t *ocs; /**< pointer back to ocs structure */
H A Docs_cam.c199 ocs_cam_attach(ocs_t *ocs) in ocs_cam_attach()
241 ocs_cam_detach(ocs_t *ocs) in ocs_cam_detach()
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()
551 ocs_t *ocs = io->ocs; in ocs_scsi_recv_cmd()
684 ocs_t *ocs = tmfio->ocs; in ocs_scsi_recv_tmf()
907 ocs_t *ocs = sport->ocs; in ocs_scsi_ini_new_sport()
935 ocs_t *ocs = sport->ocs; in ocs_scsi_ini_del_sport()
1124 ocs_t *ocs = fcp->ocs; in ocs_ldt_task()
[all …]
H A Docs_node.c114 ocs_t *ocs = arg; in ocs_remote_node_cb()
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()
1612 ocs_t *ocs = NULL; in node_check_els_req()
1662 ocs_t *ocs = NULL; in node_check_ns_req()
2099 ocs_t *ocs = node->ocs; in ocs_node_recv_els_frame()
[all …]

12