Lines Matching refs:tior

819 	struct tpc_io *tior, *tiow;  in tpc_process_b2b()  local
830 while ((tior = TAILQ_FIRST(&list->allio)) != NULL) { in tpc_process_b2b()
831 TAILQ_REMOVE(&list->allio, tior, links); in tpc_process_b2b()
832 ctl_free_io(tior->io); in tpc_process_b2b()
833 free(tior->buf, M_CTL); in tpc_process_b2b()
834 free(tior, M_CTL); in tpc_process_b2b()
911 tior = malloc(sizeof(*tior), M_CTL, M_WAITOK | M_ZERO); in tpc_process_b2b()
912 TAILQ_INIT(&tior->run); in tpc_process_b2b()
913 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_b2b()
914 tior->list = list; in tpc_process_b2b()
915 TAILQ_INSERT_TAIL(&list->allio, tior, links); in tpc_process_b2b()
916 tior->io = tpcl_alloc_io(); in tpc_process_b2b()
917 ctl_scsi_read_write(tior->io, in tpc_process_b2b()
918 /*data_ptr*/ tior->buf, in tpc_process_b2b()
927 tior->io->io_hdr.retries = 3; in tpc_process_b2b()
928 tior->target = SSD_FORWARDED_SDS_EXSRC; in tpc_process_b2b()
929 tior->cscd = scscd; in tpc_process_b2b()
930 tior->lun = sl; in tpc_process_b2b()
931 tior->io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = tior; in tpc_process_b2b()
933 tiow = malloc(sizeof(*tior), M_CTL, M_WAITOK | M_ZERO); in tpc_process_b2b()
939 /*data_ptr*/ tior->buf, in tpc_process_b2b()
954 TAILQ_INSERT_TAIL(&tior->run, tiow, rlinks); in tpc_process_b2b()
955 TAILQ_INSERT_TAIL(&run, tior, rlinks); in tpc_process_b2b()
962 while ((tior = TAILQ_FIRST(&run)) != NULL) { in tpc_process_b2b()
963 TAILQ_REMOVE(&run, tior, rlinks); in tpc_process_b2b()
964 if (tpcl_queue(tior->io, tior->lun) != CTL_RETVAL_COMPLETE) in tpc_process_b2b()
1174 struct tpc_io *tio, *tior, *tiow; in tpc_process_wut() local
1273 tior = malloc(sizeof(*tior), M_CTL, M_WAITOK | M_ZERO); in tpc_process_wut()
1274 TAILQ_INIT(&tior->run); in tpc_process_wut()
1275 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_wut()
1276 tior->list = list; in tpc_process_wut()
1277 TAILQ_INSERT_TAIL(&list->allio, tior, links); in tpc_process_wut()
1278 tior->io = tpcl_alloc_io(); in tpc_process_wut()
1279 ctl_scsi_read_write(tior->io, in tpc_process_wut()
1280 /*data_ptr*/ tior->buf, in tpc_process_wut()
1289 tior->io->io_hdr.retries = 3; in tpc_process_wut()
1290 tior->lun = list->token->lun; in tpc_process_wut()
1291 tior->io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = tior; in tpc_process_wut()
1299 /*data_ptr*/ tior->buf, in tpc_process_wut()
1312 TAILQ_INSERT_TAIL(&tior->run, tiow, rlinks); in tpc_process_wut()
1313 TAILQ_INSERT_TAIL(&run, tior, rlinks); in tpc_process_wut()
1320 while ((tior = TAILQ_FIRST(&run)) != NULL) { in tpc_process_wut()
1321 TAILQ_REMOVE(&run, tior, rlinks); in tpc_process_wut()
1322 if (tpcl_queue(tior->io, tior->lun) != CTL_RETVAL_COMPLETE) in tpc_process_wut()
1602 struct tpc_io *tio, *tior; in tpc_done() local
1650 while ((tior = TAILQ_FIRST(&tio->run)) != NULL) { in tpc_done()
1651 TAILQ_REMOVE(&tio->run, tior, rlinks); in tpc_done()
1653 if (tpcl_queue(tior->io, tior->lun) != CTL_RETVAL_COMPLETE) in tpc_done()