Lines Matching defs:ctl_softc

90 struct ctl_softc *control_softc = NULL;
409 static int ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun,
461 static void ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx,
576 struct ctl_softc *softc = control_softc;
597 struct ctl_softc *softc = control_softc;
759 ctl_isc_handler_finish_xfer(struct ctl_softc *ctl_softc,
783 ctl_isc_handler_finish_ser_only(struct ctl_softc *ctl_softc,
802 struct ctl_softc *softc = lun->ctl_softc;
867 struct ctl_softc *softc = port->ctl_softc;
928 struct ctl_softc *softc = port->ctl_softc;
965 struct ctl_softc *softc = lun->ctl_softc;
1000 ctl_isc_ha_link_up(struct ctl_softc *softc)
1030 ctl_isc_ha_link_down(struct ctl_softc *softc)
1070 ctl_isc_ua(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1108 ctl_isc_lun_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1194 ctl_isc_port_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1324 ctl_isc_iid_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1364 ctl_isc_login(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1401 ctl_isc_mode_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
1459 struct ctl_softc *softc = control_softc;
1782 struct ctl_softc *softc = lun->ctl_softc;
1812 struct ctl_softc *softc = lun->ctl_softc;
1823 struct ctl_softc *softc = lun->ctl_softc;
1838 struct ctl_softc *softc = lun->ctl_softc;
1854 ctl_clr_ua_allluns(struct ctl_softc *ctl_softc, uint32_t initidx,
1859 mtx_assert(&ctl_softc->ctl_lock, MA_OWNED);
1860 STAILQ_FOREACH(lun, &ctl_softc->lun_list, links) {
1870 struct ctl_softc *softc = (struct ctl_softc *)arg1;
1906 struct ctl_softc *softc;
2007 thr->ctl_softc = softc;
2042 struct ctl_softc *softc = control_softc;
2120 struct ctl_softc *softc = port->ctl_softc;
2149 struct ctl_softc *softc = port->ctl_softc;
2319 struct ctl_softc *softc = CTL_SOFTC(ctsio);
2575 struct ctl_softc *softc = dev->si_drv1;
3633 struct ctl_softc *softc = port->ctl_softc;
3662 struct ctl_softc *softc = port->ctl_softc;
3920 * ctl_softc, pool_name, total_ctl_io are passed in.
3924 ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name,
3935 pool->ctl_softc = ctl_softc;
3938 NULL, NULL, NULL, ctl_softc->io_zone);
3941 pool->zone = ctl_softc->io_zone;
3970 CTL_SOFTC(io) = pool->ctl_softc;
3985 CTL_SOFTC(io) = pool->ctl_softc;
4017 CTL_SOFTC(io) = pool->ctl_softc;
4446 struct ctl_softc *ctl_softc = control_softc;
4556 mtx_lock(&ctl_softc->ctl_lock);
4563 || (ctl_is_set(ctl_softc->ctl_lun_mask, be_lun->req_lun_id))) {
4564 mtx_unlock(&ctl_softc->ctl_lock);
4584 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, 0, ctl_max_luns);
4586 mtx_unlock(&ctl_softc->ctl_lock);
4591 ctl_set_mask(ctl_softc->ctl_lun_mask, lun_number);
4592 mtx_unlock(&ctl_softc->ctl_lock);
4622 lun->ctl_softc = ctl_softc;
4649 mtx_lock(&ctl_softc->ctl_lock);
4650 STAILQ_FOREACH(nlun, &ctl_softc->lun_list, links) {
4655 STAILQ_INSERT_TAIL(&ctl_softc->lun_list, lun, links);
4656 ctl_softc->ctl_luns[lun_number] = lun;
4657 ctl_softc->num_luns++;
4658 mtx_unlock(&ctl_softc->ctl_lock);
4665 mtx_lock(&ctl_softc->ctl_lock);
4666 STAILQ_REMOVE(&ctl_softc->lun_list, lun, ctl_lun, links);
4667 ctl_clear_mask(ctl_softc->ctl_lun_mask, lun_number);
4668 ctl_softc->ctl_luns[lun_number] = NULL;
4669 ctl_softc->num_luns--;
4670 mtx_unlock(&ctl_softc->ctl_lock);
4685 struct ctl_softc *softc = lun->ctl_softc;
4730 struct ctl_softc *softc;
4734 softc = lun->ctl_softc;
4773 struct ctl_softc *softc;
4777 softc = lun->ctl_softc;
4860 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
4954 if (lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
7249 struct ctl_softc *softc = CTL_SOFTC(ctsio);
7661 struct ctl_softc *softc = CTL_SOFTC(ctsio);
7899 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key,
8225 struct ctl_softc *softc = CTL_SOFTC(ctsio);
8618 struct ctl_softc *softc = CTL_SOFTC(io);
9141 struct ctl_softc *softc = CTL_SOFTC(ctsio);
9285 struct ctl_softc *softc = CTL_SOFTC(ctsio);
9645 struct ctl_softc *softc = CTL_SOFTC(ctsio);
9758 struct ctl_softc *softc = CTL_SOFTC(ctsio);
10147 struct ctl_softc *softc = CTL_SOFTC(ctsio);
11289 struct ctl_softc *softc = CTL_SOFTC(ctnio);
11853 struct ctl_softc *softc = lun->ctl_softc;
12055 struct ctl_softc *softc = lun->ctl_softc;
12176 struct ctl_softc *softc = CTL_SOFTC(rio);
12258 struct ctl_softc *softc = CTL_SOFTC(ctsio);
12582 struct ctl_softc *softc = CTL_SOFTC(io);
12677 struct ctl_softc *softc = CTL_SOFTC(io);
12756 struct ctl_softc *softc = CTL_SOFTC(io);
12788 ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx,
12826 struct ctl_softc *softc = CTL_SOFTC(io);
12850 struct ctl_softc *softc = CTL_SOFTC(io);
12933 struct ctl_softc *softc = CTL_SOFTC(io);
12974 struct ctl_softc *softc = CTL_SOFTC(io);
13061 struct ctl_softc *softc = CTL_SOFTC(io);
13340 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
13792 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
13828 struct ctl_softc *softc = CTL_SOFTC(io);
14043 struct ctl_softc *softc = CTL_SOFTC(io);
14303 struct ctl_softc *softc = thr->ctl_softc;
14391 struct ctl_softc *softc = (struct ctl_softc *)arg;
14470 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
14498 struct ctl_softc *softc = CTL_SOFTC(io);
14514 struct ctl_softc *softc = CTL_SOFTC(io);
14527 struct ctl_softc *softc = CTL_SOFTC(io);
14540 struct ctl_softc *softc = CTL_SOFTC(io);