/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_isr.c | 2138 } sts; in ql_status_error() local 2146 sts.comp_status = (uint16_t)ddi_get16(ha->hba_buf.acc_handle, in ql_status_error() 2148 sts.scsi_status_l = pkt24->scsi_status_l; in ql_status_error() 2149 sts.scsi_status_h = pkt24->scsi_status_h; in ql_status_error() 2152 sts.residual_length = sts.comp_status == CS_DATA_UNDERRUN ? in ql_status_error() 2157 sts.fcp_residual_length = sts.scsi_status_h & in ql_status_error() 2162 if ((sts.comp_status == CS_DATA_UNDERRUN) && in ql_status_error() 2163 (sts.scsi_status_h & FCP_RESID_UNDER) && in ql_status_error() 2164 (sts.residual_length != pkt24->fcp_rsp_residual_count)) { in ql_status_error() 2167 sts.residual_length, in ql_status_error() [all …]
|
H A D | ql_xioctl.c | 1681 comp_status = (uint16_t)LE_16(pkt->sts.comp_status); in ql_fcct() 1687 if (rval != QL_SUCCESS || (pkt->sts.entry_status & 0x7e) != 0) { in ql_fcct() 1689 "es=%xh, rval=%xh\n", pkt->sts.entry_status, rval); in ql_fcct() 2014 } sts; in ql_scsi_passthru() local 2220 sts.comp_status = CS_LOOP_DOWN_ABORT; in ql_scsi_passthru() 2345 pkt->sts.entry_status = (uint8_t) in ql_scsi_passthru() 2346 (pkt->sts.entry_status & 0x7e); in ql_scsi_passthru() 2349 if (status == QL_SUCCESS && pkt->sts.entry_status != 0) { in ql_scsi_passthru() 2351 pkt->sts.entry_status, tq->d_id.b24); in ql_scsi_passthru() 2355 sts.comp_status = (uint16_t)(CFG_IST(ha, CFG_CTRL_24258081) ? in ql_scsi_passthru() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_bitmap.c | 241 int sts; in rdc_read_header() local 272 sts = rdc_ns_io(krdc->bitmapfd, NSC_RDBUF, 0, (uchar_t *)header, in rdc_read_header() 283 if (!RDC_SUCCESS(sts)) { in rdc_read_header() 285 urdc->primary.file, sts); in rdc_read_header() 291 if (!RDC_SUCCESS(sts)) in rdc_read_header() 331 int sts; in rdc_write_header() local 358 sts = rdc_ns_io(krdc->bitmapfd, rdc_wrflag, 0, (uchar_t *)header, in rdc_write_header() 370 if (!RDC_SUCCESS(sts)) { in rdc_write_header() 372 urdc->primary.file, sts); in rdc_write_header() 378 if (!RDC_SUCCESS(sts)) in rdc_write_header() [all …]
|
H A D | rdc_io.c | 3050 int sts; in _rdc_sync() local 3080 sts = _rdc_rsrv_devs(krdc, rtype, RDC_INTERNAL); in _rdc_sync() 3084 if (sts != 0) in _rdc_sync() 3264 sts = nsc_alloc_buf(RDC_U_FD(krdc), offset, len, in _rdc_sync() 3267 sts = nsc_alloc_buf(RDC_U_FD(krdc), offset, len, in _rdc_sync() 3271 if (sts > 0) { in _rdc_sync() 3283 sts = rdc_net_read(krdc->index, krdc->remote_index, in _rdc_sync() 3286 if (!RDC_SUCCESS(sts)) { in _rdc_sync() 3289 "!rdc sync: remote read failed (%d)", sts); in _rdc_sync() 3300 sts = nsc_write(handle, handle->sb_pos, in _rdc_sync() [all …]
|
H A D | rdc_diskq.c | 185 int sts; in rdc_open_diskq() local 219 sts = _rdc_rsrv_diskq(grp); in rdc_open_diskq() 220 if (!RDC_SUCCESS(sts)) { in rdc_open_diskq() 225 sts = nsc_partsize(grp->diskqfd, &size); in rdc_open_diskq() 228 if ((sts == 0) && (size < 1)) { in rdc_open_diskq()
|
/titanic_44/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_tdaemon.c | 663 int sts; in _sd_test_rwloop_seq() local 685 sts = _sd_alloc_buf((blind_t)(unsigned long)cd, 0, len, NSC_WRBUF, in _sd_test_rwloop_seq() 687 if (sts > 0) { in _sd_test_rwloop_seq() 688 cmn_err(CE_WARN, "!Buffer alloc failed %d", sts); in _sd_test_rwloop_seq() 704 sts = _sd_alloc_buf((blind_t)(unsigned long)cd, offset, len, in _sd_test_rwloop_seq() 706 if (sts > 0) { in _sd_test_rwloop_seq() 707 cmn_err(CE_WARN, "!ch%d getbuf error(WRBUF)%d", i, sts); in _sd_test_rwloop_seq() 712 sts = len; in _sd_test_rwloop_seq() 713 while (sts > 0) { in _sd_test_rwloop_seq() 714 if (forw && _sd_hwrite(buf, offset + len - sts, in _sd_test_rwloop_seq() [all …]
|
H A D | sd_bcache.c | 2068 int *sts) in _sd_allocate_buf() argument 2072 *sts = _sd_alloc_buf((blind_t)(unsigned long)cd, fba_pos, fba_len, in _sd_allocate_buf() 2074 if (*sts == NSC_HIT) in _sd_allocate_buf() 2075 *sts = NSC_DONE; in _sd_allocate_buf() 2098 int sts, stall; in _sd_prefetch_buf() local 2117 sts = EIO; in _sd_prefetch_buf() 2395 if (sts = _sd_setup_category_on_type(handle->bh_centry)) { in _sd_prefetch_buf() 2423 sts = _sd_doread(handle, ioent, io_pos, in _sd_prefetch_buf() 2425 if (sts > 0) in _sd_prefetch_buf() 2432 sts = NSC_HIT; in _sd_prefetch_buf() [all …]
|
H A D | sd_io.c | 1151 int sts, processed = 0; in _sd_process_pending() local 1169 if ((sts = cc_ent->cc_iostatus) == _SD_IO_INITIATE) { in _sd_process_pending() 1179 LINTUSED(sts); in _sd_process_pending() 1181 if ((sts != _SD_IO_DONE) && (sts != _SD_IO_FAILED)) in _sd_process_pending() 1183 BLK_TO_FBA_NUM(CENTRY_BLK(cc_ent)), 0, sts); in _sd_process_pending()
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/smrt/ |
H A D | smrt_hba.c | 358 struct scsi_arq_status *sts; in smrt_set_arq_data() local 363 sts = (struct scsi_arq_status *)(pkt->pkt_scbp); in smrt_set_arq_data() 364 bzero(sts, sizeof (*sts)); in smrt_set_arq_data() 369 sts->sts_status.sts_chk = 1; in smrt_set_arq_data() 374 sts->sts_rqpkt_reason = CMD_CMPLT; in smrt_set_arq_data() 375 sts->sts_rqpkt_resid = 0; in smrt_set_arq_data() 376 sts->sts_rqpkt_state = STATE_GOT_BUS | STATE_GOT_TARGET | in smrt_set_arq_data() 378 sts->sts_rqpkt_statistics = 0; in smrt_set_arq_data() 383 sts->sts_sensedata.es_valid = 1; in smrt_set_arq_data() 384 sts->sts_sensedata.es_class = CLASS_EXTENDED_SENSE; in smrt_set_arq_data() [all …]
|
/titanic_44/usr/src/uts/sun4v/io/px/ |
H A D | px_err.c | 679 int sts = PX_PANIC; in px_port_handle_errors() local 687 sts = (PX_PANIC); in px_port_handle_errors() 696 sts = (PX_NO_PANIC); in px_port_handle_errors() 705 sts = pf_tlp_decode(PCIE_DIP2BUS(dip), &adv_reg); in px_port_handle_errors() 710 if (!((sts == DDI_SUCCESS) || (epkt->rc_descr.M))) { in px_port_handle_errors() 712 sts = PX_NO_PANIC; in px_port_handle_errors() 720 sts = (PX_NO_PANIC); in px_port_handle_errors() 722 sts = (PX_PANIC); in px_port_handle_errors() 741 return (sts); in px_port_handle_errors() 752 int sts; in px_pcie_epkt_severity() local [all …]
|
/titanic_44/usr/src/lib/libslp/clib/ |
H A D | slp_targets.c | 356 struct scope_targets *sts, *stp; in slp_destroy_target_list() local 357 for (sts = tl->scopes[i]; sts; sts = stp) { in slp_destroy_target_list() 358 stp = sts->next; in slp_destroy_target_list() 359 free(sts); in slp_destroy_target_list()
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_scsa.c | 2013 uint32_t sts; in pmcs_SAS_done() local 2028 sts = LE_32(msg[2]); in pmcs_SAS_done() 2030 sts = 0; in pmcs_SAS_done() 2039 if (sts == PMCOUT_STATUS_ABORTED) { in pmcs_SAS_done() 2067 switch (sts) { in pmcs_SAS_done() 2073 __func__, pptr->path, sts); in pmcs_SAS_done() 2081 sts = PMCOUT_STATUS_OK; in pmcs_SAS_done() 2089 if (sts != PMCOUT_STATUS_OK) { in pmcs_SAS_done() 2090 pmcs_ioerror(pwp, SAS, pwrk, msg, sts); in pmcs_SAS_done() 2122 (void) memcpy(&sts, xd, sizeof (uint32_t)); in pmcs_SAS_done() [all …]
|
/titanic_44/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_fire.c | 51 #define FAB_FIRE_UE(fb, bit, sts, bdg) \ argument 52 FAB_FIRE_PEC_BIT(fb), PCIE_AER_UCE_ ## bit, sts, bdg 53 #define FAB_OB_UE(fb, bit, sts, bdg) \ argument 54 FAB_OB_PEC_BIT(fb), PCIE_AER_UCE_ ## bit, sts, bdg
|
/titanic_44/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 1161 uint16_t sts; in iprb_rx() local 1182 sts = GETRFD16(rfd, RFD_STS_OFFSET); in iprb_rx() 1189 if (((sts & RFD_STS_OK) == 0) && (sts & RFD_STS_ERRS)) { in iprb_rx() 1600 uint8_t sts; in iprb_intr() local 1610 sts = GET8(ip, CSR_STS); in iprb_intr() 1611 if (sts == 0) { in iprb_intr() 1617 PUT8(ip, CSR_STS, sts); in iprb_intr() 1619 if (sts & (STS_RNR | STS_FR)) { in iprb_intr() 1622 if ((sts & STS_RNR) && in iprb_intr() 1640 if ((sts & (STS_CNA | STS_CX)) && ip->wantw) { in iprb_intr()
|
/titanic_44/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu_cmn_func.c | 406 int sts, pre_sts = INST_STAT_UNCONFIGURED; in oplmsu_get_inst_status() local 417 sts = INST_STAT_ONLINE; in oplmsu_get_inst_status() 422 sts = INST_STAT_OFFLINE; in oplmsu_get_inst_status() 427 sts = INST_STAT_UNCONFIGURED; in oplmsu_get_inst_status() 429 sts = INST_STAT_BUSY; in oplmsu_get_inst_status() 432 if (pre_sts > sts) { in oplmsu_get_inst_status() 433 pre_sts = sts; in oplmsu_get_inst_status() 651 oplmsu_cmn_set_upath_sts(upath_t *upath, int sts, int prev_sts, in oplmsu_cmn_set_upath_sts() argument 658 upath->status = sts; in oplmsu_cmn_set_upath_sts()
|
H A D | oplmsu_ioctl_lrp.c | 57 int term_ioctl, term_stat, sts; in oplmsu_lrioctl_termios() local 207 sts = MSU_PSTAT_STOP; in oplmsu_lrioctl_termios() 210 sts = MSU_PSTAT_STANDBY; in oplmsu_lrioctl_termios() 213 oplmsu_cmn_set_upath_sts(stp_upath, sts, in oplmsu_lrioctl_termios()
|
/titanic_44/usr/src/uts/common/fs/sockfs/ |
H A D | nl7clogd.c | 214 nca_log_stat_t *sts = &hdr->nca_logstats; in logd_log_write() local 215 int size = sts->n_log_size + sizeof (*hdr); in logd_log_write() 228 sts->n_log_size += DEV_BSIZE - (size & (DEV_BSIZE - 1)); in logd_log_write() 229 size = sts->n_log_size + sizeof (*hdr); in logd_log_write()
|
/titanic_44/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 392 topoprop_indrule_add(indrule_t **indrp, char *sts, char *acts) in topoprop_indrule_add() argument 397 int stateslen = strlen(sts) + 1; in topoprop_indrule_add() 399 char *states = dstrdup(sts); in topoprop_indrule_add() 415 log_msg(MM_CONF, "Invalid states property `%s'\n", sts); in topoprop_indrule_add()
|
/titanic_44/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_pgr.c | 1175 scsi_prin_status_t *sts; in sbd_pgr_in_read_full_status() local 1201 sts = (scsi_prin_status_t *)offset; in sbd_pgr_in_read_full_status() 1202 SCSI_WRITE64(sts->reservation_key, key->pgr_key); in sbd_pgr_in_read_full_status() 1205 sts->r_holder = 1; in sbd_pgr_in_read_full_status() 1206 sts->type = pgr->pgr_rsv_type; in sbd_pgr_in_read_full_status() 1207 sts->scope = pgr->pgr_rsv_scope; in sbd_pgr_in_read_full_status() 1211 sts->all_tg_pt = 1; in sbd_pgr_in_read_full_status() 1213 SCSI_WRITE16(sts->rel_tgt_port_id, in sbd_pgr_in_read_full_status() 1216 SCSI_WRITE32(sts->add_len, key->pgr_key_rpt_len); in sbd_pgr_in_read_full_status()
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | pcie_impl.h | 134 #define PF_ERR2DDIFM_ERR(sts) \ argument 135 (sts & PF_ERR_FATAL_FLAGS ? DDI_FM_FATAL : \ 136 (sts == PF_ERR_NO_ERROR ? DDI_FM_OK : DDI_FM_NONFATAL))
|
/titanic_44/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_dev.c | 720 nsc_open(path, type, def, arg, sts) in nsc_open() argument 725 int *sts; 737 if (sts) 738 *sts = rc; 757 if (sts) 758 *sts = rc;
|
/titanic_44/usr/src/uts/common/vm/ |
H A D | seg_spt.c | 2675 int sts = 0; in segspt_shmlockop() local 2733 sts = spt_anon_getpages(sptseg, spt_addr, a_len, ppa); in segspt_shmlockop() 2734 if (sts != 0) { in segspt_shmlockop() 2737 return (sts); in segspt_shmlockop() 2747 sts = EAGAIN; in segspt_shmlockop() 2750 sts = spt_lockpages(seg, an_idx, npages, in segspt_shmlockop() 2789 sts = spt_unlockpages(seg, an_idx, npages, &unlocked); in segspt_shmlockop() 2800 return (sts); in segspt_shmlockop()
|
/titanic_44/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 1381 int sts = 0; in pcieb_intr_handler() local 1422 sts = pf_scan_fabric(dip, &derr, NULL); in pcieb_intr_handler() 1427 if (pcieb_die & sts) in pcieb_intr_handler() 1429 ddi_driver_name(dip), ddi_get_instance(dip), sts); in pcieb_intr_handler()
|
/titanic_44/usr/src/uts/sun4u/io/px/ |
H A D | px_err.c | 1884 int sts; in px_err_wuc_ruc_handle() local 1897 sts = pf_hdl_lookup(rpdip, derr->fme_ena, adv_reg.pcie_ue_tgt_trans, in px_err_wuc_ruc_handle() 1900 if ((sts == PF_HDL_NOTFOUND) && (pxu_p->cpr_flag == PX_NOT_CPR)) in px_err_wuc_ruc_handle() 2207 int sts; in PX_ERPT_SEND_DEC() local 2238 sts = pf_tlp_decode(PCIE_DIP2BUS(rpdip), &adv_reg); in PX_ERPT_SEND_DEC() 2240 if (sts == DDI_SUCCESS) in PX_ERPT_SEND_DEC()
|
/titanic_44/usr/src/uts/common/io/nge/ |
H A D | nge_chip.c | 327 if (cmd_reg.cmd_bits.sts == SEEPROM_READY) in nge_seeprom_access() 338 cmd_reg.cmd_bits.sts = SEEPROM_READY; in nge_seeprom_access() 346 if (cmd_reg.cmd_bits.sts == SEEPROM_READY) in nge_seeprom_access() 358 cmd_reg.cmd_bits.sts = 0; in nge_seeprom_access() 368 if (cmd_reg.cmd_bits.sts == SEEPROM_READY) in nge_seeprom_access()
|