Lines Matching refs:tior
821 struct tpc_io *tior, *tiow; in tpc_process_b2b() local
832 while ((tior = TAILQ_FIRST(&list->allio)) != NULL) { in tpc_process_b2b()
833 TAILQ_REMOVE(&list->allio, tior, links); in tpc_process_b2b()
834 ctl_free_io(tior->io); in tpc_process_b2b()
835 free(tior->buf, M_CTL); in tpc_process_b2b()
836 free(tior, M_CTL); in tpc_process_b2b()
913 tior = malloc(sizeof(*tior), M_CTL, M_WAITOK | M_ZERO); in tpc_process_b2b()
914 TAILQ_INIT(&tior->run); in tpc_process_b2b()
915 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_b2b()
916 tior->list = list; in tpc_process_b2b()
917 TAILQ_INSERT_TAIL(&list->allio, tior, links); in tpc_process_b2b()
918 tior->io = tpcl_alloc_io(); in tpc_process_b2b()
919 ctl_scsi_read_write(tior->io, in tpc_process_b2b()
920 /*data_ptr*/ tior->buf, in tpc_process_b2b()
929 tior->io->io_hdr.retries = 3; in tpc_process_b2b()
930 tior->target = SSD_FORWARDED_SDS_EXSRC; in tpc_process_b2b()
931 tior->cscd = scscd; in tpc_process_b2b()
932 tior->lun = sl; in tpc_process_b2b()
933 tior->io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = tior; in tpc_process_b2b()
935 tiow = malloc(sizeof(*tior), M_CTL, M_WAITOK | M_ZERO); in tpc_process_b2b()
941 /*data_ptr*/ tior->buf, in tpc_process_b2b()
956 TAILQ_INSERT_TAIL(&tior->run, tiow, rlinks); in tpc_process_b2b()
957 TAILQ_INSERT_TAIL(&run, tior, rlinks); in tpc_process_b2b()
964 while ((tior = TAILQ_FIRST(&run)) != NULL) { in tpc_process_b2b()
965 TAILQ_REMOVE(&run, tior, rlinks); in tpc_process_b2b()
966 if (tpcl_queue(tior->io, tior->lun) != CTL_RETVAL_COMPLETE) in tpc_process_b2b()
1176 struct tpc_io *tio, *tior, *tiow; in tpc_process_wut() local
1275 tior = malloc(sizeof(*tior), M_CTL, M_WAITOK | M_ZERO); in tpc_process_wut()
1276 TAILQ_INIT(&tior->run); in tpc_process_wut()
1277 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_wut()
1278 tior->list = list; in tpc_process_wut()
1279 TAILQ_INSERT_TAIL(&list->allio, tior, links); in tpc_process_wut()
1280 tior->io = tpcl_alloc_io(); in tpc_process_wut()
1281 ctl_scsi_read_write(tior->io, in tpc_process_wut()
1282 /*data_ptr*/ tior->buf, in tpc_process_wut()
1291 tior->io->io_hdr.retries = 3; in tpc_process_wut()
1292 tior->lun = list->token->lun; in tpc_process_wut()
1293 tior->io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = tior; in tpc_process_wut()
1301 /*data_ptr*/ tior->buf, in tpc_process_wut()
1314 TAILQ_INSERT_TAIL(&tior->run, tiow, rlinks); in tpc_process_wut()
1315 TAILQ_INSERT_TAIL(&run, tior, rlinks); in tpc_process_wut()
1322 while ((tior = TAILQ_FIRST(&run)) != NULL) { in tpc_process_wut()
1323 TAILQ_REMOVE(&run, tior, rlinks); in tpc_process_wut()
1324 if (tpcl_queue(tior->io, tior->lun) != CTL_RETVAL_COMPLETE) in tpc_process_wut()
1604 struct tpc_io *tio, *tior; in tpc_done() local
1652 while ((tior = TAILQ_FIRST(&tio->run)) != NULL) { in tpc_done()
1653 TAILQ_REMOVE(&tio->run, tior, rlinks); in tpc_done()
1655 if (tpcl_queue(tior->io, tior->lun) != CTL_RETVAL_COMPLETE) in tpc_done()