Lines Matching defs:ctl_softc

85 struct ctl_softc *control_softc = NULL;
403 static int ctl_alloc_lun(struct ctl_softc *ctl_softc, struct ctl_lun *lun,
409 static void ctl_failover_change_pages(struct ctl_softc *softc,
414 static int ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun,
448 //static int ctl_check_rtr(union ctl_io *pending_io, struct ctl_softc *softc);
450 static void ctl_clear_ua(struct ctl_softc *ctl_softc, uint32_t initidx,
452 static int ctl_scsiio_precheck(struct ctl_softc *ctl_softc,
456 static int ctl_bus_reset(struct ctl_softc *ctl_softc, union ctl_io *io);
457 static int ctl_target_reset(struct ctl_softc *ctl_softc, union ctl_io *io,
535 ctl_isc_handler_finish_xfer(struct ctl_softc *ctl_softc,
562 ctl_isc_handler_finish_ser_only(struct ctl_softc *ctl_softc,
614 struct ctl_softc *softc;
1030 struct ctl_softc *softc = (struct ctl_softc *)arg1;
1060 struct ctl_softc *softc;
1158 thr->ctl_softc = softc;
1233 struct ctl_softc *softc;
1236 softc = (struct ctl_softc *)control_softc;
1308 struct ctl_softc *softc = control_softc;
1352 struct ctl_softc *softc;
1376 struct ctl_softc *softc;
1456 struct ctl_softc *softc = control_softc;
1481 struct ctl_softc *softc = control_softc;
1830 struct ctl_softc *softc;
2362 struct ctl_softc *softc;
3624 struct ctl_softc *softc = control_softc;
3645 struct ctl_softc *softc = control_softc;
3850 * ctl_softc, pool_name, total_ctl_io are passed in.
3854 ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name,
3866 pool->ctl_softc = ctl_softc;
3868 NULL, NULL, NULL, ctl_softc->io_zone);
3873 *npool = ctl_softc->io_zone;
4506 * - ctl_softc is always set
4512 ctl_alloc_lun(struct ctl_softc *ctl_softc, struct ctl_lun *ctl_lun,
4618 mtx_lock(&ctl_softc->ctl_lock);
4625 || (ctl_is_set(ctl_softc->ctl_lun_mask, be_lun->req_lun_id))) {
4626 mtx_unlock(&ctl_softc->ctl_lock);
4647 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, CTL_MAX_LUNS);
4649 mtx_unlock(&ctl_softc->ctl_lock);
4658 ctl_set_mask(ctl_softc->ctl_lun_mask, lun_number);
4699 lun->ctl_softc = ctl_softc;
4718 STAILQ_FOREACH(nlun, &ctl_softc->lun_list, links) {
4724 STAILQ_INSERT_TAIL(&ctl_softc->lun_list, lun, links);
4726 ctl_softc->ctl_luns[lun_number] = lun;
4728 ctl_softc->num_luns++;
4740 mtx_unlock(&ctl_softc->ctl_lock);
4755 struct ctl_softc *softc;
4759 softc = lun->ctl_softc;
4803 struct ctl_softc *softc;
4816 struct ctl_softc *softc = control_softc;
4829 struct ctl_softc *softc;
4835 softc = lun->ctl_softc;
4881 struct ctl_softc *softc;
4887 softc = lun->ctl_softc;
4973 struct ctl_softc *softc;
4977 softc = lun->ctl_softc;
5511 struct ctl_softc *softc;
5519 softc = lun->ctl_softc;
7387 struct ctl_softc *softc;
7397 softc = lun->ctl_softc;
7788 struct ctl_softc *softc;
7798 softc = lun->ctl_softc;
8050 int off = lun->ctl_softc->persis_offset;
8061 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key,
8410 struct ctl_softc *softc;
8423 softc = lun->ctl_softc;
8817 struct ctl_softc *softc;
9339 struct ctl_softc *softc = control_softc;
9523 struct ctl_softc *ctl_softc;
9532 ctl_softc = control_softc;
9620 mtx_lock(&ctl_softc->ctl_lock);
9621 ctl_clear_ua(ctl_softc, initidx, ua_type);
9622 mtx_unlock(&ctl_softc->ctl_lock);
9960 struct ctl_softc *softc;
10079 struct ctl_softc *softc = control_softc;
10443 struct ctl_softc *softc;
11252 struct ctl_softc *softc = lun->ctl_softc;
11370 struct ctl_softc *softc;
11608 ctl_clear_ua(struct ctl_softc *ctl_softc, uint32_t initidx,
11614 mtx_assert(&ctl_softc->ctl_lock, MA_OWNED);
11616 STAILQ_FOREACH(lun, &ctl_softc->lun_list, links) {
11626 ctl_scsiio_precheck(struct ctl_softc *softc, struct ctl_scsiio *ctsio)
11985 ctl_bus_reset(struct ctl_softc *softc, union ctl_io *io)
11991 ctl_target_reset(struct ctl_softc *softc, union ctl_io *io,
12139 struct ctl_softc *softc = control_softc;
12172 struct ctl_softc *softc = control_softc;
12201 struct ctl_softc *softc;
12337 struct ctl_softc *softc = control_softc;
12458 struct ctl_softc *softc;
13152 struct ctl_softc *softc;
13513 struct ctl_softc *softc;
13590 struct ctl_softc *softc = control_softc;
13830 struct ctl_softc *softc;
14041 struct ctl_softc *softc = thr->ctl_softc;
14106 struct ctl_softc *softc = (struct ctl_softc *)arg;
14132 struct ctl_softc *softc = (struct ctl_softc *)arg;
14210 struct ctl_softc *softc = control_softc;
14226 struct ctl_softc *softc = control_softc;
14239 struct ctl_softc *softc = control_softc;
14252 struct ctl_softc *softc = control_softc;