fcp_tgt
if (mdb_vread(&tgt, sizeof (struct fcp_tgt), wsp->walk_addr) !=
sizeof (struct fcp_tgt)) {
wsp->walk_data = mdb_alloc(sizeof (struct fcp_tgt), UM_SLEEP);
if (mdb_vread(wsp->walk_data, sizeof (struct fcp_tgt),
(uintptr_t)(((struct fcp_tgt *)wsp->walk_data)->tgt_next);
static struct fcp_tgt tgt;
mdb_free(wsp->walk_data, sizeof (struct fcp_tgt));
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = icmd->ipkt_tgt;
struct fcp_tgt *ptgt;
fcp_abort_all(struct fcp_port *pptr, struct fcp_tgt *ttgt,
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = NULL;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
fcp_call_finish_init(struct fcp_port *pptr, struct fcp_tgt *ptgt,
fcp_call_finish_init_held(struct fcp_port *pptr, struct fcp_tgt *ptgt,
struct fcp_tgt *ptgt = (struct fcp_tgt *)tgt_handle;
struct fcp_tgt *ptgt;
struct fcp_tgt *next_tgt = ptgt->tgt_next;
fcp_free_target(struct fcp_tgt *ptgt)
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
fcp_handle_ipkt_errors(struct fcp_port *pptr, struct fcp_tgt *ptgt,
fcp_outstanding_lun_cmds(struct fcp_tgt *ptgt)
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = NULL;
struct fcp_tgt *ptgt = NULL;
fcp_is_reconfig_needed(struct fcp_tgt *ptgt,
static struct fcp_tgt *
struct fcp_tgt *ptgt = NULL;
fcp_tgt_send_plogi(struct fcp_tgt *ptgt, int *fc_status, int *fc_pkt_state,
fcp_tgt_send_prli(struct fcp_tgt *ptgt, int *fc_status, int *fc_pkt_state,
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = NULL;
static struct fcp_tgt *fcp_port_create_tgt(struct fcp_port *pptr,
static int fcp_tgt_send_plogi(struct fcp_tgt *ptgt, int *fc_status,
static int fcp_tgt_send_prli(struct fcp_tgt *ptgt, int *fc_status,
struct fcp_tgt *ptgt, fc_portmap_t *map_entry, int link_cnt,
static int fcp_handle_reportlun_changed(struct fcp_tgt *ptgt, int cause);
static int fcp_send_els(struct fcp_port *pptr, struct fcp_tgt *ptgt,
static void fcp_update_tgt_state(struct fcp_tgt *ptgt, int flag,
struct fcp_tgt *ptgt, int cmd_len, int resp_len, int data_len,
static struct fcp_tgt *fcp_lookup_target(struct fcp_port *pptr,
static struct fcp_tgt *fcp_get_target_by_did(struct fcp_port *pptr,
struct fcp_tgt *ptgt = NULL;
static struct fcp_lun *fcp_get_lun(struct fcp_tgt *ptgt,
static int fcp_finish_tgt(struct fcp_port *pptr, struct fcp_tgt *ptgt,
static void fcp_create_luns(struct fcp_tgt *ptgt, int link_cnt,
static int fcp_offline_target(struct fcp_port *pptr, struct fcp_tgt *ptgt,
struct fcp_tgt *ptgt, int link_cnt, int tgt_cnt, int flags);
static void fcp_offline_tgt_luns(struct fcp_tgt *ptgt, int link_cnt,
fcp_handle_reportlun_changed(struct fcp_tgt *ptgt, int cause)
fcp_handle_mapflags(struct fcp_port *pptr, struct fcp_tgt *ptgt,
static int fcp_device_changed(struct fcp_port *pptr, struct fcp_tgt *ptgt,
static struct fcp_lun *fcp_alloc_lun(struct fcp_tgt *ptgt);
static struct fcp_tgt *fcp_alloc_tgt(struct fcp_port *pptr,
static void fcp_dealloc_tgt(struct fcp_tgt *ptgt);
fcp_send_els(struct fcp_port *pptr, struct fcp_tgt *ptgt,
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
static void fcp_abort_all(struct fcp_port *pptr, struct fcp_tgt *ttgt,
fcp_update_tgt_state(struct fcp_tgt *ptgt, int flag, uint32_t state)
struct fcp_tgt *ptgt = plun->lun_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt, int lcount, int tcount, int cause);
struct fcp_tgt *ptgt, int lcount, int tcount, int cause);
fcp_icmd_alloc(struct fcp_port *pptr, struct fcp_tgt *ptgt, int cmd_len,
static void fcp_free_target(struct fcp_tgt *ptgt);
struct fcp_tgt *ptgt, struct fcp_ipkt *icmd, int rval, caddr_t op);
static int fcp_outstanding_lun_cmds(struct fcp_tgt *ptgt);
struct fcp_tgt *ptgt = icmd->ipkt_tgt;
static struct fcp_tgt *
static int fcp_is_reconfig_needed(struct fcp_tgt *ptgt,
struct fcp_tgt *ptgt;
static struct fcp_tgt *
struct fcp_tgt *ptgt = NULL;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = icmd->ipkt_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt = icmd->ipkt_tgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
struct fcp_tgt *ptgt;
fcp_get_lun(struct fcp_tgt *ptgt, uint16_t lun_num)
fcp_finish_tgt(struct fcp_port *pptr, struct fcp_tgt *ptgt,
fcp_create_luns(struct fcp_tgt *ptgt, int link_cnt, int tgt_cnt, int cause)
fcp_offline_target(struct fcp_port *pptr, struct fcp_tgt *ptgt,
fcp_offline_target_now(struct fcp_port *pptr, struct fcp_tgt *ptgt,
fcp_offline_tgt_luns(struct fcp_tgt *ptgt, int link_cnt, int tgt_cnt,
struct fcp_tgt *ptgt = elem->plun->lun_tgt;
struct fcp_tgt *ptgt = elem->ptgt;
struct fcp_tgt *ptgt;
fcp_device_changed(struct fcp_port *pptr, struct fcp_tgt *ptgt,
fcp_alloc_lun(struct fcp_tgt *ptgt)
static struct fcp_tgt *
struct fcp_tgt *ptgt;
fcp_dealloc_tgt(struct fcp_tgt *ptgt)
struct fcp_tgt *ptgt = icmd->ipkt_tgt;
struct fcp_tgt *lun_tgt;
struct fcp_tgt *tgt;
struct fcp_tgt *ptgt;
fcp_port::port_state fcp_tgt::tgt_change_cnt
fcp_tgt::tgt_next))
_NOTE(MUTEX_PROTECTS_DATA(fcp_tgt::tgt_mutex,
fcp_tgt::tgt_state fcp_tgt::tgt_device_created
fcp_tgt::tgt_icap fcp_tgt::tgt_tcap
fcp_tgt::tgt_tid fcp_tgt::tgt_pd_handle fcp_tgt::tgt_tmp_cnt
fcp_tgt::tgt_statec_cause fcp_lun::lun_next fcp_lun::lun_state))
_NOTE(LOCK_ORDER(fcp_port::fcp_mutex fcp_tgt::tgt_mutex))
_NOTE(LOCK_ORDER(fcp_tgt::tgt_mutex fcp_lun::lun_mutex))
_NOTE(DATA_READABLE_WITHOUT_LOCK( fcp_tgt::tgt_state))
_NOTE(DATA_READABLE_WITHOUT_LOCK( fcp_tgt::tgt_pd_handle))
_NOTE(DATA_READABLE_WITHOUT_LOCK(fcp_tgt::tgt_tid))
fcp_tgt::tgt_d_id fcp_tgt::tgt_hard_addr fcp_tgt::tgt_lun_cnt
fcp_tgt::tgt_port fcp_lun::lun_num fcp_lun::lun_tgt
struct fcp_tgt *port_tgt_hash_table[FCP_NUM_HASH];
struct fcp_tgt *ipkt_tgt;
struct fcp_tgt *tgt_next;