SC 615 arch/mips/kernel/traps.c if ((opcode & OPCODE) == SC) { SC 4136 arch/powerpc/xmon/ppc-opc.c {"svc", SC(17,0,0), SC_MASK, POWER, PPCVLE, {SVC_LEV, FL1, FL2}}, SC 4137 arch/powerpc/xmon/ppc-opc.c {"svcl", SC(17,0,1), SC_MASK, POWER, PPCVLE, {SVC_LEV, FL1, FL2}}, SC 4138 arch/powerpc/xmon/ppc-opc.c {"sc", SC(17,1,0), SC_MASK, PPC, PPCVLE, {LEV}}, SC 4139 arch/powerpc/xmon/ppc-opc.c {"svca", SC(17,1,0), SC_MASK, PWRCOM, PPCVLE, {SV}}, SC 4140 arch/powerpc/xmon/ppc-opc.c {"svcla", SC(17,1,1), SC_MASK, POWER, PPCVLE, {SV}}, SC 635 drivers/infiniband/hw/hfi1/pio.c SC(CREDIT_CTRL_THRESHOLD_SHIFT)) SC 636 drivers/infiniband/hw/hfi1/pio.c & SC(CREDIT_CTRL_THRESHOLD_MASK); SC 641 drivers/infiniband/hw/hfi1/pio.c & ~SC(CREDIT_CTRL_THRESHOLD_SMASK)) SC 643 drivers/infiniband/hw/hfi1/pio.c & SC(CREDIT_CTRL_THRESHOLD_MASK)) SC 644 drivers/infiniband/hw/hfi1/pio.c << SC(CREDIT_CTRL_THRESHOLD_SHIFT)); SC 646 drivers/infiniband/hw/hfi1/pio.c SC(CREDIT_CTRL), sc->credit_ctrl); SC 670 drivers/infiniband/hw/hfi1/pio.c SC(CHECK_ENABLE), SC 766 drivers/infiniband/hw/hfi1/pio.c reg = ((sci->credits & SC(CTRL_CTXT_DEPTH_MASK)) SC 767 drivers/infiniband/hw/hfi1/pio.c << SC(CTRL_CTXT_DEPTH_SHIFT)) SC 768 drivers/infiniband/hw/hfi1/pio.c | ((sci->base & SC(CTRL_CTXT_BASE_MASK)) SC 769 drivers/infiniband/hw/hfi1/pio.c << SC(CTRL_CTXT_BASE_SHIFT)); SC 770 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CTRL), reg); SC 775 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(ERR_MASK), (u64)-1); SC 778 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CHECK_PARTITION_KEY), SC 779 drivers/infiniband/hw/hfi1/pio.c (SC(CHECK_PARTITION_KEY_VALUE_MASK) & SC 781 drivers/infiniband/hw/hfi1/pio.c SC(CHECK_PARTITION_KEY_VALUE_SHIFT)); SC 793 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CHECK_OPCODE), SC 794 drivers/infiniband/hw/hfi1/pio.c ((u64)opmask << SC(CHECK_OPCODE_MASK_SHIFT)) | SC 795 drivers/infiniband/hw/hfi1/pio.c ((u64)opval << SC(CHECK_OPCODE_VALUE_SHIFT))); SC 798 drivers/infiniband/hw/hfi1/pio.c reg = dma & SC(CREDIT_RETURN_ADDR_ADDRESS_SMASK); SC 799 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CREDIT_RETURN_ADDR), reg); SC 822 drivers/infiniband/hw/hfi1/pio.c reg = thresh << SC(CREDIT_CTRL_THRESHOLD_SHIFT); SC 825 drivers/infiniband/hw/hfi1/pio.c reg |= SC(CREDIT_CTRL_EARLY_RETURN_SMASK); SC 827 drivers/infiniband/hw/hfi1/pio.c reg |= SC(CREDIT_CTRL_EARLY_RETURN_SMASK); SC 831 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CREDIT_CTRL), reg); SC 836 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CHECK_VL), reg); SC 901 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CTRL), 0); SC 902 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CHECK_ENABLE), 0); SC 903 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(ERR_MASK), 0); SC 904 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CHECK_PARTITION_KEY), 0); SC 905 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CHECK_OPCODE), 0); SC 906 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CREDIT_RETURN_ADDR), 0); SC 907 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, hw_context, SC(CREDIT_CTRL), 0); SC 929 drivers/infiniband/hw/hfi1/pio.c reg = read_kctxt_csr(sc->dd, sc->hw_context, SC(CTRL)); SC 930 drivers/infiniband/hw/hfi1/pio.c reg &= ~SC(CTRL_CTXT_ENABLE_SMASK); SC 933 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(sc->dd, sc->hw_context, SC(CTRL), reg); SC 991 drivers/infiniband/hw/hfi1/pio.c return !!(read_kctxt_csr(dd, hw_context, SC(STATUS)) & SC 992 drivers/infiniband/hw/hfi1/pio.c SC(STATUS_CTXT_HALTED_SMASK)); SC 1093 drivers/infiniband/hw/hfi1/pio.c reg = read_kctxt_csr(dd, sc->hw_context, SC(STATUS)); SC 1094 drivers/infiniband/hw/hfi1/pio.c if (reg & SC(STATUS_CTXT_HALTED_SMASK)) SC 1302 drivers/infiniband/hw/hfi1/pio.c sc_ctrl = read_kctxt_csr(dd, sc->hw_context, SC(CTRL)); SC 1303 drivers/infiniband/hw/hfi1/pio.c if ((sc_ctrl & SC(CTRL_CTXT_ENABLE_SMASK))) SC 1325 drivers/infiniband/hw/hfi1/pio.c reg = read_kctxt_csr(dd, sc->hw_context, SC(ERR_STATUS)); SC 1327 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, sc->hw_context, SC(ERR_CLEAR), reg); SC 1362 drivers/infiniband/hw/hfi1/pio.c sc_ctrl |= SC(CTRL_CTXT_ENABLE_SMASK); SC 1363 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, sc->hw_context, SC(CTRL), sc_ctrl); SC 1368 drivers/infiniband/hw/hfi1/pio.c read_kctxt_csr(dd, sc->hw_context, SC(CTRL)); SC 1384 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE), SC 1385 drivers/infiniband/hw/hfi1/pio.c SC(CREDIT_FORCE_FORCE_RETURN_SMASK)); SC 1390 drivers/infiniband/hw/hfi1/pio.c read_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE)); SC 1392 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE), 0); SC 1557 drivers/infiniband/hw/hfi1/pio.c sc->credit_ctrl |= SC(CREDIT_CTRL_CREDIT_INTR_SMASK); SC 1559 drivers/infiniband/hw/hfi1/pio.c SC(CREDIT_CTRL), sc->credit_ctrl); SC 1579 drivers/infiniband/hw/hfi1/pio.c sc->credit_ctrl &= ~SC(CREDIT_CTRL_CREDIT_INTR_SMASK); SC 1581 drivers/infiniband/hw/hfi1/pio.c SC(CREDIT_CTRL), sc->credit_ctrl); SC 2066 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, ctxt, SC(CHECK_VL), mask); SC 2075 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, ctxt, SC(CHECK_VL), mask); SC 2081 drivers/infiniband/hw/hfi1/pio.c write_kctxt_csr(dd, ctxt, SC(CHECK_VL), mask); SC 2177 drivers/infiniband/hw/hfi1/pio.c reg = read_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_STATUS)); SC 2181 drivers/infiniband/hw/hfi1/pio.c (reg >> SC(CREDIT_STATUS_CURRENT_FREE_COUNTER_SHIFT)) & SC 2182 drivers/infiniband/hw/hfi1/pio.c SC(CREDIT_STATUS_CURRENT_FREE_COUNTER_MASK), SC 2183 drivers/infiniband/hw/hfi1/pio.c reg & SC(CREDIT_STATUS_LAST_RETURNED_COUNTER_SMASK)); SC 433 drivers/media/usb/gspca/w996Xcf.c fw = SC(sd->gspca_dev.pixfmt.width) / max_width; SC 434 drivers/media/usb/gspca/w996Xcf.c fh = SC(sd->gspca_dev.pixfmt.height) / max_height; SC 436 drivers/media/usb/gspca/w996Xcf.c cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; SC 437 drivers/media/usb/gspca/w996Xcf.c ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height; SC 634 drivers/scsi/aha152x.c static inline void append_SC(struct scsi_cmnd **SC, struct scsi_cmnd *new_SC) SC 639 drivers/scsi/aha152x.c if (!*SC) SC 640 drivers/scsi/aha152x.c *SC = new_SC; SC 642 drivers/scsi/aha152x.c for (end = *SC; SCNEXT(end); end = SCNEXT(end)) SC 648 drivers/scsi/aha152x.c static inline struct scsi_cmnd *remove_first_SC(struct scsi_cmnd ** SC) SC 652 drivers/scsi/aha152x.c ptr = *SC; SC 654 drivers/scsi/aha152x.c *SC = SCNEXT(*SC); SC 660 drivers/scsi/aha152x.c static inline struct scsi_cmnd *remove_lun_SC(struct scsi_cmnd ** SC, SC 665 drivers/scsi/aha152x.c for (ptr = *SC, prev = NULL; SC 674 drivers/scsi/aha152x.c *SC = SCNEXT(ptr); SC 682 drivers/scsi/aha152x.c static inline struct scsi_cmnd *remove_SC(struct scsi_cmnd **SC, SC 687 drivers/scsi/aha152x.c for (ptr = *SC, prev = NULL; SC 696 drivers/scsi/aha152x.c *SC = SCNEXT(ptr); SC 775 drivers/scsi/ips.c int ips_eh_abort(struct scsi_cmnd *SC) SC 784 drivers/scsi/ips.c if (!SC) SC 787 drivers/scsi/ips.c host = SC->device->host; SC 788 drivers/scsi/ips.c ha = (ips_ha_t *) SC->device->host->hostdata; SC 800 drivers/scsi/ips.c while ((item) && (item->scsi_cmd != SC)) SC 809 drivers/scsi/ips.c } else if (ips_removeq_wait(&ha->scb_waitlist, SC)) { SC 832 drivers/scsi/ips.c static int __ips_eh_reset(struct scsi_cmnd *SC) SC 846 drivers/scsi/ips.c if (!SC) { SC 852 drivers/scsi/ips.c ha = (ips_ha_t *) SC->device->host->hostdata; SC 865 drivers/scsi/ips.c while ((item) && (item->scsi_cmd != SC)) SC 875 drivers/scsi/ips.c if (ips_removeq_wait(&ha->scb_waitlist, SC)) { SC 1015 drivers/scsi/ips.c static int ips_eh_reset(struct scsi_cmnd *SC) SC 1019 drivers/scsi/ips.c spin_lock_irq(SC->device->host->host_lock); SC 1020 drivers/scsi/ips.c rc = __ips_eh_reset(SC); SC 1021 drivers/scsi/ips.c spin_unlock_irq(SC->device->host->host_lock); SC 1038 drivers/scsi/ips.c static int ips_queue_lck(struct scsi_cmnd *SC, void (*done) (struct scsi_cmnd *)) SC 1045 drivers/scsi/ips.c ha = (ips_ha_t *) SC->device->host->hostdata; SC 1053 drivers/scsi/ips.c if (ips_is_passthru(SC)) { SC 1055 drivers/scsi/ips.c SC->result = DID_BUS_BUSY << 16; SC 1056 drivers/scsi/ips.c done(SC); SC 1061 drivers/scsi/ips.c SC->result = DID_BUS_BUSY << 16; SC 1062 drivers/scsi/ips.c done(SC); SC 1067 drivers/scsi/ips.c SC->scsi_done = done; SC 1072 drivers/scsi/ips.c SC->cmnd[0], SC 1073 drivers/scsi/ips.c SC->device->channel, SC->device->id, SC->device->lun); SC 1076 drivers/scsi/ips.c if ((scmd_channel(SC) > 0) SC 1077 drivers/scsi/ips.c && (scmd_id(SC) == ha->ha_id[scmd_channel(SC)])) { SC 1078 drivers/scsi/ips.c SC->result = DID_NO_CONNECT << 16; SC 1079 drivers/scsi/ips.c done(SC); SC 1084 drivers/scsi/ips.c if (ips_is_passthru(SC)) { SC 1091 drivers/scsi/ips.c pt = (ips_passthru_t *) scsi_sglist(SC); SC 1095 drivers/scsi/ips.c SC->result = DID_BUS_BUSY << 16; SC 1096 drivers/scsi/ips.c done(SC); SC 1100 drivers/scsi/ips.c __ips_eh_reset(SC); SC 1101 drivers/scsi/ips.c SC->result = DID_OK << 16; SC 1102 drivers/scsi/ips.c SC->scsi_done(SC); SC 1110 drivers/scsi/ips.c SC->result = DID_ERROR << 16; SC 1111 drivers/scsi/ips.c done(SC); SC 1116 drivers/scsi/ips.c scratch->scsi_cmd = SC; SC 1121 drivers/scsi/ips.c ips_putq_wait_tail(&ha->scb_waitlist, SC); SC 1482 drivers/scsi/ips.c static int ips_is_passthru(struct scsi_cmnd *SC) SC 1488 drivers/scsi/ips.c if (!SC) SC 1491 drivers/scsi/ips.c if ((SC->cmnd[0] == IPS_IOCTL_COMMAND) && SC 1492 drivers/scsi/ips.c (SC->device->channel == 0) && SC 1493 drivers/scsi/ips.c (SC->device->id == IPS_ADAPTER_ID) && SC 1494 drivers/scsi/ips.c (SC->device->lun == 0) && scsi_sglist(SC)) { SC 1495 drivers/scsi/ips.c struct scatterlist *sg = scsi_sglist(SC); SC 1557 drivers/scsi/ips.c ips_make_passthru(ips_ha_t *ha, struct scsi_cmnd *SC, ips_scb_t *scb, int intr) SC 1562 drivers/scsi/ips.c struct scatterlist *sg = scsi_sglist(SC); SC 1566 drivers/scsi/ips.c scsi_for_each_sg(SC, sg, scsi_sg_count(SC), i) SC 1580 drivers/scsi/ips.c ips_scmd_buf_read(SC, pt, sizeof (ips_passthru_t)); SC 1583 drivers/scsi/ips.c ips_scmd_buf_write(SC, pt, sizeof (ips_passthru_t)); SC 1589 drivers/scsi/ips.c ips_scmd_buf_read(SC, ha->ioctl_data, ha->ioctl_datasize); SC 1606 drivers/scsi/ips.c ips_scmd_buf_write(SC, ha->ioctl_data, SC 1608 drivers/scsi/ips.c SC->result = DID_OK << 16; SC 1614 drivers/scsi/ips.c if (SC->cmnd[0] == IPS_IOCTL_COMMAND) { SC 1628 drivers/scsi/ips.c ips_scmd_buf_write(SC, ha->ioctl_data, SC 2525 drivers/scsi/ips.c struct scsi_cmnd *SC; SC 2639 drivers/scsi/ips.c SC = ips_removeq_wait(&ha->scb_waitlist, q); SC 2644 drivers/scsi/ips.c SC->result = DID_OK; SC 2645 drivers/scsi/ips.c SC->host_scribble = NULL; SC 2647 drivers/scsi/ips.c scb->target_id = SC->device->id; SC 2648 drivers/scsi/ips.c scb->lun = SC->device->lun; SC 2649 drivers/scsi/ips.c scb->bus = SC->device->channel; SC 2650 drivers/scsi/ips.c scb->scsi_cmd = SC; SC 2658 drivers/scsi/ips.c memcpy(scb->cdb, SC->cmnd, SC->cmd_len); SC 2660 drivers/scsi/ips.c scb->sg_count = scsi_dma_map(SC); SC 2668 drivers/scsi/ips.c scsi_for_each_sg(SC, sg, scb->sg_count, i) {