Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 88) sorted by relevance

1234

/titanic_41/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_scsi.c90 static void sbd_handle_sync_cache(struct scsi_task *task,
92 void sbd_handle_read_xfer_completion(struct scsi_task *task,
94 void sbd_handle_short_write_xfer_completion(scsi_task_t *task,
96 void sbd_handle_short_write_transfers(scsi_task_t *task,
98 void sbd_handle_mode_select_xfer(scsi_task_t *task, uint8_t *buf,
100 void sbd_handle_mode_select(scsi_task_t *task, stmf_data_buf_t *dbuf);
101 void sbd_handle_identifying_info(scsi_task_t *task, stmf_data_buf_t *dbuf);
103 static void sbd_handle_unmap_xfer(scsi_task_t *task, uint8_t *buf,
105 static void sbd_handle_unmap(scsi_task_t *task, stmf_data_buf_t *dbuf);
114 void sbd_do_sgl_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
[all …]
H A Dsbd_pgr.c89 extern void sbd_handle_short_write_transfers(scsi_task_t *task,
91 extern void sbd_handle_short_read_transfers(scsi_task_t *task,
748 sbd_pgr_initialize_it(scsi_task_t *task, sbd_it_data_t *it) in sbd_pgr_initialize_it() argument
750 sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private; in sbd_pgr_initialize_it()
751 stmf_scsi_session_t *ses = task->task_session; in sbd_pgr_initialize_it()
815 sbd_pgr_reservation_conflict(scsi_task_t *task) in sbd_pgr_reservation_conflict() argument
817 sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private; in sbd_pgr_reservation_conflict()
819 sbd_it_data_t *it = (sbd_it_data_t *)task->task_lu_itl_handle; in sbd_pgr_reservation_conflict()
851 task->task_cdb[0])) { in sbd_pgr_reservation_conflict()
863 if (PGR_REGISTERED_POSSIBLE_CMDS(task->task_cdb)) { in sbd_pgr_reservation_conflict()
[all …]
H A Dstmf_sbd.h285 sbd_status_t sbd_data_read(sbd_lu_t *sl, scsi_task_t *task,
287 sbd_status_t sbd_data_write(sbd_lu_t *sl, scsi_task_t *task,
289 stmf_status_t sbd_task_alloc(struct scsi_task *task);
290 void sbd_new_task(struct scsi_task *task, struct stmf_data_buf *initial_dbuf);
291 void sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf);
292 void sbd_send_status_done(struct scsi_task *task);
293 void sbd_task_free(struct scsi_task *task);
H A Dsbd_impl.h296 stmf_status_t sbd_task_alloc(struct scsi_task *task);
297 void sbd_new_task(struct scsi_task *task, struct stmf_data_buf *initial_dbuf);
298 void sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf);
299 void sbd_send_status_done(struct scsi_task *task);
300 void sbd_task_free(struct scsi_task *task);
303 void sbd_dbuf_free(struct scsi_task *task, struct stmf_data_buf *dbuf);
/titanic_41/usr/src/uts/common/io/sbp2/
H A Dsbp2.c546 sbp2_task_t *task = NULL; in sbp2_lun_reset() local
557 for (task = sp->s_task_head; task != NULL; task = task->ts_next) { in sbp2_lun_reset()
558 if (task->ts_state < SBP2_TASK_COMP) { in sbp2_lun_reset()
559 task->ts_error = SBP2_TASK_ERR_LUN_RESET; in sbp2_lun_reset()
560 task->ts_state = SBP2_TASK_COMP; in sbp2_lun_reset()
852 sbp2_task_t *task; in sbp2_ses_orbp2task() local
855 for (task = sp->s_task_head; task != NULL; task = task->ts_next) { in sbp2_ses_orbp2task()
856 if (task->ts_buf->bb_baddr == orbp) { in sbp2_ses_orbp2task()
861 return (task); in sbp2_ses_orbp2task()
879 sbp2_task_t *task; /* task actually being submitted */ in sbp2_ses_submit_task() local
[all …]
/titanic_41/usr/src/uts/common/io/comstar/stmf/
H A Dstmf.c91 static void stmf_abort_task_offline(scsi_task_t *task, int offline_lu,
110 void stmf_abort_target_reset(scsi_task_t *task);
111 stmf_status_t stmf_lun_reset_poll(stmf_lu_t *lu, struct scsi_task *task,
113 void stmf_target_reset_poll(struct scsi_task *task);
114 void stmf_handle_lun_reset(scsi_task_t *task);
115 void stmf_handle_target_reset(scsi_task_t *task);
129 static void stmf_task_lu_free(scsi_task_t *task, stmf_i_scsi_session_t *iss);
1761 scsi_task_t *task; in stmf_ic_rx_scsi_status() local
1768 task = find_task_from_msgid(msg->icss_lun_id, msg->icss_task_msgid); in stmf_ic_rx_scsi_status()
1770 if (task == NULL) { in stmf_ic_rx_scsi_status()
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dstmf.h366 void stmf_post_task(scsi_task_t *task, stmf_data_buf_t *dbuf);
367 stmf_data_buf_t *stmf_alloc_dbuf(scsi_task_t *task, uint32_t size,
369 void stmf_free_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf);
370 stmf_status_t stmf_setup_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf,
372 void stmf_teardown_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf);
373 stmf_status_t stmf_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
375 stmf_status_t stmf_send_scsi_status(scsi_task_t *task, uint32_t ioflags);
376 void stmf_data_xfer_done(scsi_task_t *task, stmf_data_buf_t *dbuf,
378 void stmf_send_status_done(scsi_task_t *task, stmf_status_t s, uint32_t iof);
379 void stmf_task_lu_done(scsi_task_t *task);
[all …]
H A Dlpif.h52 stmf_status_t (*lu_task_alloc)(struct scsi_task *task);
53 void (*lu_new_task)(struct scsi_task *task,
55 void (*lu_dbuf_xfer_done)(struct scsi_task *task,
64 void (*lu_send_status_done)(struct scsi_task *task);
65 void (*lu_task_free)(struct scsi_task *task);
68 void (*lu_task_poll)(struct scsi_task *task);
77 void (*lu_dbuf_free)(struct scsi_task *task,
H A Dportif.h41 stmf_data_buf_t *(*ds_alloc_data_buf)(struct scsi_task *task,
47 stmf_status_t (*ds_setup_dbuf)(struct scsi_task *task,
67 stmf_status_t (*lport_xfer_data)(struct scsi_task *task,
69 stmf_status_t (*lport_send_status)(struct scsi_task *task,
71 void (*lport_task_free)(struct scsi_task *task);
74 void (*lport_task_poll)(struct scsi_task *task);
H A Dtask.h52 typedef struct task { struct
79 struct task *tk_commit_next; /* next task on task commit list */ argument
110 struct task;
H A Drctl.h166 struct task;
175 struct task *task; member
348 struct kstat *rctl_kstat_create_task(struct task *, char *, uchar_t,
/titanic_41/usr/src/uts/common/io/comstar/port/pppt/
H A Dpppt_msg.c254 scsi_task_t *task; in pppt_msg_scsi_cmd() local
329 task = ptask->pt_stmf_task; in pppt_msg_scsi_cmd()
332 task->task_port_private = ptask; in pppt_msg_scsi_cmd()
333 task->task_flags = scmd->icsc_task_flags; in pppt_msg_scsi_cmd()
334 task->task_additional_flags = 0; in pppt_msg_scsi_cmd()
335 task->task_priority = 0; in pppt_msg_scsi_cmd()
353 task->task_mgmt_function = scmd->icsc_task_mgmt_function; in pppt_msg_scsi_cmd()
355 task->task_max_nbufs = 1; /* Don't allow parallel xfers */ in pppt_msg_scsi_cmd()
356 task->task_cmd_seq_no = msg->icm_msgid; in pppt_msg_scsi_cmd()
357 task->task_expected_xfer_length = in pppt_msg_scsi_cmd()
[all …]
H A Dpppt.c124 static stmf_data_buf_t *pppt_dbuf_alloc(scsi_task_t *task,
576 pppt_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize, in pppt_dbuf_alloc() argument
650 pppt_lport_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf, in pppt_lport_xfer_data() argument
653 pppt_task_t *pppt_task = task->task_port_private; in pppt_lport_xfer_data()
756 pppt_lport_send_status(scsi_task_t *task, uint32_t ioflags) in pppt_lport_send_status() argument
758 pppt_task_t *ptask = task->task_port_private; in pppt_lport_send_status()
778 task->task_scsi_status, in pppt_lport_send_status()
779 task->task_status_ctrl, task->task_resid, in pppt_lport_send_status()
780 task->task_sense_length, task->task_sense_data, 0); in pppt_lport_send_status()
798 pppt_lport_task_free(scsi_task_t *task) in pppt_lport_task_free() argument
[all …]
H A Dalua_ic_if.c637 scsi_task_t *task, in stmf_ic_scsi_cmd_msg_alloc() argument
644 scsi_devid_desc_t *ini_devid = task->task_session->ss_rport_id; in stmf_ic_scsi_cmd_msg_alloc()
645 scsi_devid_desc_t *tgt_devid = task->task_lport->lport_id; in stmf_ic_scsi_cmd_msg_alloc()
646 stmf_remote_port_t *rport = task->task_session->ss_rport; in stmf_ic_scsi_cmd_msg_alloc()
656 icsc->icsc_session_id = task->task_session->ss_session_id; in stmf_ic_scsi_cmd_msg_alloc()
658 if (!task->task_mgmt_function && task->task_lu->lu_id) { in stmf_ic_scsi_cmd_msg_alloc()
659 bcopy(task->task_lu->lu_id->ident, in stmf_ic_scsi_cmd_msg_alloc()
663 bcopy(task->task_lun_no, icsc->icsc_task_lun_no, in stmf_ic_scsi_cmd_msg_alloc()
666 icsc->icsc_task_expected_xfer_length = task->task_expected_xfer_length; in stmf_ic_scsi_cmd_msg_alloc()
667 if (task->task_cdb_length) { in stmf_ic_scsi_cmd_msg_alloc()
[all …]
H A Dpppt.h234 stmf_status_t pppt_lport_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
239 stmf_status_t pppt_lport_send_status(scsi_task_t *task, uint32_t ioflags);
241 void pppt_lport_task_free(scsi_task_t *task);
/titanic_41/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c615 sbp2_task_t *task = CMD2TASK(cmd); in scsa1394_sbp2_start() local
620 task->ts_timeout = cmd->sc_timeout; in scsa1394_sbp2_start()
621 task->ts_error = SBP2_TASK_ERR_NONE; in scsa1394_sbp2_start()
622 task->ts_bus_error = 0; in scsa1394_sbp2_start()
623 task->ts_state = SBP2_TASK_INIT; in scsa1394_sbp2_start()
625 ret = sbp2_ses_submit_task(lp->l_ses, task); in scsa1394_sbp2_start()
629 } if (task->ts_error == SBP2_TASK_ERR_BUS) { in scsa1394_sbp2_start()
630 if (task->ts_bus_error == CMD1394_EDEVICE_BUSY) { in scsa1394_sbp2_start()
646 scsa1394_sbp2_status_cb(void *arg, sbp2_task_t *task) in scsa1394_sbp2_status_cb() argument
723 sbp2_task_t *task; in scsa1394_sbp2_req_status() local
[all …]
/titanic_41/usr/src/cmd/perl/contrib/Sun/Solaris/Project/t/
H A DProject.t444 …[ 0, 0, { "allowunits" => 1 }, "value9:150::::task.max-lwps=(priv,1000M,deny,signal=SIGHUP),(priv,…
457 …[ 0, 0, { "allowunits" => 1 }, "rctl1:163::::task.max-lwps=(priv,1000,deny,signal=HUP),(priv,1000k…
458 [ 0, 0, {}, "rctl1:163::::task.max-lwps=(priv,1000,deny,signal=HUP),(priv,10001,deny,signal=15)" ],
480 [ 0, 0, { "allowunits" => 1 }, "rctl18:180::::task.max-cpu-time=(priv,1M,sig=SIGKILL)" ],
481 …[ 0, 0, { "allowunits" => 1 }, "rctl19:181::::task.max-lwps=(basic,10,signal=1),(priv,100,deny,sig…
495 [ 0, 0, {}, "rctl33:195::::task.max-cpu-time=(priv,2000,none)" ],
496 [ 0, 0, { "allowunits" => 1 }, "rctl34:196::::task.max-cpu-time=(priv,2000s,none)" ],
497 [ 0, 0, { "allowunits" => 1 }, "rctl35:197::::task.max-cpu-time=(priv,20.1ps,none)" ],
498 [ 0, 0, { "allowunits" => 1 }, "rctl36:198::::task.max-cpu-time=(priv,20T,none)" ],
618 [ 0, 1, {}, "rctl1:199::::task.max-lwps=," ],
[all …]
/titanic_41/usr/src/uts/common/io/comstar/port/srpt/
H A Dsrpt_stp.c64 static stmf_status_t srpt_stp_xfer_data(struct scsi_task *task,
66 stmf_status_t srpt_stp_send_status(struct scsi_task *task,
68 static void srpt_stp_task_free(struct scsi_task *task);
71 static void srpt_stp_task_poll(struct scsi_task *task);
525 srpt_stp_xfer_data(struct scsi_task *task, struct stmf_data_buf *dbuf, in srpt_stp_xfer_data() argument
542 (void *)task, (void *)dbuf); in srpt_stp_xfer_data()
543 iu = task->task_port_private; in srpt_stp_xfer_data()
829 srpt_stp_send_status(struct scsi_task *task, uint32_t ioflags) in srpt_stp_send_status() argument
834 ASSERT(task != NULL); in srpt_stp_send_status()
835 iu = task->task_port_private; in srpt_stp_send_status()
[all …]
/titanic_41/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit.c196 iscsit_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize,
1057 scsi_task_t *task = NULL; in iscsit_update_statsn() local
1074 task = itask->it_stmf_task; in iscsit_update_statsn()
1076 rsp->cmd_status = task->task_scsi_status; in iscsit_update_statsn()
1078 if (task->task_status_ctrl & TASK_SCTRL_OVER) { in iscsit_update_statsn()
1080 } else if (task->task_status_ctrl & TASK_SCTRL_UNDER) { in iscsit_update_statsn()
1083 rsp->residual_count = htonl(task->task_resid); in iscsit_update_statsn()
1435 iscsit_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize, in iscsit_dbuf_alloc() argument
1438 iscsit_task_t *itask = task->task_port_private; in iscsit_dbuf_alloc()
1511 iscsit_xfer_scsi_data(scsi_task_t *task, stmf_data_buf_t *dbuf, in iscsit_xfer_scsi_data() argument
[all …]
/titanic_41/usr/src/lib/pyzfs/common/
H A Dutil.py67 def __init__(self, eno, task=None, why=None): argument
75 self.task = task
80 if self.task:
81 s += self.task + ": "
/titanic_41/usr/src/uts/sun4v/io/
H A Dvds.c433 int (*completef)(struct vd_task *task); /* completion func ptr */
532 int (*start)(vd_task_t *task);
533 int (*complete)(vd_task_t *task);
1909 vd_task_t *task = (vd_task_t *)buf->b_private; in vd_bio_task() local
1910 vd_t *vd = task->vd; in vd_bio_task()
1968 vd_start_bio(vd_task_t *task) in vd_start_bio() argument
1971 vd_t *vd = task->vd; in vd_start_bio()
1972 vd_dring_payload_t *request = task->request; in vd_start_bio()
1973 struct buf *buf = &task->buf; in vd_start_bio()
2013 status = ldc_mem_map(task->mhdl, request->cookie, request->ncookies, in vd_start_bio()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dtask.c176 if (e->rcep_p.task == NULL) in task_lwps_test()
179 ASSERT(MUTEX_HELD(&(e->rcep_p.task->tk_zone->zone_nlwps_lock))); in task_lwps_test()
180 nlwps = e->rcep_p.task->tk_nlwps; in task_lwps_test()
194 if (e->rcep_p.task == NULL) in task_lwps_set()
197 e->rcep_p.task->tk_nlwps_ctl = nv; in task_lwps_set()
227 if (e->rcep_p.task == NULL) in task_nprocs_test()
230 ASSERT(MUTEX_HELD(&(e->rcep_p.task->tk_zone->zone_nlwps_lock))); in task_nprocs_test()
231 nprocs = e->rcep_p.task->tk_nprocs; in task_nprocs_test()
246 if (e->rcep_p.task == NULL) in task_nprocs_set()
249 e->rcep_p.task->tk_nprocs_ctl = nv; in task_nprocs_set()
[all …]
/titanic_41/usr/src/uts/common/io/comstar/port/fcoet/
H A Dfcoet_eth.c564 scsi_task_t *task; in fcoet_process_unsol_fcp_cmd() local
573 task = XCH2TASK(xch); in fcoet_process_unsol_fcp_cmd()
574 task->task_csn_size = 8; in fcoet_process_unsol_fcp_cmd()
575 task->task_max_nbufs = 1; in fcoet_process_unsol_fcp_cmd()
576 task->task_cmd_seq_no = FCOE_B2V_1(ffc->ffc_ref_num); in fcoet_process_unsol_fcp_cmd()
577 task->task_flags = FCOE_B2V_1(ffc->ffc_attribute) & 0x07; in fcoet_process_unsol_fcp_cmd()
578 task->task_flags |= in fcoet_process_unsol_fcp_cmd()
580 task->task_expected_xfer_length = FCOE_B2V_4(ffc->ffc_fcp_dl); in fcoet_process_unsol_fcp_cmd()
585 task->task_mgmt_function = TM_ABORT_TASK_SET; in fcoet_process_unsol_fcp_cmd()
587 task->task_mgmt_function = TM_CLEAR_TASK_SET; in fcoet_process_unsol_fcp_cmd()
[all …]
H A Dfcoet_fc.c743 scsi_task_t *task = CMD2TASK(cmd); in fcoet_send_status() local
750 if (task->task_scsi_status == STATUS_GOOD && !task->task_resid) { in fcoet_send_status()
755 if (task->task_scsi_status == STATUS_CHECK) { in fcoet_send_status()
756 raw_frame_size += task->task_sense_length; in fcoet_send_status()
778 if ((task->task_scsi_status == STATUS_CHECK) && in fcoet_send_status()
779 task->task_sense_length) { in fcoet_send_status()
780 bcopy(task->task_sense_data, frm->frm_payload + in fcoet_send_status()
781 sizeof (fcoe_fcp_rsp_t), task->task_sense_length); in fcoet_send_status()
790 if (task->task_scsi_status == STATUS_CHECK || task->task_resid) { in fcoet_send_status()
791 if (task->task_scsi_status == STATUS_CHECK) { in fcoet_send_status()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/stmf/
H A Dstmf.c877 struct scsi_task task; in print_tasks() local
880 if (mdb_vread(&task, sizeof (struct scsi_task), in print_tasks()
891 mdb_printf(" task_flags=%x", task.task_flags); in print_tasks()
899 mdb_printf(" lport=%p", task.task_lport); in print_tasks()
932 struct scsi_task task; in print_tasks_on_rp() local
935 if (mdb_vread(&task, sizeof (struct scsi_task), in print_tasks_on_rp()
946 mdb_printf(" task_flags=%x", task.task_flags); in print_tasks_on_rp()
954 mdb_printf(" lport=%p", task.task_lport); in print_tasks_on_rp()
1208 scsi_task_t *task_addr, task; in stmf_scsi_task() local
1248 if (mdb_vread(&task, sizeof (scsi_task_t), in stmf_scsi_task()
[all …]

1234