Lines Matching refs:ctl_softc

92 struct ctl_softc *control_softc = NULL;
477 static int ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun,
527 static void ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx,
610 struct ctl_softc *softc = control_softc;
631 struct ctl_softc *softc = control_softc;
791 ctl_isc_handler_finish_xfer(struct ctl_softc *ctl_softc,
814 ctl_isc_handler_finish_ser_only(struct ctl_softc *ctl_softc,
833 struct ctl_softc *softc = lun->ctl_softc;
898 struct ctl_softc *softc = port->ctl_softc;
959 struct ctl_softc *softc = port->ctl_softc;
996 struct ctl_softc *softc = lun->ctl_softc;
1030 ctl_isc_ha_link_up(struct ctl_softc *softc)
1060 ctl_isc_ha_link_down(struct ctl_softc *softc)
1100 ctl_isc_ua(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1130 ctl_isc_lun_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1202 ctl_isc_port_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1316 ctl_isc_iid_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1342 ctl_isc_login(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1372 ctl_isc_mode_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1416 struct ctl_softc *softc = control_softc;
1734 struct ctl_softc *softc = lun->ctl_softc;
1764 struct ctl_softc *softc = lun->ctl_softc;
1775 struct ctl_softc *softc = lun->ctl_softc;
1790 struct ctl_softc *softc = lun->ctl_softc;
1806 ctl_clr_ua_allluns(struct ctl_softc *ctl_softc, uint32_t initidx,
1811 mtx_assert(&ctl_softc->ctl_lock, MA_OWNED);
1812 STAILQ_FOREACH(lun, &ctl_softc->lun_list, links) {
1822 struct ctl_softc *softc = (struct ctl_softc *)arg1;
1858 struct ctl_softc *softc;
1959 thr->ctl_softc = softc;
1994 struct ctl_softc *softc = control_softc;
2072 struct ctl_softc *softc = port->ctl_softc;
2101 struct ctl_softc *softc = port->ctl_softc;
2271 struct ctl_softc *softc = CTL_SOFTC(ctsio);
2524 struct ctl_softc *softc = dev->si_drv1;
3557 struct ctl_softc *softc = port->ctl_softc;
3586 struct ctl_softc *softc = port->ctl_softc;
3844 * ctl_softc, pool_name, total_ctl_io are passed in.
3848 ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name,
3859 pool->ctl_softc = ctl_softc;
3862 NULL, NULL, NULL, ctl_softc->io_zone);
3865 pool->zone = ctl_softc->io_zone;
3894 CTL_SOFTC(io) = pool->ctl_softc;
3909 CTL_SOFTC(io) = pool->ctl_softc;
3941 CTL_SOFTC(io) = pool->ctl_softc;
4498 struct ctl_softc *ctl_softc = control_softc;
4608 mtx_lock(&ctl_softc->ctl_lock);
4615 || (ctl_is_set(ctl_softc->ctl_lun_mask, be_lun->req_lun_id))) {
4616 mtx_unlock(&ctl_softc->ctl_lock);
4636 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, 0, ctl_max_luns);
4638 mtx_unlock(&ctl_softc->ctl_lock);
4643 ctl_set_mask(ctl_softc->ctl_lun_mask, lun_number);
4644 mtx_unlock(&ctl_softc->ctl_lock);
4674 lun->ctl_softc = ctl_softc;
4701 mtx_lock(&ctl_softc->ctl_lock);
4702 STAILQ_FOREACH(nlun, &ctl_softc->lun_list, links) {
4707 STAILQ_INSERT_TAIL(&ctl_softc->lun_list, lun, links);
4708 ctl_softc->ctl_luns[lun_number] = lun;
4709 ctl_softc->num_luns++;
4710 mtx_unlock(&ctl_softc->ctl_lock);
4717 mtx_lock(&ctl_softc->ctl_lock);
4718 STAILQ_REMOVE(&ctl_softc->lun_list, lun, ctl_lun, links);
4719 ctl_clear_mask(ctl_softc->ctl_lun_mask, lun_number);
4720 ctl_softc->ctl_luns[lun_number] = NULL;
4721 ctl_softc->num_luns--;
4722 mtx_unlock(&ctl_softc->ctl_lock);
4737 struct ctl_softc *softc = lun->ctl_softc;
4782 struct ctl_softc *softc;
4786 softc = lun->ctl_softc;
4825 struct ctl_softc *softc;
4829 softc = lun->ctl_softc;
4912 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
5006 if (lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
7200 struct ctl_softc *softc = CTL_SOFTC(ctsio);
7616 struct ctl_softc *softc = CTL_SOFTC(ctsio);
7854 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key,
8180 struct ctl_softc *softc = CTL_SOFTC(ctsio);
8561 struct ctl_softc *softc = CTL_SOFTC(io);
9082 struct ctl_softc *softc = CTL_SOFTC(ctsio);
9226 struct ctl_softc *softc = CTL_SOFTC(ctsio);
9592 struct ctl_softc *softc = CTL_SOFTC(ctsio);
9705 struct ctl_softc *softc = CTL_SOFTC(ctsio);
10094 struct ctl_softc *softc = CTL_SOFTC(ctsio);
11079 struct ctl_softc *softc = lun->ctl_softc;
11213 struct ctl_softc *softc = lun->ctl_softc;
11332 struct ctl_softc *softc = CTL_SOFTC(rio);
11414 struct ctl_softc *softc = CTL_SOFTC(ctsio);
11736 struct ctl_softc *softc = CTL_SOFTC(io);
11831 struct ctl_softc *softc = CTL_SOFTC(io);
11908 struct ctl_softc *softc = CTL_SOFTC(io);
11940 ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx,
11978 struct ctl_softc *softc = CTL_SOFTC(io);
12002 struct ctl_softc *softc = CTL_SOFTC(io);
12083 struct ctl_softc *softc = CTL_SOFTC(io);
12122 struct ctl_softc *softc = CTL_SOFTC(io);
12209 struct ctl_softc *softc = CTL_SOFTC(io);
12466 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
12892 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
12928 struct ctl_softc *softc = CTL_SOFTC(io);
13144 struct ctl_softc *softc = CTL_SOFTC(io);
13348 struct ctl_softc *softc = thr->ctl_softc;
13414 struct ctl_softc *softc = (struct ctl_softc *)arg;
13493 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
13521 struct ctl_softc *softc = CTL_SOFTC(io);
13537 struct ctl_softc *softc = CTL_SOFTC(io);
13550 struct ctl_softc *softc = CTL_SOFTC(io);
13563 struct ctl_softc *softc = CTL_SOFTC(io);