Lines Matching refs: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; in ctl_ha_init()
597 struct ctl_softc *softc = control_softc; in ctl_ha_shutdown()
759 ctl_isc_handler_finish_xfer(struct ctl_softc *ctl_softc, in ctl_isc_handler_finish_xfer() argument
783 ctl_isc_handler_finish_ser_only(struct ctl_softc *ctl_softc, in ctl_isc_handler_finish_ser_only() argument
802 struct ctl_softc *softc = lun->ctl_softc; in ctl_isc_announce_lun()
867 struct ctl_softc *softc = port->ctl_softc; in ctl_isc_announce_port()
928 struct ctl_softc *softc = port->ctl_softc; in ctl_isc_announce_iid()
965 struct ctl_softc *softc = lun->ctl_softc; in ctl_isc_announce_mode()
1000 ctl_isc_ha_link_up(struct ctl_softc *softc) in ctl_isc_ha_link_up()
1030 ctl_isc_ha_link_down(struct ctl_softc *softc) in ctl_isc_ha_link_down()
1070 ctl_isc_ua(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_ua()
1108 ctl_isc_lun_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_lun_sync()
1194 ctl_isc_port_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_port_sync()
1324 ctl_isc_iid_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_iid_sync()
1364 ctl_isc_login(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_login()
1401 ctl_isc_mode_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_mode_sync()
1459 struct ctl_softc *softc = control_softc; in ctl_isc_event_handler()
1782 struct ctl_softc *softc = lun->ctl_softc; in ctl_est_ua()
1812 struct ctl_softc *softc = lun->ctl_softc; in ctl_est_ua_all()
1823 struct ctl_softc *softc = lun->ctl_softc; in ctl_clr_ua()
1838 struct ctl_softc *softc = lun->ctl_softc; in ctl_clr_ua_all()
1854 ctl_clr_ua_allluns(struct ctl_softc *ctl_softc, uint32_t initidx, in ctl_clr_ua_allluns() argument
1859 mtx_assert(&ctl_softc->ctl_lock, MA_OWNED); in ctl_clr_ua_allluns()
1860 STAILQ_FOREACH(lun, &ctl_softc->lun_list, links) { in ctl_clr_ua_allluns()
1870 struct ctl_softc *softc = (struct ctl_softc *)arg1; in ctl_ha_role_sysctl()
1906 struct ctl_softc *softc; in ctl_init()
2007 thr->ctl_softc = softc; in ctl_init()
2042 struct ctl_softc *softc = control_softc; in ctl_shutdown()
2120 struct ctl_softc *softc = port->ctl_softc; in ctl_remove_initiator()
2149 struct ctl_softc *softc = port->ctl_softc; in ctl_add_initiator()
2319 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_serialize_other_sc_cmd()
2575 struct ctl_softc *softc = dev->si_drv1; in ctl_ioctl()
3633 struct ctl_softc *softc = port->ctl_softc; in ctl_lun_map_init()
3662 struct ctl_softc *softc = port->ctl_softc; in ctl_lun_map_deinit()
3924 ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name, in ctl_pool_create() argument
3935 pool->ctl_softc = ctl_softc; in ctl_pool_create()
3938 NULL, NULL, NULL, ctl_softc->io_zone); in ctl_pool_create()
3941 pool->zone = ctl_softc->io_zone; in ctl_pool_create()
3970 CTL_SOFTC(io) = pool->ctl_softc; in ctl_alloc_io()
3985 CTL_SOFTC(io) = pool->ctl_softc; in ctl_alloc_io_nowait()
4017 CTL_SOFTC(io) = pool->ctl_softc; in ctl_zero_io()
4446 struct ctl_softc *ctl_softc = control_softc; in ctl_add_lun() local
4556 mtx_lock(&ctl_softc->ctl_lock); in ctl_add_lun()
4563 || (ctl_is_set(ctl_softc->ctl_lun_mask, be_lun->req_lun_id))) { in ctl_add_lun()
4564 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4584 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, 0, ctl_max_luns); in ctl_add_lun()
4586 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4591 ctl_set_mask(ctl_softc->ctl_lun_mask, lun_number); in ctl_add_lun()
4592 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4622 lun->ctl_softc = ctl_softc; in ctl_add_lun()
4649 mtx_lock(&ctl_softc->ctl_lock); in ctl_add_lun()
4650 STAILQ_FOREACH(nlun, &ctl_softc->lun_list, links) { in ctl_add_lun()
4655 STAILQ_INSERT_TAIL(&ctl_softc->lun_list, lun, links); in ctl_add_lun()
4656 ctl_softc->ctl_luns[lun_number] = lun; in ctl_add_lun()
4657 ctl_softc->num_luns++; in ctl_add_lun()
4658 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4665 mtx_lock(&ctl_softc->ctl_lock); in ctl_add_lun()
4666 STAILQ_REMOVE(&ctl_softc->lun_list, lun, ctl_lun, links); in ctl_add_lun()
4667 ctl_clear_mask(ctl_softc->ctl_lun_mask, lun_number); in ctl_add_lun()
4668 ctl_softc->ctl_luns[lun_number] = NULL; in ctl_add_lun()
4669 ctl_softc->num_luns--; in ctl_add_lun()
4670 mtx_unlock(&ctl_softc->ctl_lock); in ctl_add_lun()
4685 struct ctl_softc *softc = lun->ctl_softc; in ctl_free_lun()
4730 struct ctl_softc *softc; in ctl_enable_lun()
4734 softc = lun->ctl_softc; in ctl_enable_lun()
4773 struct ctl_softc *softc; in ctl_disable_lun()
4777 softc = lun->ctl_softc; in ctl_disable_lun()
4860 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) { in ctl_lun_has_media()
4954 if (lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) { in ctl_lun_capacity_changed()
7249 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_report_tagret_port_groups()
7661 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_persistent_reserve_in()
7899 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key, in ctl_pro_preempt()
8225 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_persistent_reserve_out()
8618 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_hndl_per_res_out_on_other_sc()
9141 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_report_luns()
9285 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_request_sense()
9645 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_evpd_devid()
9758 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_evpd_scsi_ports()
10147 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_std()
11289 struct ctl_softc *softc = CTL_SOFTC(ctnio); in ctl_nvmeio_precheck()
11853 struct ctl_softc *softc = lun->ctl_softc; in ctl_scsi_try_unblock_io()
12055 struct ctl_softc *softc = lun->ctl_softc; in ctl_scsiio_lun_check()
12176 struct ctl_softc *softc = CTL_SOFTC(rio); in ctl_failover_lun()
12258 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_scsiio_precheck()
12582 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_target_reset()
12677 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_lun_reset()
12756 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_abort_task_set()
12788 ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx, in ctl_i_t_nexus_loss()
12826 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_i_t_nexus_reset()
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);