Lines Matching refs:ctl_softc

92 struct ctl_softc *control_softc = NULL;
471 static int ctl_alloc_lun(struct ctl_softc *ctl_softc, struct ctl_lun *lun,
477 static int ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun,
516 static int ctl_scsiio_precheck(struct ctl_softc *ctl_softc,
527 static void ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx,
612 struct ctl_softc *softc = control_softc; in ctl_ha_init()
633 struct ctl_softc *softc = control_softc; in ctl_ha_shutdown()
793 ctl_isc_handler_finish_xfer(struct ctl_softc *ctl_softc, in ctl_isc_handler_finish_xfer() argument
816 ctl_isc_handler_finish_ser_only(struct ctl_softc *ctl_softc, in ctl_isc_handler_finish_ser_only() argument
835 struct ctl_softc *softc = lun->ctl_softc; in ctl_isc_announce_lun()
900 struct ctl_softc *softc = port->ctl_softc; in ctl_isc_announce_port()
961 struct ctl_softc *softc = port->ctl_softc; in ctl_isc_announce_iid()
998 struct ctl_softc *softc = lun->ctl_softc; in ctl_isc_announce_mode()
1032 ctl_isc_ha_link_up(struct ctl_softc *softc) in ctl_isc_ha_link_up()
1062 ctl_isc_ha_link_down(struct ctl_softc *softc) in ctl_isc_ha_link_down()
1102 ctl_isc_ua(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_ua()
1132 ctl_isc_lun_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_lun_sync()
1204 ctl_isc_port_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_port_sync()
1318 ctl_isc_iid_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_iid_sync()
1344 ctl_isc_login(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_login()
1374 ctl_isc_mode_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len) in ctl_isc_mode_sync()
1418 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()
1962 thr->ctl_softc = softc; in ctl_init()
2002 struct ctl_softc *softc = control_softc; in ctl_shutdown()
2085 struct ctl_softc *softc = port->ctl_softc; in ctl_remove_initiator()
2114 struct ctl_softc *softc = port->ctl_softc; in ctl_add_initiator()
2284 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_serialize_other_sc_cmd()
2528 struct ctl_softc *softc = dev->si_drv1; in ctl_ioctl()
3561 struct ctl_softc *softc = port->ctl_softc; in ctl_lun_map_init()
3590 struct ctl_softc *softc = port->ctl_softc; in ctl_lun_map_deinit()
3852 ctl_pool_create(struct ctl_softc *ctl_softc, const char *pool_name, in ctl_pool_create() argument
3863 pool->ctl_softc = ctl_softc; in ctl_pool_create()
3866 NULL, NULL, NULL, ctl_softc->io_zone); in ctl_pool_create()
3869 pool->zone = ctl_softc->io_zone; in ctl_pool_create()
3898 CTL_SOFTC(io) = pool->ctl_softc; in ctl_alloc_io()
3913 CTL_SOFTC(io) = pool->ctl_softc; in ctl_alloc_io_nowait()
3945 CTL_SOFTC(io) = pool->ctl_softc; in ctl_zero_io()
4509 ctl_alloc_lun(struct ctl_softc *ctl_softc, struct ctl_lun *ctl_lun, in ctl_alloc_lun() argument
4636 mtx_lock(&ctl_softc->ctl_lock); in ctl_alloc_lun()
4643 || (ctl_is_set(ctl_softc->ctl_lun_mask, be_lun->req_lun_id))) { in ctl_alloc_lun()
4644 mtx_unlock(&ctl_softc->ctl_lock); in ctl_alloc_lun()
4667 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, 0, ctl_max_luns); in ctl_alloc_lun()
4669 mtx_unlock(&ctl_softc->ctl_lock); in ctl_alloc_lun()
4674 ctl_set_mask(ctl_softc->ctl_lun_mask, lun_number); in ctl_alloc_lun()
4675 mtx_unlock(&ctl_softc->ctl_lock); in ctl_alloc_lun()
4706 lun->ctl_softc = ctl_softc; in ctl_alloc_lun()
4733 mtx_lock(&ctl_softc->ctl_lock); in ctl_alloc_lun()
4734 STAILQ_FOREACH(nlun, &ctl_softc->lun_list, links) { in ctl_alloc_lun()
4739 STAILQ_INSERT_TAIL(&ctl_softc->lun_list, lun, links); in ctl_alloc_lun()
4740 ctl_softc->ctl_luns[lun_number] = lun; in ctl_alloc_lun()
4741 ctl_softc->num_luns++; in ctl_alloc_lun()
4742 mtx_unlock(&ctl_softc->ctl_lock); in ctl_alloc_lun()
4757 struct ctl_softc *softc = lun->ctl_softc; in ctl_free_lun()
4814 struct ctl_softc *softc = control_softc; in ctl_add_lun()
4827 struct ctl_softc *softc; in ctl_enable_lun()
4833 softc = lun->ctl_softc; in ctl_enable_lun()
4879 struct ctl_softc *softc; in ctl_disable_lun()
4885 softc = lun->ctl_softc; in ctl_disable_lun()
4971 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) { in ctl_lun_has_media()
5068 if (lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) { in ctl_lun_capacity_changed()
7196 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_report_tagret_port_groups()
7612 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_persistent_reserve_in()
7850 ctl_pro_preempt(struct ctl_softc *softc, struct ctl_lun *lun, uint64_t res_key, in ctl_pro_preempt()
8177 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_persistent_reserve_out()
8560 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_hndl_per_res_out_on_other_sc()
9081 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_report_luns()
9225 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_request_sense()
9592 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_evpd_devid()
9705 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_evpd_scsi_ports()
10094 struct ctl_softc *softc = CTL_SOFTC(ctsio); in ctl_inquiry_std()
11093 struct ctl_softc *softc = lun->ctl_softc; in ctl_try_unblock_io()
11233 struct ctl_softc *softc = lun->ctl_softc; in ctl_scsiio_lun_check()
11353 struct ctl_softc *softc = CTL_SOFTC(rio); in ctl_failover_lun()
11433 ctl_scsiio_precheck(struct ctl_softc *softc, struct ctl_scsiio *ctsio) in ctl_scsiio_precheck()
11763 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_target_reset()
11859 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_lun_reset()
11937 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_abort_task_set()
11969 ctl_i_t_nexus_loss(struct ctl_softc *softc, uint32_t initidx, in ctl_i_t_nexus_loss()
12007 struct ctl_softc *softc = CTL_SOFTC(io); in ctl_i_t_nexus_reset()
12031 struct ctl_softc *softc = CTL_SOFTC(io);
12113 struct ctl_softc *softc = CTL_SOFTC(io);
12153 struct ctl_softc *softc = CTL_SOFTC(io);
12240 struct ctl_softc *softc = CTL_SOFTC(io);
12459 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
12921 mtx_assert(&((struct ctl_softc *)CTL_SOFTC(io))->ctl_lock, MA_NOTOWNED);
12957 struct ctl_softc *softc = CTL_SOFTC(io);
13172 struct ctl_softc *softc = CTL_SOFTC(io);
13341 struct ctl_softc *softc = thr->ctl_softc;
13407 struct ctl_softc *softc = (struct ctl_softc *)arg;
13436 struct ctl_softc *softc = (struct ctl_softc *)arg;
13516 lun->ctl_softc->ha_mode == CTL_HA_MODE_XFER) {
13544 struct ctl_softc *softc = CTL_SOFTC(io);
13560 struct ctl_softc *softc = CTL_SOFTC(io);
13573 struct ctl_softc *softc = CTL_SOFTC(io);
13586 struct ctl_softc *softc = CTL_SOFTC(io);