/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_isr.c | 2263 } sts; in ql_status_error() local 2277 sts.residual_length = sts.comp_status == CS_DATA_UNDERRUN ? in ql_status_error() 2282 sts.fcp_residual_length = sts.scsi_status_h & in ql_status_error() 2341 sts.rsp_info_length = in ql_status_error() 2352 sts.req_sense_data = in ql_status_error() 2355 sts.req_sense_length = in ql_status_error() 2377 sts.residual_length = sts.comp_status == CS_DATA_UNDERRUN ? in ql_status_error() 2382 sts.fcp_residual_length = sts.scsi_status_h & in ql_status_error() 2398 sts.rsp_info_length = in ql_status_error() 2407 sts.req_sense_length = sts.scsi_status_h & FCP_SNS_LEN_VALID ? in ql_status_error() [all …]
|
H A D | ql_xioctl.c | 2099 } sts; in ql_scsi_passthru() local 2535 sts.state_flags_h = (uint8_t)(sts.state_flags_h | in ql_scsi_passthru() 2539 sts.state_flags_h = (uint8_t)(sts.state_flags_h | in ql_scsi_passthru() 2544 sts.state_flags_l = (uint8_t)(sts.state_flags_l | in ql_scsi_passthru() 2547 sts.state_flags_l = (uint8_t)(sts.state_flags_l | in ql_scsi_passthru() 2578 sts.scsi_status_l = pkt->sts.scsi_status_l; in ql_scsi_passthru() 2579 sts.scsi_status_h = pkt->sts.scsi_status_h; in ql_scsi_passthru() 2585 sts.state_flags_l = pkt->sts.state_flags_l; in ql_scsi_passthru() 2586 sts.state_flags_h = pkt->sts.state_flags_h; in ql_scsi_passthru() 2591 sts.rsp_info = &pkt->sts.rsp_info[0]; in ql_scsi_passthru() [all …]
|
/illumos-gate/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 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() 378 sts->sts_rqpkt_statistics = 0; in smrt_set_arq_data() 383 sts->sts_sensedata.es_valid = 1; in smrt_set_arq_data() 385 sts->sts_sensedata.es_key = key; in smrt_set_arq_data() 933 bcopy(&ei->ScsiStatus, &sts->sts_status, sizeof (sts->sts_status)); in smrt_hba_complete_status() 939 sts->sts_rqpkt_resid = 0; in smrt_hba_complete_status() [all …]
|
/illumos-gate/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() 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 770 sts = pf_tlp_decode(PCIE_DIP2BUS(dip), &adv_reg); in px_pcie_epkt_severity() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_targets.c | 354 struct scope_targets *sts, *stp; in slp_destroy_target_list() local 355 for (sts = tl->scopes[i]; sts; sts = stp) { in slp_destroy_target_list() 356 stp = sts->next; in slp_destroy_target_list() 357 free(sts); in slp_destroy_target_list()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_virtio_block.c | 440 int i, sectsz, sts, sto; in pci_vtblk_init() local 459 blockif_psectsz(bctxt, &sts, &sto); in pci_vtblk_init() 526 (sts > sectsz) ? (ffsll(sts / sectsz) - 1) : 0; in pci_vtblk_init() 528 (sto != 0) ? ((sts - sto) / sectsz) : 0; in pci_vtblk_init() 534 sc->vbsc_cfg.discard_sector_alignment = MAX(sectsz, sts) / VTBLK_BSIZE; in pci_vtblk_init()
|
H A D | pci_emul.c | 1018 uint16_t sts; in pci_emul_add_capability() local 1024 sts = pci_get_cfgdata16(pi, PCIR_STATUS); in pci_emul_add_capability() 1025 if ((sts & PCIM_STATUS_CAPPRESENT) == 0) in pci_emul_add_capability() 1035 if ((sts & PCIM_STATUS_CAPPRESENT) == 0) { in pci_emul_add_capability() 1037 pci_set_cfgdata16(pi, PCIR_STATUS, sts|PCIM_STATUS_CAPPRESENT); in pci_emul_add_capability() 1370 uint16_t sts; in pci_emul_iscap() local 1372 sts = pci_get_cfgdata16(pi, PCIR_STATUS); in pci_emul_iscap() 1373 if ((sts & PCIM_STATUS_CAPPRESENT) != 0) { in pci_emul_iscap()
|
H A D | pci_passthru.c | 247 int i, ptr, capptr, cap, sts, caplen, table_size; in cfginitmsi() local 257 sts = passthru_read_config(sc, PCIR_STATUS, 2); in cfginitmsi() 258 if (sts & PCIM_STATUS_CAPPRESENT) { in cfginitmsi() 333 if ((sts & PCIM_STATUS_CAPPRESENT) != 0 && sc->psc_msi.capoff == 0) { in cfginitmsi()
|
/illumos-gate/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() 2067 switch (sts) { in pmcs_SAS_done() 2081 sts = PMCOUT_STATUS_OK; in pmcs_SAS_done() 2089 if (sts != PMCOUT_STATUS_OK) { in pmcs_SAS_done() 2123 sts = BE_32(sts); in pmcs_SAS_done() 2278 if (sts != PMCOUT_STATUS_OK) { in pmcs_SAS_done() 2621 uint32_t sts; in pmcs_SATA_done() local 2635 sts = LE_32(msg[2]); in pmcs_SATA_done() [all …]
|
/illumos-gate/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
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 1163 uint16_t sts; in iprb_rx() local 1184 sts = GETRFD16(rfd, RFD_STS_OFFSET); in iprb_rx() 1191 if (((sts & RFD_STS_OK) == 0) && (sts & RFD_STS_ERRS)) { in iprb_rx() 1602 uint8_t sts; in iprb_intr() local 1612 sts = GET8(ip, CSR_STS); in iprb_intr() 1613 if (sts == 0) { in iprb_intr() 1619 PUT8(ip, CSR_STS, sts); in iprb_intr() 1621 if (sts & (STS_RNR | STS_FR)) { in iprb_intr() 1624 if ((sts & STS_RNR) && in iprb_intr() 1642 if ((sts & (STS_CNA | STS_CX)) && ip->wantw) { in iprb_intr()
|
/illumos-gate/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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_pgr.c | 1202 scsi_prin_status_t *sts; in sbd_pgr_in_read_full_status() local 1228 sts = (scsi_prin_status_t *)offset; in sbd_pgr_in_read_full_status() 1229 SCSI_WRITE64(sts->reservation_key, key->pgr_key); in sbd_pgr_in_read_full_status() 1232 sts->r_holder = 1; in sbd_pgr_in_read_full_status() 1233 sts->type = pgr->pgr_rsv_type; in sbd_pgr_in_read_full_status() 1234 sts->scope = pgr->pgr_rsv_scope; in sbd_pgr_in_read_full_status() 1238 sts->all_tg_pt = 1; in sbd_pgr_in_read_full_status() 1240 SCSI_WRITE16(sts->rel_tgt_port_id, in sbd_pgr_in_read_full_status() 1243 SCSI_WRITE32(sts->add_len, key->pgr_key_rpt_len); in sbd_pgr_in_read_full_status()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pcie_impl.h | 137 #define PF_ERR2DDIFM_ERR(sts) \ argument 138 (sts & PF_ERR_FATAL_FLAGS ? DDI_FM_FATAL : \ 139 (sts == PF_ERR_NO_ERROR ? DDI_FM_OK : DDI_FM_NONFATAL))
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 1674 int sts = 0; in pcieb_intr_handler() local 1723 sts = pf_scan_fabric(dip, &derr, NULL); in pcieb_intr_handler() 1728 if ((pcieb_die & sts) != 0) { in pcieb_intr_handler() 1730 ddi_driver_name(dip), ddi_get_instance(dip), sts); in pcieb_intr_handler() 1733 if ((sts & ~PF_ERR_NO_ERROR) != 0) in pcieb_intr_handler()
|
H A D | pcie.c | 3375 uint16_t sts; in pcie_link_retrain() local 3377 sts = PCIE_CAP_GET(16, bus_p, PCIE_LINKSTS); in pcie_link_retrain() 3378 if ((sts & PCIE_LINKSTS_LINK_TRAINING) == 0) in pcie_link_retrain() 3391 uint16_t sts; in pcie_link_retrain() local 3393 sts = PCIE_CAP_GET(16, bus_p, PCIE_LINKSTS); in pcie_link_retrain() 3394 if ((sts & PCIE_LINKSTS_LINK_TRAINING) == 0) in pcie_link_retrain()
|
H A D | pcie_fault.c | 1960 int sts = PF_HDL_NOTFOUND; in pf_analyse_sc() local 1969 sts = pf_log_hdl_lookup(rpdip, derr, pfd_p, B_FALSE); in pf_analyse_sc() 1971 if (sts == PF_HDL_FOUND) in pf_analyse_sc()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_spt.c | 2803 int sts = 0; in segspt_shmlockop() local 2861 sts = spt_anon_getpages(sptseg, spt_addr, a_len, ppa); in segspt_shmlockop() 2862 if (sts != 0) { in segspt_shmlockop() 2865 return (sts); in segspt_shmlockop() 2875 sts = EAGAIN; in segspt_shmlockop() 2878 sts = spt_lockpages(seg, an_idx, npages, in segspt_shmlockop() 2917 sts = spt_unlockpages(seg, an_idx, npages, &unlocked); in segspt_shmlockop() 2928 return (sts); in segspt_shmlockop()
|
H A D | vm_as.c | 3616 int sts; in as_getmemid() local 3632 sts = SEGOP_GETMEMID(seg, addr, memidp); in as_getmemid() 3635 return (sts); in as_getmemid()
|
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_err.c | 1882 int sts; in px_err_wuc_ruc_handle() local 1895 sts = pf_hdl_lookup(rpdip, derr->fme_ena, adv_reg.pcie_ue_tgt_trans, in px_err_wuc_ruc_handle() 1898 if ((sts == PF_HDL_NOTFOUND) && (pxu_p->cpr_flag == PX_NOT_CPR)) in px_err_wuc_ruc_handle() 2205 int sts; in PX_ERPT_SEND_DEC() local 2236 sts = pf_tlp_decode(PCIE_DIP2BUS(rpdip), &adv_reg); in PX_ERPT_SEND_DEC() 2238 if (sts == DDI_SUCCESS) in PX_ERPT_SEND_DEC()
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_chip.c | 331 if (cmd_reg.cmd_bits.sts == SEEPROM_READY) in nge_seeprom_access() 342 cmd_reg.cmd_bits.sts = SEEPROM_READY; in nge_seeprom_access() 350 if (cmd_reg.cmd_bits.sts == SEEPROM_READY) in nge_seeprom_access() 362 cmd_reg.cmd_bits.sts = 0; in nge_seeprom_access() 372 if (cmd_reg.cmd_bits.sts == SEEPROM_READY) in nge_seeprom_access()
|
H A D | nge_chip.h | 1190 uint32_t sts:1; member
|
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/ |
H A D | fas.c | 5018 uchar_t sts, msg, intr, perr; in fas_handle_c_cmplt() local 5096 sts = fas_reg_read(fas, (uchar_t *)&fasreg->fas_fifo_data); in fas_handle_c_cmplt() 5130 sts = fas_reg_read(fas, (uchar_t *)&fasreg->fas_fifo_data); in fas_handle_c_cmplt() 5132 *(sp->cmd_pkt->pkt_scbp) = sts; in fas_handle_c_cmplt() 5135 IPRINTF1("fas_handle_cmd_cmplt: sts=%x, no msg byte\n", sts); in fas_handle_c_cmplt() 5142 sts = STATUS_CHECK; in fas_handle_c_cmplt() 5155 msg = sts = INVALID_MSG; in fas_handle_c_cmplt() 5163 EPRINTF2("fas_handle_c_cmplt: status=%x, msg=%x\n", sts, msg); in fas_handle_c_cmplt()
|