sbp2_tgt_t
sbp2_tgt_t *tp;
sbp2_cfgrom_parse_dir(sbp2_tgt_t *tp, void *cmd, sbp2_cfgrom_parse_arg_t *pa)
sbp2_cfgrom_read_leaf(sbp2_tgt_t *tp, void *cmd, sbp2_cfgrom_ent_t *cep)
sbp2_cfgrom_read_bib(sbp2_tgt_t *tp, void *cmd, sbp2_cfgrom_bib_t *cbp)
sbp2_cfgrom_free_bib(sbp2_tgt_t *tp, sbp2_cfgrom_bib_t *cbp)
sbp2_cfgrom_free(sbp2_tgt_t *tp, sbp2_cfgrom_t *crp)
static int sbp2_cfgrom_rq(sbp2_tgt_t *, void *, uint64_t, uint32_t *);
static int sbp2_cfgrom_parse_dir(sbp2_tgt_t *, void *,
static int sbp2_cfgrom_read_leaf(sbp2_tgt_t *, void *,
static int sbp2_cfgrom_read_bib(sbp2_tgt_t *, void *, sbp2_cfgrom_bib_t *);
static void sbp2_cfgrom_free_bib(sbp2_tgt_t *, sbp2_cfgrom_bib_t *);
sbp2_cfgrom_rq(sbp2_tgt_t *tp, void *cmd, uint64_t addr, uint32_t *q)
sbp2_cfgrom_parse(sbp2_tgt_t *tp, sbp2_cfgrom_t *crp)
sbp2_tgt_t *tp = sp->s_tgt;
sbp2_tgt_t *tp = sp->s_tgt;
sbp2_tgt_t *tp = sp->s_tgt;
sbp2_tgt_t *tp = lp->l_tgt;
sbp2_tgt_t *tp = lp->l_tgt;
sbp2_tgt_t *tp = lp->l_tgt;
sbp2_agent_init(sbp2_agent_t *ap, uint64_t offset, sbp2_tgt_t *tp)
sbp2_tgt_t *tp = ap->a_tgt;
sbp2_tgt_init(void *bus_hdl, sbp2_bus_t *bus, int maxluns, sbp2_tgt_t **tpp)
sbp2_tgt_t *tp;
tp = kmem_zalloc(sizeof (sbp2_tgt_t), KM_SLEEP);
sbp2_tgt_t *tp = buf->bb_sbp2_priv;
kmem_free(tp, sizeof (sbp2_tgt_t));
sbp2_tgt_t *tp = sp->s_tgt;
kmem_free(tp, sizeof (sbp2_tgt_t));
kmem_free(tp, sizeof (sbp2_tgt_t));
sbp2_mgt_agent_acquire(sbp2_tgt_t *tp)
sbp2_mgt_agent_release(sbp2_tgt_t *tp)
kmem_free(tp, sizeof (sbp2_tgt_t));
sbp2_tgt_fini(sbp2_tgt_t *tp)
kmem_free(tp, sizeof (sbp2_tgt_t));
sbp2_tgt_init_sobj(sbp2_tgt_t *tp)
sbp2_tgt_fini_sobj(sbp2_tgt_t *tp)
sbp2_tgt_init_params(sbp2_tgt_t *tp)
sbp2_tgt_init_luns(sbp2_tgt_t *tp, int maxluns)
sbp2_tgt_fini_luns(sbp2_tgt_t *tp)
sbp2_tgt_init_bus(sbp2_tgt_t *tp)
sbp2_tgt_fini_bus(sbp2_tgt_t *tp)
sbp2_tgt_disconnect(sbp2_tgt_t *tp)
sbp2_tgt_reconnect(sbp2_tgt_t *tp)
sbp2_tgt_mgt_request(sbp2_tgt_t *tp, int *berr)
static void sbp2_tgt_init_sobj(sbp2_tgt_t *);
static void sbp2_tgt_fini_sobj(sbp2_tgt_t *);
sbp2_tgt_task_mgt_request(sbp2_tgt_t *tp, uint16_t id, int func, uint64_t orbp,
static int sbp2_tgt_init_params(sbp2_tgt_t *);
static int sbp2_tgt_init_luns(sbp2_tgt_t *, int);
sbp2_tgt_reset(sbp2_tgt_t *tp, int *berr)
static void sbp2_tgt_fini_luns(sbp2_tgt_t *);
static int sbp2_tgt_init_bus(sbp2_tgt_t *);
sbp2_tgt_get_cfgrom(sbp2_tgt_t *tp, sbp2_cfgrom_t **crpp)
static void sbp2_tgt_fini_bus(sbp2_tgt_t *);
sbp2_tgt_get_lun_cnt(sbp2_tgt_t *tp)
sbp2_tgt_get_lun(sbp2_tgt_t *tp, int num)
static int sbp2_tgt_mgt_request(sbp2_tgt_t *, int *);
static int sbp2_tgt_task_mgt_request(sbp2_tgt_t *, uint16_t, int, uint64_t,
sbp2_tgt_t *tp = lp->l_tgt;
sbp2_tgt_t *tp = lp->l_tgt;
static void sbp2_lun_logout_orb(sbp2_lun_t *, sbp2_tgt_t *, int *);
sbp2_tgt_t *tp = lp->l_tgt;
sbp2_lun_logout_orb(sbp2_lun_t *lp, sbp2_tgt_t *tp, int *berr)
sbp2_tgt_t *tp = lp->l_tgt;
sbp2_tgt_t *tp = lp->l_tgt;
static int sbp2_agent_init(sbp2_agent_t *, uint64_t, sbp2_tgt_t *tp);
sbp2_tgt_t *tp = sp->s_lun->l_tgt;
sbp2_tgt_t *tp = sp->s_tgt;
sbp2_tgt_t *tp = sp->s_tgt;
sbp2_tgt_t *tp = sp->s_tgt;
static void sbp2_mgt_agent_acquire(sbp2_tgt_t *);
static void sbp2_mgt_agent_release(sbp2_tgt_t *);
sbp2_tgt_t *s_tgt; /* SBP-2 target */
int sbp2_tgt_init(void *, struct sbp2_bus *, int, sbp2_tgt_t **);
void sbp2_tgt_fini(sbp2_tgt_t *);
void sbp2_tgt_disconnect(sbp2_tgt_t *);
int sbp2_tgt_reconnect(sbp2_tgt_t *);
int sbp2_tgt_reset(sbp2_tgt_t *, int *);
int sbp2_tgt_get_cfgrom(sbp2_tgt_t *, sbp2_cfgrom_t **);
int sbp2_tgt_get_lun_cnt(sbp2_tgt_t *);
sbp2_lun_t *sbp2_tgt_get_lun(sbp2_tgt_t *, int);
void sbp2_cfgrom_free(sbp2_tgt_t *, sbp2_cfgrom_t *);
int sbp2_cfgrom_parse(sbp2_tgt_t *, sbp2_cfgrom_t *);