usr/src/cmd/mdb/common/modules/genunix/gcore.c
813
mdb_task_t task;
usr/src/cmd/mdb/common/modules/genunix/gcore.c
843
if (mdb_ctf_vread(&task, "task_t", "mdb_task_t", p->p_task, 0) == -1) {
usr/src/cmd/mdb/common/modules/genunix/gcore.c
846
pc->pc_taskid = task.tk_tkid;
usr/src/cmd/mdb/common/modules/genunix/gcore.c
848
if (mdb_ctf_vread(&proj, "kproject_t", "mdb_kproject_t", task.tk_proj,
usr/src/cmd/mdb/common/modules/genunix/genunix.c
278
struct task *p_task;
usr/src/cmd/mdb/common/modules/genunix/genunix.c
2918
task_t task;
usr/src/cmd/mdb/common/modules/genunix/genunix.c
2920
if (mdb_vread(&task, sizeof (task_t), wsp->walk_addr) == -1) {
usr/src/cmd/mdb/common/modules/genunix/genunix.c
2924
wsp->walk_addr = (uintptr_t)task.tk_memb_list;
usr/src/cmd/mdb/common/modules/genunix/genunix.c
2925
wsp->walk_data = task.tk_memb_list;
usr/src/cmd/mdb/common/modules/genunix/genunix.c
4193
{ "task", NULL, "display kernel task(s)", task },
usr/src/cmd/mdb/common/modules/genunix/rctl.c
197
task_t task;
usr/src/cmd/mdb/common/modules/genunix/rctl.c
239
if (mdb_vread(&task, sizeof (task_t), (uintptr_t)proc.p_task) == -1) {
usr/src/cmd/mdb/common/modules/genunix/rctl.c
244
(uintptr_t)task.tk_proj) == -1) {
usr/src/cmd/mdb/common/modules/genunix/rctl.c
245
mdb_warn("failed to read proj at %p", task.tk_proj);
usr/src/cmd/mdb/common/modules/genunix/rctl.c
263
set = (uintptr_t)task.tk_rctls;
usr/src/cmd/mdb/common/modules/idm/idm.c
242
int buffer = 0, task = 0, print_ip = 0;
usr/src/cmd/mdb/common/modules/idm/idm.c
254
't', MDB_OPT_SETBITS, TRUE, &task,
usr/src/cmd/mdb/common/modules/idm/idm.c
269
idc.u.child.idc_task = task;
usr/src/cmd/mdb/common/modules/idm/idm.c
425
int buffer = 0, task = 0, conn = 0, print_ip = 0;
usr/src/cmd/mdb/common/modules/idm/idm.c
435
't', MDB_OPT_SETBITS, TRUE, &task,
usr/src/cmd/mdb/common/modules/idm/idm.c
448
idc.u.child.idc_task = task;
usr/src/cmd/mdb/common/modules/idm/idm.c
489
int buffer = 0, task = 0, print_ip = 0;
usr/src/cmd/mdb/common/modules/idm/idm.c
497
't', MDB_OPT_SETBITS, TRUE, &task,
usr/src/cmd/mdb/common/modules/idm/idm.c
508
idc.u.child.idc_task = task;
usr/src/cmd/mdb/common/modules/stmf/stmf.c
1208
scsi_task_t *task_addr, task;
usr/src/cmd/mdb/common/modules/stmf/stmf.c
1248
if (mdb_vread(&task, sizeof (scsi_task_t),
usr/src/cmd/mdb/common/modules/stmf/stmf.c
1259
task_addr, task.task_flags, task.task_lport);
usr/src/cmd/mdb/common/modules/stmf/stmf.c
877
struct scsi_task task;
usr/src/cmd/mdb/common/modules/stmf/stmf.c
880
if (mdb_vread(&task, sizeof (struct scsi_task),
usr/src/cmd/mdb/common/modules/stmf/stmf.c
891
mdb_printf(" task_flags=%x", task.task_flags);
usr/src/cmd/mdb/common/modules/stmf/stmf.c
899
mdb_printf(" lport=%p", task.task_lport);
usr/src/cmd/mdb/common/modules/stmf/stmf.c
932
struct scsi_task task;
usr/src/cmd/mdb/common/modules/stmf/stmf.c
935
if (mdb_vread(&task, sizeof (struct scsi_task),
usr/src/cmd/mdb/common/modules/stmf/stmf.c
946
mdb_printf(" task_flags=%x", task.task_flags);
usr/src/cmd/mdb/common/modules/stmf/stmf.c
954
mdb_printf(" lport=%p", task.task_lport);
usr/src/cmd/sendmail/src/util.c
2476
proc_list_add(pid, task, type, count, other, hostaddr)
usr/src/cmd/sendmail/src/util.c
2478
char *task;
usr/src/cmd/sendmail/src/util.c
2536
PSTRSET(ProcListVec[i].proc_task, task);
usr/src/cmd/sendmail/src/util.c
2566
proc_list_set(pid, task)
usr/src/cmd/sendmail/src/util.c
2568
char *task;
usr/src/cmd/sendmail/src/util.c
2576
PSTRSET(ProcListVec[i].proc_task, task);
usr/src/lib/libfakekernel/common/sys/proc.h
48
struct task;
usr/src/uts/common/fs/zfs/spa.c
7771
spa_async_request(spa_t *spa, int task)
usr/src/uts/common/fs/zfs/spa.c
7773
zfs_dbgmsg("spa=%s async request task=%u", spa->spa_name, task);
usr/src/uts/common/fs/zfs/spa.c
7775
spa->spa_async_tasks |= task;
usr/src/uts/common/inet/iptun/iptun.c
519
iptun_task_t task = itd->itd_task;
usr/src/uts/common/inet/iptun/iptun.c
540
switch (task) {
usr/src/uts/common/inet/iptun/iptun.c
564
switch (task) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
615
sbp2_task_t *task = CMD2TASK(cmd);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
620
task->ts_timeout = cmd->sc_timeout;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
621
task->ts_error = SBP2_TASK_ERR_NONE;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
622
task->ts_bus_error = 0;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
623
task->ts_state = SBP2_TASK_INIT;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
625
ret = sbp2_ses_submit_task(lp->l_ses, task);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
629
} if (task->ts_error == SBP2_TASK_ERR_BUS) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
630
if (task->ts_bus_error == CMD1394_EDEVICE_BUSY) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
646
scsa1394_sbp2_status_cb(void *arg, sbp2_task_t *task)
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
723
sbp2_task_t *task;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
733
while ((task = sbp2_ses_remove_first_task_state(sp, SBP2_TASK_COMP)) !=
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
737
ASSERT(task->ts_state == SBP2_TASK_COMP);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
738
task->ts_state = SBP2_TASK_PROC;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
739
scsa1394_sbp2_status_proc(lp, TASK2CMD(task),
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
740
(scsa1394_status_t *)&task->ts_status);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
749
sbp2_task_t *task = CMD2TASK(cmd);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
758
if (task->ts_error != SBP2_TASK_ERR_NONE) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
760
switch (task->ts_error) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
907
sbp2_task_t *task;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
930
while ((task = sbp2_ses_cancel_first_task(lp->l_ses)) != NULL) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
931
ASSERT(task->ts_state < SBP2_TASK_PROC);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
932
scsa1394_sbp2_reset_proc(lp, level, TASK2CMD(task));
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
942
sbp2_task_t *task = CMD2TASK(cmd);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
948
if (task->ts_state == SBP2_TASK_PEND) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
958
task->ts_error = ts_error;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
959
task->ts_state = SBP2_TASK_PROC;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
975
sbp2_task_t *task;
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
981
while ((task = sbp2_ses_cancel_first_task(sp)) != NULL) {
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
982
ASSERT(task->ts_state < SBP2_TASK_PROC);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
983
cmd = TASK2CMD(task);
usr/src/uts/common/io/1394/targets/scsa1394/sbp2_driver.c
989
task->ts_state = SBP2_TASK_PROC;
usr/src/uts/common/io/bnxe/577xx/drivers/common/include/mm.h
396
lm_task_cb_t task,
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/multi_thread_def.h
88
struct task_t task[MAX_THREAD_QUEUE]; /* The request queue. */
usr/src/uts/common/io/bnxe/bnxe_mm.c
1183
lm_task_cb_t task,
usr/src/uts/common/io/bnxe/bnxe_mm.c
1188
BnxeWorkQueueAddDelayNoCopy(pUM, (void (*)(um_device_t *, void *))task, param, delay_ms);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
138
if (task == ats_state->as_cur_ats_task) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
140
"task %p already on list", (void *) task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
161
ats_state_ret->as_cur_ats_task = task;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
179
sbd_ats_handling_before_io(scsi_task_t *task, struct sbd_lu *sl,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
182
return (sbd_ats_do_handling_before_io(task, sl, lba, count, 0));
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
186
sbd_ats_remove_by_task(scsi_task_t *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
189
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
190
sbd_cmd_t *scmd = task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
212
if (ats_state->as_cur_ats_task == task) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
225
sbd_compare_and_write(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
228
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
234
addr = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
235
len = (uint32_t)task->task_cdb[13];
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
240
ret = sbd_data_read(sl, task, addr, (uint64_t)len, buf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
257
ret = sbd_data_write(sl, task, addr, (uint64_t)len,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
266
sbd_send_miscompare_status(struct scsi_task *task, uint32_t miscompare_off)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
270
task->task_scsi_status = STATUS_CHECK;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
277
task->task_sense_data = sd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
278
task->task_sense_length = 18;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
279
(void) stmf_send_scsi_status(task, STMF_IOF_LU_DONE);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
283
sbd_ats_release_resources(struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
285
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
311
sbd_handle_ats_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
324
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
325
sbd_ats_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
326
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
350
sbd_do_ats_xfer(task, scmd, NULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
369
task->task_nbytes_transferred += buflen;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
374
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
384
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
385
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
388
ret = sbd_compare_and_write(task, scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
390
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
391
sbd_ats_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
394
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
397
sbd_send_miscompare_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
401
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
406
sbd_do_ats_xfer(task, scmd, dbuf, dbuf_reusable);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
410
sbd_do_ats_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
417
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
425
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
436
dbuf = stmf_alloc_dbuf(task, maxsize, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
441
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
442
sbd_ats_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
443
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
456
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
467
sbd_handle_ats(scsi_task_t *task, struct stmf_data_buf *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
469
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
477
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
482
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
483
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
485
task->task_expected_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
488
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
492
addr = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
493
len = (uint64_t)task->task_cdb[13];
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
495
if ((task->task_cdb[1]) || (len > SBD_ATS_MAX_NBLKS)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
496
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
501
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
508
if (sbd_ats_handling_before_io(task, sl, addr, len) != SBD_SUCCESS) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
509
if (stmf_task_poll_lu(task, 10) != STMF_SUCCESS) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
510
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
518
task->task_cmd_xfer_length = len << 1; /* actual amt of data is 2x */
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
519
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
521
task->task_expected_xfer_length = task->task_cmd_xfer_length;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
524
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
525
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
532
if (len != task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
533
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
534
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
539
if ((initial_dbuf != NULL) && (task->task_flags & TF_INITIAL_BURST)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
542
task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
544
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
545
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
556
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
557
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
560
task->task_lu_private = scmd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
577
(void) stmf_xfer_data(task, dbuf, STMF_IOF_STATS_ONLY);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
581
sbd_handle_ats_xfer_completion(task, scmd, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
583
sbd_do_ats_xfer(task, scmd, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
603
int sbd_check_reservation_conflict(sbd_lu_t *sl, scsi_task_t *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
615
cpmgr_create(scsi_task_t *task, uint8_t *params)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
629
cm->cm_task = task;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
630
p = task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
689
stmf_check_and_hold_lu(task, &p[8])) == NULL) ||
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
71
sbd_ats_do_handling_before_io(scsi_task_t *task, struct sbd_lu *sl,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
76
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
77
uint8_t cdb0 = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
866
sbd_handle_xcopy(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
871
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
876
cmd_xfer_len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
879
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
880
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
882
task->task_expected_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
884
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
888
sbd_handle_short_write_transfers(task, dbuf, cmd_xfer_len);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
892
sbd_handle_xcopy_xfer(scsi_task_t *task, uint8_t *buf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
901
h = cpmgr_create(task, buf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
903
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
910
if (stmf_is_task_being_aborted(task) || (ddi_get_lbolt() > end))
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
918
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
921
stmf_scsilib_send_status(task, STATUS_CHECK, s);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
924
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
930
sbd_handle_recv_copy_results(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
935
cdb_len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
936
if ((task->task_cdb[1] & 0x1F) != 3) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
937
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.c
941
sbd_handle_short_read_transfers(task, initial_dbuf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.h
146
cpmgr_handle_t cpmgr_create(struct scsi_task *task, uint8_t *params);
usr/src/uts/common/io/comstar/lu/stmf_sbd/ats_copy_mgr.h
65
sbd_status_t sbd_ats_handling_before_io(scsi_task_t *task, struct sbd_lu *sl,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3047
sbd_data_read(sbd_lu_t *sl, struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3053
uint8_t op = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3068
(op == SCMD_READ_G5)) && (task->task_cdb[1] & BIT_3)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3085
scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3104
stmf_lu_xfer_done(task, B_TRUE /* read */,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3108
int, ret, scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3120
sbd_data_write(sbd_lu_t *sl, struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3128
uint8_t op = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3144
(op == SCMD_WRITE_G5)) && (task->task_cdb[1] & BIT_3)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3157
scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3175
stmf_lu_xfer_done(task, B_FALSE /* write */,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3179
int, ret, scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
321
stmf_status_t sbd_task_alloc(struct scsi_task *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
322
void sbd_new_task(struct scsi_task *task, struct stmf_data_buf *initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
323
void sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
324
void sbd_send_status_done(struct scsi_task *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
325
void sbd_task_free(struct scsi_task *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
328
void sbd_task_poll(struct scsi_task *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_impl.h
329
void sbd_dbuf_free(struct scsi_task *task, struct stmf_data_buf *dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1014
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1040
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1044
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1054
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1064
sbd_pgr_out_register(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1067
sbd_pgr_out_register_and_move(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1070
sbd_pgr_out_reserve(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1073
sbd_pgr_out_release(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1076
sbd_pgr_out_clear(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1080
sbd_pgr_out_preempt(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1083
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1091
sbd_pgr_in_read_keys(scsi_task_t *task, stmf_data_buf_t *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1093
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1100
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_IN);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1102
cdb_len = READ_SCSI16(&task->task_cdb[7], uint16_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1115
sbd_handle_short_read_transfers(task, initial_dbuf, (uint8_t *)buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1121
sbd_pgr_in_read_reservation(scsi_task_t *task, stmf_data_buf_t *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1123
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1128
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_IN);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1130
cdb_len = READ_SCSI16(&task->task_cdb[7], uint16_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1152
sbd_handle_short_read_transfers(task, initial_dbuf, (uint8_t *)buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1158
sbd_pgr_in_report_capabilities(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1161
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1166
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_IN);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1185
cdb_len = READ_SCSI16(&task->task_cdb[7], uint16_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1186
sbd_handle_short_read_transfers(task, initial_dbuf, (uint8_t *)&buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1196
sbd_pgr_in_read_full_status(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1199
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1207
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_IN);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1211
cdb_len = READ_SCSI16(&task->task_cdb[7], uint16_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1253
sbd_handle_short_read_transfers(task, initial_dbuf, (uint8_t *)buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1259
sbd_pgr_out_register(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1261
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1263
stmf_scsi_session_t *ses = task->task_session;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1264
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1266
scsi_cdb_prout_t *pr_out = (scsi_cdb_prout_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1285
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1290
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1297
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1313
stmf_scsilib_send_status(task, STATUS_RESERVATION_CONFLICT, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1320
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1338
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1352
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1397
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1423
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1430
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1487
sbd_pgr_out_reserve(scsi_task_t *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1489
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1490
stmf_scsi_session_t *ses = task->task_session;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1491
scsi_cdb_prout_t *pr_out = (scsi_cdb_prout_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1492
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1499
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1508
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1513
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1523
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1530
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1568
sbd_pgr_out_release(scsi_task_t *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1570
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1571
scsi_cdb_prout_t *pr_out = (scsi_cdb_prout_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1572
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1588
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1609
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1617
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1639
sbd_pgr_out_clear(scsi_task_t *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1641
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1642
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1660
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1666
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1670
sbd_pgr_out_preempt(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1672
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1673
stmf_scsi_session_t *ses = task->task_session;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1674
scsi_cdb_prout_t *pr_out = (scsi_cdb_prout_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1675
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1691
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1698
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1707
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1741
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1755
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1766
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1775
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1784
stmf_abort(STMF_QUEUE_ABORT_LU, task, STMF_ABORTED,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1787
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1791
sbd_pgr_out_register_and_move(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1793
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1794
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1811
stmf_scsilib_send_status(task, STATUS_RESERVATION_CONFLICT, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1819
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1827
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1836
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1846
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1895
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
1902
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
776
sbd_pgr_initialize_it(scsi_task_t *task, sbd_it_data_t *it)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
778
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
779
stmf_scsi_session_t *ses = task->task_session;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
843
sbd_pgr_reservation_conflict(scsi_task_t *task, sbd_lu_t *slu)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
846
sbd_it_data_t *it = (sbd_it_data_t *)task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
878
task->task_cdb[0])) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
890
if (PGR_REGISTERED_POSSIBLE_CMDS(task->task_cdb)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
899
if (PGR_CONFLICT_FREE_CMDS(task->task_cdb)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
906
if (PGR_READ_POSSIBLE_CMDS(task->task_cdb[0]))
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
91
extern void sbd_handle_short_write_transfers(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
915
sbd_handle_pgr_in_cmd(scsi_task_t *task, stmf_data_buf_t *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
918
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
922
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_IN);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
924
pr_in = (scsi_cdb_prin_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
929
sbd_pgr_in_read_keys(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
93
extern void sbd_handle_short_read_transfers(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
932
sbd_pgr_in_read_reservation(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
935
sbd_pgr_in_report_capabilities(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
938
sbd_pgr_in_read_full_status(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
941
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
949
sbd_handle_pgr_out_cmd(scsi_task_t *task, stmf_data_buf_t *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
952
scsi_cdb_prout_t *pr_out = (scsi_cdb_prout_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
955
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_OUT);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
969
sbd_handle_short_write_transfers(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
972
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
977
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
984
sbd_handle_pgr_out_data(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
986
sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
987
scsi_cdb_prout_t *pr_out = (scsi_cdb_prout_t *)task->task_cdb;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
988
sbd_it_data_t *it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
996
ASSERT(task->task_cdb[0] == SCMD_PERSISTENT_RESERVE_OUT);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_pgr.c
999
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1006
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1007
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1011
task->task_lu_private = scmd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1025
sbd_do_sgl_read_xfer(task, scmd, 1);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1036
initial_dbuf = stmf_alloc_dbuf(task, maxsize,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1041
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1042
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1050
if (sbd_data_read(sl, task, laddr, (uint64_t)len,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1057
DTRACE_PROBE4(sbd__xfer, struct scsi_task *, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1060
(void) stmf_xfer_data(task, dbuf, STMF_IOF_LU_DONE);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1062
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1065
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1069
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1070
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1073
task->task_lu_private = scmd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1082
sbd_do_read_xfer(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1086
sbd_do_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
109
static void sbd_handle_sync_cache(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1097
bufs_to_take = ((task->task_max_nbufs > 2) &&
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1098
(task->task_cmd_xfer_length < (32 * 1024))) ? 2 :
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1099
task->task_max_nbufs;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1104
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
111
void sbd_handle_read_xfer_completion(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1118
dbuf = stmf_alloc_dbuf(task, maxsize, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1123
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
113
void sbd_handle_short_write_xfer_completion(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1136
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1144
sbd_do_write_xfer(task, scmd, NULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
115
void sbd_handle_mode_select_xfer(scsi_task_t *task, uint8_t *buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1150
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1155
sbd_do_sgl_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd, int first_xfer)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1157
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
117
void sbd_handle_mode_select(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
118
void sbd_handle_identifying_info(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1192
max_len = MIN(task->task_max_xfer_len, sl->sl_max_xfer_len);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1198
if (first_xfer && (sbd_1st_xfer_len || task->task_1st_xfer_len)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
120
static void sbd_handle_unmap_xfer(scsi_task_t *task, uint8_t *buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1203
first_len = task->task_1st_xfer_len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1210
ATOMIC8_GET(scmd->nbufs) < task->task_max_nbufs) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
122
static void sbd_handle_unmap(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1284
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1285
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1298
xstat = stmf_setup_dbuf(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
131
void sbd_do_sgl_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1316
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1318
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1320
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
133
static void sbd_handle_write_same(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1331
xstat = stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1341
stmf_teardown_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
135
static void sbd_do_write_same_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1352
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1354
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1356
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
137
static void sbd_handle_write_same_xfer_completion(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1376
sbd_handle_write_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1379
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1383
uint8_t op = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1396
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1397
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1411
sbd_do_write_xfer(task, scmd, NULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1421
(op == SCMD_WRITE_G5)) && (task->task_cdb[1] & BIT_3)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1432
(task->task_additional_flags & TASK_AF_ACCEPT_LU_DBUF) &&
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1440
sbd_copy_rdwr(task, laddr, dbuf, SBD_CMD_SCSI_WRITE,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1452
if (sbd_data_write(sl, task, laddr, (uint64_t)iolen,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1461
task->task_nbytes_transferred += buflen;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1465
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1469
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1471
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1485
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1488
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
149
sbd_do_read_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1493
sbd_do_write_xfer(task, scmd, dbuf, dbuf_reusable);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1500
sbd_zcopy_write_useful(scsi_task_t *task, uint64_t laddr, uint32_t len,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1514
if (len < task->task_copy_threshold || len < blksize)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
152
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1527
sbd_handle_write(struct scsi_task *task, struct stmf_data_buf *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1531
uint8_t op = task->task_cdb[0], do_immediate_data = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1532
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1540
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1551
(op == SCMD_WRITE_G5)) && (task->task_cdb[1] & BIT_3)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1555
lba = READ_SCSI21(&task->task_cdb[1], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1556
len = (uint32_t)task->task_cdb[4];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1562
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1563
len = READ_SCSI16(&task->task_cdb[7], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1565
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1566
len = READ_SCSI32(&task->task_cdb[6], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1568
lba = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1569
len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1571
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1572
len = READ_SCSI16(&task->task_cdb[7], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1575
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1576
len = READ_SCSI32(&task->task_cdb[6], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1579
lba = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1580
len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1583
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
159
bufs_to_take = ((task->task_max_nbufs > 2) &&
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1593
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1598
task->task_cmd_xfer_length = len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1599
if (task->task_additional_flags & TASK_AF_NO_EXPECTED_XFER_LENGTH) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
160
(task->task_cmd_xfer_length < (32 * 1024))) ? 2 :
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1600
task->task_expected_xfer_length = len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1603
len = (len > task->task_expected_xfer_length) ?
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1604
task->task_expected_xfer_length : len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1607
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
161
task->task_max_nbufs;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1611
if (sbd_ats_handling_before_io(task, sl, lba, blkcount) !=
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1613
if (stmf_task_poll_lu(task, 10) != STMF_SUCCESS) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1614
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1622
(task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1624
sbd_zcopy_write_useful(task, laddr, len, sl->sl_blksize) &&
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1637
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1638
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1645
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1646
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1650
task->task_lu_private = scmd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1659
sbd_do_sgl_write_xfer(task, scmd, 1);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1663
if ((initial_dbuf != NULL) && (task->task_flags & TF_INITIAL_BURST)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1666
task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1668
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1678
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1679
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1682
task->task_lu_private = scmd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1696
(void) stmf_xfer_data(task, dbuf, STMF_IOF_STATS_ONLY);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1700
sbd_handle_write_xfer_completion(task, scmd, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1702
sbd_do_write_xfer(task, scmd, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1714
sbd_handle_short_read_transfers(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
172
if (sbd_data_read(sl, task, laddr, (uint64_t)iolen,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1722
task->task_cmd_xfer_length = cmd_xfer_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1723
if (task->task_additional_flags & TASK_AF_NO_EXPECTED_XFER_LENGTH) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1724
task->task_expected_xfer_length = cmd_xfer_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1727
task->task_expected_xfer_length);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1731
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1738
dbuf = stmf_alloc_dbuf(task, cmd_xfer_size, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1741
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1759
if (task->task_lu_private == NULL) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1760
task->task_lu_private =
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1763
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1767
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1771
sbd_handle_short_read_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1775
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1779
task->task_nbytes_transferred = dbuf->db_data_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
178
sbd_handle_read_xfer_completion(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1781
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1785
sbd_handle_short_write_transfers(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1790
task->task_cmd_xfer_length = cdb_xfer_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1791
if (task->task_additional_flags & TASK_AF_NO_EXPECTED_XFER_LENGTH) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1792
task->task_expected_xfer_length = cdb_xfer_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1795
task->task_expected_xfer_length);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1799
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1803
if (task->task_lu_private == NULL) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1804
task->task_lu_private = kmem_zalloc(sizeof (sbd_cmd_t),
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1807
bzero(task->task_lu_private, sizeof (sbd_cmd_t));
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1809
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1816
dbuf = stmf_alloc_dbuf(task, cdb_xfer_size, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1818
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1825
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1828
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1833
sbd_handle_short_write_xfer_completion(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1838
sbd_handle_short_write_xfer_completion(scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1843
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1852
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1857
task->task_nbytes_transferred = dbuf->db_data_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1858
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1862
switch (task->task_cdb[0]) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1866
st_ret = stmf_proxy_scsi_cmd(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1868
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
187
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1872
sbd_handle_mode_select_xfer(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1877
sbd_handle_unmap_xfer(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1881
sbd_handle_xcopy_xfer(task, dbuf->db_sglist[0].seg_addr);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1885
st_ret = stmf_proxy_scsi_cmd(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1887
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1891
sbd_handle_pgr_out_data(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1896
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1902
sbd_handle_read_capacity(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1905
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1915
switch (task->task_cdb[0]) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1928
sbd_handle_short_read_transfers(task, initial_dbuf, p, 8, 8);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1932
cdb_len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1947
sbd_handle_short_read_transfers(task, initial_dbuf, p,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1969
sbd_handle_mode_sense(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1972
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
1985
cdb = &task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2003
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
204
dbuf = stmf_alloc_dbuf(task, maxsize, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2097
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
211
sbd_do_read_xfer(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2113
sbd_handle_short_read_transfers(task, initial_dbuf, buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2118
sbd_handle_mode_select(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2122
if (task->task_cdb[0] == SCMD_MODE_SELECT) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2123
cmd_xfer_len = (uint32_t)task->task_cdb[4];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2125
cmd_xfer_len = READ_SCSI16(&task->task_cdb[7], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2128
if ((task->task_cdb[1] & 0xFE) != 0x10) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2129
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2136
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2140
sbd_handle_short_write_transfers(task, dbuf, cmd_xfer_len);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2144
sbd_handle_mode_select_xfer(scsi_task_t *task, uint8_t *buf, uint32_t buflen)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2146
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2152
if (task->task_cdb[0] == SCMD_MODE_SELECT) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2193
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2207
if (it == task->task_lu_itl_handle)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2212
if (task->task_cdb[1] & 1) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2224
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2226
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2232
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2236
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2245
sbd_handle_identifying_info(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2248
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2256
cdb = &task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2262
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
229
sbd_do_sgl_read_xfer(struct scsi_task *task, sbd_cmd_t *scmd, int first_xfer)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2297
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2302
sbd_handle_short_read_transfers(task, initial_dbuf, buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
231
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2349
sbd_write_same_data_common(sbd_lu_t *sl, struct scsi_task *task, uint64_t addr,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2360
ret = sbd_data_write(sl, task, addr + sz_done,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2370
sbd_write_same_data(struct scsi_task *task, sbd_cmd_t *scmd)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2372
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2378
if (task->task_cdb[0] == SCMD_WRITE_SAME_G1) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2379
addr = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2380
len = READ_SCSI16(&task->task_cdb[7], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2382
addr = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2383
len = READ_SCSI32(&task->task_cdb[10], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2421
ret = sbd_write_same_data_common(sl, task, addr,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2431
ret = sbd_write_same_data_common(sl, task, addr, big_buf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2441
sbd_write_same_release_resources(struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2443
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2456
sbd_handle_write_same_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2468
sbd_write_same_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2469
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2470
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2483
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2493
sbd_do_write_same_xfer(task, scmd, NULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2509
task->task_nbytes_transferred += buflen;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2514
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2519
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2520
sbd_write_same_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2521
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2524
ret = sbd_write_same_data(task, scmd);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2525
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2526
sbd_write_same_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2528
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2531
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2536
sbd_do_write_same_xfer(task, scmd, dbuf, dbuf_reusable);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2540
sbd_do_write_same_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2547
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2554
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2565
dbuf = stmf_alloc_dbuf(task, maxsize, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2569
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2570
sbd_write_same_release_resources(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2572
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2585
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2593
sbd_handle_write_same(scsi_task_t *task, struct stmf_data_buf *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2595
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2603
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2608
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2609
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2611
task->task_expected_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2614
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2618
if (task->task_cdb[1] & 0xF7) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2619
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2623
unmap = task->task_cdb[1] & 0x08;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2626
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2631
if (task->task_cdb[0] == SCMD_WRITE_SAME_G1) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2632
addr = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2633
len = READ_SCSI16(&task->task_cdb[7], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2635
addr = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2636
len = READ_SCSI32(&task->task_cdb[10], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2640
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2645
if (sbd_ats_handling_before_io(task, sl, addr, len) !=
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2647
if (stmf_task_poll_lu(task, 10) != STMF_SUCCESS)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2648
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2663
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2666
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
267
max_len = MIN(task->task_max_xfer_len, sl->sl_max_xfer_len);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2674
task->task_cmd_xfer_length = 1 << sl->sl_data_blocksize_shift;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2675
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2677
task->task_expected_xfer_length = task->task_cmd_xfer_length;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2680
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2681
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2690
if ((len == 0) || (len != task->task_expected_xfer_length)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2691
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2692
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2698
if ((initial_dbuf != NULL) && (task->task_flags & TF_INITIAL_BURST)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2701
task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2703
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2704
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2714
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2715
scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2718
task->task_lu_private = scmd;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
273
if (first_xfer && (sbd_1st_xfer_len || task->task_1st_xfer_len)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2733
(void) stmf_xfer_data(task, dbuf, STMF_IOF_STATS_ONLY);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2737
sbd_handle_write_same_xfer_completion(task, scmd, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2739
sbd_do_write_same_xfer(task, scmd, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2744
sbd_handle_unmap(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2746
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2750
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2756
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2760
cmd_xfer_len = READ_SCSI16(&task->task_cdb[7], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2762
if (task->task_cdb[1] & 1) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2763
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2769
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2770
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2772
task->task_expected_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2774
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2778
sbd_handle_short_write_transfers(task, dbuf, cmd_xfer_len);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
278
first_len = task->task_1st_xfer_len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2782
sbd_handle_unmap_xfer(scsi_task_t *task, uint8_t *buf, uint32_t buflen)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2784
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2793
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2802
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2836
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
284
ATOMIC8_GET(scmd->nbufs) < task->task_max_nbufs) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2841
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2845
sbd_handle_inquiry(struct scsi_task *task, struct stmf_data_buf *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2847
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2848
uint8_t *cdbp = (uint8_t *)&task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2867
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2880
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2881
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2883
task->task_expected_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2885
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2939
switch (task->task_lport->lport_id->protocol_id) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
2981
sbd_handle_short_read_transfers(task, initial_dbuf, p, cmd_size,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3051
xfer_size = stmf_scsilib_prepare_vpd_page83(task, p,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3058
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3144
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3165
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3170
sbd_handle_short_read_transfers(task, initial_dbuf, p, cmd_size,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3178
sbd_task_alloc(struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3180
if ((task->task_lu_private =
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3182
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3254
sbd_check_reservation_conflict(struct sbd_lu *sl, struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3258
it = task->task_lu_itl_handle;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3262
if (sbd_pgr_reservation_conflict(task, sl)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3267
if (!(SCSI2_CONFLICT_FREE_CMDS(task->task_cdb))) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3282
sbd_new_task(struct scsi_task *task, struct stmf_data_buf *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3284
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3289
if ((it = task->task_lu_itl_handle) == NULL) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3293
task->task_session->ss_session_id) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3295
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3302
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3305
it->sbd_it_session_id = task->task_session->ss_session_id;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3306
bcopy(task->task_lun_no, it->sbd_it_lun, 8);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3311
DTRACE_PROBE1(itl__nexus__start, scsi_task *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3313
sbd_pgr_initialize_it(task, it);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3314
if (stmf_register_itl_handle(task->task_lu, task->task_lun_no,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3315
task->task_session, it->sbd_it_session_id, it)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3318
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3321
task->task_lu_itl_handle = it;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3329
sbd_pgr_initialize_it(task, it);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3332
if (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3333
stmf_scsilib_handle_task_mgmt(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3343
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3348
cdb0 = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3349
cdb1 = task->task_cdb[1];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3364
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3396
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3410
!(task->task_additional_flags & TASK_AF_PPPT_TASK) &&
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3411
(task->task_cdb[0] != SCMD_INQUIRY)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3426
stmf_scsilib_send_status(task, STATUS_CHECK, saa);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3432
if (sbd_check_reservation_conflict(sl, task)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3433
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3439
if ((it->sbd_it_ua_conditions) && (task->task_cdb[0] != SCMD_INQUIRY)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3445
if ((task->task_cdb[0] == SCMD_READ_CAPACITY) ||
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3446
((task->task_cdb[0] == SCMD_SVC_ACTION_IN_G4) &&
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3447
(task->task_cdb[1] ==
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3474
stmf_scsilib_send_status(task, STATUS_CHECK, saa);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3491
st_ret = stmf_proxy_scsi_cmd(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3494
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3502
cdb0 = task->task_cdb[0] & 0x1F;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3505
if (task->task_additional_flags & TASK_AF_PORT_LOAD_HIGH) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3506
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3510
sbd_handle_read(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3513
sbd_handle_write(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3517
cdb0 = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3518
cdb1 = task->task_cdb[1];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3521
sbd_handle_inquiry(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3526
sbd_handle_pgr_out_cmd(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3531
sbd_handle_pgr_in_cmd(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3537
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3548
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3555
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3561
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3572
stmf_scsilib_send_status(task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3581
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3592
if ((cdb1 & ~1) || task->task_cdb[2] || task->task_cdb[3] ||
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3593
task->task_cdb[5]) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3594
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3597
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3606
stmf_scsilib_handle_report_tpgs(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
361
uint64_t, offset, scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3613
sbd_handle_identifying_info(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3618
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3619
if (task->task_cdb[4] & 0xFC) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3620
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3624
if (task->task_cdb[4] & 2) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3625
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3628
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3637
sbd_handle_mode_sense(task, initial_dbuf, p);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3643
sbd_handle_mode_select(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3648
sbd_handle_unmap(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
365
stmf_lu_xfer_done(task, B_TRUE /* read */,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3653
sbd_handle_write_same(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3658
sbd_handle_ats(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3663
sbd_handle_xcopy(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3668
sbd_handle_recv_copy_results(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3673
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3674
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3679
sbd_handle_read_capacity(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3685
sbd_handle_read_capacity(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
369
uint64_t, offset, int, ret, scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3708
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3709
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3715
sbd_handle_sync_cache(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3735
sbd_handle_write(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3738
stmf_scsilib_send_status(task, STATUS_CHECK, STMF_SAA_INVALID_OPCODE);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3742
sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3744
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3751
ASSERT(task->task_additional_flags & TASK_AF_ACCEPT_LU_DBUF);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3755
sbd_handle_sgl_read_xfer_completion(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3758
sbd_handle_sgl_write_xfer_completion(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3762
(void *)task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3773
sbd_handle_read_xfer_completion(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3777
switch (task->task_cdb[0]) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3780
sbd_handle_write_same_xfer_completion(task, scmd, dbuf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3784
sbd_handle_ats_xfer_completion(task, scmd, dbuf, 1);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3787
sbd_handle_write_xfer_completion(task, scmd, dbuf, 1);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
379
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3793
sbd_handle_short_read_xfer_completion(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3797
sbd_handle_short_write_xfer_completion(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
380
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3801
cmn_err(CE_PANIC, "Unknown cmd type, task = %p", (void *)task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3808
sbd_send_status_done(struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3815
sbd_task_free(struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3817
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3818
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3821
(void *)task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3840
scsi_task_t *task;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3853
task = (scsi_task_t *)arg;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3854
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3855
if (task->task_lu_private) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3856
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3873
sbd_task_poll(struct scsi_task *task)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3877
initial_dbuf = stmf_handle_to_buf(task, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3878
sbd_new_task(task, initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3887
sbd_dbuf_free(struct scsi_task *task, struct stmf_data_buf *dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3889
sbd_cmd_t *scmd = (sbd_cmd_t *)task->task_lu_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3890
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3896
ASSERT(task->task_additional_flags & TASK_AF_ACCEPT_LU_DBUF);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3905
scmd->cmd_type, (void *)task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
3909
stmf_teardown_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
393
xstat = stmf_setup_dbuf(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4041
sbd_handle_sync_cache(struct scsi_task *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4044
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4051
task->task_cmd_xfer_length = 0;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4056
if (task->task_cdb[0] == SCMD_SYNCHRONIZE_CACHE_G4)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4066
immed = (task->task_cdb[1] & 0x02);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4069
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4080
if ((task->task_cdb[1] & 0xf9) || task->task_cdb[14] ||
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4081
task->task_cdb[15]) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4082
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4087
lba = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4088
len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4090
if ((task->task_cdb[1] & 0xf9) || task->task_cdb[6] ||
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4091
task->task_cdb[9]) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4092
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4097
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4098
len = READ_SCSI16(&task->task_cdb[7], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4105
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
411
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4112
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
4117
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
413
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
415
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
426
DTRACE_PROBE4(sbd__xfer, struct scsi_task *, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
433
xstat = stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
443
stmf_teardown_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
455
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
457
stmf_scsilib_send_status(task, STATUS_QFULL, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
459
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
467
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
480
sbd_handle_read_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
484
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
488
task->task_nbytes_transferred += dbuf->db_data_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
491
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
496
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
498
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
501
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
507
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
514
dbuf = stmf_alloc_dbuf(task, maxsize, &minsize, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
520
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
526
sbd_do_read_xfer(task, scmd, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
536
sbd_handle_sgl_read_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
539
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
557
stmf_teardown_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
582
task->task_nbytes_transferred += data_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
592
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
593
stmf_task_lu_done(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
599
sbd_do_sgl_read_xfer(task, scmd, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
613
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
614
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
630
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
631
stmf_abort(STMF_QUEUE_TASK_ABORT, task, xfer_status, NULL);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
636
sbd_handle_sgl_write_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
640
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
653
stmf_teardown_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
669
uint64_t, zvio->zvio_offset, scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
684
stmf_lu_xfer_done(task, B_FALSE /* write */,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
688
uint64_t, zvio->zvio_offset, int, ret, scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
716
task->task_nbytes_transferred += data_size;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
720
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
723
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
726
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
733
sbd_do_sgl_write_xfer(task, scmd, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
743
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
744
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
753
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
755
stmf_abort(STMF_QUEUE_TASK_ABORT, task, xfer_status, NULL);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
771
sbd_copy_rdwr(scsi_task_t *task, uint64_t laddr, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
774
sbd_lu_t *sl = task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
823
scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
830
scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
836
scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
844
scsi_task_t *, task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
847
stmf_lu_xfer_done(task, is_read, (gethrtime() - xfer_start));
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
859
sbd_handle_read(struct scsi_task *task, struct stmf_data_buf *initial_dbuf)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
864
uint8_t op = task->task_cdb[0];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
865
sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
879
(task->task_cdb[1] & BIT_3)) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
883
lba = READ_SCSI21(&task->task_cdb[1], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
884
len = (uint32_t)task->task_cdb[4];
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
890
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
891
len = READ_SCSI16(&task->task_cdb[7], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
893
lba = READ_SCSI32(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
894
len = READ_SCSI32(&task->task_cdb[6], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
896
lba = READ_SCSI64(&task->task_cdb[2], uint64_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
897
len = READ_SCSI32(&task->task_cdb[10], uint32_t);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
899
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
909
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
914
task->task_cmd_xfer_length = len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
915
if (task->task_additional_flags & TASK_AF_NO_EXPECTED_XFER_LENGTH) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
916
task->task_expected_xfer_length = len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
919
if (len != task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
921
len = (len > task->task_expected_xfer_length) ?
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
922
task->task_expected_xfer_length : len;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
928
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
932
if (sbd_ats_handling_before_io(task, sl, lba, blkcount) !=
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
934
if (stmf_task_poll_lu(task, 10) != STMF_SUCCESS) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
935
stmf_scsilib_send_status(task, STATUS_BUSY, 0);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
945
(task->task_additional_flags &
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
962
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
963
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
974
sbd_copy_threshold : task->task_copy_threshold;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
977
(dbuf = stmf_alloc_dbuf(task, len, &minsize, 0)) != 0) {
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
979
ret = sbd_copy_rdwr(task, laddr, dbuf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
983
sbd_ats_remove_by_task(task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
986
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
996
struct scsi_task *, task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c
999
(void) stmf_xfer_data(task, dbuf,
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
290
sbd_status_t sbd_data_read(sbd_lu_t *sl, scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
292
sbd_status_t sbd_data_write(sbd_lu_t *sl, scsi_task_t *task,
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
294
stmf_status_t sbd_task_alloc(struct scsi_task *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
295
void sbd_new_task(struct scsi_task *task, struct stmf_data_buf *initial_dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
296
void sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf);
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
297
void sbd_send_status_done(struct scsi_task *task);
usr/src/uts/common/io/comstar/lu/stmf_sbd/stmf_sbd.h
298
void sbd_task_free(struct scsi_task *task);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
564
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
573
task = XCH2TASK(xch);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
574
task->task_csn_size = 8;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
575
task->task_max_nbufs = 1;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
576
task->task_cmd_seq_no = FCOE_B2V_1(ffc->ffc_ref_num);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
577
task->task_flags = FCOE_B2V_1(ffc->ffc_attribute) & 0x07;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
578
task->task_flags |=
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
580
task->task_expected_xfer_length = FCOE_B2V_4(ffc->ffc_fcp_dl);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
585
task->task_mgmt_function = TM_ABORT_TASK_SET;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
587
task->task_mgmt_function = TM_CLEAR_TASK_SET;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
589
task->task_mgmt_function = TM_LUN_RESET;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
591
task->task_mgmt_function = TM_TARGET_COLD_RESET;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
593
task->task_mgmt_function = TM_CLEAR_ACA;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
595
task->task_mgmt_function = TM_ABORT_TASK;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_eth.c
599
bcopy(ffc->ffc_cdb, task->task_cdb, 16);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
743
scsi_task_t *task = CMD2TASK(cmd);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
750
if (task->task_scsi_status == STATUS_GOOD && !task->task_resid) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
755
if (task->task_scsi_status == STATUS_CHECK) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
756
raw_frame_size += task->task_sense_length;
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
778
if ((task->task_scsi_status == STATUS_CHECK) &&
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
779
task->task_sense_length) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
780
bcopy(task->task_sense_data, frm->frm_payload +
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
781
sizeof (fcoe_fcp_rsp_t), task->task_sense_length);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
790
if (task->task_scsi_status == STATUS_CHECK || task->task_resid) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
791
if (task->task_scsi_status == STATUS_CHECK) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
794
if (task->task_status_ctrl == TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
796
} else if (task->task_status_ctrl == TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
800
FCOE_V2B_1(task->task_scsi_status, ffr->ffr_scsi_status);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
801
FCOE_V2B_4(task->task_resid, ffr->ffr_resid);
usr/src/uts/common/io/comstar/port/fcoet/fcoet_fc.c
802
FCOE_V2B_4(task->task_sense_length, ffr->ffr_sns_len);
usr/src/uts/common/io/comstar/port/fct/fct.c
1109
fct_alloc_dbuf(scsi_task_t *task, uint32_t size, uint32_t *pminsize,
usr/src/uts/common/io/comstar/port/fct/fct.c
1113
task->task_lport->lport_port_private;
usr/src/uts/common/io/comstar/port/fct/fct.c
1120
fct_setup_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t flags)
usr/src/uts/common/io/comstar/port/fct/fct.c
1123
task->task_lport->lport_port_private;
usr/src/uts/common/io/comstar/port/fct/fct.c
1637
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/fct/fct.c
1733
if ((task = (scsi_task_t *)cmd->cmd_specific) != NULL) {
usr/src/uts/common/io/comstar/port/fct/fct.c
1734
task->task_port_private = cmd;
usr/src/uts/common/io/comstar/port/fct/fct.c
1744
fct_scsi_task_free(scsi_task_t *task)
usr/src/uts/common/io/comstar/port/fct/fct.c
1746
fct_cmd_t *cmd = (fct_cmd_t *)task->task_port_private;
usr/src/uts/common/io/comstar/port/fct/fct.c
1748
cmd->cmd_comp_status = task->task_completion_status;
usr/src/uts/common/io/comstar/port/fct/fct.c
1763
scsi_task_t *task = (scsi_task_t *)cmd->cmd_specific;
usr/src/uts/common/io/comstar/port/fct/fct.c
1772
scsi_task_t, task,
usr/src/uts/common/io/comstar/port/fct/fct.c
1782
task->task_additional_flags |=
usr/src/uts/common/io/comstar/port/fct/fct.c
1790
task->task_additional_flags |= TASK_AF_ACCEPT_LU_DBUF;
usr/src/uts/common/io/comstar/port/fct/fct.c
1791
task->task_copy_threshold = fds->fds_copy_threshold;
usr/src/uts/common/io/comstar/port/fct/fct.c
1792
task->task_max_xfer_len = fds->fds_max_sgl_xfer_len;
usr/src/uts/common/io/comstar/port/fct/fct.c
1802
task->task_1st_xfer_len = 128*1024;
usr/src/uts/common/io/comstar/port/fct/fct.c
1805
task->task_1st_xfer_len = 0;
usr/src/uts/common/io/comstar/port/fct/fct.c
1944
fct_xfer_scsi_data(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t ioflags)
usr/src/uts/common/io/comstar/port/fct/fct.c
1946
fct_cmd_t *cmd = (fct_cmd_t *)task->task_port_private;
usr/src/uts/common/io/comstar/port/fct/fct.c
1951
scsi_task_t, task,
usr/src/uts/common/io/comstar/port/fct/fct.c
1990
fct_send_scsi_status(scsi_task_t *task, uint32_t ioflags)
usr/src/uts/common/io/comstar/port/fct/fct.c
1992
fct_cmd_t *cmd = (fct_cmd_t *)task->task_port_private;
usr/src/uts/common/io/comstar/port/fct/fct.c
1998
scsi_task_t, task,
usr/src/uts/common/io/comstar/port/fct/fct.c
2162
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/fct/fct.c
2170
task = (scsi_task_t *)arg;
usr/src/uts/common/io/comstar/port/fct/fct.c
2171
cmd = (fct_cmd_t *)task->task_port_private;
usr/src/uts/common/io/comstar/port/fct/fct_impl.h
392
stmf_status_t fct_xfer_scsi_data(scsi_task_t *task,
usr/src/uts/common/io/comstar/port/fct/fct_impl.h
394
stmf_status_t fct_send_scsi_status(scsi_task_t *task, uint32_t ioflags);
usr/src/uts/common/io/comstar/port/fct/fct_impl.h
414
void fct_scsi_task_free(scsi_task_t *task);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1073
scsi_task_t *task = NULL;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1090
task = itask->it_stmf_task;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1092
rsp->cmd_status = task->task_scsi_status;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1094
if (task->task_status_ctrl & TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1096
} else if (task->task_status_ctrl & TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1099
rsp->residual_count = htonl(task->task_resid);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1453
iscsit_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1456
iscsit_task_t *itask = task->task_port_private;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1529
iscsit_xfer_scsi_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1532
iscsit_task_t *iscsit_task = task->task_port_private;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1648
iscsit_send_scsi_status(scsi_task_t *task, uint32_t ioflags)
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1650
iscsit_task_t *itask = task->task_port_private;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1665
if (task->task_mgmt_function != TM_NONE) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1675
(task->task_completion_status == STMF_SUCCESS) ?
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1677
stmf_send_status_done(task, STMF_SUCCESS,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1692
(task->task_completion_status == STMF_SUCCESS) &&
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1693
(task->task_sense_length == 0) &&
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1694
(task->task_resid == 0)) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1714
rsp->cmd_status = task->task_scsi_status;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1727
resp_datalen = (task->task_sense_length == 0) ? 0 :
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1728
(task->task_sense_length + sizeof (uint16_t));
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1740
if (task->task_status_ctrl & TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1742
} else if (task->task_status_ctrl & TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1747
rsp->residual_count = htonl(task->task_resid);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1751
rsp->cmd_status = task->task_scsi_status;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1752
if (task->task_sense_length != 0) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1758
htons(task->task_sense_length);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1759
bcopy(task->task_sense_data,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1762
task->task_sense_length);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1771
scsi_task_t *, task);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1825
iscsit_lport_task_free(scsi_task_t *task)
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1827
iscsit_task_t *itask = task->task_port_private;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1830
if (task->task_mgmt_function == TM_NONE) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
196
iscsit_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
1967
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2071
task = itask->it_stmf_task;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2072
task->task_port_private = itask;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2074
bcopy(iscsi_scsi->lun, task->task_lun_no, sizeof (task->task_lun_no));
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2081
task->task_flags =
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2090
task->task_additional_flags |= TF_ATTR_SIMPLE_QUEUE;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2093
task->task_additional_flags |= TF_ATTR_ORDERED_QUEUE;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2096
task->task_additional_flags |= TF_ATTR_HEAD_OF_QUEUE;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2099
task->task_additional_flags |= TF_ATTR_ACA;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2107
task->task_additional_flags = 0;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2108
task->task_priority = 0;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2109
task->task_mgmt_function = TM_NONE;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2117
task->task_max_nbufs = (iscsi_scsi->flags & ISCSI_FLAG_CMD_WRITE) ?
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2119
task->task_cmd_seq_no = ntohl(iscsi_scsi->itt);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2120
task->task_expected_xfer_length = ntohl(iscsi_scsi->data_length);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2123
bcopy(iscsi_scsi->scb, task->task_cdb, 16);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2125
bcopy(ahs_hdr->ahs_extscb, task->task_cdb + 16, addl_cdb_len);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2130
scsi_task_t *, task);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2182
stmf_post_task(task, ibuf->ibuf_stmf_buf);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2185
stmf_post_task(task, NULL);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2353
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2512
task = stmf_task_alloc(ict->ict_sess->ist_lport,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2515
if (task == NULL) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2531
tm_itask->it_stmf_task = task;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2532
task->task_port_private = tm_itask;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2533
task->task_mgmt_function = tm_func;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2534
task->task_additional_flags = TASK_AF_NO_EXPECTED_XFER_LENGTH;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2535
task->task_priority = 0;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2536
task->task_max_nbufs = STMF_BUFS_MAX;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2537
task->task_cmd_seq_no = iscsi_tm->itt;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2538
task->task_expected_xfer_length = 0;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
2540
stmf_post_task(task, NULL);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.h
646
iscsit_xfer_scsi_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/comstar/port/iscsit/iscsit.h
650
iscsit_send_scsi_status(scsi_task_t *task, uint32_t ioflags);
usr/src/uts/common/io/comstar/port/iscsit/iscsit.h
653
iscsit_lport_task_free(scsi_task_t *task);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
636
scsi_task_t *task,
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
643
scsi_devid_desc_t *ini_devid = task->task_session->ss_rport_id;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
644
scsi_devid_desc_t *tgt_devid = task->task_lport->lport_id;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
645
stmf_remote_port_t *rport = task->task_session->ss_rport;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
655
icsc->icsc_session_id = task->task_session->ss_session_id;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
657
if (!task->task_mgmt_function && task->task_lu->lu_id) {
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
658
bcopy(task->task_lu->lu_id->ident,
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
662
bcopy(task->task_lun_no, icsc->icsc_task_lun_no,
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
665
icsc->icsc_task_expected_xfer_length = task->task_expected_xfer_length;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
666
if (task->task_cdb_length) {
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
667
ASSERT(task->task_mgmt_function == TM_NONE);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
668
icsc->icsc_task_cdb_length = task->task_cdb_length;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
670
(uint8_t *)kmem_zalloc(task->task_cdb_length, KM_SLEEP);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
671
bcopy(task->task_cdb, icsc->icsc_task_cdb,
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
672
task->task_cdb_length);
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
675
icsc->icsc_task_flags = task->task_flags;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
676
icsc->icsc_task_priority = task->task_priority;
usr/src/uts/common/io/comstar/port/pppt/alua_ic_if.c
677
icsc->icsc_task_mgmt_function = task->task_mgmt_function;
usr/src/uts/common/io/comstar/port/pppt/pppt.c
124
static stmf_data_buf_t *pppt_dbuf_alloc(scsi_task_t *task,
usr/src/uts/common/io/comstar/port/pppt/pppt.c
576
pppt_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize,
usr/src/uts/common/io/comstar/port/pppt/pppt.c
650
pppt_lport_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/comstar/port/pppt/pppt.c
653
pppt_task_t *pppt_task = task->task_port_private;
usr/src/uts/common/io/comstar/port/pppt/pppt.c
756
pppt_lport_send_status(scsi_task_t *task, uint32_t ioflags)
usr/src/uts/common/io/comstar/port/pppt/pppt.c
758
pppt_task_t *ptask = task->task_port_private;
usr/src/uts/common/io/comstar/port/pppt/pppt.c
778
task->task_scsi_status,
usr/src/uts/common/io/comstar/port/pppt/pppt.c
779
task->task_status_ctrl, task->task_resid,
usr/src/uts/common/io/comstar/port/pppt/pppt.c
780
task->task_sense_length, task->task_sense_data, 0);
usr/src/uts/common/io/comstar/port/pppt/pppt.c
798
pppt_lport_task_free(scsi_task_t *task)
usr/src/uts/common/io/comstar/port/pppt/pppt.c
800
pppt_task_t *ptask = task->task_port_private;
usr/src/uts/common/io/comstar/port/pppt/pppt.h
223
stmf_status_t pppt_lport_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/io/comstar/port/pppt/pppt.h
228
stmf_status_t pppt_lport_send_status(scsi_task_t *task, uint32_t ioflags);
usr/src/uts/common/io/comstar/port/pppt/pppt.h
230
void pppt_lport_task_free(scsi_task_t *task);
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
254
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
329
task = ptask->pt_stmf_task;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
332
task->task_port_private = ptask;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
333
task->task_flags = scmd->icsc_task_flags;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
334
task->task_additional_flags = TASK_AF_PPPT_TASK;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
335
task->task_priority = 0;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
353
task->task_mgmt_function = scmd->icsc_task_mgmt_function;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
355
task->task_max_nbufs = 1; /* Don't allow parallel xfers */
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
356
task->task_cmd_seq_no = msg->icm_msgid;
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
357
task->task_expected_xfer_length =
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
361
bcopy(scmd->icsc_task_cdb, task->task_cdb,
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
377
stmf_post_task(task, pbuf->pbuf_stmf_buf);
usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
379
stmf_post_task(task, NULL);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5585
scsi_task_t *task = (scsi_task_t *)cmd->cmd_specific;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5601
if (task->task_scsi_status != STATUS_CHECK) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5607
scsi_status = (uint16_t)task->task_scsi_status;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5608
if (task->task_status_ctrl == TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5610
} else if (task->task_status_ctrl == TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5638
if (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5650
QMEM_WR32_REQ(qlt, qi, req + 0x1C, task->task_resid);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5662
ASSERT(task->task_scsi_status == STATUS_CHECK);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5666
use_mode2 = (task->task_sense_length > 24);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5676
size = task->task_sense_length;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5678
task->task_sense_length, &size, 0);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5693
if (task->task_status_ctrl == TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5695
} else if (task->task_status_ctrl == TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5702
fcp_rsp_iu[11] = task->task_scsi_status;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5707
fcp_rsp_iu[12] = (uint8_t)((task->task_resid >> 24) & 0xFF);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5708
fcp_rsp_iu[13] = (uint8_t)((task->task_resid >> 16) & 0xFF);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5709
fcp_rsp_iu[14] = (uint8_t)((task->task_resid >> 8) & 0xFF);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5710
fcp_rsp_iu[15] = (uint8_t)((task->task_resid >> 0) & 0xFF);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5715
fcp_rsp_iu[18] = (uint8_t)((task->task_sense_length >> 8) &
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5717
fcp_rsp_iu[19] = (uint8_t)((task->task_sense_length >> 0) &
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5729
bcopy(task->task_sense_data, fcp_rsp_iu + 24,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5730
task->task_sense_length);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5739
scsi_status = (uint16_t)task->task_scsi_status;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5740
if (task->task_status_ctrl == TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5742
} else if (task->task_status_ctrl == TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5745
if (task->task_sense_length) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5748
bcopy(task->task_sense_data, sensbuf, task->task_sense_length);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5788
QMEM_WR16_REQ(qlt, qi, req + 0x18, task->task_sense_length);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5791
QMEM_WR32_REQ(qlt, qi, req + 0x1C, task->task_resid);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5796
24 + task->task_sense_length);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5799
24 + task->task_sense_length);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
5808
size = ((task->task_sense_length + 3) & (~3));
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6085
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6277
task = (scsi_task_t *)cmd->cmd_specific;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6292
task->task_cmd_seq_no = (uint32_t)(*q++);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6293
task->task_csn_size = 8;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6294
task->task_flags = qlt_task_flags[(*q++) & 7];
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6298
task->task_mgmt_function = TM_ABORT_TASK_SET;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6300
task->task_mgmt_function = TM_CLEAR_TASK_SET;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6302
task->task_mgmt_function = TM_LUN_RESET;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6304
task->task_mgmt_function = TM_TARGET_COLD_RESET;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6306
task->task_mgmt_function = TM_CLEAR_ACA;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6308
task->task_mgmt_function = TM_ABORT_TASK;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6310
task->task_max_nbufs = STMF_BUFS_MAX;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6311
task->task_csn_size = 8;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6312
task->task_flags = (uint8_t)(task->task_flags | (((*q++) & 3) << 5));
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6313
p = task->task_cdb;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6340
task->task_expected_xfer_length = (((uint32_t)cb[0]) << 24) |
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6344
task->task_expected_xfer_length = (((uint32_t)q[0]) << 24) |
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6792
scsi_task_t *task;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6932
task = (scsi_task_t *)cmd->cmd_specific;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
6965
dbuf = stmf_handle_to_buf(task, n);
usr/src/uts/common/io/comstar/port/srpt/srpt_ioc.c
1298
srpt_ioc_ds_alloc_dbuf(struct scsi_task *task, uint32_t size,
usr/src/uts/common/io/comstar/port/srpt/srpt_ioc.c
1308
ASSERT(task != NULL);
usr/src/uts/common/io/comstar/port/srpt/srpt_ioc.c
1309
iu = task->task_port_private;
usr/src/uts/common/io/comstar/port/srpt/srpt_ioc.h
55
stmf_data_buf_t *srpt_ioc_ds_alloc_dbuf(struct scsi_task *task,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
1027
srpt_stp_task_poll(struct scsi_task *task)
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
1030
(void *)task);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
525
srpt_stp_xfer_data(struct scsi_task *task, struct stmf_data_buf *dbuf,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
542
(void *)task, (void *)dbuf);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
543
iu = task->task_port_private;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
64
static stmf_status_t srpt_stp_xfer_data(struct scsi_task *task,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
66
stmf_status_t srpt_stp_send_status(struct scsi_task *task,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
68
static void srpt_stp_task_free(struct scsi_task *task);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
71
static void srpt_stp_task_poll(struct scsi_task *task);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
829
srpt_stp_send_status(struct scsi_task *task, uint32_t ioflags)
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
834
ASSERT(task != NULL);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
835
iu = task->task_port_private;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
850
(void *)task,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
851
(int)task->task_completion_status,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
852
task->task_resid,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
853
task->task_status_ctrl,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
854
task->task_scsi_status,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
855
task->task_sense_length,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
856
(void *)task->task_sense_data);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
859
srp_rsp_t, iu->iu_buf, scsi_task_t, task,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
860
int8_t, task->task_scsi_status);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
878
if (task->task_mgmt_function == 0) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
882
if (task->task_status_ctrl == TASK_SCTRL_OVER) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
883
resbytes = task->task_resid;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
885
if (task->task_flags & TF_READ_DATA) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
889
} else if (task->task_flags & TF_WRITE_DATA) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
894
} else if (task->task_status_ctrl == TASK_SCTRL_UNDER) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
895
resbytes = task->task_resid;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
897
if (task->task_flags & TF_READ_DATA) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
901
} else if (task->task_flags & TF_WRITE_DATA) {
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
909
task->task_scsi_status, rsp_flags, resbytes,
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
910
task->task_sense_length, task->task_sense_data, 0);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
913
(task->task_scsi_status ?
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
940
srpt_stp_task_free(struct scsi_task *task)
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
946
(void *)task);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
948
iu = task->task_port_private;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
983
struct scsi_task *task;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
990
task = (struct scsi_task *)arg;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
991
ASSERT(task != NULL);
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.c
993
iu = (srpt_iu_t *)task->task_port_private;
usr/src/uts/common/io/comstar/port/srpt/srpt_stp.h
59
stmf_status_t srpt_stp_send_status(struct scsi_task *task,
usr/src/uts/common/io/comstar/stmf/stmf.c
111
void stmf_abort_target_reset(scsi_task_t *task);
usr/src/uts/common/io/comstar/stmf/stmf.c
112
stmf_status_t stmf_lun_reset_poll(stmf_lu_t *lu, struct scsi_task *task,
usr/src/uts/common/io/comstar/stmf/stmf.c
114
void stmf_target_reset_poll(struct scsi_task *task);
usr/src/uts/common/io/comstar/stmf/stmf.c
115
void stmf_handle_lun_reset(scsi_task_t *task);
usr/src/uts/common/io/comstar/stmf/stmf.c
116
void stmf_handle_target_reset(scsi_task_t *task);
usr/src/uts/common/io/comstar/stmf/stmf.c
129
static void stmf_task_lu_free(scsi_task_t *task, stmf_i_scsi_session_t *iss);
usr/src/uts/common/io/comstar/stmf/stmf.c
1762
scsi_task_t *task;
usr/src/uts/common/io/comstar/stmf/stmf.c
1769
task = find_task_from_msgid(msg->icss_lun_id, msg->icss_task_msgid);
usr/src/uts/common/io/comstar/stmf/stmf.c
1771
if (task == NULL) {
usr/src/uts/common/io/comstar/stmf/stmf.c
1775
task->task_scsi_status = msg->icss_status;
usr/src/uts/common/io/comstar/stmf/stmf.c
1776
task->task_sense_data = msg->icss_sense;
usr/src/uts/common/io/comstar/stmf/stmf.c
1777
task->task_sense_length = msg->icss_sense_len;
usr/src/uts/common/io/comstar/stmf/stmf.c
1778
(void) stmf_send_scsi_status(task, STMF_IOF_LU_DONE);
usr/src/uts/common/io/comstar/stmf/stmf.c
1790
scsi_task_t *task;
usr/src/uts/common/io/comstar/stmf/stmf.c
1800
task = find_task_from_msgid(msg->icsd_lun_id, msg->icsd_task_msgid);
usr/src/uts/common/io/comstar/stmf/stmf.c
1801
if (task == NULL) {
usr/src/uts/common/io/comstar/stmf/stmf.c
1824
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
1827
task->task_cmd_xfer_length += msg->icsd_data_len;
usr/src/uts/common/io/comstar/stmf/stmf.c
1829
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/stmf/stmf.c
1831
task->task_expected_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
1832
task->task_cmd_xfer_length;
usr/src/uts/common/io/comstar/stmf/stmf.c
1835
sz = min(task->task_expected_xfer_length,
usr/src/uts/common/io/comstar/stmf/stmf.c
1836
task->task_cmd_xfer_length);
usr/src/uts/common/io/comstar/stmf/stmf.c
1843
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
1857
dbuf = stmf_alloc_dbuf(task, sz, &minsz, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
1860
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
1865
dbuf->db_relative_offset = task->task_nbytes_transferred;
usr/src/uts/common/io/comstar/stmf/stmf.c
1869
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
1874
stmf_proxy_scsi_cmd(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
1877
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
1879
(stmf_i_local_port_t *)task->task_lport->lport_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
1908
if (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/stmf/stmf.c
1919
task, dbuf->db_data_size, dbuf->db_sglist[0].seg_addr,
usr/src/uts/common/io/comstar/stmf/stmf.c
1923
task, 0, NULL, itask->itask_proxy_msg_id);
usr/src/uts/common/io/comstar/stmf/stmf.c
2737
stmf_update_kstat_lu_q(scsi_task_t *task, void func())
usr/src/uts/common/io/comstar/stmf/stmf.c
2742
if (task->task_lu == dlun0)
usr/src/uts/common/io/comstar/stmf/stmf.c
2744
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
2757
stmf_update_kstat_lport_q(scsi_task_t *task, void func())
usr/src/uts/common/io/comstar/stmf/stmf.c
2762
ilp = (stmf_i_local_port_t *)task->task_lport->lport_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
2774
stmf_update_kstat_lport_io(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
2779
ilp = (stmf_i_local_port_t *)task->task_lport->lport_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
2791
stmf_update_kstat_rport_io(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
2797
iss = task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
2808
stmf_update_kstat_rport_estat(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
2817
itask = task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
2818
iss = task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
2829
if (task->task_flags & TF_READ_DATA)
usr/src/uts/common/io/comstar/stmf/stmf.c
2831
else if (task->task_flags & TF_WRITE_DATA)
usr/src/uts/common/io/comstar/stmf/stmf.c
2842
(task->task_flags & TF_INITIAL_BURST)) {
usr/src/uts/common/io/comstar/stmf/stmf.c
2852
if (task->task_flags & TF_READ_DATA) {
usr/src/uts/common/io/comstar/stmf/stmf.c
2855
} else if (task->task_flags & TF_WRITE_DATA) {
usr/src/uts/common/io/comstar/stmf/stmf.c
2881
stmf_update_kstat_lu_io(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
2886
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4223
stmf_alloc_dbuf(scsi_task_t *task, uint32_t size, uint32_t *pminsize,
usr/src/uts/common/io/comstar/stmf/stmf.c
4227
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4228
stmf_local_port_t *lport = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
4236
task, size, pminsize, flags);
usr/src/uts/common/io/comstar/stmf/stmf.c
4238
task->task_cur_nbufs++;
usr/src/uts/common/io/comstar/stmf/stmf.c
4249
stmf_setup_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t flags)
usr/src/uts/common/io/comstar/stmf/stmf.c
4252
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4253
stmf_local_port_t *lport = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
4257
ASSERT(task->task_additional_flags & TASK_AF_ACCEPT_LU_DBUF);
usr/src/uts/common/io/comstar/stmf/stmf.c
4261
if ((task->task_additional_flags & TASK_AF_ACCEPT_LU_DBUF) == 0)
usr/src/uts/common/io/comstar/stmf/stmf.c
4269
ret = lport->lport_ds->ds_setup_dbuf(task, dbuf, flags);
usr/src/uts/common/io/comstar/stmf/stmf.c
4273
task->task_cur_nbufs++;
usr/src/uts/common/io/comstar/stmf/stmf.c
4281
stmf_teardown_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
4284
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4285
stmf_local_port_t *lport = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
4287
ASSERT(task->task_additional_flags & TASK_AF_ACCEPT_LU_DBUF);
usr/src/uts/common/io/comstar/stmf/stmf.c
4292
task->task_cur_nbufs--;
usr/src/uts/common/io/comstar/stmf/stmf.c
4297
stmf_free_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
4300
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4301
stmf_local_port_t *lport = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
4304
task->task_cur_nbufs--;
usr/src/uts/common/io/comstar/stmf/stmf.c
4309
stmf_handle_to_buf(scsi_task_t *task, uint8_t h)
usr/src/uts/common/io/comstar/stmf/stmf.c
4313
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4329
scsi_task_t *task;
usr/src/uts/common/io/comstar/stmf/stmf.c
4410
task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
4411
save_cdb = task->task_cdb; /* save */
usr/src/uts/common/io/comstar/stmf/stmf.c
4412
t_start = (uintptr_t)&task->task_flags;
usr/src/uts/common/io/comstar/stmf/stmf.c
4413
t_end = (uintptr_t)&task->task_extended_cmd;
usr/src/uts/common/io/comstar/stmf/stmf.c
4415
task->task_cdb = save_cdb; /* restore */
usr/src/uts/common/io/comstar/stmf/stmf.c
4418
task = (scsi_task_t *)stmf_alloc(STMF_STRUCT_SCSI_TASK,
usr/src/uts/common/io/comstar/stmf/stmf.c
4420
if (task == NULL) {
usr/src/uts/common/io/comstar/stmf/stmf.c
4424
task->task_lu = lu;
usr/src/uts/common/io/comstar/stmf/stmf.c
4425
task->task_cdb = (uint8_t *)task->task_port_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4426
if ((ulong_t)(task->task_cdb) & 7ul) {
usr/src/uts/common/io/comstar/stmf/stmf.c
4427
task->task_cdb = (uint8_t *)(((ulong_t)
usr/src/uts/common/io/comstar/stmf/stmf.c
4428
(task->task_cdb) + 7ul) & ~(7ul));
usr/src/uts/common/io/comstar/stmf/stmf.c
4430
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4441
l = task->task_lun_no;
usr/src/uts/common/io/comstar/stmf/stmf.c
4452
task->task_session = ss;
usr/src/uts/common/io/comstar/stmf/stmf.c
4453
task->task_lport = lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
4454
task->task_cdb_length = cdb_length_in;
usr/src/uts/common/io/comstar/stmf/stmf.c
4466
if (lu->lu_task_alloc(task) != STMF_SUCCESS) {
usr/src/uts/common/io/comstar/stmf/stmf.c
4468
stmf_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
4475
stmf_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
4494
task->task_lu_itl_handle = itask->itask_itl_datap->itl_handle;
usr/src/uts/common/io/comstar/stmf/stmf.c
4497
task->task_lu_itl_handle = NULL;
usr/src/uts/common/io/comstar/stmf/stmf.c
4501
return (task);
usr/src/uts/common/io/comstar/stmf/stmf.c
4506
stmf_task_lu_free(scsi_task_t *task, stmf_i_scsi_session_t *iss)
usr/src/uts/common/io/comstar/stmf/stmf.c
4509
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4510
stmf_i_lu_t *ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4648
scsi_task_t *task;
usr/src/uts/common/io/comstar/stmf/stmf.c
4668
task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
4669
if (task->task_timeout == 0)
usr/src/uts/common/io/comstar/stmf/stmf.c
4672
to = task->task_timeout;
usr/src/uts/common/io/comstar/stmf/stmf.c
4679
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
4770
scsi_task_t *task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
4771
stmf_lu_t *lu = task->task_lu;
usr/src/uts/common/io/comstar/stmf/stmf.c
4773
lu->lu_dbuf_free(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
4789
stmf_task_free(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
4791
stmf_local_port_t *lport = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
4793
task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4795
task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4796
stmf_lu_t *lu = task->task_lu;
usr/src/uts/common/io/comstar/stmf/stmf.c
4801
lu->lu_task_done(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
4804
DTRACE_PROBE2(stmf__task__end, scsi_task_t *, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
4810
stmf_release_itl_handle(task->task_lu,
usr/src/uts/common/io/comstar/stmf/stmf.c
4823
lport->lport_task_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
4832
stmf_task_lu_free(task, iss);
usr/src/uts/common/io/comstar/stmf/stmf.c
4837
stmf_post_task(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
4840
task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4841
stmf_i_lu_t *ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
4848
if (task->task_max_nbufs > 4)
usr/src/uts/common/io/comstar/stmf/stmf.c
4849
task->task_max_nbufs = 4;
usr/src/uts/common/io/comstar/stmf/stmf.c
4850
task->task_cur_nbufs = 0;
usr/src/uts/common/io/comstar/stmf/stmf.c
4888
if (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/stmf/stmf.c
4889
tm = task->task_mgmt_function;
usr/src/uts/common/io/comstar/stmf/stmf.c
4895
} else if (task->task_cdb[0] == SCMD_REPORT_LUNS) {
usr/src/uts/common/io/comstar/stmf/stmf.c
4906
if ((task->task_flags & TF_INITIAL_BURST) &&
usr/src/uts/common/io/comstar/stmf/stmf.c
4908
stmf_update_kstat_lu_io(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
4909
stmf_update_kstat_lport_io(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
4910
stmf_update_kstat_rport_io(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
4934
stmf_abort(STMF_QUEUE_TASK_ABORT, task, STMF_ABORTED, NULL);
usr/src/uts/common/io/comstar/stmf/stmf.c
4973
stmf_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t ioflags)
usr/src/uts/common/io/comstar/stmf/stmf.c
4978
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5003
stmf_update_kstat_lu_io(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
5004
stmf_update_kstat_lport_io(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
5005
stmf_update_kstat_rport_io(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
5013
ret = task->task_lport->lport_xfer_data(task, dbuf, ioflags);
usr/src/uts/common/io/comstar/stmf/stmf.c
5029
stmf_data_xfer_done(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t iof)
usr/src/uts/common/io/comstar/stmf/stmf.c
5032
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5049
ilport = task->task_lport->lport_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5052
(void *)task, (void *)dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
5067
task->task_completion_status = dbuf->db_xfer_status;
usr/src/uts/common/io/comstar/stmf/stmf.c
5112
stmf_task_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5120
stmf_send_scsi_status(scsi_task_t *task, uint32_t ioflags)
usr/src/uts/common/io/comstar/stmf/stmf.c
5122
DTRACE_PROBE1(scsi__send__status, scsi_task_t *, task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5125
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5149
if (task->task_additional_flags & TASK_AF_NO_EXPECTED_XFER_LENGTH) {
usr/src/uts/common/io/comstar/stmf/stmf.c
5150
task->task_status_ctrl = 0;
usr/src/uts/common/io/comstar/stmf/stmf.c
5151
task->task_resid = 0;
usr/src/uts/common/io/comstar/stmf/stmf.c
5152
} else if (task->task_cmd_xfer_length >
usr/src/uts/common/io/comstar/stmf/stmf.c
5153
task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/stmf/stmf.c
5154
task->task_status_ctrl = TASK_SCTRL_OVER;
usr/src/uts/common/io/comstar/stmf/stmf.c
5155
task->task_resid = task->task_cmd_xfer_length -
usr/src/uts/common/io/comstar/stmf/stmf.c
5156
task->task_expected_xfer_length;
usr/src/uts/common/io/comstar/stmf/stmf.c
5157
} else if (task->task_nbytes_transferred <
usr/src/uts/common/io/comstar/stmf/stmf.c
5158
task->task_expected_xfer_length) {
usr/src/uts/common/io/comstar/stmf/stmf.c
5159
task->task_status_ctrl = TASK_SCTRL_UNDER;
usr/src/uts/common/io/comstar/stmf/stmf.c
5160
task->task_resid = task->task_expected_xfer_length -
usr/src/uts/common/io/comstar/stmf/stmf.c
5161
task->task_nbytes_transferred;
usr/src/uts/common/io/comstar/stmf/stmf.c
5163
task->task_status_ctrl = 0;
usr/src/uts/common/io/comstar/stmf/stmf.c
5164
task->task_resid = 0;
usr/src/uts/common/io/comstar/stmf/stmf.c
5166
return (task->task_lport->lport_send_status(task, ioflags));
usr/src/uts/common/io/comstar/stmf/stmf.c
5170
stmf_send_status_done(scsi_task_t *task, stmf_status_t s, uint32_t iof)
usr/src/uts/common/io/comstar/stmf/stmf.c
5173
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5207
" task = %p", (void *)task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5213
task->task_completion_status = s;
usr/src/uts/common/io/comstar/stmf/stmf.c
5232
stmf_task_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5244
stmf_task_lu_done(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
5247
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5260
" task = %p", (void *)task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5268
stmf_task_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5272
" the task is still not done, task = %p", (void *)task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5278
stmf_queue_task_for_abort(scsi_task_t *task, stmf_status_t s)
usr/src/uts/common/io/comstar/stmf/stmf.c
5281
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5294
task->task_completion_status = s;
usr/src/uts/common/io/comstar/stmf/stmf.c
5314
stmf_abort(int abort_cmd, scsi_task_t *task, stmf_status_t s, void *arg)
usr/src/uts/common/io/comstar/stmf/stmf.c
5319
DTRACE_PROBE2(scsi__task__abort, scsi_task_t *, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
5324
stmf_task_lu_killall((stmf_lu_t *)arg, task, s);
usr/src/uts/common/io/comstar/stmf/stmf.c
5327
stmf_queue_task_for_abort(task, s);
usr/src/uts/common/io/comstar/stmf/stmf.c
5341
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5359
stmf_task_lu_aborted(scsi_task_t *task, stmf_status_t s, uint32_t iof)
usr/src/uts/common/io/comstar/stmf/stmf.c
5362
stmf_i_scsi_task_t *itask = TASK_TO_ITASK(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5370
"task %p, lu failed to abort ret=%llx", (void *)task, st);
usr/src/uts/common/io/comstar/stmf/stmf.c
5374
"%p, s=%llx, iof=%x", (void *)task, st, iof);
usr/src/uts/common/io/comstar/stmf/stmf.c
5383
stmf_abort_task_offline(task, 1, info);
usr/src/uts/common/io/comstar/stmf/stmf.c
5391
stmf_task_lport_aborted(scsi_task_t *task, stmf_status_t s, uint32_t iof)
usr/src/uts/common/io/comstar/stmf/stmf.c
5394
stmf_i_scsi_task_t *itask = TASK_TO_ITASK(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5402
"task %p, tgt port failed to abort ret=%llx", (void *)task,
usr/src/uts/common/io/comstar/stmf/stmf.c
5407
"task=%p, s=%llx, iof=%x", (void *)task, st, iof);
usr/src/uts/common/io/comstar/stmf/stmf.c
5416
stmf_abort_task_offline(task, 0, info);
usr/src/uts/common/io/comstar/stmf/stmf.c
5420
stmf_task_lport_aborted_unlocked(scsi_task_t *task, stmf_status_t s,
usr/src/uts/common/io/comstar/stmf/stmf.c
5423
stmf_i_scsi_task_t *itask = TASK_TO_ITASK(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5426
stmf_task_lport_aborted(task, s, iof);
usr/src/uts/common/io/comstar/stmf/stmf.c
5431
stmf_task_poll_lu(scsi_task_t *task, uint32_t timeout)
usr/src/uts/common/io/comstar/stmf/stmf.c
5434
task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5471
stmf_task_poll_lport(scsi_task_t *task, uint32_t timeout)
usr/src/uts/common/io/comstar/stmf/stmf.c
5474
task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
5511
stmf_do_task_abort(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
5513
stmf_i_scsi_task_t *itask = TASK_TO_ITASK(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
5521
lu = task->task_lu;
usr/src/uts/common/io/comstar/stmf/stmf.c
5522
lport = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
5536
ret = lu->lu_abort(lu, STMF_LU_ABORT_TASK, task, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
5538
ret = dlun0->lu_abort(lu, STMF_LU_ABORT_TASK, task, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
5541
stmf_task_lu_aborted(task, ret, STMF_IOF_LU_DONE);
usr/src/uts/common/io/comstar/stmf/stmf.c
5548
stmf_abort_task_offline(task, 1, info);
usr/src/uts/common/io/comstar/stmf/stmf.c
5577
ret = lport->lport_abort(lport, STMF_LPORT_ABORT_TASK, task, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
5579
stmf_task_lport_aborted(task, ret, STMF_IOF_LPORT_DONE);
usr/src/uts/common/io/comstar/stmf/stmf.c
5587
stmf_abort_task_offline(task, 0, info);
usr/src/uts/common/io/comstar/stmf/stmf.c
6138
stmf_scsilib_send_status(scsi_task_t *task, uint8_t st, uint32_t saa)
usr/src/uts/common/io/comstar/stmf/stmf.c
6141
task->task_scsi_status = st;
usr/src/uts/common/io/comstar/stmf/stmf.c
6149
task->task_sense_data = sd;
usr/src/uts/common/io/comstar/stmf/stmf.c
6150
task->task_sense_length = 18;
usr/src/uts/common/io/comstar/stmf/stmf.c
6152
task->task_sense_data = NULL;
usr/src/uts/common/io/comstar/stmf/stmf.c
6153
task->task_sense_length = 0;
usr/src/uts/common/io/comstar/stmf/stmf.c
6155
(void) stmf_send_scsi_status(task, STMF_IOF_LU_DONE);
usr/src/uts/common/io/comstar/stmf/stmf.c
6159
stmf_scsilib_prepare_vpd_page83(scsi_task_t *task, uint8_t *page,
usr/src/uts/common/io/comstar/stmf/stmf.c
6192
sz = task->task_lu->lu_id->ident_length + 4;
usr/src/uts/common/io/comstar/stmf/stmf.c
6193
p = (uint8_t *)task->task_lu->lu_id;
usr/src/uts/common/io/comstar/stmf/stmf.c
6197
sz = task->task_lport->lport_id->ident_length + 4;
usr/src/uts/common/io/comstar/stmf/stmf.c
6198
p = (uint8_t *)task->task_lport->lport_id;
usr/src/uts/common/io/comstar/stmf/stmf.c
6209
task->task_lport->lport_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6236
task->task_lport->lport_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6254
stmf_scsilib_handle_report_tpgs(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
6257
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6259
(stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6266
task->task_cmd_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
6267
((((uint32_t)task->task_cdb[6]) << 24) |
usr/src/uts/common/io/comstar/stmf/stmf.c
6268
(((uint32_t)task->task_cdb[7]) << 16) |
usr/src/uts/common/io/comstar/stmf/stmf.c
6269
(((uint32_t)task->task_cdb[8]) << 8) |
usr/src/uts/common/io/comstar/stmf/stmf.c
6270
((uint32_t)task->task_cdb[9]));
usr/src/uts/common/io/comstar/stmf/stmf.c
6272
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/stmf/stmf.c
6274
task->task_expected_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
6275
task->task_cmd_xfer_length;
usr/src/uts/common/io/comstar/stmf/stmf.c
6279
if (task->task_cmd_xfer_length == 0) {
usr/src/uts/common/io/comstar/stmf/stmf.c
6280
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6283
if (task->task_cmd_xfer_length < 4) {
usr/src/uts/common/io/comstar/stmf/stmf.c
6284
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6289
sz = min(task->task_expected_xfer_length,
usr/src/uts/common/io/comstar/stmf/stmf.c
6290
task->task_cmd_xfer_length);
usr/src/uts/common/io/comstar/stmf/stmf.c
6295
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
6305
dbuf = stmf_alloc_dbuf(task, sz, &minsz, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6308
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
6316
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6321
stmf_scsilib_handle_task_mgmt(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
6324
switch (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/stmf/stmf.c
6335
stmf_handle_lun_reset(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6338
(void) stmf_proxy_scsi_cmd(task, NULL);
usr/src/uts/common/io/comstar/stmf/stmf.c
6344
stmf_handle_target_reset(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6348
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6355
stmf_handle_lun_reset(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
6360
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6361
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6371
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6388
stmf_abort(STMF_QUEUE_ABORT_LU, task, STMF_ABORTED, task->task_lu);
usr/src/uts/common/io/comstar/stmf/stmf.c
6391
if (stmf_task_poll_lu(task, ITASK_DEFAULT_POLL_TIMEOUT)
usr/src/uts/common/io/comstar/stmf/stmf.c
6393
stmf_abort(STMF_QUEUE_TASK_ABORT, task, STMF_ALLOC_FAILURE,
usr/src/uts/common/io/comstar/stmf/stmf.c
6400
stmf_handle_target_reset(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
6409
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6410
iss = (stmf_i_scsi_session_t *)task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6411
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6425
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6446
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6456
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6477
stmf_abort(STMF_QUEUE_ABORT_LU, task, STMF_ABORTED,
usr/src/uts/common/io/comstar/stmf/stmf.c
6485
if (stmf_task_poll_lu(task, ITASK_DEFAULT_POLL_TIMEOUT)
usr/src/uts/common/io/comstar/stmf/stmf.c
6487
stmf_abort(STMF_QUEUE_TASK_ABORT, task, STMF_ALLOC_FAILURE,
usr/src/uts/common/io/comstar/stmf/stmf.c
6496
scsi_task_t *task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
6498
task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6502
(task->task_cdb[0] == SCMD_INQUIRY)) {
usr/src/uts/common/io/comstar/stmf/stmf.c
6510
if (task->task_cdb[0] == SCMD_REPORT_LUNS) {
usr/src/uts/common/io/comstar/stmf/stmf.c
6513
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6601
scsi_task_t *task;
usr/src/uts/common/io/comstar/stmf/stmf.c
6658
task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
6660
scsi_task_t *, task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6742
lu = task->task_lu;
usr/src/uts/common/io/comstar/stmf/stmf.c
6755
task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6770
DTRACE_PROBE1(scsi__task__start, scsi_task_t *, task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6771
lu->lu_new_task(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
6774
lu->lu_dbuf_xfer_done(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
6777
lu->lu_send_status_done(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6782
stmf_task_free(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6784
stmf_do_task_abort(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6789
lu->lu_task_poll(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6794
task->task_lport->lport_task_poll(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6862
stmf_dlun0_task_alloc(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
6868
stmf_dlun0_new_task(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
6870
uint8_t *cdbp = (uint8_t *)&task->task_cdb[0];
usr/src/uts/common/io/comstar/stmf/stmf.c
6877
if (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/stmf/stmf.c
6878
stmf_scsilib_handle_task_mgmt(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
6891
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6896
task->task_cmd_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
6899
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/stmf/stmf.c
6901
task->task_expected_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
6902
task->task_cmd_xfer_length;
usr/src/uts/common/io/comstar/stmf/stmf.c
6905
sz = min(task->task_expected_xfer_length,
usr/src/uts/common/io/comstar/stmf/stmf.c
6906
min(36, task->task_cmd_xfer_length));
usr/src/uts/common/io/comstar/stmf/stmf.c
6910
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6922
dbuf = stmf_alloc_dbuf(task, minsz, &minsz, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6924
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
6951
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6956
task->task_cmd_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
6957
((((uint32_t)task->task_cdb[6]) << 24) |
usr/src/uts/common/io/comstar/stmf/stmf.c
6958
(((uint32_t)task->task_cdb[7]) << 16) |
usr/src/uts/common/io/comstar/stmf/stmf.c
6959
(((uint32_t)task->task_cdb[8]) << 8) |
usr/src/uts/common/io/comstar/stmf/stmf.c
6960
((uint32_t)task->task_cdb[9]));
usr/src/uts/common/io/comstar/stmf/stmf.c
6962
if (task->task_additional_flags &
usr/src/uts/common/io/comstar/stmf/stmf.c
6964
task->task_expected_xfer_length =
usr/src/uts/common/io/comstar/stmf/stmf.c
6965
task->task_cmd_xfer_length;
usr/src/uts/common/io/comstar/stmf/stmf.c
6968
sz = min(task->task_expected_xfer_length,
usr/src/uts/common/io/comstar/stmf/stmf.c
6969
task->task_cmd_xfer_length);
usr/src/uts/common/io/comstar/stmf/stmf.c
6972
stmf_scsilib_send_status(task, STATUS_CHECK,
usr/src/uts/common/io/comstar/stmf/stmf.c
6978
task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
6984
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
6994
dbuf = stmf_alloc_dbuf(task, sz, &minsz, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
6997
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
7007
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7011
stmf_scsilib_send_status(task, STATUS_CHECK, STMF_SAA_INVALID_OPCODE);
usr/src/uts/common/io/comstar/stmf/stmf.c
7015
stmf_dlun0_dbuf_done(scsi_task_t *task, stmf_data_buf_t *dbuf)
usr/src/uts/common/io/comstar/stmf/stmf.c
7018
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7021
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
7025
task->task_nbytes_transferred += dbuf->db_data_size;
usr/src/uts/common/io/comstar/stmf/stmf.c
7029
(void) stmf_xfer_data(task, dbuf, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7033
stmf_free_dbuf(task, dbuf);
usr/src/uts/common/io/comstar/stmf/stmf.c
7050
task->task_session->ss_session_id,
usr/src/uts/common/io/comstar/stmf/stmf.c
7061
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7066
stmf_dlun0_status_done(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
7072
stmf_dlun0_task_free(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
7080
scsi_task_t *task = (scsi_task_t *)arg;
usr/src/uts/common/io/comstar/stmf/stmf.c
7082
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7083
stmf_i_lu_t *ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7087
if ((task->task_mgmt_function) && (itask->itask_flags &
usr/src/uts/common/io/comstar/stmf/stmf.c
7089
switch (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/stmf/stmf.c
7099
stmf_abort_target_reset(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
7128
stmf_dlun0_task_poll(struct scsi_task *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
7131
ASSERT(task->task_mgmt_function);
usr/src/uts/common/io/comstar/stmf/stmf.c
7133
switch (task->task_mgmt_function) {
usr/src/uts/common/io/comstar/stmf/stmf.c
7138
(void) stmf_lun_reset_poll(task->task_lu, task, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7143
stmf_target_reset_poll(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
7158
stmf_dlun0_task_done(struct scsi_task *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
7207
stmf_abort_target_reset(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
7210
task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7235
stmf_lun_reset_poll(stmf_lu_t *lu, struct scsi_task *task, int target_reset)
usr/src/uts/common/io/comstar/stmf/stmf.c
7248
if ((ntasks_pending == 0) || ((task->task_lu == lu) &&
usr/src/uts/common/io/comstar/stmf/stmf.c
7252
if ((task->task_mgmt_function == TM_LUN_RESET) ||
usr/src/uts/common/io/comstar/stmf/stmf.c
7253
(task->task_mgmt_function == TM_TARGET_RESET) ||
usr/src/uts/common/io/comstar/stmf/stmf.c
7254
(task->task_mgmt_function == TM_TARGET_WARM_RESET) ||
usr/src/uts/common/io/comstar/stmf/stmf.c
7255
(task->task_mgmt_function == TM_TARGET_COLD_RESET)) {
usr/src/uts/common/io/comstar/stmf/stmf.c
7256
ret = lu->lu_abort(lu, STMF_LU_RESET_STATE, task, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7267
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7271
stmf_abort(STMF_QUEUE_TASK_ABORT, task, ret, NULL);
usr/src/uts/common/io/comstar/stmf/stmf.c
7281
if (stmf_task_poll_lu(task, ITASK_DEFAULT_POLL_TIMEOUT)
usr/src/uts/common/io/comstar/stmf/stmf.c
7283
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
7292
stmf_target_reset_poll(struct scsi_task *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
7295
task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7314
ret = stmf_lun_reset_poll(lm_ent->ent_lu, task, 1);
usr/src/uts/common/io/comstar/stmf/stmf.c
7321
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
7330
if (stmf_task_poll_lu(task, ITASK_DEFAULT_POLL_TIMEOUT)
usr/src/uts/common/io/comstar/stmf/stmf.c
7332
stmf_abort(STMF_QUEUE_TASK_ABORT, task,
usr/src/uts/common/io/comstar/stmf/stmf.c
7341
stmf_scsilib_send_status(task, STATUS_GOOD, 0);
usr/src/uts/common/io/comstar/stmf/stmf.c
7438
scsi_task_t *task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
7444
if (itl == NULL || task->task_lu == dlun0)
usr/src/uts/common/io/comstar/stmf/stmf.c
7446
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7456
if (task->task_flags & TF_READ_DATA)
usr/src/uts/common/io/comstar/stmf/stmf.c
7458
else if (task->task_flags & TF_WRITE_DATA)
usr/src/uts/common/io/comstar/stmf/stmf.c
7469
scsi_task_t *task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
7472
if (itl == NULL || task->task_lu == dlun0)
usr/src/uts/common/io/comstar/stmf/stmf.c
7474
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7488
scsi_task_t *task = itask->itask_task;
usr/src/uts/common/io/comstar/stmf/stmf.c
7493
if (itl == NULL || task->task_lu == dlun0)
usr/src/uts/common/io/comstar/stmf/stmf.c
7495
ilu = (stmf_i_lu_t *)task->task_lu->lu_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7500
stmf_update_kstat_rport_estat(task);
usr/src/uts/common/io/comstar/stmf/stmf.c
7505
stmf_update_kstat_lu_q(task, kstat_runq_exit);
usr/src/uts/common/io/comstar/stmf/stmf.c
7507
stmf_update_kstat_lport_q(task, kstat_runq_exit);
usr/src/uts/common/io/comstar/stmf/stmf.c
7509
stmf_update_kstat_lu_q(task, kstat_waitq_exit);
usr/src/uts/common/io/comstar/stmf/stmf.c
7511
stmf_update_kstat_lport_q(task, kstat_waitq_exit);
usr/src/uts/common/io/comstar/stmf/stmf.c
7516
stmf_lu_xfer_done(scsi_task_t *task, boolean_t read, hrtime_t elapsed_time)
usr/src/uts/common/io/comstar/stmf/stmf.c
7518
stmf_i_scsi_task_t *itask = task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7520
if (task->task_lu == dlun0)
usr/src/uts/common/io/comstar/stmf/stmf.c
7956
stmf_abort_task_offline(scsi_task_t *task, int offline_lu, char *info)
usr/src/uts/common/io/comstar/stmf/stmf.c
7963
(stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
7973
ctl_private = task->task_lu;
usr/src/uts/common/io/comstar/stmf/stmf.c
7975
task->task_lu->lu_stmf_private)->ilu_state ==
usr/src/uts/common/io/comstar/stmf/stmf.c
7983
ctl_private = task->task_lport;
usr/src/uts/common/io/comstar/stmf/stmf.c
7985
task->task_lport->lport_stmf_private)->ilport_state ==
usr/src/uts/common/io/comstar/stmf/stmf.c
8309
stmf_check_and_hold_lu(scsi_task_t *task, uint8_t *guid)
usr/src/uts/common/io/comstar/stmf/stmf.c
8318
iss = (stmf_i_scsi_session_t *)task->task_session->ss_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
8360
stmf_is_task_being_aborted(scsi_task_t *task)
usr/src/uts/common/io/comstar/stmf/stmf.c
8364
itask = (stmf_i_scsi_task_t *)task->task_stmf_private;
usr/src/uts/common/io/comstar/stmf/stmf.c
92
static void stmf_abort_task_offline(scsi_task_t *task, int offline_lu,
usr/src/uts/common/io/comstar/stmf/stmf_impl.h
436
void stmf_task_free(scsi_task_t *task);
usr/src/uts/common/io/comstar/stmf/stmf_impl.h
437
void stmf_do_task_abort(scsi_task_t *task);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
752
pkt->task = TA_STAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
755
pkt->task = TA_HTAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
758
pkt->task = TA_OTAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
761
pkt->task = TA_ACA;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
764
pkt->task = TA_UNTAGGED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
896
cdma->cmd.task = TA_STAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
899
cdma->cmd.task = TA_HTAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
902
cdma->cmd.task = TA_OTAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
905
cdma->cmd.task = TA_ACA;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
908
cdma->cmd.task = TA_UNTAGGED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2362
pkt->cmd24.task = TA_STAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4201
pkt->cmd24.task = TA_STAG;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4549
pkt->cmd24.task = TA_STAG;
usr/src/uts/common/io/idm/idm.c
1532
idm_task_t *task;
usr/src/uts/common/io/idm/idm.c
1548
task = idm.idm_taskid_table[idx];
usr/src/uts/common/io/idm/idm.c
1549
if (task == NULL)
usr/src/uts/common/io/idm/idm.c
1551
mutex_enter(&task->idt_mutex);
usr/src/uts/common/io/idm/idm.c
1552
if ((task->idt_state != TASK_IDLE) &&
usr/src/uts/common/io/idm/idm.c
1553
(task->idt_state != TASK_COMPLETE) &&
usr/src/uts/common/io/idm/idm.c
1554
(task->idt_ic == ic)) {
usr/src/uts/common/io/idm/idm.c
1556
s = idm_task_abort_one(ic, task, abort_type);
usr/src/uts/common/io/idm/idm.c
1559
mutex_exit(&task->idt_mutex);
usr/src/uts/common/io/idm/idm_so.c
2002
idm_task_t *task;
usr/src/uts/common/io/idm/idm_so.c
2037
task = idm_task_find(ic, bhs->itt, bhs->ttt);
usr/src/uts/common/io/idm/idm_so.c
2038
if (task == NULL) {
usr/src/uts/common/io/idm/idm_so.c
2044
mutex_enter(&task->idt_mutex);
usr/src/uts/common/io/idm/idm_so.c
2046
&task->idt_inbufv : &task->idt_outbufv;
usr/src/uts/common/io/idm/idm_so.c
2048
mutex_exit(&task->idt_mutex);
usr/src/uts/common/io/idm/idm_so.c
2051
idm_task_rele(task);
usr/src/uts/common/io/idm/idm_so.c
2061
idm_task_rele(task);
usr/src/uts/common/io/idm/idm_so.c
2072
idm_task_rele(task);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10527
ahci_em_led_task_free(ahci_em_led_task_arg_t *task)
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10529
ASSERT3U(task->aelta_ref, ==, 0);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10530
cv_destroy(&task->aelta_cv);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10531
kmem_free(task, sizeof (*task));
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10743
ahci_em_led_task_arg_t *task;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10780
task = kmem_alloc(sizeof (*task), KM_NOSLEEP_LAZY);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10781
if (task == NULL) {
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10785
task->aelta_ctl = ahci_ctlp;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10786
task->aelta_port = (uint8_t)set.aiems_port;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10787
task->aelta_op = set.aiems_op;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10788
task->aelta_state = set.aiems_leds;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10790
cv_init(&task->aelta_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10796
task->aelta_ref = 2;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10802
ahci_em_led_task, task, DDI_SLEEP);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10806
while (task->aelta_ref > 1) {
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10807
if (cv_wait_sig(&task->aelta_cv, &ahci_ctlp->ahcictl_mutex) ==
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10820
task->aelta_ref--;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10821
cleanup = (task->aelta_ref == 0);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10825
ret = task->aelta_ret;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
10830
ahci_em_led_task_free(task);
usr/src/uts/common/io/sbp2/sbp2.c
1010
sbp2_ses_append_task(sbp2_ses_t *sp, sbp2_task_t *task)
usr/src/uts/common/io/sbp2/sbp2.c
1018
task->ts_prev = task->ts_next = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1019
sp->s_task_head = sp->s_task_tail = task;
usr/src/uts/common/io/sbp2/sbp2.c
1022
task->ts_next = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1023
task->ts_prev = sp->s_task_tail;
usr/src/uts/common/io/sbp2/sbp2.c
1024
sp->s_task_tail->ts_next = task;
usr/src/uts/common/io/sbp2/sbp2.c
1025
sp->s_task_tail = task;
usr/src/uts/common/io/sbp2/sbp2.c
1027
ASSERT(task != task->ts_prev);
usr/src/uts/common/io/sbp2/sbp2.c
1028
ASSERT(task != task->ts_next);
usr/src/uts/common/io/sbp2/sbp2.c
1041
sbp2_ses_remove_task_locked(sbp2_ses_t *sp, sbp2_task_t *task)
usr/src/uts/common/io/sbp2/sbp2.c
1044
if (task == sp->s_task_head) { /* first */
usr/src/uts/common/io/sbp2/sbp2.c
1045
ASSERT(task->ts_prev == NULL);
usr/src/uts/common/io/sbp2/sbp2.c
1046
if (task->ts_next == NULL) { /* and last */
usr/src/uts/common/io/sbp2/sbp2.c
1050
sp->s_task_head = task->ts_next;
usr/src/uts/common/io/sbp2/sbp2.c
1053
} else if (task == sp->s_task_tail) { /* last but not first */
usr/src/uts/common/io/sbp2/sbp2.c
1054
ASSERT(task->ts_next == NULL);
usr/src/uts/common/io/sbp2/sbp2.c
1055
sp->s_task_tail = task->ts_prev;
usr/src/uts/common/io/sbp2/sbp2.c
1058
task->ts_prev->ts_next = task->ts_next;
usr/src/uts/common/io/sbp2/sbp2.c
1059
task->ts_next->ts_prev = task->ts_prev;
usr/src/uts/common/io/sbp2/sbp2.c
1061
task->ts_prev = task->ts_next = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1068
sbp2_ses_remove_task(sbp2_ses_t *sp, sbp2_task_t *task)
usr/src/uts/common/io/sbp2/sbp2.c
1073
ret = sbp2_ses_remove_task_locked(sp, task);
usr/src/uts/common/io/sbp2/sbp2.c
1085
sbp2_task_t *task = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1088
for (task = sp->s_task_head; task != NULL; task = task->ts_next) {
usr/src/uts/common/io/sbp2/sbp2.c
1089
if (task->ts_state == state) {
usr/src/uts/common/io/sbp2/sbp2.c
1095
return (task);
usr/src/uts/common/io/sbp2/sbp2.c
1104
sbp2_task_t *task = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1107
task = sp->s_task_head;
usr/src/uts/common/io/sbp2/sbp2.c
1108
if (task != NULL) {
usr/src/uts/common/io/sbp2/sbp2.c
1109
(void) sbp2_ses_remove_task_locked(sp, task);
usr/src/uts/common/io/sbp2/sbp2.c
1113
return (task);
usr/src/uts/common/io/sbp2/sbp2.c
1123
sbp2_task_t *task = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1127
task = sp->s_task_head;
usr/src/uts/common/io/sbp2/sbp2.c
1128
(void) sbp2_ses_remove_task_locked(sp, task);
usr/src/uts/common/io/sbp2/sbp2.c
1132
return (task);
usr/src/uts/common/io/sbp2/sbp2.c
1142
sbp2_task_t *task = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1146
task = sp->s_task_head;
usr/src/uts/common/io/sbp2/sbp2.c
1147
if (task != NULL) {
usr/src/uts/common/io/sbp2/sbp2.c
1148
(void) sbp2_ses_remove_task_locked(sp, task);
usr/src/uts/common/io/sbp2/sbp2.c
1152
if ((task != NULL) && ((timeout_id = task->ts_timeout_id) != 0)) {
usr/src/uts/common/io/sbp2/sbp2.c
1153
task->ts_timeout_id = 0;
usr/src/uts/common/io/sbp2/sbp2.c
1157
return (task);
usr/src/uts/common/io/sbp2/sbp2.c
1167
sbp2_task_t *task = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1172
for (task = sp->s_task_head; task != NULL; task = task->ts_next) {
usr/src/uts/common/io/sbp2/sbp2.c
1173
task->ts_state = SBP2_TASK_INIT;
usr/src/uts/common/io/sbp2/sbp2.c
1176
if ((timeout_id = task->ts_timeout_id) != 0) {
usr/src/uts/common/io/sbp2/sbp2.c
1177
task->ts_timeout_id = 0;
usr/src/uts/common/io/sbp2/sbp2.c
1182
orb = (sbp2_cmd_orb_t *)sbp2_task_orb_kaddr(task);
usr/src/uts/common/io/sbp2/sbp2.c
1184
sbp2_task_orb_sync(sp->s_lun, task, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/sbp2/sbp2.c
1200
sbp2_ses_abort_task(sbp2_ses_t *sp, sbp2_task_t *task, int *berr)
usr/src/uts/common/io/sbp2/sbp2.c
1205
sbp2_cmd_orb_t *orb = (sbp2_cmd_orb_t *)task->ts_buf->bb_kaddr;
usr/src/uts/common/io/sbp2/sbp2.c
1211
(void) SBP2_SYNC_BUF(tp, task->ts_buf, 0, 0, DDI_DMA_SYNC_FORDEV);
usr/src/uts/common/io/sbp2/sbp2.c
1214
SBP2_ORB_MGT_FUNC_ABORT_TASK, task->ts_buf->bb_baddr, berr);
usr/src/uts/common/io/sbp2/sbp2.c
1244
sbp2_orb_freelist_get(sbp2_lun_t *lp, sbp2_task_t *task, int len)
usr/src/uts/common/io/sbp2/sbp2.c
1310
sbp2_task_orb_alloc(sbp2_lun_t *lp, sbp2_task_t *task, int len)
usr/src/uts/common/io/sbp2/sbp2.c
1319
if ((task->ts_buf = sbp2_orb_freelist_get(lp, task, buf_len)) != NULL) {
usr/src/uts/common/io/sbp2/sbp2.c
1324
task->ts_buf = kmem_zalloc(sizeof (sbp2_bus_buf_t), KM_SLEEP);
usr/src/uts/common/io/sbp2/sbp2.c
1325
task->ts_buf->bb_len = buf_len;
usr/src/uts/common/io/sbp2/sbp2.c
1326
task->ts_buf->bb_flags = SBP2_BUS_BUF_DMA | SBP2_BUS_BUF_RD;
usr/src/uts/common/io/sbp2/sbp2.c
1327
if ((ret = SBP2_ALLOC_BUF(tp, task->ts_buf)) != SBP2_SUCCESS) {
usr/src/uts/common/io/sbp2/sbp2.c
1328
kmem_free(task->ts_buf, sizeof (sbp2_bus_buf_t));
usr/src/uts/common/io/sbp2/sbp2.c
1329
task->ts_buf = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1336
sbp2_task_orb_free(sbp2_lun_t *lp, sbp2_task_t *task)
usr/src/uts/common/io/sbp2/sbp2.c
1340
if (task->ts_buf != NULL) {
usr/src/uts/common/io/sbp2/sbp2.c
1341
if (sbp2_orb_freelist_put(lp, task->ts_buf) != SBP2_SUCCESS) {
usr/src/uts/common/io/sbp2/sbp2.c
1342
SBP2_FREE_BUF(tp, task->ts_buf);
usr/src/uts/common/io/sbp2/sbp2.c
1343
kmem_free(task->ts_buf, sizeof (sbp2_bus_buf_t));
usr/src/uts/common/io/sbp2/sbp2.c
1345
task->ts_buf = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
1350
sbp2_task_orb_kaddr(sbp2_task_t *task)
usr/src/uts/common/io/sbp2/sbp2.c
1352
return (task->ts_buf->bb_kaddr);
usr/src/uts/common/io/sbp2/sbp2.c
1356
sbp2_task_orb_sync(sbp2_lun_t *lp, sbp2_task_t *task, int flags)
usr/src/uts/common/io/sbp2/sbp2.c
1358
(void) SBP2_SYNC_BUF(lp->l_tgt, task->ts_buf, 0, 0, flags);
usr/src/uts/common/io/sbp2/sbp2.c
1618
sbp2_task_t *task = arg;
usr/src/uts/common/io/sbp2/sbp2.c
1619
sbp2_ses_t *sp = task->ts_ses;
usr/src/uts/common/io/sbp2/sbp2.c
1625
if (task->ts_timeout_id == 0) {
usr/src/uts/common/io/sbp2/sbp2.c
1629
task->ts_timeout_id = 0;
usr/src/uts/common/io/sbp2/sbp2.c
1630
task->ts_time_comp = gethrtime();
usr/src/uts/common/io/sbp2/sbp2.c
1633
if (task->ts_state != SBP2_TASK_PEND) {
usr/src/uts/common/io/sbp2/sbp2.c
1638
if (task == ap->a_active_task) {
usr/src/uts/common/io/sbp2/sbp2.c
1641
task->ts_error = SBP2_TASK_ERR_TIMEOUT;
usr/src/uts/common/io/sbp2/sbp2.c
1642
task->ts_state = SBP2_TASK_COMP;
usr/src/uts/common/io/sbp2/sbp2.c
1649
sp->s_status_cb(sp->s_status_cb_arg, task);
usr/src/uts/common/io/sbp2/sbp2.c
1666
sbp2_task_t *task;
usr/src/uts/common/io/sbp2/sbp2.c
1709
if ((task = sbp2_ses_orbp2task(sp, orbp)) == NULL) {
usr/src/uts/common/io/sbp2/sbp2.c
1723
bzero(&task->ts_status, sizeof (sbp2_status_t));
usr/src/uts/common/io/sbp2/sbp2.c
1724
bcopy((*bpp)->b_rptr, &task->ts_status, len);
usr/src/uts/common/io/sbp2/sbp2.c
1730
if ((timeout_id = task->ts_timeout_id) != 0) {
usr/src/uts/common/io/sbp2/sbp2.c
1731
task->ts_timeout_id = 0;
usr/src/uts/common/io/sbp2/sbp2.c
1742
if (task->ts_state != SBP2_TASK_PEND) {
usr/src/uts/common/io/sbp2/sbp2.c
1747
if (task == ap->a_active_task) {
usr/src/uts/common/io/sbp2/sbp2.c
1750
task->ts_error = SBP2_TASK_ERR_NONE;
usr/src/uts/common/io/sbp2/sbp2.c
1751
task->ts_state = SBP2_TASK_COMP;
usr/src/uts/common/io/sbp2/sbp2.c
1755
sp->s_status_cb(sp->s_status_cb_arg, task); /* notify the driver */
usr/src/uts/common/io/sbp2/sbp2.c
546
sbp2_task_t *task = NULL;
usr/src/uts/common/io/sbp2/sbp2.c
557
for (task = sp->s_task_head; task != NULL; task = task->ts_next) {
usr/src/uts/common/io/sbp2/sbp2.c
558
if (task->ts_state < SBP2_TASK_COMP) {
usr/src/uts/common/io/sbp2/sbp2.c
559
task->ts_error = SBP2_TASK_ERR_LUN_RESET;
usr/src/uts/common/io/sbp2/sbp2.c
560
task->ts_state = SBP2_TASK_COMP;
usr/src/uts/common/io/sbp2/sbp2.c
852
sbp2_task_t *task;
usr/src/uts/common/io/sbp2/sbp2.c
855
for (task = sp->s_task_head; task != NULL; task = task->ts_next) {
usr/src/uts/common/io/sbp2/sbp2.c
856
if (task->ts_buf->bb_baddr == orbp) {
usr/src/uts/common/io/sbp2/sbp2.c
861
return (task);
usr/src/uts/common/io/sbp2/sbp2.c
879
sbp2_task_t *task; /* task actually being submitted */
usr/src/uts/common/io/sbp2/sbp2.c
923
task = ap->a_active_task;
usr/src/uts/common/io/sbp2/sbp2.c
924
task->ts_ses = sp;
usr/src/uts/common/io/sbp2/sbp2.c
925
task->ts_state = SBP2_TASK_PEND;
usr/src/uts/common/io/sbp2/sbp2.c
928
if (sbp2_agent_keepalive(ap, &task->ts_bus_error) != SBP2_SUCCESS) {
usr/src/uts/common/io/sbp2/sbp2.c
929
task->ts_error = SBP2_TASK_ERR_DEAD;
usr/src/uts/common/io/sbp2/sbp2.c
938
ASSERT(task->ts_timeout_id == 0);
usr/src/uts/common/io/sbp2/sbp2.c
939
task->ts_time_start = gethrtime();
usr/src/uts/common/io/sbp2/sbp2.c
940
if (task->ts_timeout > 0) {
usr/src/uts/common/io/sbp2/sbp2.c
941
task->ts_timeout_id = timeout(sbp2_task_timeout, task,
usr/src/uts/common/io/sbp2/sbp2.c
942
task->ts_timeout * drv_usectohz(1000000));
usr/src/uts/common/io/sbp2/sbp2.c
948
ret = sbp2_agent_write_orbp(ap, task->ts_buf->bb_baddr,
usr/src/uts/common/io/sbp2/sbp2.c
949
&task->ts_bus_error);
usr/src/uts/common/io/sbp2/sbp2.c
957
if (task->ts_timeout_id != 0) {
usr/src/uts/common/io/sbp2/sbp2.c
958
timeout_id = task->ts_timeout_id;
usr/src/uts/common/io/sbp2/sbp2.c
959
task->ts_timeout_id = 0;
usr/src/uts/common/io/sbp2/sbp2.c
962
task->ts_error = SBP2_TASK_ERR_BUS;
usr/src/uts/common/io/sbp2/sbp2.c
977
ASSERT(task == ap->a_active_task);
usr/src/uts/common/io/sbp2/sbp2.c
987
ret = sbp2_ses_remove_task(sp, task);
usr/src/uts/common/io/sbp2/sbp2.c
989
task->ts_state = SBP2_TASK_COMP;
usr/src/uts/common/io/sbp2/sbp2.c
992
sp->s_status_cb(sp->s_status_cb_arg, task);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
11159
pMpi2SCSITaskManagementRequest_t task;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
11160
task = (pMpi2SCSITaskManagementRequest_t)request_msg;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
11162
rv = mptsas_ioc_task_management(mpt, task->TaskType,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
11163
task->DevHandle, (int)task->LUN[1], reply, reply_size,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1120
pMpi2SCSITaskManagementRequest_t task;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1161
task = (pMpi2SCSITaskManagementRequest_t)(mpt->m_req_frame +
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1163
bzero(task, mpt->m_req_frame_size);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1168
mptsas_init_std_hdr(mpt->m_acc_req_frame_hdl, task, dev_handle, lun, 0,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1174
ddi_put8(mpt->m_acc_req_frame_hdl, &task->TaskType, task_type);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi.h
192
struct task_struct *task;
usr/src/uts/common/io/vioscsi/vioscsi.c
111
tmf->tag = (uint64_t)task;
usr/src/uts/common/io/vioscsi/vioscsi.c
90
vioscsi_request_t *task)
usr/src/uts/common/os/fork.c
1260
task->tk_nprocs--;
usr/src/uts/common/os/fork.c
951
task_t *task;
usr/src/uts/common/os/fork.c
960
task = pp->p_task;
usr/src/uts/common/os/fork.c
961
proj = task->tk_proj;
usr/src/uts/common/os/fork.c
967
if (task->tk_nprocs >= task->tk_nprocs_ctl)
usr/src/uts/common/os/fork.c
968
if (rctl_test(rc_task_nprocs, task->tk_rctls,
usr/src/uts/common/os/fork.c
989
task->tk_nprocs++;
usr/src/uts/common/os/pid.c
273
pid_exit(proc_t *prp, struct task *tk)
usr/src/uts/common/os/rctl.c
562
e->rcep_p.task = p->p_task;
usr/src/uts/common/os/task.c
1004
e.rcep_p.task = task0p;
usr/src/uts/common/os/task.c
177
if (e->rcep_p.task == NULL)
usr/src/uts/common/os/task.c
180
ASSERT(MUTEX_HELD(&(e->rcep_p.task->tk_zone->zone_nlwps_lock)));
usr/src/uts/common/os/task.c
181
nlwps = e->rcep_p.task->tk_nlwps;
usr/src/uts/common/os/task.c
195
if (e->rcep_p.task == NULL)
usr/src/uts/common/os/task.c
198
e->rcep_p.task->tk_nlwps_ctl = nv;
usr/src/uts/common/os/task.c
228
if (e->rcep_p.task == NULL)
usr/src/uts/common/os/task.c
231
ASSERT(MUTEX_HELD(&(e->rcep_p.task->tk_zone->zone_nlwps_lock)));
usr/src/uts/common/os/task.c
232
nprocs = e->rcep_p.task->tk_nprocs;
usr/src/uts/common/os/task.c
247
if (e->rcep_p.task == NULL)
usr/src/uts/common/os/task.c
250
e->rcep_p.task->tk_nprocs_ctl = nv;
usr/src/uts/common/os/task.c
330
if (e->rcep_p.task == NULL)
usr/src/uts/common/os/task.c
540
e.rcep_p.task = tk;
usr/src/uts/common/os/task.c
650
e.rcep_p.task = tk;
usr/src/uts/common/sys/1394/targets/scsa1394/cmd.h
123
#define TASK2CMD(task) ((scsa1394_cmd_t *)(task)->ts_drv_priv)
usr/src/uts/common/sys/fibre-channel/fca/qlc/ql_iocb.h
114
uint8_t task; /* Task Attributes Values. */
usr/src/uts/common/sys/fibre-channel/fca/qlc/ql_iocb.h
152
uint8_t task; /* Task Attributes Values. */
usr/src/uts/common/sys/idm/idm.h
148
typedef void (idm_task_cb_t)(struct idm_task_s *task, idm_status_t status);
usr/src/uts/common/sys/idm/idm.h
151
struct idm_task_s *task, struct idm_pdu_s *pdu, uint8_t opcode);
usr/src/uts/common/sys/idm/idm.h
154
struct idm_task_s *task, struct idm_pdu_s *pdu);
usr/src/uts/common/sys/lpif.h
138
void stmf_lu_xfer_done(struct scsi_task *task, boolean_t read,
usr/src/uts/common/sys/lpif.h
53
stmf_status_t (*lu_task_alloc)(struct scsi_task *task);
usr/src/uts/common/sys/lpif.h
54
void (*lu_new_task)(struct scsi_task *task,
usr/src/uts/common/sys/lpif.h
56
void (*lu_dbuf_xfer_done)(struct scsi_task *task,
usr/src/uts/common/sys/lpif.h
65
void (*lu_send_status_done)(struct scsi_task *task);
usr/src/uts/common/sys/lpif.h
66
void (*lu_task_free)(struct scsi_task *task);
usr/src/uts/common/sys/lpif.h
69
void (*lu_task_poll)(struct scsi_task *task);
usr/src/uts/common/sys/lpif.h
78
void (*lu_dbuf_free)(struct scsi_task *task,
usr/src/uts/common/sys/lpif.h
80
void (*lu_task_done)(struct scsi_task *task);
usr/src/uts/common/sys/portif.h
41
stmf_data_buf_t *(*ds_alloc_data_buf)(struct scsi_task *task,
usr/src/uts/common/sys/portif.h
47
stmf_status_t (*ds_setup_dbuf)(struct scsi_task *task,
usr/src/uts/common/sys/portif.h
67
stmf_status_t (*lport_xfer_data)(struct scsi_task *task,
usr/src/uts/common/sys/portif.h
69
stmf_status_t (*lport_send_status)(struct scsi_task *task,
usr/src/uts/common/sys/portif.h
71
void (*lport_task_free)(struct scsi_task *task);
usr/src/uts/common/sys/portif.h
74
void (*lport_task_poll)(struct scsi_task *task);
usr/src/uts/common/sys/proc.h
129
struct task;
usr/src/uts/common/sys/proc.h
324
struct task *p_task; /* our containing task */
usr/src/uts/common/sys/proc.h
653
extern void pid_exit(proc_t *, struct task *);
usr/src/uts/common/sys/rctl.h
166
struct task;
usr/src/uts/common/sys/rctl.h
175
struct task *task;
usr/src/uts/common/sys/rctl.h
348
struct kstat *rctl_kstat_create_task(struct task *, char *, uchar_t,
usr/src/uts/common/sys/stmf.h
374
void stmf_post_task(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/sys/stmf.h
375
stmf_data_buf_t *stmf_alloc_dbuf(scsi_task_t *task, uint32_t size,
usr/src/uts/common/sys/stmf.h
377
void stmf_free_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/sys/stmf.h
378
stmf_status_t stmf_setup_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/sys/stmf.h
380
void stmf_teardown_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/sys/stmf.h
381
stmf_status_t stmf_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/sys/stmf.h
383
stmf_status_t stmf_send_scsi_status(scsi_task_t *task, uint32_t ioflags);
usr/src/uts/common/sys/stmf.h
384
void stmf_data_xfer_done(scsi_task_t *task, stmf_data_buf_t *dbuf,
usr/src/uts/common/sys/stmf.h
386
void stmf_send_status_done(scsi_task_t *task, stmf_status_t s, uint32_t iof);
usr/src/uts/common/sys/stmf.h
387
void stmf_task_lu_done(scsi_task_t *task);
usr/src/uts/common/sys/stmf.h
388
void stmf_abort(int abort_cmd, scsi_task_t *task, stmf_status_t s, void *arg);
usr/src/uts/common/sys/stmf.h
389
void stmf_task_lu_aborted(scsi_task_t *task, stmf_status_t s, uint32_t iof);
usr/src/uts/common/sys/stmf.h
390
void stmf_task_lport_aborted_unlocked(scsi_task_t *task, stmf_status_t s,
usr/src/uts/common/sys/stmf.h
392
stmf_status_t stmf_task_poll_lu(scsi_task_t *task, uint32_t timeout);
usr/src/uts/common/sys/stmf.h
393
stmf_status_t stmf_task_poll_lport(scsi_task_t *task, uint32_t timeout);
usr/src/uts/common/sys/stmf.h
400
stmf_data_buf_t *stmf_handle_to_buf(scsi_task_t *task, uint8_t h);
usr/src/uts/common/sys/stmf.h
412
void stmf_scsilib_send_status(scsi_task_t *task, uint8_t st, uint32_t saa);
usr/src/uts/common/sys/stmf.h
413
uint32_t stmf_scsilib_prepare_vpd_page83(scsi_task_t *task, uint8_t *page,
usr/src/uts/common/sys/stmf.h
417
void stmf_scsilib_handle_report_tpgs(scsi_task_t *task, stmf_data_buf_t *dbuf);
usr/src/uts/common/sys/stmf.h
418
void stmf_scsilib_handle_task_mgmt(scsi_task_t *task);
usr/src/uts/common/sys/stmf.h
428
struct stmf_lu *stmf_check_and_hold_lu(struct scsi_task *task, uint8_t *guid);
usr/src/uts/common/sys/stmf.h
430
int stmf_is_task_being_aborted(struct scsi_task *task);
usr/src/uts/common/sys/task.h
110
struct task;
usr/src/uts/common/sys/task.h
79
struct task *tk_commit_next; /* next task on task commit list */
usr/src/uts/sun4v/io/vds.c
1910
vd_task_t *task = (vd_task_t *)buf->b_private;
usr/src/uts/sun4v/io/vds.c
1911
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
1969
vd_start_bio(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
1972
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
1973
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
1974
struct buf *buf = &task->buf;
usr/src/uts/sun4v/io/vds.c
2014
status = ldc_mem_map(task->mhdl, request->cookie, request->ncookies,
usr/src/uts/sun4v/io/vds.c
2028
status = ldc_mem_acquire(task->mhdl, 0, buflen);
usr/src/uts/sun4v/io/vds.c
2030
(void) ldc_mem_unmap(task->mhdl);
usr/src/uts/sun4v/io/vds.c
2158
task->write_index = vd->write_index;
usr/src/uts/sun4v/io/vds.c
2159
vd->write_queue[task->write_index] = buf;
usr/src/uts/sun4v/io/vds.c
2164
buf->b_private = task;
usr/src/uts/sun4v/io/vds.c
2169
(void) ddi_taskq_dispatch(task->vd->ioq, vd_bio_task, buf,
usr/src/uts/sun4v/io/vds.c
2204
rv = ldc_mem_release(task->mhdl, 0, buflen);
usr/src/uts/sun4v/io/vds.c
2209
rv = ldc_mem_unmap(task->mhdl);
usr/src/uts/sun4v/io/vds.c
2412
vd_complete_bio(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
2416
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
2417
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
2418
struct buf *buf = &task->buf;
usr/src/uts/sun4v/io/vds.c
2424
ASSERT(task->msg != NULL);
usr/src/uts/sun4v/io/vds.c
2425
ASSERT(task->msglen >= sizeof (*task->msg));
usr/src/uts/sun4v/io/vds.c
2453
ASSERT(task->request->operation == VD_OP_BWRITE);
usr/src/uts/sun4v/io/vds.c
2455
wid = task->write_index;
usr/src/uts/sun4v/io/vds.c
2476
DTRACE_PROBE2(flushgrp, vd_task_t *, task,
usr/src/uts/sun4v/io/vds.c
2496
status = ldc_mem_release(task->mhdl, 0, buf->b_bufsize);
usr/src/uts/sun4v/io/vds.c
2507
status = ldc_mem_unmap(task->mhdl);
usr/src/uts/sun4v/io/vds.c
2535
vd_notify(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
2539
ASSERT(task != NULL);
usr/src/uts/sun4v/io/vds.c
2540
ASSERT(task->vd != NULL);
usr/src/uts/sun4v/io/vds.c
2548
(task->msg->tag.vio_subtype == VIO_SUBTYPE_ACK) ? "ACK" : "NACK");
usr/src/uts/sun4v/io/vds.c
2550
status = send_msg(task->vd->ldc_handle, task->msg, task->msglen);
usr/src/uts/sun4v/io/vds.c
2555
vd_mark_in_reset(task->vd);
usr/src/uts/sun4v/io/vds.c
2559
vd_need_reset(task->vd, B_TRUE);
usr/src/uts/sun4v/io/vds.c
2563
DTRACE_PROBE1(task__end, vd_task_t *, task);
usr/src/uts/sun4v/io/vds.c
2578
vd_complete_notify(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
2581
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
2582
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
2586
status = vd_mark_elem_done(vd, task->index,
usr/src/uts/sun4v/io/vds.c
2599
if ((status != 0) || (task->status != 0))
usr/src/uts/sun4v/io/vds.c
2600
task->msg->tag.vio_subtype = VIO_SUBTYPE_NACK;
usr/src/uts/sun4v/io/vds.c
2606
if (task->type == VD_NONFINAL_RANGE_TASK) {
usr/src/uts/sun4v/io/vds.c
2617
vd_notify(task);
usr/src/uts/sun4v/io/vds.c
2635
vd_task_t *task = (vd_task_t *)arg;
usr/src/uts/sun4v/io/vds.c
2637
ASSERT(task != NULL);
usr/src/uts/sun4v/io/vds.c
2638
vd_notify(task);
usr/src/uts/sun4v/io/vds.c
3590
vd_task_t *task = (vd_task_t *)arg;
usr/src/uts/sun4v/io/vds.c
3592
ASSERT(task != NULL);
usr/src/uts/sun4v/io/vds.c
3593
ASSERT(task->status == EINPROGRESS);
usr/src/uts/sun4v/io/vds.c
3594
ASSERT(task->completef != NULL);
usr/src/uts/sun4v/io/vds.c
3596
task->status = task->completef(task);
usr/src/uts/sun4v/io/vds.c
3597
if (task->status)
usr/src/uts/sun4v/io/vds.c
3598
PR0("%s: Error %d completing task", __func__, task->status);
usr/src/uts/sun4v/io/vds.c
3601
vd_complete_notify(task);
usr/src/uts/sun4v/io/vds.c
3605
vd_ioctl(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
3613
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
3614
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
3712
vd_get_devid(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
3714
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
3715
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
3808
vd_reset(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
3810
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
3811
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
3830
vd_get_capacity(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
3834
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
3835
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
3873
vd_get_access(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
3878
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
3879
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
3912
vd_set_access(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
3917
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
3918
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
4138
vd_do_process_task(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
4141
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
4142
vd_dring_payload_t *request = task->request;
usr/src/uts/sun4v/io/vds.c
4153
task->completef = vds_operation[i].complete;
usr/src/uts/sun4v/io/vds.c
4184
return (vds_operation[i].start(task));
usr/src/uts/sun4v/io/vds.c
4211
vd_process_task(vd_task_t *task)
usr/src/uts/sun4v/io/vds.c
4213
vd_t *vd = task->vd;
usr/src/uts/sun4v/io/vds.c
4216
DTRACE_PROBE1(task__start, vd_task_t *, task);
usr/src/uts/sun4v/io/vds.c
4218
task->status = vd_do_process_task(task);
usr/src/uts/sun4v/io/vds.c
4233
if (task->status == EINPROGRESS) {
usr/src/uts/sun4v/io/vds.c
4236
task, DDI_SLEEP);
usr/src/uts/sun4v/io/vds.c
4242
status = vd_mark_elem_done(vd, task->index,
usr/src/uts/sun4v/io/vds.c
4243
task->request->status, task->request->nbytes);
usr/src/uts/sun4v/io/vds.c
4250
return (task->status);
usr/src/uts/sun4v/io/vds.c
434
int (*completef)(struct vd_task *task); /* completion func ptr */
usr/src/uts/sun4v/io/vds.c
5138
vd_task_t task;
usr/src/uts/sun4v/io/vds.c
5185
task.vd = vd;
usr/src/uts/sun4v/io/vds.c
5186
task.msg = msg;
usr/src/uts/sun4v/io/vds.c
5187
task.msglen = msglen;
usr/src/uts/sun4v/io/vds.c
5196
&task, DDI_SLEEP);
usr/src/uts/sun4v/io/vds.c
533
int (*start)(vd_task_t *task);
usr/src/uts/sun4v/io/vds.c
534
int (*complete)(vd_task_t *task);