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; in ctl_ha_init()
631 struct ctl_softc *softc = control_softc; in ctl_ha_shutdown()
791 ctl_isc_handler_finish_xfer(struct ctl_softc *ctl_softc, in ctl_isc_handler_finish_xfer() argument
814 ctl_isc_handler_finish_ser_only(struct ctl_softc *ctl_softc, in ctl_isc_handler_finish_ser_only() argument
833 struct ctl_softc *softc = lun->ctl_softc; in ctl_isc_announce_lun()
898 struct ctl_softc *softc = port->ctl_softc; in ctl_isc_announce_port()
959 struct ctl_softc *softc = port->ctl_softc; in ctl_isc_announce_iid()
996 struct ctl_softc *softc = lun->ctl_softc; in ctl_isc_announce_mode()
1031 ctl_isc_ha_link_up(struct ctl_softc *softc) in ctl_isc_ha_link_up()
1061 ctl_isc_ha_link_down(struct ctl_softc *softc) in ctl_isc_ha_link_down()
1101 ctl_isc_ua(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_ua()
1131 ctl_isc_lun_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_lun_sync()
1203 ctl_isc_port_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_port_sync()
1317 ctl_isc_iid_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_iid_sync()
1343 ctl_isc_login(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_login()
1373 ctl_isc_mode_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_mode_sync()
1417 struct ctl_softc *softc = control_softc; in ctl_isc_event_handler()
1735 struct ctl_softc *softc = lun->ctl_softc; in ctl_est_ua()
1765 struct ctl_softc *softc = lun->ctl_softc; in ctl_est_ua_all()
1776 struct ctl_softc *softc = lun->ctl_softc; in ctl_clr_ua()
1791 struct ctl_softc *softc = lun->ctl_softc; in ctl_clr_ua_all()
1807 ctl_clr_ua_allluns(struct ctl_softc *ctl_softc, uint32_t initidx, in ctl_clr_ua_allluns() argument
1812 mtx_assert(&ctl_softc->ctl_lock, MA_OWNED); in ctl_clr_ua_allluns()
1813 STAILQ_FOREACH(lun, &ctl_softc->lun_list, links) { in ctl_clr_ua_allluns()
1823 struct ctl_softc *softc = (struct ctl_softc *)arg1; in ctl_ha_role_sysctl()
1859 struct ctl_softc *softc; in ctl_init()
1960 thr->ctl_softc = softc; in ctl_init()
1995 struct ctl_softc *softc = control_softc; in ctl_shutdown()
2073 struct ctl_softc *softc = port->ctl_softc; in ctl_remove_initiator()
2102 struct ctl_softc *softc = port->ctl_softc; in ctl_add_initiator()
2272 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_serialize_other_sc_cmd()
2525 struct ctl_softc *softc = dev->si_drv1; in ctl_ioctl()
3558 struct ctl_softc *softc = port->ctl_softc; in ctl_lun_map_init()
3587 struct ctl_softc *softc = port->ctl_softc; in ctl_lun_map_deinit()
3849 ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name, in ctl_pool_create() argument
3860 pool->ctl_softc = ctl_softc; in ctl_pool_create()
3863 NULL, NULL, NULL, ctl_softc->io_zone); in ctl_pool_create()
3866 pool->zone = ctl_softc->io_zone; in ctl_pool_create()
3895 CTL_SOFTC(io) = pool->ctl_softc; in ctl_alloc_io()
3910 CTL_SOFTC(io) = pool->ctl_softc; in ctl_alloc_io_nowait()
3942 CTL_SOFTC(io) = pool->ctl_softc; in ctl_zero_io()
4499 struct ctl_softc *ctl_softc = control_softc; in ctl_add_lun() local
4609 mtx_lock(&ctl_softc->ctl_lock); in ctl_add_lun()
4616 || (ctl_is_set(ctl_softc->ctl_lun_mask, be_lun->req_lun_id))) { in ctl_add_lun()
4617 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4637 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, 0, ctl_max_luns); in ctl_add_lun()
4639 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4644 ctl_set_mask(ctl_softc->ctl_lun_mask, lun_number); in ctl_add_lun()
4645 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4675 lun->ctl_softc = ctl_softc; in ctl_add_lun()
4702 mtx_lock(&ctl_softc->ctl_lock); in ctl_add_lun()
4703 STAILQ_FOREACH(nlun, &ctl_softc->lun_list, links) { in ctl_add_lun()
4708 STAILQ_INSERT_TAIL(&ctl_softc->lun_list, lun, links); in ctl_add_lun()
4709 ctl_softc->ctl_luns[lun_number] = lun; in ctl_add_lun()
4710 ctl_softc->num_luns++; in ctl_add_lun()
4711 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4718 mtx_lock(&ctl_softc->ctl_lock); in ctl_add_lun()
4719 STAILQ_REMOVE(&ctl_softc->lun_list, lun, ctl_lun, links); in ctl_add_lun()
4720 ctl_clear_mask(ctl_softc->ctl_lun_mask, lun_number); in ctl_add_lun()
4721 ctl_softc->ctl_luns[lun_number] = NULL; in ctl_add_lun()
4722 ctl_softc->num_luns--; in ctl_add_lun()
4723 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4738 struct ctl_softc *softc = lun->ctl_softc; in ctl_free_lun()
4783 struct ctl_softc *softc; in ctl_enable_lun()
4787 softc = lun->ctl_softc; in ctl_enable_lun()
4826 struct ctl_softc *softc; in ctl_disable_lun()
4830 softc = lun->ctl_softc; in ctl_disable_lun()
4913 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) { in ctl_lun_has_media()
5007 if (lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) { in ctl_lun_capacity_changed()
7202 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_report_tagret_port_groups()
7618 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_persistent_reserve_in()
7856 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key, in ctl_pro_preempt()
8182 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_persistent_reserve_out()
8563 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_hndl_per_res_out_on_other_sc()
9084 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_report_luns()
9228 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_request_sense()
9594 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_evpd_devid()
9707 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_evpd_scsi_ports()
10096 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_std()
11081 struct ctl_softc *softc = lun->ctl_softc; in ctl_try_unblock_io()
11215 struct ctl_softc *softc = lun->ctl_softc; in ctl_scsiio_lun_check()
11334 struct ctl_softc *softc = CTL_SOFTC(rio); in ctl_failover_lun()
11416 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_scsiio_precheck()
11738 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_target_reset()
11833 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_lun_reset()
11910 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_abort_task_set()
11942 ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx, in ctl_i_t_nexus_loss()
11980 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_i_t_nexus_reset()
12004 struct ctl_softc *softc = CTL_SOFTC(io);
12085 struct ctl_softc *softc = CTL_SOFTC(io);
12124 struct ctl_softc *softc = CTL_SOFTC(io);
12211 struct ctl_softc *softc = CTL_SOFTC(io);
12468 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
12894 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
12930 struct ctl_softc *softc = CTL_SOFTC(io);
13146 struct ctl_softc *softc = CTL_SOFTC(io);
13350 struct ctl_softc *softc = thr->ctl_softc;
13416 struct ctl_softc *softc = (struct ctl_softc *)arg;
13495 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
13523 struct ctl_softc *softc = CTL_SOFTC(io);
13539 struct ctl_softc *softc = CTL_SOFTC(io);
13552 struct ctl_softc *softc = CTL_SOFTC(io);
13565 struct ctl_softc *softc = CTL_SOFTC(io);