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

12

/freebsd-12-stable/sys/dev/ocs_fc/
H A Docs_mgmt.h66 typedef void (*ocs_mgmt_get_func)(ocs_t *, char *, ocs_textbuf_t*);
67 typedef int (*ocs_mgmt_set_func)(ocs_t *, char *, char *);
68 typedef int (*ocs_mgmt_action_func)(ocs_t *, char *, void *, uint32_t, void *, uint32_t);
109 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,
116 extern int set_req_wwnn(ocs_t*, char*, char*);
117 extern int set_req_wwpn(ocs_t*, cha
[all...]
H A Docs_drv_fc.h98 void (*domain_list_empty_cb)(ocs_t *ocs, void *arg); /*>> domain list empty callback */
158 ocs_device_lock_init(ocs_t *ocs)
163 ocs_device_lock_free(ocs_t *ocs)
168 ocs_device_lock_try(ocs_t *ocs)
173 ocs_device_lock(ocs_t *ocs)
178 ocs_device_unlock(ocs_t *ocs)
183 extern ocs_t *ocs_get_instance(uint32_t index);
184 extern int32_t ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func);
187 ocs_io_alloc(ocs_t *ocs)
193 ocs_io_free(ocs_t *oc
[all...]
H A Docs.h83 ocs_t *ocs;
143 void (*domain_list_empty_cb)(ocs_t *ocs, void *arg);
229 ocs_device_lock_init(ocs_t *ocs)
235 ocs_device_lock_try(ocs_t *ocs)
241 ocs_device_lock(ocs_t *ocs)
247 ocs_device_unlock(ocs_t *ocs)
253 ocs_device_lock_free(ocs_t *ocs)
258 extern int32_t ocs_device_detach(ocs_t *ocs);
260 extern int32_t ocs_device_attach(ocs_t *ocs);
274 ocs_io_alloc(ocs_t *oc
[all...]
H A Docs_mgmt.c51 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);
66 static void get_nodes_count(ocs_t *, char *, ocs_textbuf_t*);
67 static void get_desc(ocs_t *, char *, ocs_textbuf_t*);
68 static void get_fw_rev(ocs_t *, char *, ocs_textbuf_t*);
69 static void get_fw_rev2(ocs_t *, char *, ocs_textbuf_t*);
70 static void get_ipl(ocs_t *, cha
[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_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);
H A Docs_utils.h96 ocs_t *ocs;
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);
223 ocs_t *ocs;
232 extern void ocs_queue_history_init(ocs_t *, ocs_hw_q_hist_t*);
303 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),
305 extern ocs_pm_state_e ocs_pm_get_state(ocs_t *ocs);
306 extern const char *ocs_pm_get_state_string(ocs_t *oc
[all...]
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_io.h73 ocs_t *ocs; /**< pointer back to ocs */
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_sport.h95 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_scsi.h276 extern ocs_io_t *ocs_io_get_instance(ocs_t *ocs, uint32_t index);
278 extern void ocs_scsi_register_bounce(ocs_t *ocs, void(*fctn)(void(*fctn)(void *arg), void *arg,
287 extern int32_t ocs_scsi_tgt_new_device(ocs_t *ocs);
288 extern int32_t ocs_scsi_tgt_del_device(ocs_t *ocs);
307 extern ocs_domain_t *ocs_domain_get_instance(ocs_t *ocs, uint32_t index);
326 extern uint32_t ocs_scsi_get_property(ocs_t *ocs, ocs_scsi_property_e prop);
327 extern void *ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop);
339 extern int32_t ocs_scsi_ini_new_device(ocs_t *ocs);
340 extern int32_t ocs_scsi_ini_del_device(ocs_t *ocs);
394 extern void ocs_scsi_check_pending(ocs_t *oc
[all...]
H A Docs_unsol.c57 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;
97 ocs_unsol_process((ocs_t*)seq->hw->os, seq);
120 ocs_t *ocs = arg;
135 ocs_port_owned_abort(ocs_t *ocs, ocs_hw_io_t *hio)
165 ocs_t *ocs = arg;
202 ocs_unsol_process(ocs_t *ocs, ocs_hw_sequence_t *seq)
279 ocs_t *ocs = node->ocs;
337 ocs_t *oc
[all...]
H A Docs_node.h53 ocs_t *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_t index);
201 extern void ocs_node_dump(ocs_t *ocs);
H A Docs_xport.h57 ocs_t *ocs;
164 ocs_t *ocs;
205 extern ocs_xport_t *ocs_xport_alloc(ocs_t *ocs);
H A Docs_io.c66 ocs_t *ocs; /* Pointer to device object */
103 ocs_io_pool_create(ocs_t *ocs, uint32_t num_io, uint32_t num_sgl)
194 ocs_t *ocs;
243 ocs_t *ocs;
286 ocs_t *ocs;
317 ocs_io_find_tgt_io(ocs_t *ocs, ocs_node_t *node, uint16_t ox_id, uint16_t rx_id)
344 ocs_io_get_instance(ocs_t *ocs, uint32_t index)
H A Docs_ioctl.c58 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len, uint8_t *change_status);
98 ocs_process_sli_config (ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd, ocs_dma_t *dma){
198 ocs_process_mbx_ioctl(ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd)
275 ocs_process_ecd_helper (ocs_t *ocs, ocs_ioctl_ecd_helper_t *req)
673 ocs_firmware_write(ocs_t *ocs, const uint8_t *buf, size_t buf_len,
739 ocs_t *ocs = (ocs_t *)arg1;
821 ocs_t *ocs = oidp->oid_arg1;
861 ocs_t *ocs = oidp->oid_arg1;
898 ocs_t *oc
[all...]
H A Docs_xport.c66 ocs_xport_alloc(ocs_t *ocs)
91 ocs_t *ocs = xport->ocs;
132 ocs_t *ocs = xport->ocs;
189 ocs_t *ocs = xport->ocs;
313 ocs_t *ocs = xport->ocs;
391 ocs_t *ocs = xport->ocs;
604 ocs_t *ocs = xport->ocs;
637 ocs_xport_domain_list_empty_cb(ocs_t *ocs, void *arg)
691 ocs_t *ocs = xport->ocs;
725 ocs_t *oc
[all...]
H A Docs_os.c101 ocs_reg_read32(ocs_t *ocs, uint32_t rset, uint32_t off)
125 ocs_reg_read16(ocs_t *ocs, uint32_t rset, uint32_t off)
149 ocs_reg_read8(ocs_t *ocs, uint32_t rset, uint32_t off)
174 ocs_reg_write32(ocs_t *ocs, uint32_t rset, uint32_t off, uint32_t val)
199 ocs_reg_write16(ocs_t *ocs, uint32_t rset, uint32_t off, uint16_t val)
224 ocs_reg_write8(ocs_t *ocs, uint32_t rset, uint32_t off, uint8_t val)
568 void _ocs_log(ocs_t *ocs, const char *func_name, int line, const char *fmt, ...)
885 ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func)
H A Docs_els.c168 ocs_t *ocs;
291 ocs_t *ocs;
460 ocs_t *ocs;
554 ocs_t *ocs;
621 ocs_t *ocs = node->ocs;
676 ocs_t *ocs;
736 ocs_t *ocs;
791 ocs_t *ocs = node->ocs;
854 ocs_t *ocs = node->ocs;
908 ocs_t *oc
[all...]
H A Docs_common.h158 ocs_t *ocs; /**< pointer to ocs */
219 ocs_t *ocs; /**< pointer back to ocs */
329 ocs_t *ocs; /**< pointer back to ocs structure */
H A Docs_pci.c72 static int32_t ocs_setup_fcports(ocs_t *ocs);
74 ocs_t *ocs_devices[MAX_OCS_DEVICES];
321 ocs_setup_fcports(ocs_t *ocs)
367 ocs_device_attach(ocs_t *ocs)
569 ocs_device_detach(ocs_t *ocs)
921 ocs_t *ocs_get_instance(uint32_t index)
941 ocs_t *ocs = os;
H A Docs_scsi.c86 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);
87 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);
88 static int32_t ocs_scsi_convert_dif_info(ocs_t *ocs, ocs_scsi_dif_info_t *scsi_dif_info,
176 ocs_t *ocs;
254 ocs_t *ocs = io->ocs;
327 ocs_t *ocs;
511 ocs_t *ocs = io->ocs;
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)
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)
697 ocs_t *oc
[all...]
H A Docs_os.h157 typedef struct ocs_softc ocs_t; typedef in typeref:struct:ocs_softc
168 typedef ocs_t * ocs_os_handle_t;
372 extern void _ocs_log(ocs_t *ocs, const char *func, int line, const char *fmt, ...);
620 ocs_rlock_init(ocs_t *ocs, ocs_rlock_t *lock, const char *name)
1060 ocs_get_bus_dev_func(ocs_t *ocs, uint8_t* bus, uint8_t* dev, uint8_t* func);
1062 extern ocs_t *ocs_get_instance(uint32_t index);
H A Docs_node.c117 ocs_t *ocs = arg;
236 ocs_node_create_pool(ocs_t *ocs, uint32_t node_count)
308 ocs_node_free_pool(ocs_t *ocs)
347 ocs_node_get_instance(ocs_t *ocs, uint32_t index)
379 ocs_t *ocs = sport->ocs;
470 ocs_t *ocs;
631 ocs_t *ocs = node->ocs;
736 ocs_t *ocs = node->ocs;
927 ocs_t *ocs;
1232 ocs_t *oc
[all...]
H A Docs_domain.c98 ocs_t *ocs = arg;
191 ocs_domain_find(ocs_t *ocs, uint64_t fcf_wwn)
220 ocs_domain_alloc(ocs_t *ocs, uint64_t fcf_wwn)
279 ocs_t *ocs;
360 ocs_register_domain_list_empty_cb(ocs_t *ocs, void (*callback)(ocs_t *ocs, void *arg), void *arg)
384 ocs_domain_get_instance(ocs_t *ocs, uint32_t index)
484 ocs_t *ocs = NULL; \

Completed in 269 milliseconds

12