/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_node.h | 49 ocs_node_t *node = NULL; \ 95 ocs_node_hold_frames(ocs_node_t *node) in ocs_node_hold_frames() 113 ocs_node_accept_frames(ocs_node_t *node) in ocs_node_accept_frames() 121 extern ocs_node_t *ocs_node_get_instance(ocs_t *ocs, uint32_t index); 124 ocs_node_lock_init(ocs_node_t *node) in ocs_node_lock_init() 130 ocs_node_lock_free(ocs_node_t *node) in ocs_node_lock_free() 136 ocs_node_lock_try(ocs_node_t *node) in ocs_node_lock_try() 142 ocs_node_lock(ocs_node_t *node) in ocs_node_lock() 147 ocs_node_unlock(ocs_node_t *node) in ocs_node_unlock() 179 static inline ocs_node_enable_e ocs_node_get_enable(ocs_node_t *node) in ocs_node_get_enable() [all …]
|
H A D | ocs_els.h | 51 extern ocs_io_t *ocs_els_io_alloc(ocs_node_t *node, uint32_t reqlen, ocs_els_role_e role); 52 extern ocs_io_t *ocs_els_io_alloc_size(ocs_node_t *node, uint32_t reqlen, uint32_t rsplen, ocs_els_… 56 typedef void (*els_cb_t)(ocs_node_t *node, ocs_node_cb_t *cbdata, void *arg); 57 extern ocs_io_t *ocs_send_plogi(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t … 58 extern ocs_io_t *ocs_send_flogi(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t … 59 extern ocs_io_t *ocs_send_fdisc(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t … 60 extern ocs_io_t *ocs_send_prli(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t c… 61 extern ocs_io_t *ocs_send_prlo(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t c… 62 extern ocs_io_t *ocs_send_logo(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t c… 63 extern ocs_io_t *ocs_send_adisc(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t … [all …]
|
H A D | ocs_scsi.h | 266 extern void ocs_scsi_io_alloc_enable(ocs_node_t *node); 267 extern void ocs_scsi_io_alloc_disable(ocs_node_t *node); 268 extern ocs_io_t *ocs_scsi_io_alloc(ocs_node_t *node, ocs_scsi_io_role_e role); 288 extern int32_t ocs_scsi_validate_initiator(ocs_node_t *node); 289 extern int32_t ocs_scsi_new_initiator(ocs_node_t *node); 294 extern int32_t ocs_scsi_del_initiator(ocs_node_t *node, ocs_scsi_del_initiator_reason_e reason); 322 extern void ocs_scsi_del_initiator_complete(ocs_node_t *node); 338 extern int32_t ocs_scsi_new_target(ocs_node_t *node); 344 extern int32_t ocs_scsi_del_target(ocs_node_t *node, ocs_scsi_del_target_reason_e reason); 348 extern int32_t ocs_scsi_send_rd_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_… [all …]
|
H A D | ocs_node.c | 80 ocs_node_abort_all_els(ocs_node_t *node) in ocs_node_abort_all_els() 117 ocs_node_t *node = rnode->node; in ocs_remote_node_cb() 144 ocs_node_t *n = NULL; in ocs_remote_node_cb() 181 ocs_node_t * 184 ocs_node_t *node; in ocs_node_find() 202 ocs_node_t * 205 ocs_node_t *node = NULL; in ocs_node_find_wwpn() 237 ocs_node_t *node; in ocs_node_create_pool() 245 xport->nodes = ocs_malloc(ocs, node_count * sizeof(ocs_node_t *), OCS_M_ZERO | OCS_M_NOWAIT); in ocs_node_create_pool() 261 ocs_list_init(&xport->nodes_free_list, ocs_node_t, link); in ocs_node_create_pool() [all …]
|
H A D | ocs_unsol.h | 42 extern int32_t ocs_node_purge_pending(ocs_node_t *node); 43 extern int32_t ocs_process_node_pending(ocs_node_t *node); 46 extern int32_t ocs_dispatch_unsolicited_bls(ocs_node_t *node, ocs_hw_sequence_t *seq); 50 extern int32_t ocs_sframe_send_bls_acc(ocs_node_t *node, ocs_hw_sequence_t *seq);
|
H A D | ocs_els.c | 91 ocs_node_t *node = els->node; in ocs_io_transition() 115 ocs_node_t *node = els->node; in ocs_els_post_event() 141 ocs_els_io_alloc(ocs_node_t *node, uint32_t reqlen, ocs_els_role_e role) in ocs_els_io_alloc() 162 ocs_els_io_alloc_size(ocs_node_t *node, uint32_t reqlen, uint32_t rsplen, ocs_els_role_e role) in ocs_els_io_alloc_size() 289 ocs_node_t *node; in _ocs_els_io_free() 345 ocs_node_t *node = els->node; in ocs_els_make_active() 393 ocs_node_t *node = els->node; in ocs_els_send() 422 ocs_node_t *node = els->node; in ocs_els_send_rsp() 455 ocs_node_t *node; in ocs_els_req_cb() 548 ocs_node_t *node; in ocs_els_acc_cb() [all …]
|
H A D | ocs_unsol.c | 55 static int32_t ocs_dispatch_fcp_cmd(ocs_node_t *node, ocs_hw_sequence_t *seq); 56 static int32_t ocs_dispatch_fcp_cmd_auto_xfer_rdy(ocs_node_t *node, ocs_hw_sequence_t *seq); 57 static int32_t ocs_dispatch_fcp_data(ocs_node_t *node, ocs_hw_sequence_t *seq); 65 static int32_t ocs_sframe_send_task_set_full_or_busy(ocs_node_t *node, ocs_hw_sequence_t *seq); 273 ocs_process_node_pending(ocs_node_t *node) in ocs_process_node_pending() 426 ocs_node_purge_pending(ocs_node_t *node) in ocs_node_purge_pending() 471 ocs_node_t *node = (ocs_node_t *)arg; in ocs_node_frames_held() 579 ocs_node_t *node = NULL; in ocs_domain_dispatch_frame() 671 ocs_node_t *node = (ocs_node_t *)arg; in ocs_node_dispatch_frame() 756 ocs_dispatch_unsolicited_tmf(ocs_io_t *io, uint8_t task_management_flags, ocs_node_t *node, uint64_… in ocs_dispatch_unsolicited_tmf() [all …]
|
H A D | ocs_fabric.c | 53 static void ocs_fabric_initiate_shutdown(ocs_node_t *node); 57 static int32_t ocs_process_gidpt_payload(ocs_node_t *node, fcct_gidpt_acc_t *gidpt, uint32_t gidpt_… 58 static void ocs_process_rscn(ocs_node_t *node, ocs_node_cb_t *cbdata); 113 ocs_fabric_set_topology(ocs_node_t *node, ocs_sport_topology_e topology) in ocs_fabric_set_topology() 127 ocs_fabric_notify_topology(ocs_node_t *node) in ocs_fabric_notify_topology() 129 ocs_node_t *tmp_node; in ocs_fabric_notify_topology() 130 ocs_node_t *next; in ocs_fabric_notify_topology() 867 ocs_node_t *node = arg; in gidpt_delay_timer_cb() 953 ocs_node_t *node = ctx->app; in __ocs_fabctl_init() 1174 ocs_fabric_initiate_shutdown(ocs_node_t *node) in ocs_fabric_initiate_shutdown() [all …]
|
H A D | ocs_io.h | 73 ocs_node_t *node; /**< pointer to node */ 135 void (*els_callback)(ocs_node_t *node, ocs_node_cb_t *cbdata, void *cbarg); 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.c | 161 ocs_list_init(&sport->node_list, ocs_node_t, link); in ocs_sport_alloc() 283 ocs_node_t *node; in ocs_sport_force_free() 284 ocs_node_t *next; in ocs_sport_force_free() 406 ocs_node_t *node; in ocs_sport_attach() 485 ocs_node_t *node; in __ocs_sport_common() 486 ocs_node_t *node_next; in __ocs_sport_common() 667 ocs_node_t *fabric; in __ocs_sport_vport_wait_alloc() 732 ocs_node_t *node; in __ocs_sport_vport_allocated() 777 ocs_node_t *node; in __ocs_sport_attached() 1182 ocs_node_t *node; in ocs_ddump_sport() [all …]
|
H A D | ocs_device.h | 106 extern void ocs_node_init_device(ocs_node_t *node, int send_plogi); 107 extern void ocs_process_prli_payload(ocs_node_t *node, fc_prli_payload_t *prli);
|
H A D | ocs_cam.c | 100 uint32_t ocs_add_new_tgt(ocs_node_t *node, ocs_fcport *fcp); 101 uint32_t ocs_update_tgt(ocs_node_t *node, ocs_fcport *fcp, uint32_t tgt_id); 103 int32_t ocs_tgt_find(ocs_fcport *fcp, ocs_node_t *node); 421 ocs_scsi_new_initiator(ocs_node_t *node) in ocs_scsi_new_initiator() 469 ocs_scsi_validate_initiator(ocs_node_t *node) in ocs_scsi_validate_initiator() 493 ocs_scsi_del_initiator(ocs_node_t *node, ocs_scsi_del_initiator_reason_e reason) in ocs_scsi_del_initiator() 553 ocs_node_t *node = io->node; in ocs_scsi_recv_cmd() 685 ocs_node_t *node = tmfio->node; in ocs_scsi_recv_tmf() 977 ocs_tgt_find(ocs_fcport *fcp, ocs_node_t *node) in ocs_tgt_find() 1015 ocs_update_tgt(ocs_node_t *node, ocs_fcport *fcp, uint32_t tgt_id) in ocs_update_tgt() [all …]
|
H A D | ocs_fabric.h | 76 extern void ocs_fabric_set_topology(ocs_node_t *node, ocs_sport_topology_e topology); 77 extern void ocs_fabric_notify_topology(ocs_node_t *node);
|
H A D | ocs_sport.h | 106 extern int ocs_node_group_init(ocs_node_t *node); 107 extern void ocs_node_group_free(ocs_node_t *node);
|
H A D | ocs_scsi.c | 118 ocs_scsi_io_alloc_enable(ocs_node_t *node) in ocs_scsi_io_alloc_enable() 140 ocs_scsi_io_alloc_disable(ocs_node_t *node) in ocs_scsi_io_alloc_disable() 168 ocs_scsi_io_alloc(ocs_node_t *node, ocs_scsi_io_role_e role) in ocs_scsi_io_alloc() 250 ocs_node_t *node = io->node; in _ocs_scsi_io_free() 293 ocs_scsi_send_io(ocs_hw_io_type_e type, ocs_node_t *node, ocs_io_t *io, uint64_t lun, 2264 ocs_scsi_send_rd_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t cdb_len, in ocs_scsi_send_rd_io() 2303 int32_t ocs_scsi_send_wr_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t cdb_l… in ocs_scsi_send_wr_io() 2344 ocs_scsi_send_wr_io_first_burst(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t c… in ocs_scsi_send_wr_io_first_burst() 2377 int32_t ocs_scsi_send_nodata_io(ocs_node_t *node, ocs_io_t *io, uint64_t lun, void *cdb, uint32_t c… in ocs_scsi_send_nodata_io() 2414 ocs_scsi_send_tmf(ocs_node_t *node, ocs_io_t *io, ocs_io_t *io_to_abort, uint64_t lun, ocs_scsi_tmf… in ocs_scsi_send_tmf() [all …]
|
H A D | ocs_device.c | 68 ocs_node_t *node = io->node; in ocs_d_send_prli_rsp() 238 ocs_node_t *node = NULL; in __ocs_d_common() 469 ocs_node_t *node = io->node; in ocs_send_ls_acc_after_attach() 494 ocs_process_prli_payload(ocs_node_t *node, fc_prli_payload_t *prli) in ocs_process_prli_payload() 519 ocs_node_t *node = io->node; in ocs_process_abts() 729 ocs_node_init_device(ocs_node_t *node, int send_plogi) in ocs_node_init_device()
|
H A D | ocs_xport.h | 170 ocs_node_t **nodes; /**< array of pointers to nodes */
|
H A D | ocs_domain.c | 591 ocs_node_t *node; in __ocs_domain_init() 698 ocs_node_t *node; in __ocs_domain_wait_alloc() 866 ocs_node_t *node = NULL; in __ocs_domain_wait_attach() 867 ocs_node_t *next_node = NULL; in __ocs_domain_wait_attach()
|
H A D | ocs_xport.c | 48 ocs_node_t *node; 833 ocs_node_t *node; in ocs_xport_control() 842 node = va_arg(argp, ocs_node_t*); in ocs_xport_control()
|
H A D | ocs_common.h | 83 typedef struct ocs_node_s ocs_node_t; typedef
|
H A D | ocs_io.c | 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()
|
H A D | ocs_mgmt.c | 2293 ocs_node_t *node; in get_node_abort_cnt()
|
H A D | sli4.c | 6823 if (((ocs_node_t *)rnode->node)->fcp2device) { in sli_fcp_icmnd64_wqe() 6918 if (((ocs_node_t *)rnode->node)->fcp2device) { in sli_fcp_iread64_wqe() 7023 if (((ocs_node_t *)rnode->node)->fcp2device) { in sli_fcp_iwrite64_wqe()
|