/drivers/usb/host/whci/ |
D | int.c | 35 u32 sts; in whc_int_handler() local 37 sts = le_readl(whc->base + WUSBSTS); in whc_int_handler() 38 if (!(sts & WUSBSTS_INT_MASK)) in whc_int_handler() 40 le_writel(sts & WUSBSTS_INT_MASK, whc->base + WUSBSTS); in whc_int_handler() 42 if (sts & WUSBSTS_GEN_CMD_DONE) in whc_int_handler() 45 if (sts & WUSBSTS_HOST_ERR) in whc_int_handler() 48 if (sts & WUSBSTS_ASYNC_SCHED_SYNCED) in whc_int_handler() 51 if (sts & WUSBSTS_PERIODIC_SCHED_SYNCED) in whc_int_handler() 54 if (sts & WUSBSTS_DNTS_INT) in whc_int_handler() 61 if (sts & (WUSBSTS_INT | WUSBSTS_ERR_INT)) in whc_int_handler()
|
/drivers/staging/android/fiq_debugger/ |
D | fiq_debugger_arm64.c | 162 struct stacktrace_state *sts = d; in report_trace() local 164 if (sts->depth) { in report_trace() 165 sts->output->printf(sts->output, "%pF:\n", frame->pc); in report_trace() 166 sts->output->printf(sts->output, in report_trace() 169 sts->depth--; in report_trace() 172 sts->output->printf(sts->output, " ...\n"); in report_trace() 174 return sts->depth == 0; in report_trace() 181 struct stacktrace_state sts; in fiq_debugger_dump_stacktrace() local 183 sts.depth = depth; in fiq_debugger_dump_stacktrace() 184 sts.output = output; in fiq_debugger_dump_stacktrace() [all …]
|
D | fiq_debugger_arm.c | 157 struct stacktrace_state *sts = d; in report_trace() local 159 if (sts->depth) { in report_trace() 160 sts->output->printf(sts->output, in report_trace() 164 sts->depth--; in report_trace() 167 sts->output->printf(sts->output, " ...\n"); in report_trace() 169 return sts->depth == 0; in report_trace() 210 struct stacktrace_state sts; in fiq_debugger_dump_stacktrace() local 212 sts.depth = depth; in fiq_debugger_dump_stacktrace() 213 sts.output = output; in fiq_debugger_dump_stacktrace() 233 walk_stackframe(&frame, report_trace, &sts); in fiq_debugger_dump_stacktrace()
|
/drivers/net/can/rcar/ |
D | rcar_canfd.c | 629 u32 sts, ch; in rcar_canfd_reset_controller() local 635 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 636 !(sts & RCANFD_GSTS_GRAMINIT), 2, 500000); in rcar_canfd_reset_controller() 648 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 649 (sts & RCANFD_GSTS_GRSTSTS), 2, 500000); in rcar_canfd_reset_controller() 676 err = readl_poll_timeout((gpriv->base + RCANFD_CSTS(ch)), sts, in rcar_canfd_reset_controller() 677 (sts & RCANFD_CSTS_CRSTSTS), in rcar_canfd_reset_controller() 875 u32 gerfl, sts; in rcar_canfd_global_error() local 888 sts = rcar_canfd_read(priv->base, in rcar_canfd_global_error() 890 if (sts & RCANFD_CFSTS_CFMLT) { in rcar_canfd_global_error() [all …]
|
/drivers/rtc/ |
D | rtc-s35390a.c | 261 char buf[3], sts = 0; in s35390a_set_alarm() local 270 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_set_alarm() 275 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &sts, sizeof(sts)); in s35390a_set_alarm() 280 sts = S35390A_INT2_MODE_ALARM; in s35390a_set_alarm() 282 sts = S35390A_INT2_MODE_NOINTR; in s35390a_set_alarm() 285 sts = bitrev8(sts); in s35390a_set_alarm() 288 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_set_alarm() 316 char buf[3], sts; in s35390a_read_alarm() local 319 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_read_alarm() 323 if ((bitrev8(sts) & S35390A_INT2_MODE_MASK) != S35390A_INT2_MODE_ALARM) { in s35390a_read_alarm()
|
/drivers/spi/ |
D | spi-iproc-qspi.c | 43 u32 val = 0, sts = 0; in bcm_iproc_qspi_get_l2_int_status() local 51 sts |= MSPI_DONE; in bcm_iproc_qspi_get_l2_int_status() 54 sts |= BSPI_DONE; in bcm_iproc_qspi_get_l2_int_status() 57 sts |= BSPI_ERR; in bcm_iproc_qspi_get_l2_int_status() 59 return sts; in bcm_iproc_qspi_get_l2_int_status()
|
/drivers/tty/serial/ |
D | max310x.c | 602 unsigned int sts, ch, flag; in max310x_handle_rx() local 613 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx() 615 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx() 621 if (unlikely(sts)) { in max310x_handle_rx() 622 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx() 626 } else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx() 628 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx() 630 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx() 633 sts &= port->read_status_mask; in max310x_handle_rx() 634 if (sts & MAX310X_LSR_RXBRK_BIT) in max310x_handle_rx() [all …]
|
D | m32r_sio.c | 416 unsigned int sts; in m32r_sio_interrupt() local 420 sts = sio_in(up, SIOSTS); in m32r_sio_interrupt() 421 if (sts & 0x5) { in m32r_sio_interrupt() 423 m32r_sio_handle_port(up, sts); in m32r_sio_interrupt() 433 if (sts & 0xe0) in m32r_sio_interrupt() 434 sio_error(&sts); in m32r_sio_interrupt() 518 unsigned int sts; in m32r_sio_timeout() local 520 sts = sio_in(up, SIOSTS); in m32r_sio_timeout() 521 if (sts & 0x5) { in m32r_sio_timeout() 523 m32r_sio_handle_port(up, sts); in m32r_sio_timeout()
|
/drivers/scsi/ |
D | qlogicpti.c | 1056 static int qlogicpti_return_status(struct Status_Entry *sts, int id) in DEF_SCSI_QCMD() 1060 switch (sts->completion_status) { in DEF_SCSI_QCMD() 1065 if (!(sts->state_flags & SF_GOT_BUS)) in DEF_SCSI_QCMD() 1067 else if (!(sts->state_flags & SF_GOT_TARGET)) in DEF_SCSI_QCMD() 1069 else if (!(sts->state_flags & SF_SENT_CDB)) in DEF_SCSI_QCMD() 1071 else if (!(sts->state_flags & SF_TRANSFERRED_DATA)) in DEF_SCSI_QCMD() 1073 else if (!(sts->state_flags & SF_GOT_STATUS)) in DEF_SCSI_QCMD() 1075 else if (!(sts->state_flags & SF_GOT_SENSE)) in DEF_SCSI_QCMD() 1112 id, sts->completion_status); in DEF_SCSI_QCMD() 1117 return (sts->scsi_status & STATUS_MASK) | (host_status << 16); in DEF_SCSI_QCMD() [all …]
|
/drivers/mfd/ |
D | twl6030-irq.c | 179 } sts; in twl6030_irq_thread() local 184 ret = twl_i2c_read(TWL_MODULE_PIH, sts.bytes, REG_INT_STS_A, 3); in twl6030_irq_thread() 190 sts.bytes[3] = 0; /* Only 24 bits are valid*/ in twl6030_irq_thread() 196 if (sts.bytes[2] & 0x10) in twl6030_irq_thread() 197 sts.bytes[2] |= 0x08; in twl6030_irq_thread() 199 int_sts = le32_to_cpu(sts.int_sts); in twl6030_irq_thread()
|
/drivers/pci/hotplug/ |
D | pnv_php.c | 714 u16 sts, lsts; in pnv_php_interrupt() local 720 pcie_capability_read_word(pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_interrupt() 721 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_interrupt() 722 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, sts); in pnv_php_interrupt() 723 if (sts & PCI_EXP_SLTSTA_DLLSC) { in pnv_php_interrupt() 726 } else if (sts & PCI_EXP_SLTSTA_PDC) { in pnv_php_interrupt() 730 php_slot->name, ret, sts); in pnv_php_interrupt() 760 php_slot->name, sts); in pnv_php_interrupt() 777 u16 sts, ctrl; in pnv_php_init_irq() local 789 pcie_capability_read_word(pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_init_irq() [all …]
|
/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 1543 s32 imr, omr, sts, limit; in de4x5_interrupt() local 1559 sts = inl(DE4X5_STS); /* Read IRQ status */ in de4x5_interrupt() 1560 outl(sts, DE4X5_STS); /* Reset the board interrupts */ in de4x5_interrupt() 1562 if (!(sts & lp->irq_mask)) break;/* All done */ in de4x5_interrupt() 1565 if (sts & (STS_RI | STS_RU)) /* Rx interrupt (packet[s] arrived) */ in de4x5_interrupt() 1568 if (sts & (STS_TI | STS_TU)) /* Tx interrupt (packet sent) */ in de4x5_interrupt() 1571 if (sts & STS_LNF) { /* TP Link has failed */ in de4x5_interrupt() 1575 if (sts & STS_UNF) { /* Transmit underrun */ in de4x5_interrupt() 1579 if (sts & STS_SE) { /* Bus Error */ in de4x5_interrupt() 1582 dev->name, sts); in de4x5_interrupt() [all …]
|
/drivers/scsi/esas2r/ |
D | esas2r_ioctl.c | 400 u32 sts = CSMI_STS_SUCCESS; in csmi_ioctl_callback() local 501 sts = CSMI_STS_BAD_CTRL_CODE; in csmi_ioctl_callback() 517 sts = CSMI_STS_FAILED; in csmi_ioctl_callback() 532 sts = CSMI_STS_NO_SCSI_ADDR; in csmi_ioctl_callback() 542 sts = CSMI_STS_NO_SCSI_ADDR; in csmi_ioctl_callback() 562 sts = CSMI_STS_NO_DEV_ADDR; in csmi_ioctl_callback() 581 sts = CSMI_STS_NO_DEV_ADDR; in csmi_ioctl_callback() 588 sts = CSMI_STS_FAILED; in csmi_ioctl_callback() 596 sts = CSMI_STS_BAD_CTRL_CODE; in csmi_ioctl_callback() 600 rq->func_rsp.ioctl_rsp.csmi.csmi_status = cpu_to_le32(sts); in csmi_ioctl_callback() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 96 #define qlcnic_83xx_get_lro_sts_mss(sts) ((sts) & 0xffff) argument 116 #define qlcnic_83xx_pktln(sts) ((sts >> 32) & 0x3FFF) argument 117 #define qlcnic_83xx_hndl(sts) ((sts >> 48) & 0x7FFF) argument 118 #define qlcnic_83xx_csum_status(sts) ((sts >> 39) & 7) argument 119 #define qlcnic_83xx_opcode(sts) ((sts >> 42) & 0xF) argument 120 #define qlcnic_83xx_vlan_tag(sts) (((sts) >> 48) & 0xFFFF) argument 121 #define qlcnic_83xx_lro_pktln(sts) (((sts) >> 32) & 0x3FFF) argument 122 #define qlcnic_83xx_l2_hdr_off(sts) (((sts) >> 16) & 0xFF) argument 123 #define qlcnic_83xx_l4_hdr_off(sts) (((sts) >> 24) & 0xFF) argument 124 #define qlcnic_83xx_pkt_cnt(sts) (((sts) >> 16) & 0x7) argument [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_isr.c | 1601 struct sts_entry_24xx *sts = (struct sts_entry_24xx *)tsk; in qla24xx_tm_iocb_entry() local 1612 if (sts->entry_status) { in qla24xx_tm_iocb_entry() 1615 type, sp->handle, sts->entry_status); in qla24xx_tm_iocb_entry() 1617 } else if (sts->comp_status != cpu_to_le16(CS_COMPLETE)) { in qla24xx_tm_iocb_entry() 1620 type, sp->handle, sts->comp_status); in qla24xx_tm_iocb_entry() 1622 } else if ((le16_to_cpu(sts->scsi_status) & in qla24xx_tm_iocb_entry() 1624 if (le32_to_cpu(sts->rsp_data_len) < 4) { in qla24xx_tm_iocb_entry() 1627 type, sp->handle, sts->rsp_data_len); in qla24xx_tm_iocb_entry() 1628 } else if (sts->data[3]) { in qla24xx_tm_iocb_entry() 1631 type, sp->handle, sts->data[3]); in qla24xx_tm_iocb_entry() [all …]
|
/drivers/char/tpm/ |
D | tpm_crb.c | 56 u32 sts; member 91 u8 sts = 0; in crb_status() local 95 sts |= CRB_DRV_STS_COMPLETE; in crb_status() 97 return sts; in crb_status() 109 if (ioread32(&priv->cca->sts) & CRB_CTRL_STS_ERROR) in crb_recv()
|
/drivers/i2c/busses/ |
D | i2c-ibm_iic.c | 92 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()
|
/drivers/usb/gadget/udc/ |
D | amd5536udc.c | 242 DBG(dev, "dev status = %08x\n", readl(&dev->regs->sts)); in print_regs() 525 tmp = readl(&ep->regs->sts); in ep_init() 527 writel(tmp, &ep->regs->sts); in ep_init() 780 bytes = readl(&ep->regs->sts); in udc_rxfifo_read() 1016 complete_req(struct udc_ep *ep, struct udc_request *req, int sts) in complete_req() argument 1035 req->req.status = sts; in complete_req() 1041 &req->req, req->req.length, ep->ep.name, sts); in complete_req() 1584 tmp = readl(&dev->regs->sts); in udc_setup_endpoints() 1786 } else if (readl(&udc->regs->sts) in udc_timer_function() 2134 tmp = readl(&ep->regs->sts); in udc_data_out_isr() [all …]
|
/drivers/virtio/ |
D | virtio_input.c | 15 struct virtqueue *evt, *sts; member 76 rc = virtqueue_add_outbuf(vi->sts, sg, 1, stsbuf, GFP_ATOMIC); in virtinput_send_status() 77 virtqueue_kick(vi->sts); in virtinput_send_status() 96 while ((stsbuf = virtqueue_get_buf(vi->sts, &len)) != NULL) in virtinput_recv_status() 180 vi->sts = vqs[1]; in virtinput_init_vqs() 325 while ((buf = virtqueue_detach_unused_buf(vi->sts)) != NULL) in virtinput_remove()
|
/drivers/iommu/ |
D | intel_irq_remapping.c | 457 u32 sts; in iommu_set_irq_remapping() local 470 readl, (sts & DMA_GSTS_IRTPS), sts); in iommu_set_irq_remapping() 483 u32 sts; in iommu_enable_irq_remapping() local 493 readl, (sts & DMA_GSTS_IRES), sts); in iommu_enable_irq_remapping() 500 if (sts & DMA_GSTS_CFIS) in iommu_enable_irq_remapping() 619 u32 sts; in iommu_disable_irq_remapping() local 632 sts = readl(iommu->reg + DMAR_GSTS_REG); in iommu_disable_irq_remapping() 633 if (!(sts & DMA_GSTS_IRES)) in iommu_disable_irq_remapping() 640 readl, !(sts & DMA_GSTS_IRES), sts); in iommu_disable_irq_remapping()
|
/drivers/usb/image/ |
D | mdc800.c | 696 size_t left=len, sts=len; /* single transfer size */ in mdc800_device_read() local 727 sts=left > (mdc800->out_count-mdc800->out_ptr)?mdc800->out_count-mdc800->out_ptr:left; in mdc800_device_read() 729 if (sts <= 0) in mdc800_device_read() 772 sts)) { in mdc800_device_read() 776 ptr+=sts; in mdc800_device_read() 777 left-=sts; in mdc800_device_read() 778 mdc800->out_ptr+=sts; in mdc800_device_read()
|
/drivers/usb/serial/ |
D | cp210x.c | 677 struct cp210x_comm_status *sts; in cp210x_get_tx_queue_byte_count() local 680 sts = kmalloc(sizeof(*sts), GFP_KERNEL); in cp210x_get_tx_queue_byte_count() 681 if (!sts) in cp210x_get_tx_queue_byte_count() 686 0, port_priv->bInterfaceNumber, sts, sizeof(*sts), in cp210x_get_tx_queue_byte_count() 688 if (result == sizeof(*sts)) { in cp210x_get_tx_queue_byte_count() 689 *count = le32_to_cpu(sts->ulAmountInOutQueue); in cp210x_get_tx_queue_byte_count() 697 kfree(sts); in cp210x_get_tx_queue_byte_count()
|
/drivers/net/ethernet/microchip/ |
D | enc28j60.c | 867 u16 pk_ptr, int len, u16 sts) in enc28j60_dump_rsv() argument 872 RSV_GETBIT(sts, RSV_DRIBBLENIBBLE)); in enc28j60_dump_rsv() 874 " LenOutOfRange: %d\n", RSV_GETBIT(sts, RSV_RXOK), in enc28j60_dump_rsv() 875 RSV_GETBIT(sts, RSV_CRCERROR), in enc28j60_dump_rsv() 876 RSV_GETBIT(sts, RSV_LENCHECKERR), in enc28j60_dump_rsv() 877 RSV_GETBIT(sts, RSV_LENOUTOFRANGE)); in enc28j60_dump_rsv() 880 RSV_GETBIT(sts, RSV_RXMULTICAST), in enc28j60_dump_rsv() 881 RSV_GETBIT(sts, RSV_RXBROADCAST), in enc28j60_dump_rsv() 882 RSV_GETBIT(sts, RSV_RXLONGEVDROPEV), in enc28j60_dump_rsv() 883 RSV_GETBIT(sts, RSV_CARRIEREV)); in enc28j60_dump_rsv() [all …]
|
/drivers/input/misc/ |
D | pm8941-pwrkey.c | 119 unsigned int sts; in pm8941_pwrkey_irq() local 123 pwrkey->baseaddr + PON_RT_STS, &sts); in pm8941_pwrkey_irq() 127 input_report_key(pwrkey->input, KEY_POWER, !!(sts & PON_KPDPWR_N_SET)); in pm8941_pwrkey_irq()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_glue.c | 513 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 …]
|