/illumos-gate/usr/src/uts/common/io/comstar/port/pppt/ |
H A D | pppt_msg.c | 254 scsi_task_t *task; local 261 * Get a task context 297 * Add task to our internal task set. 314 * Allocate STMF task context 329 task = ptask->pt_stmf_task; 332 task->task_port_private = ptask; 333 task->task_flags = scmd->icsc_task_flags; 334 task->task_additional_flags = 0; 335 task [all...] |
H A D | pppt.c | 124 static stmf_data_buf_t *pppt_dbuf_alloc(scsi_task_t *task, 141 * Lock order: global --> target --> session --> task 576 pppt_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize, argument 650 pppt_lport_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf, argument 653 pppt_task_t *pppt_task = task->task_port_private; 707 * Caller should have taken a task hold (likely via pppt_task_lookup) 725 * It's possible the task has been aborted since the time we 728 * the task may disappear. Calling pppt_task_done allows us 729 * to determine whether the task has been aborted (in which 730 * case we will stop processing and return) and mark the task 756 pppt_lport_send_status(scsi_task_t *task, uint32_t ioflags) argument 798 pppt_lport_task_free(scsi_task_t *task) argument [all...] |
H A D | alua_ic_if.c | 636 scsi_task_t *task, 643 scsi_devid_desc_t *ini_devid = task->task_session->ss_rport_id; 644 scsi_devid_desc_t *tgt_devid = task->task_lport->lport_id; 645 stmf_remote_port_t *rport = task->task_session->ss_rport; 655 icsc->icsc_session_id = task->task_session->ss_session_id; 657 if (!task->task_mgmt_function && task->task_lu->lu_id) { 658 bcopy(task->task_lu->lu_id->ident, 662 bcopy(task->task_lun_no, icsc->icsc_task_lun_no, 665 icsc->icsc_task_expected_xfer_length = task 634 stmf_ic_scsi_cmd_msg_alloc( stmf_ic_msgid_t task_msgid, scsi_task_t *task, uint32_t immed_data_len, uint8_t *immed_data, stmf_ic_msgid_t msgid) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | task.h | 36 #define TASK_NORMAL 0x0 /* task may create tasks via settaskid() */ 37 #define TASK_FINAL 0x1 /* task finalized, settaskid() will fail */ 38 #define TASK_MASK 0x1 /* task flags mask */ 52 typedef struct task { struct 53 taskid_t tk_tkid; /* task id */ 54 uint_t tk_flags; /* task properties */ 59 /* task members */ 61 task_usage_t *tk_usage; /* total task resource usage */ 64 rctl_set_t *tk_rctls; /* task's resource controls */ 69 struct zone *tk_zone; /* zone task belong [all...] |
H A D | rctl.h | 166 struct task; 175 struct task *task; member in union:rctl_entity_p_struct::__anon8851 348 struct kstat *rctl_kstat_create_task(struct task *, char *, uchar_t,
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/hsi/mcp/ |
H A D | multi_thread_def.h | 88 struct task_t task[MAX_THREAD_QUEUE]; /* The request queue. */ member in struct:tasks_queue_t
|
/illumos-gate/usr/src/uts/common/io/comstar/port/fcoet/ |
H A D | fcoet_eth.c | 564 scsi_task_t *task; local 573 task = XCH2TASK(xch); 574 task->task_csn_size = 8; 575 task->task_max_nbufs = 1; 576 task->task_cmd_seq_no = FCOE_B2V_1(ffc->ffc_ref_num); 577 task->task_flags = FCOE_B2V_1(ffc->ffc_attribute) & 0x07; 578 task->task_flags |= 580 task->task_expected_xfer_length = FCOE_B2V_4(ffc->ffc_fcp_dl); 585 task->task_mgmt_function = TM_ABORT_TASK_SET; 587 task [all...] |
H A D | fcoet_fc.c | 743 scsi_task_t *task = CMD2TASK(cmd); local 750 if (task->task_scsi_status == STATUS_GOOD && !task->task_resid) { 755 if (task->task_scsi_status == STATUS_CHECK) { 756 raw_frame_size += task->task_sense_length; 778 if ((task->task_scsi_status == STATUS_CHECK) && 779 task->task_sense_length) { 780 bcopy(task->task_sense_data, frm->frm_payload + 781 sizeof (fcoe_fcp_rsp_t), task->task_sense_length); 790 if (task [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | fork.c | 66 #include <sys/task.h> 652 * Detach failed child from task. 859 * init creates a new task, distinct from the task 874 tk_old = p->p_task; /* switch to new task */ 950 task_t *task; local 959 task = pp->p_task; 960 proj = task->tk_proj; 966 if (task->tk_nprocs >= task [all...] |
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | sbp2_driver.c | 369 /* resume task processing */ 615 sbp2_task_t *task = CMD2TASK(cmd); local 620 task->ts_timeout = cmd->sc_timeout; 621 task->ts_error = SBP2_TASK_ERR_NONE; 622 task->ts_bus_error = 0; 623 task->ts_state = SBP2_TASK_INIT; 625 ret = sbp2_ses_submit_task(lp->l_ses, task); 629 } if (task->ts_error == SBP2_TASK_ERR_BUS) { 630 if (task->ts_bus_error == CMD1394_EDEVICE_BUSY) { 641 * This function is called by SBP-2 layer when task statu 646 scsa1394_sbp2_status_cb(void *arg, sbp2_task_t *task) argument 723 sbp2_task_t *task; local 749 sbp2_task_t *task = CMD2TASK(cmd); local 907 sbp2_task_t *task; local 942 sbp2_task_t *task = CMD2TASK(cmd); local 975 sbp2_task_t *task; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | rctl.c | 32 #include <sys/task.h> 154 type = "task"; 192 * Print out all project, task, and process rctls for a given process. 201 task_t task; local 247 if (mdb_vread(&task, sizeof (task_t), (uintptr_t)proc.p_task) == -1) { 248 mdb_warn("failed to read task at %p", proc.p_task); 252 (uintptr_t)task.tk_proj) == -1) { 253 mdb_warn("failed to read proj at %p", task.tk_proj); 271 set = (uintptr_t)task.tk_rctls;
|
H A D | gcore.c | 54 #include <sys/task.h> 813 mdb_task_t task; local 843 if (mdb_ctf_vread(&task, "task_t", "mdb_task_t", p->p_task, 0) == -1) { 846 pc->pc_taskid = task.tk_tkid; 848 if (mdb_ctf_vread(&proj, "kproject_t", "mdb_kproject_t", task.tk_proj,
|
/illumos-gate/usr/src/uts/common/io/comstar/port/srpt/ |
H A D | srpt_stp.c | 64 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, argument 541 SRPT_DPRINTF_L3("stp_xfer_data, invoked task (%p), dbuf (%p)", 542 (void *)task, (void *)dbuf); 543 iu = task->task_port_private; 570 * return a bad status and let STMF abort the task. 608 * task 829 srpt_stp_send_status(struct scsi_task *task, uint32_t ioflags) argument 940 srpt_stp_task_free(struct scsi_task *task) argument 983 struct scsi_task *task; local 1027 srpt_stp_task_poll(struct scsi_task *task) argument [all...] |
H A D | srpt_ioc.c | 1193 * related task activities should be complete prior to returning 1298 srpt_ioc_ds_alloc_dbuf(struct scsi_task *task, uint32_t size, argument 1308 ASSERT(task != NULL); 1309 iu = task->task_port_private;
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_pgr.c | 89 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) argument 750 sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private; 751 stmf_scsi_session_t *ses = task->task_session; 815 sbd_pgr_reservation_conflict(scsi_task_t *task) argument 817 sbd_lu_t *slu = (sbd_lu_t *)task->task_lu->lu_provider_private; 819 sbd_it_data_t *it = (sbd_it_data_t *)task->task_lu_itl_handle; 851 task->task_cdb[0])) { 863 if (PGR_REGISTERED_POSSIBLE_CMDS(task 888 sbd_handle_pgr_in_cmd(scsi_task_t *task, stmf_data_buf_t *initial_dbuf) argument 922 sbd_handle_pgr_out_cmd(scsi_task_t *task, stmf_data_buf_t *initial_dbuf) argument 957 sbd_handle_pgr_out_data(scsi_task_t *task, stmf_data_buf_t *dbuf) argument 1064 sbd_pgr_in_read_keys(scsi_task_t *task, stmf_data_buf_t *initial_dbuf) argument 1094 sbd_pgr_in_read_reservation(scsi_task_t *task, stmf_data_buf_t *initial_dbuf) argument 1131 sbd_pgr_in_report_capabilities(scsi_task_t *task, stmf_data_buf_t *initial_dbuf) argument 1169 sbd_pgr_in_read_full_status(scsi_task_t *task, stmf_data_buf_t *initial_dbuf) argument 1232 sbd_pgr_out_register(scsi_task_t *task, stmf_data_buf_t *dbuf) argument 1460 sbd_pgr_out_reserve(scsi_task_t *task) argument 1541 sbd_pgr_out_release(scsi_task_t *task) argument 1586 sbd_pgr_out_clear(scsi_task_t *task) argument 1617 sbd_pgr_out_preempt(scsi_task_t *task, stmf_data_buf_t *dbuf) argument 1738 sbd_pgr_out_register_and_move(scsi_task_t *task, stmf_data_buf_t *dbuf) argument [all...] |
H A D | sbd_scsi.c | 90 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_ 132 sbd_do_read_xfer(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf) argument 209 sbd_do_sgl_read_xfer(struct scsi_task *task, sbd_cmd_t *scmd, int first_xfer) argument 452 sbd_handle_read_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf) argument 505 sbd_handle_sgl_read_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf) argument 594 sbd_handle_sgl_write_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf) argument 720 sbd_copy_rdwr(scsi_task_t *task, uint64_t laddr, stmf_data_buf_t *dbuf, int cmd, int commit) argument 804 sbd_handle_read(struct scsi_task *task, struct stmf_data_buf *initial_dbuf) argument 1007 sbd_do_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf, uint8_t dbuf_reusable) argument 1074 sbd_do_sgl_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd, int first_xfer) argument 1292 sbd_handle_write_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf, uint8_t dbuf_reusable) argument 1397 sbd_zcopy_write_useful(scsi_task_t *task, uint64_t laddr, uint32_t len, uint64_t blksize) argument 1424 sbd_handle_write(struct scsi_task *task, struct stmf_data_buf *initial_dbuf) argument 1586 sbd_handle_short_read_transfers(scsi_task_t *task, stmf_data_buf_t *dbuf, uint8_t *p, uint32_t cdb_xfer_size, uint32_t cmd_xfer_size) argument 1643 sbd_handle_short_read_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf) argument 1657 sbd_handle_short_write_transfers(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t cdb_xfer_size) argument 1710 sbd_handle_short_write_xfer_completion(scsi_task_t *task, stmf_data_buf_t *dbuf) argument 1771 sbd_handle_read_capacity(struct scsi_task *task, struct stmf_data_buf *initial_dbuf) argument 1838 sbd_handle_mode_sense(struct scsi_task *task, struct stmf_data_buf *initial_dbuf, uint8_t *buf) argument 1991 sbd_handle_mode_select(scsi_task_t *task, stmf_data_buf_t *dbuf) argument 2017 sbd_handle_mode_select_xfer(scsi_task_t *task, uint8_t *buf, uint32_t buflen) argument 2118 sbd_handle_identifying_info(struct scsi_task *task, stmf_data_buf_t *initial_dbuf) argument 2221 sbd_write_same_data(struct scsi_task *task, sbd_cmd_t *scmd) argument 2303 sbd_handle_write_same_xfer_completion(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf, uint8_t dbuf_reusable) argument 2373 sbd_do_write_same_xfer(struct scsi_task *task, sbd_cmd_t *scmd, struct stmf_data_buf *dbuf, uint8_t dbuf_reusable) argument 2423 sbd_handle_write_same(scsi_task_t *task, struct stmf_data_buf *initial_dbuf) argument 2547 sbd_handle_unmap(scsi_task_t *task, stmf_data_buf_t *dbuf) argument 2573 sbd_handle_unmap_xfer(scsi_task_t *task, uint8_t *buf, uint32_t buflen) argument 2614 sbd_handle_inquiry(struct scsi_task *task, struct stmf_data_buf *initial_dbuf) argument 2938 sbd_task_alloc(struct scsi_task *task) argument 3010 sbd_new_task(struct scsi_task *task, struct stmf_data_buf *initial_dbuf) argument 3431 sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf) argument 3491 sbd_send_status_done(struct scsi_task *task) argument 3498 sbd_task_free(struct scsi_task *task) argument 3523 scsi_task_t *task; local 3560 sbd_dbuf_free(struct scsi_task *task, struct stmf_data_buf *dbuf) argument 3704 sbd_handle_sync_cache(struct scsi_task *task, struct stmf_data_buf *initial_dbuf) argument [all...] |
H A D | sbd.c | 2997 sbd_data_read(sbd_lu_t *sl, struct scsi_task *task, argument 3022 scsi_task_t *, task); 3042 int, ret, scsi_task_t *, task); 3055 sbd_data_write(sbd_lu_t *sl, struct scsi_task *task, argument 3078 scsi_task_t *, task); 3098 int, ret, scsi_task_t *, task);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/stmf/ |
H A D | stmf.c | 877 struct scsi_task task; local 880 if (mdb_vread(&task, sizeof (struct scsi_task), 891 mdb_printf(" task_flags=%x", task.task_flags); 899 mdb_printf(" lport=%p", task.task_lport); 932 struct scsi_task task; local 935 if (mdb_vread(&task, sizeof (struct scsi_task), 946 mdb_printf(" task_flags=%x", task.task_flags); 954 mdb_printf(" lport=%p", task.task_lport); 1143 * worker_task_head to get the start of the task list 1152 mdb_warn("failed to read in the task addres 1208 scsi_task_t *task_addr, task; local [all...] |
/illumos-gate/usr/src/uts/common/io/idm/ |
H A D | idm.c | 261 "idm_ini_conn_destroy: Couldn't dispatch task"); 677 * transferred to the initiator associated with task 'idt'. The connection 723 * Bind buffer but don't start a transfer since the task 733 * Once the task is aborted, any buffers added to the 758 * mapped to the respective buffer by the task tags (ITT & TTT). 804 * Bind buffer but don't start a transfer since the task 859 * task. This allows us to also ignore the case where we've 860 * been asked to abort a task but the last transfer of the 861 * task has completed. IDM has no idea whether this was, in 862 * fact, the last transfer of the task s 1528 idm_task_t *task; local [all...] |
H A D | idm_so.c | 1306 * idm_so_free_task_rsrc() stops any ongoing processing of the task and 1307 * frees resources associated with the task. 1327 * In addition, remove any buffers associated with this task from 1561 * Look up the task corresponding to the initiator task tag 1562 * to get the buffers affiliated with the task. 1566 IDM_CONN_LOG(CE_WARN, "idm_so_rx_datain: failed to find task"); 1582 * repetitions. Check the DataSN with the one stored in the task. 1627 * task to get the buffers associated with the PDU. A PDU might span buffers. 1647 * Look up the task correspondin 1873 idm_task_t *task; local [all...] |
/illumos-gate/usr/src/uts/common/io/sbp2/ |
H A D | sbp2.c | 469 * Send task management request, one of: 546 sbp2_task_t *task = NULL; local 557 for (task = sp->s_task_head; task != NULL; task = task->ts_next) { 558 if (task->ts_state < SBP2_TASK_COMP) { 559 task->ts_error = SBP2_TASK_ERR_LUN_RESET; 560 task->ts_state = SBP2_TASK_COMP; 792 * their associated task set 852 sbp2_task_t *task; local 879 sbp2_task_t *task; /* task actually being submitted */ local 1010 sbp2_ses_append_task(sbp2_ses_t *sp, sbp2_task_t *task) argument 1041 sbp2_ses_remove_task_locked(sbp2_ses_t *sp, sbp2_task_t *task) argument 1068 sbp2_ses_remove_task(sbp2_ses_t *sp, sbp2_task_t *task) argument 1085 sbp2_task_t *task = NULL; local 1104 sbp2_task_t *task = NULL; local 1123 sbp2_task_t *task = NULL; local 1142 sbp2_task_t *task = NULL; local 1167 sbp2_task_t *task = NULL; local 1200 sbp2_ses_abort_task(sbp2_ses_t *sp, sbp2_task_t *task, int *berr) argument 1244 sbp2_orb_freelist_get(sbp2_lun_t *lp, sbp2_task_t *task, int len) argument 1310 sbp2_task_orb_alloc(sbp2_lun_t *lp, sbp2_task_t *task, int len) argument 1336 sbp2_task_orb_free(sbp2_lun_t *lp, sbp2_task_t *task) argument 1350 sbp2_task_orb_kaddr(sbp2_task_t *task) argument 1356 sbp2_task_orb_sync(sbp2_lun_t *lp, sbp2_task_t *task, int flags) argument 1618 sbp2_task_t *task = arg; local 1666 sbp2_task_t *task; local [all...] |
/illumos-gate/usr/src/uts/common/io/bnxe/ |
H A D | bnxe_mm.c | 1183 lm_task_cb_t task, 1188 BnxeWorkQueueAddDelayNoCopy(pUM, (void (*)(um_device_t *, void *))task, param, delay_ms); 1181 mm_schedule_task(lm_device_t * pDev, u32_t delay_ms, lm_task_cb_t task, void * param) argument
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas_impl.c | 1098 pMpi2SCSITaskManagementRequest_t task; local 1107 * Can't start another task management routine. 1110 mptsas_log(mpt, CE_WARN, "Can only start 1 task management" 1139 task = (pMpi2SCSITaskManagementRequest_t)(mpt->m_req_frame + 1141 bzero(task, mpt->m_req_frame_size); 1144 * form message for requested task 1146 mptsas_init_std_hdr(mpt->m_acc_req_frame_hdl, task, dev_handle, lun, 0, 1150 * Set the task type 1152 ddi_put8(mpt->m_acc_req_frame_hdl, &task->TaskType, task_type); 1199 * If we lost our task managemen [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/port/fct/ |
H A D | fct.c | 1095 fct_alloc_dbuf(scsi_task_t *task, uint32_t size, uint32_t *pminsize, argument 1099 task->task_lport->lport_port_private; 1106 fct_setup_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t flags) argument 1109 task->task_lport->lport_port_private; 1622 scsi_task_t *task; local 1718 if ((task = (scsi_task_t *)cmd->cmd_specific) != NULL) { 1719 task->task_port_private = cmd; 1729 fct_scsi_task_free(scsi_task_t *task) argument 1731 fct_cmd_t *cmd = (fct_cmd_t *)task->task_port_private; 1733 cmd->cmd_comp_status = task 1748 scsi_task_t *task = (scsi_task_t *)cmd->cmd_specific; local 1929 fct_xfer_scsi_data(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t ioflags) argument 1975 fct_send_scsi_status(scsi_task_t *task, uint32_t ioflags) argument 2147 scsi_task_t *task; local [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit.c | 196 iscsit_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize, 977 * before freeing the task so we don't need to 988 * STMF has already asked for this task to be aborted 1000 * Tell STMF to stop processing the task. 1072 scsi_task_t *task = NULL; local 1089 task = itask->it_stmf_task; 1091 rsp->cmd_status = task->task_scsi_status; 1093 if (task->task_status_ctrl & TASK_SCTRL_OVER) { 1095 } else if (task->task_status_ctrl & TASK_SCTRL_UNDER) { 1098 rsp->residual_count = htonl(task 1450 iscsit_dbuf_alloc(scsi_task_t *task, uint32_t size, uint32_t *pminsize, uint32_t flags) argument 1526 iscsit_xfer_scsi_data(scsi_task_t *task, stmf_data_buf_t *dbuf, uint32_t ioflags) argument 1643 iscsit_send_scsi_status(scsi_task_t *task, uint32_t ioflags) argument 1832 iscsit_lport_task_free(scsi_task_t *task) argument 1971 scsi_task_t *task; local 2348 scsi_task_t *task; local [all...] |