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

12

/freebsd-current/sys/dev/ocs_fc/
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_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);
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*, cha
[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)
159 ocs_device_lock_free(ocs_t *ocs)
164 ocs_device_lock_try(ocs_t *ocs)
169 ocs_device_lock(ocs_t *ocs)
174 ocs_device_unlock(ocs_t *ocs)
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)
189 ocs_io_free(ocs_t *oc
[all...]
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)
226 ocs_device_lock_try(ocs_t *ocs)
232 ocs_device_lock(ocs_t *ocs)
238 ocs_device_unlock(ocs_t *ocs)
244 ocs_device_lock_free(ocs_t *ocs)
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 *oc
[all...]
H A Docs_mgmt.c50 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 *, cha
[all...]
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_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), void *arg);
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 status, void *arg),
295 extern ocs_pm_state_e ocs_pm_get_state(ocs_t *ocs);
296 extern const char *ocs_pm_get_state_string(ocs_t *oc
[all...]
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_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, uint32_t enable_ini, uint32_t enable_tgt, void *tgt_data, void *ini_data);
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_gendump.c41 ocs_t *ocs;
76 ocs_gen_dump(ocs_t *ocs)
84 ocs_t *nxt_ocs;
195 ocs_fdb_dump(ocs_t *ocs)
248 ocs_dump_to_host(ocs_t *ocs, void *buf, uint32_t buflen)
319 ocs_function_speciic_dump(ocs_t *ocs, void *buf, uint32_t buflen)
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 *oc
[all...]
H A Docs_unsol.c54 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;
94 ocs_unsol_process((ocs_t*)seq->hw->os, seq);
117 ocs_t *ocs = arg;
131 ocs_port_owned_abort(ocs_t *ocs, ocs_hw_io_t *hio)
161 ocs_t *ocs = arg;
198 ocs_unsol_process(ocs_t *ocs, ocs_hw_sequence_t *seq)
275 ocs_t *ocs = node->ocs;
333 ocs_t *oc
[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_xport.h55 ocs_t *ocs;
162 ocs_t *ocs;
202 extern ocs_xport_t *ocs_xport_alloc(ocs_t *ocs);
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)
192 ocs_t *ocs;
241 ocs_t *ocs;
284 ocs_t *ocs;
315 ocs_io_find_tgt_io(ocs_t *ocs, ocs_node_t *node, uint16_t ox_id, uint16_t rx_id)
342 ocs_io_get_instance(ocs_t *ocs, uint32_t index)
H A Docs_xport.c64 ocs_xport_alloc(ocs_t *ocs)
89 ocs_t *ocs = xport->ocs;
130 ocs_t *ocs = xport->ocs;
187 ocs_t *ocs = xport->ocs;
305 ocs_t *ocs = xport->ocs;
384 ocs_topology_setup(ocs_t *ocs)
413 ocs_t *ocs = xport->ocs;
633 ocs_t *ocs = xport->ocs;
666 ocs_xport_domain_list_empty_cb(ocs_t *ocs, void *arg)
720 ocs_t *oc
[all...]
H A Docs_ioctl.c56 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)
197 ocs_process_mbx_ioctl(ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd)
279 ocs_process_ecd_helper (ocs_t *ocs, ocs_ioctl_ecd_helper_t *req)
672 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len,
737 ocs_t *ocs = (ocs_t *)arg1;
817 ocs_t *ocs = oidp->oid_arg1;
856 ocs_t *ocs = oidp->oid_arg1;
892 ocs_t *oc
[all...]
H A Docs_os.c99 ocs_reg_read32(ocs_t *ocs, uint32_t rset, uint32_t off)
123 ocs_reg_read16(ocs_t *ocs, uint32_t rset, uint32_t off)
147 ocs_reg_read8(ocs_t *ocs, uint32_t rset, uint32_t off)
172 ocs_reg_write32(ocs_t *ocs, uint32_t rset, uint32_t off, uint32_t val)
197 ocs_reg_write16(ocs_t *ocs, uint32_t rset, uint32_t off, uint16_t val)
222 ocs_reg_write8(ocs_t *ocs, uint32_t rset, uint32_t off, uint8_t val)
566 void _ocs_log(ocs_t *ocs, const char *func_name, int line, const char *fmt, ...)
884 ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func)
H A Docs_els.c165 ocs_t *ocs;
288 ocs_t *ocs;
456 ocs_t *ocs;
549 ocs_t *ocs;
616 ocs_t *ocs = node->ocs;
670 ocs_t *ocs;
730 ocs_t *ocs;
785 ocs_t *ocs = node->ocs;
848 ocs_t *ocs = node->ocs;
902 ocs_t *oc
[all...]
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_scsi.c81 static uint32_t 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);
82 static uint32_t 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);
83 static int32_t ocs_scsi_convert_dif_info(ocs_t *ocs, ocs_scsi_dif_info_t *scsi_dif_info,
170 ocs_t *ocs;
249 ocs_t *ocs = io->ocs;
320 ocs_t *ocs;
503 ocs_t *ocs = io->ocs;
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 *dif)
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 *dif)
687 ocs_t *oc
[all...]
H A Docs_os.h155 typedef struct ocs_softc ocs_t; typedef in typeref:struct:ocs_softc
166 typedef ocs_t * ocs_os_handle_t;
369 extern void _ocs_log(ocs_t *ocs, const char *func, int line, const char *fmt, ...);
616 ocs_rlock_init(ocs_t *ocs, ocs_rlock_t *lock, const char *name)
1055 ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func);
1057 extern ocs_t *ocs_get_instance(uint32_t index);
H A Docs_node.c114 ocs_t *ocs = arg;
233 ocs_node_create_pool(ocs_t *ocs, uint32_t node_count)
304 ocs_node_free_pool(ocs_t *ocs)
343 ocs_node_get_instance(ocs_t *ocs, uint32_t index)
375 ocs_t *ocs = sport->ocs;
466 ocs_t *ocs;
627 ocs_t *ocs = node->ocs;
732 ocs_t *ocs = node->ocs;
922 ocs_t *ocs;
1224 ocs_t *oc
[all...]

Completed in 249 milliseconds

12