Home
last modified time | relevance | path

Searched refs:sts (Results 1 – 25 of 52) sorted by relevance

123

/linux-2.6.39/drivers/staging/crystalhd/
Dcrystalhd_cmds.c195 enum BC_STATUS sts = BC_STS_SUCCESS; in bc_cproc_mem_rd() local
204 sts = crystalhd_mem_rd(ctx->adp, idata->udata.u.devMem.StartOff, in bc_cproc_mem_rd()
207 return sts; in bc_cproc_mem_rd()
214 enum BC_STATUS sts = BC_STS_SUCCESS; in bc_cproc_mem_wr() local
224 sts = crystalhd_mem_wr(ctx->adp, idata->udata.u.devMem.StartOff, in bc_cproc_mem_wr()
227 return sts; in bc_cproc_mem_wr()
234 enum BC_STATUS sts = BC_STS_SUCCESS; in bc_cproc_cfg_rd() local
251 sts = crystalhd_pci_cfg_rd(ctx->adp, off, len, &temp[ix]); in bc_cproc_cfg_rd()
252 if (sts != BC_STS_SUCCESS) { in bc_cproc_cfg_rd()
253 BCMLOG_ERR("config read : %d\n", sts); in bc_cproc_cfg_rd()
[all …]
Dcrystalhd_lnx.c234 enum BC_STATUS sts = BC_STS_SUCCESS; in chd_dec_api_cmd() local
247 sts = func(&adp->cmds, temp); in chd_dec_api_cmd()
248 if (sts == BC_STS_PENDING) in chd_dec_api_cmd()
249 sts = BC_STS_NOT_IMPL; in chd_dec_api_cmd()
250 temp->udata.RetSts = sts; in chd_dec_api_cmd()
298 enum BC_STATUS sts = BC_STS_SUCCESS; in chd_dec_open() local
312 sts = crystalhd_user_open(&adp->cmds, &uc); in chd_dec_open()
313 if (sts != BC_STS_SUCCESS) { in chd_dec_open()
314 BCMLOG_ERR("cmd_user_open - %d\n", sts); in chd_dec_open()
514 enum BC_STATUS sts = BC_STS_SUCCESS; in chd_dec_pci_remove() local
[all …]
Dcrystalhd_hw.c443 #define crystalhd_hw_create_ioq(sts, hw, q, cb) \ argument
445 sts = crystalhd_create_dioq(hw->adp, &q, cb, hw); \
446 if (sts != BC_STS_SUCCESS) \
458 enum BC_STATUS sts = BC_STS_SUCCESS; in crystalhd_hw_create_ioqs() local
465 crystalhd_hw_create_ioq(sts, hw, hw->tx_freeq, in crystalhd_hw_create_ioqs()
467 crystalhd_hw_create_ioq(sts, hw, hw->tx_actq, in crystalhd_hw_create_ioqs()
470 crystalhd_hw_create_ioq(sts, hw, hw->rx_freeq, in crystalhd_hw_create_ioqs()
472 crystalhd_hw_create_ioq(sts, hw, hw->rx_rdyq, in crystalhd_hw_create_ioqs()
474 crystalhd_hw_create_ioq(sts, hw, hw->rx_actq, in crystalhd_hw_create_ioqs()
477 return sts; in crystalhd_hw_create_ioqs()
[all …]
Dcrystalhd_misc.c292 enum BC_STATUS sts = BC_STS_SUCCESS; in crystalhd_pci_cfg_rd() local
312 sts = BC_STS_INV_ARG; in crystalhd_pci_cfg_rd()
316 if (rc && (sts == BC_STS_SUCCESS)) in crystalhd_pci_cfg_rd()
317 sts = BC_STS_ERROR; in crystalhd_pci_cfg_rd()
319 return sts; in crystalhd_pci_cfg_rd()
337 enum BC_STATUS sts = BC_STS_SUCCESS; in crystalhd_pci_cfg_wr() local
357 sts = BC_STS_INV_ARG; in crystalhd_pci_cfg_wr()
361 if (rc && (sts == BC_STS_SUCCESS)) in crystalhd_pci_cfg_wr()
362 sts = BC_STS_ERROR; in crystalhd_pci_cfg_wr()
364 return sts; in crystalhd_pci_cfg_wr()
/linux-2.6.39/drivers/usb/host/whci/
Dint.c36 u32 sts; in whc_int_handler() local
38 sts = le_readl(whc->base + WUSBSTS); in whc_int_handler()
39 if (!(sts & WUSBSTS_INT_MASK)) in whc_int_handler()
41 le_writel(sts & WUSBSTS_INT_MASK, whc->base + WUSBSTS); in whc_int_handler()
43 if (sts & WUSBSTS_GEN_CMD_DONE) in whc_int_handler()
46 if (sts & WUSBSTS_HOST_ERR) in whc_int_handler()
49 if (sts & WUSBSTS_ASYNC_SCHED_SYNCED) in whc_int_handler()
52 if (sts & WUSBSTS_PERIODIC_SCHED_SYNCED) in whc_int_handler()
55 if (sts & WUSBSTS_DNTS_INT) in whc_int_handler()
62 if (sts & (WUSBSTS_INT | WUSBSTS_ERR_INT)) in whc_int_handler()
/linux-2.6.39/drivers/mfd/
Dtwl6030-irq.c106 } sts; in twl6030_irq_thread() local
112 ret = twl_i2c_read(TWL_MODULE_PIH, sts.bytes, in twl6030_irq_thread()
129 sts.bytes[3] = 0; /* Only 24 bits are valid*/ in twl6030_irq_thread()
135 if (sts.bytes[2] & 0x10) in twl6030_irq_thread()
136 sts.bytes[2] |= 0x08; in twl6030_irq_thread()
138 for (i = 0; sts.int_sts; sts.int_sts >>= 1, i++) { in twl6030_irq_thread()
140 if (sts.int_sts & 0x1) { in twl6030_irq_thread()
148 ret = twl_i2c_write(TWL_MODULE_PIH, sts.bytes, in twl6030_irq_thread()
/linux-2.6.39/drivers/pci/
Dintr_remapping.c408 u32 sts; in iommu_set_intr_remapping() local
423 readl, (sts & DMA_GSTS_IRTPS), sts); in iommu_set_intr_remapping()
439 readl, (sts & DMA_GSTS_IRES), sts); in iommu_set_intr_remapping()
478 u32 sts; in iommu_disable_intr_remapping() local
491 sts = dmar_readq(iommu->reg + DMAR_GSTS_REG); in iommu_disable_intr_remapping()
492 if (!(sts & DMA_GSTS_IRES)) in iommu_disable_intr_remapping()
499 readl, !(sts & DMA_GSTS_IRES), sts); in iommu_disable_intr_remapping()
Ddmar.c1064 u32 sts; in dmar_disable_qi() local
1072 sts = dmar_readq(iommu->reg + DMAR_GSTS_REG); in dmar_disable_qi()
1073 if (!(sts & DMA_GSTS_QIES)) in dmar_disable_qi()
1088 !(sts & DMA_GSTS_QIES), sts); in dmar_disable_qi()
1098 u32 sts; in __dmar_enable_qi() local
1116 IOMMU_WAIT_OP(iommu, DMAR_GSTS_REG, readl, (sts & DMA_GSTS_QIES), sts); in __dmar_enable_qi()
/linux-2.6.39/arch/sh/lib/
Dudivsi3_i4i-Os.S48 sts pr,r1
126 sts pr,r1
138 sts pr,r2
149 sts macl,r2
Ddiv64.S29 sts macl, r3
/linux-2.6.39/drivers/scsi/
Dqlogicpti.c1057 static int qlogicpti_return_status(struct Status_Entry *sts, int id) in DEF_SCSI_QCMD()
1061 switch (sts->completion_status) { in DEF_SCSI_QCMD()
1066 if (!(sts->state_flags & SF_GOT_BUS)) in DEF_SCSI_QCMD()
1068 else if (!(sts->state_flags & SF_GOT_TARGET)) in DEF_SCSI_QCMD()
1070 else if (!(sts->state_flags & SF_SENT_CDB)) in DEF_SCSI_QCMD()
1072 else if (!(sts->state_flags & SF_TRANSFERRED_DATA)) in DEF_SCSI_QCMD()
1074 else if (!(sts->state_flags & SF_GOT_STATUS)) in DEF_SCSI_QCMD()
1076 else if (!(sts->state_flags & SF_GOT_SENSE)) in DEF_SCSI_QCMD()
1113 id, sts->completion_status); in DEF_SCSI_QCMD()
1118 return (sts->scsi_status & STATUS_MASK) | (host_status << 16); in DEF_SCSI_QCMD()
[all …]
/linux-2.6.39/drivers/net/tulip/
Dde4x5.c1541 s32 imr, omr, sts, limit; in de4x5_interrupt() local
1557 sts = inl(DE4X5_STS); /* Read IRQ status */ in de4x5_interrupt()
1558 outl(sts, DE4X5_STS); /* Reset the board interrupts */ in de4x5_interrupt()
1560 if (!(sts & lp->irq_mask)) break;/* All done */ in de4x5_interrupt()
1563 if (sts & (STS_RI | STS_RU)) /* Rx interrupt (packet[s] arrived) */ in de4x5_interrupt()
1566 if (sts & (STS_TI | STS_TU)) /* Tx interrupt (packet sent) */ in de4x5_interrupt()
1569 if (sts & STS_LNF) { /* TP Link has failed */ in de4x5_interrupt()
1573 if (sts & STS_UNF) { /* Transmit underrun */ in de4x5_interrupt()
1577 if (sts & STS_SE) { /* Bus Error */ in de4x5_interrupt()
1580 dev->name, sts); in de4x5_interrupt()
[all …]
/linux-2.6.39/arch/sh/kernel/cpu/sh2a/
Dentry.S62 sts.l macl, @-r15
63 sts.l mach, @-r15
67 sts.l pr,@-r15
102 sts.l macl,@-r8
103 sts.l mach,@-r8
106 sts.l pr,@-r8
/linux-2.6.39/drivers/i2c/busses/
Di2c-ibm_iic.c92 in_8(&iic->cntl), in_8(&iic->mdcntl), in_8(&iic->sts), in dump_iic_regs()
150 out_8(&iic->sts, STS_SCMP | STS_IRQA); in iic_dev_init()
332 dev->idx, in_8(&iic->sts), in_8(&iic->extsts)); in iic_handler()
335 out_8(&iic->sts, STS_IRQA | STS_SCMP); in iic_handler()
349 if (unlikely(in_8(&iic->sts) & STS_ERR)){ in iic_xfer_result()
418 !(in_8(&iic->sts) & STS_PT), dev->adap.timeout); in iic_wait_for_tc()
422 else if (unlikely(in_8(&iic->sts) & STS_PT)){ in iic_wait_for_tc()
431 while (in_8(&iic->sts) & STS_PT){ in iic_wait_for_tc()
Di2c-eg20t.c590 u32 sts; in pch_i2c_cb() local
593 sts = ioread32(p + PCH_I2CSR); in pch_i2c_cb()
594 sts &= (I2CMAL_BIT | I2CMCF_BIT | I2CMIF_BIT); in pch_i2c_cb()
595 if (sts & I2CMAL_BIT) in pch_i2c_cb()
598 if (sts & I2CMCF_BIT) in pch_i2c_cb()
602 pch_clrbit(adap->pch_base_address, PCH_I2CSR, sts); in pch_i2c_cb()
/linux-2.6.39/drivers/scsi/qla2xxx/
Dqla_isr.c1273 struct sts_entry_24xx *sts = (struct sts_entry_24xx *)tsk; in qla24xx_tm_iocb_entry() local
1285 if (sts->entry_status) { in qla24xx_tm_iocb_entry()
1289 sts->entry_status)); in qla24xx_tm_iocb_entry()
1290 } else if (sts->comp_status != __constant_cpu_to_le16(CS_COMPLETE)) { in qla24xx_tm_iocb_entry()
1294 sts->comp_status)); in qla24xx_tm_iocb_entry()
1295 } else if (!(le16_to_cpu(sts->scsi_status) & in qla24xx_tm_iocb_entry()
1300 sts->scsi_status)); in qla24xx_tm_iocb_entry()
1301 } else if (le32_to_cpu(sts->rsp_data_len) < 4) { in qla24xx_tm_iocb_entry()
1305 sts->rsp_data_len)); in qla24xx_tm_iocb_entry()
1306 } else if (sts->data[3]) { in qla24xx_tm_iocb_entry()
[all …]
/linux-2.6.39/drivers/tty/serial/
Dm32r_sio.c486 unsigned int sts; in m32r_sio_interrupt() local
490 sts = sio_in(up, SIOSTS); in m32r_sio_interrupt()
491 if (sts & 0x5) { in m32r_sio_interrupt()
493 m32r_sio_handle_port(up, sts); in m32r_sio_interrupt()
503 if (sts & 0xe0) in m32r_sio_interrupt()
504 sio_error(&sts); in m32r_sio_interrupt()
588 unsigned int sts; in m32r_sio_timeout() local
590 sts = sio_in(up, SIOSTS); in m32r_sio_timeout()
591 if (sts & 0x5) { in m32r_sio_timeout()
593 m32r_sio_handle_port(up, sts); in m32r_sio_timeout()
/linux-2.6.39/drivers/usb/gadget/
Damd5536udc.c193 DBG(dev, "dev status = %08x\n", readl(&dev->regs->sts)); in print_regs()
477 tmp = readl(&ep->regs->sts); in ep_init()
479 writel(tmp, &ep->regs->sts); in ep_init()
712 bytes = readl(&ep->regs->sts); in udc_rxfifo_read()
831 complete_req(struct udc_ep *ep, struct udc_request *req, int sts) in complete_req() argument
862 req->req.status = sts; in complete_req()
868 &req->req, req->req.length, ep->ep.name, sts); in complete_req()
1544 tmp = readl(&dev->regs->sts); in udc_setup_endpoints()
1745 } else if (readl(&udc->regs->sts) in udc_timer_function()
2136 tmp = readl(&ep->regs->sts); in udc_data_out_isr()
[all …]
/linux-2.6.39/drivers/usb/image/
Dmdc800.c698 size_t left=len, sts=len; /* single transfer size */ in mdc800_device_read() local
729 sts=left > (mdc800->out_count-mdc800->out_ptr)?mdc800->out_count-mdc800->out_ptr:left; in mdc800_device_read()
731 if (sts <= 0) in mdc800_device_read()
773 sts)) { in mdc800_device_read()
777 ptr+=sts; in mdc800_device_read()
778 left-=sts; in mdc800_device_read()
779 mdc800->out_ptr+=sts; in mdc800_device_read()
/linux-2.6.39/arch/sh/kernel/cpu/sh2/
Dentry.S67 sts.l macl, @-r15
68 sts.l mach, @-r15
72 sts.l pr,@-r15
118 sts.l macl, @-r2
119 sts.l mach, @-r2
122 sts.l pr,@-r2
/linux-2.6.39/drivers/net/
Denc28j60.c862 u16 pk_ptr, int len, u16 sts) in enc28j60_dump_rsv() argument
867 RSV_GETBIT(sts, RSV_DRIBBLENIBBLE)); in enc28j60_dump_rsv()
869 " LenOutOfRange: %d\n", RSV_GETBIT(sts, RSV_RXOK), in enc28j60_dump_rsv()
870 RSV_GETBIT(sts, RSV_CRCERROR), in enc28j60_dump_rsv()
871 RSV_GETBIT(sts, RSV_LENCHECKERR), in enc28j60_dump_rsv()
872 RSV_GETBIT(sts, RSV_LENOUTOFRANGE)); in enc28j60_dump_rsv()
875 RSV_GETBIT(sts, RSV_RXMULTICAST), in enc28j60_dump_rsv()
876 RSV_GETBIT(sts, RSV_RXBROADCAST), in enc28j60_dump_rsv()
877 RSV_GETBIT(sts, RSV_RXLONGEVDROPEV), in enc28j60_dump_rsv()
878 RSV_GETBIT(sts, RSV_CARRIEREV)); in enc28j60_dump_rsv()
[all …]
/linux-2.6.39/arch/sh/kernel/
Drelocate_kernel.S37 sts.l macl, @-r15
38 sts.l mach, @-r15
42 sts.l pr, @-r15
/linux-2.6.39/drivers/input/keyboard/
Dspear-keyboard.c69 u8 sts, val; in spear_kbd_interrupt() local
71 sts = readb(kbd->io_base + STATUS_REG); in spear_kbd_interrupt()
72 if (!(sts & DATA_AVAIL)) in spear_kbd_interrupt()
/linux-2.6.39/drivers/scsi/sym53c8xx_2/
Dsym_glue.c513 int sts = 0; in sym53c8xx_queue_command_lck() local
533 sts = sym_queue_command(np, cmd); in sym53c8xx_queue_command_lck()
534 if (sts) in sym53c8xx_queue_command_lck()
600 int sts = -1; in sym_eh_handler() local
646 sts = -1; in sym_eh_handler()
649 sts = sym_abort_scsiio(np, cmd, 1); in sym_eh_handler()
652 sts = sym_reset_scsi_target(np, cmd->device->id); in sym_eh_handler()
656 sts = 0; in sym_eh_handler()
661 sts = 0; in sym_eh_handler()
668 if (sts) in sym_eh_handler()
[all …]
/linux-2.6.39/drivers/platform/x86/
Dintel_ips.c1188 u32 sts, tc1; in ips_irq_handler() local
1190 sts = thm_readl(THM_STS); in ips_irq_handler()
1193 if (sts & STS_NVV) { in ips_irq_handler()
1195 ips->core_power_limit = (sts & STS_PCPL_MASK) >> in ips_irq_handler()
1197 ips->mch_power_limit = (sts & STS_GPL_MASK) >> in ips_irq_handler()
1200 ips->cpu_turbo_enabled = !(sts & STS_PCTD_DIS); in ips_irq_handler()
1207 ips->gpu_turbo_enabled = !(sts & STS_GTD_DIS); in ips_irq_handler()
1208 ips->mcp_temp_limit = (sts & STS_PTL_MASK) >> in ips_irq_handler()

123