/kernel/linux/linux-5.10/drivers/input/keyboard/ |
D | applespi.c | 607 int sts) in applespi_check_write_status() argument 611 if (sts < 0) { in applespi_check_write_status() 613 sts); in applespi_check_write_status() 660 int sts; in applespi_setup_spi() local 662 sts = applespi_get_spi_settings(applespi); in applespi_setup_spi() 663 if (sts) in applespi_setup_spi() 664 return sts; in applespi_setup_spi() 751 int sts; in applespi_send_cmd_msg() local 860 sts = applespi_async(applespi, &applespi->wr_m, in applespi_send_cmd_msg() 862 if (sts) { in applespi_send_cmd_msg() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/eeprom/ |
D | idt_89hpesx.c | 292 s32 sts; in idt_smb_write_byte() local 306 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_byte() 308 if (sts != 0) in idt_smb_write_byte() 309 return (int)sts; in idt_smb_write_byte() 324 s32 sts; in idt_smb_read_byte() local 338 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_byte() 339 if (sts < 0) in idt_smb_read_byte() 340 return (int)sts; in idt_smb_read_byte() 342 seq->data[idx] = (u8)sts; in idt_smb_read_byte() 357 s32 sts; in idt_smb_write_word() local [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | ptp_clock_kernel.h | 138 struct ptp_system_timestamp *sts); 298 static inline void ptp_read_system_prets(struct ptp_system_timestamp *sts) in ptp_read_system_prets() argument 300 if (sts) in ptp_read_system_prets() 301 ktime_get_real_ts64(&sts->pre_ts); in ptp_read_system_prets() 304 static inline void ptp_read_system_postts(struct ptp_system_timestamp *sts) in ptp_read_system_postts() argument 306 if (sts) in ptp_read_system_postts() 307 ktime_get_real_ts64(&sts->post_ts); in ptp_read_system_postts()
|
/kernel/linux/linux-5.10/drivers/net/can/rcar/ |
D | rcar_canfd.c | 625 u32 sts, ch; in rcar_canfd_reset_controller() local 631 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 632 !(sts & RCANFD_GSTS_GRAMINIT), 2, 500000); in rcar_canfd_reset_controller() 644 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 645 (sts & RCANFD_GSTS_GRSTSTS), 2, 500000); in rcar_canfd_reset_controller() 672 err = readl_poll_timeout((gpriv->base + RCANFD_CSTS(ch)), sts, in rcar_canfd_reset_controller() 673 (sts & RCANFD_CSTS_CRSTSTS), in rcar_canfd_reset_controller() 871 u32 gerfl, sts; in rcar_canfd_global_error() local 884 sts = rcar_canfd_read(priv->base, in rcar_canfd_global_error() 886 if (sts & RCANFD_CFSTS_CFMLT) { in rcar_canfd_global_error() [all …]
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-s35390a.c | 280 char buf[3], sts = 0; in s35390a_rtc_set_alarm() local 292 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 297 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 302 sts = S35390A_INT2_MODE_ALARM; in s35390a_rtc_set_alarm() 304 sts = S35390A_INT2_MODE_NOINTR; in s35390a_rtc_set_alarm() 307 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 336 char buf[3], sts; in s35390a_rtc_read_alarm() local 339 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_read_alarm() 343 if ((sts & S35390A_INT2_MODE_MASK) != S35390A_INT2_MODE_ALARM) { in s35390a_rtc_read_alarm() 393 char sts; in s35390a_rtc_ioctl() local [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-amd-mp2-pci.c | 139 enum status_type sts = i2c_common->eventval.r.status; in __amd_mp2_process_event() local 151 if (sts == i2c_readcomplete_event) { in __amd_mp2_process_event() 157 } else if (sts != i2c_readfail_event) { in __amd_mp2_process_event() 159 "invalid i2c status after read (%d)!\n", sts); in __amd_mp2_process_event() 163 if (sts == i2c_writecomplete_event) in __amd_mp2_process_event() 165 else if (sts != i2c_writefail_event) in __amd_mp2_process_event() 167 "invalid i2c status after write (%d)!\n", sts); in __amd_mp2_process_event() 170 if (sts == i2c_busenable_complete) in __amd_mp2_process_event() 172 else if (sts != i2c_busenable_failed) in __amd_mp2_process_event() 175 sts); in __amd_mp2_process_event() [all …]
|
/kernel/linux/linux-5.10/drivers/power/reset/ |
D | piix4-poweroff.c | 31 u16 sts; in piix4_poweroff() local 35 sts = inw(io_offset + PIIX4_FUNC3IO_PMSTS); in piix4_poweroff() 36 if (!(sts & PIIX4_FUNC3IO_PMSTS_PWRBTN_STS)) in piix4_poweroff() 38 outw(sts, io_offset + PIIX4_FUNC3IO_PMSTS); in piix4_poweroff()
|
/kernel/linux/linux-5.10/drivers/fsi/ |
D | fsi-sbefifo.c | 97 #define sbefifo_empty(sts) ((sts) & SBEFIFO_STS_EMPTY) argument 98 #define sbefifo_full(sts) ((sts) & SBEFIFO_STS_FULL) argument 99 #define sbefifo_parity_err(sts) ((sts) & SBEFIFO_STS_PARITY_ERR) argument 100 #define sbefifo_populated(sts) (((sts) & SBEFIFO_STS_ECNT_MASK) >> SBEFIFO_STS_ECNT_SHIFT) argument 101 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts)) argument 102 #define sbefifo_eot_set(sts) (((sts) & SBEFIFO_STS_EOT_MASK) >> SBEFIFO_STS_EOT_SHIFT) argument 441 u32 addr, sts = 0; in sbefifo_wait() local 451 rc = sbefifo_regr(sbefifo, addr, &sts); in sbefifo_wait() 456 if (!up && sbefifo_parity_err(sts)) { in sbefifo_wait() 460 ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts)); in sbefifo_wait() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
D | pnv_php.c | 533 uint16_t sts; in pnv_php_reset_slot() local 550 pcie_capability_read_word(php_slot->pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_reset_slot() 551 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_reset_slot() 552 pcie_capability_write_word(php_slot->pdev, PCI_EXP_SLTSTA, sts); in pnv_php_reset_slot() 768 u16 sts, lsts; in pnv_php_interrupt() local 774 pcie_capability_read_word(pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_interrupt() 775 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_interrupt() 776 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, sts); in pnv_php_interrupt() 780 !!(sts & PCI_EXP_SLTSTA_DLLSC), in pnv_php_interrupt() 781 !!(sts & PCI_EXP_SLTSTA_PDC)); in pnv_php_interrupt() [all …]
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-iproc-qspi.c | 35 u32 val = 0, sts = 0; in bcm_iproc_qspi_get_l2_int_status() local 43 sts |= MSPI_DONE; in bcm_iproc_qspi_get_l2_int_status() 46 sts |= BSPI_DONE; in bcm_iproc_qspi_get_l2_int_status() 49 sts |= BSPI_ERR; in bcm_iproc_qspi_get_l2_int_status() 51 return sts; in bcm_iproc_qspi_get_l2_int_status()
|
/kernel/linux/linux-5.10/arch/x86/platform/olpc/ |
D | olpc-xo1-sci.c | 216 u32 sts; in xo1_sci_intr() local 219 sts = inl(acpi_base + CS5536_PM1_STS); in xo1_sci_intr() 220 outl(sts | 0xffff, acpi_base + CS5536_PM1_STS); in xo1_sci_intr() 225 dev_dbg(&pdev->dev, "sts %x gpe %x\n", sts, gpe); in xo1_sci_intr() 227 if (sts & CS5536_PWRBTN_FLAG) { in xo1_sci_intr() 228 if (!(sts & CS5536_WAK_FLAG)) { in xo1_sci_intr() 241 if ((sts & (CS5536_RTC_FLAG | CS5536_WAK_FLAG)) == in xo1_sci_intr() 316 u32 sts; in setup_sci_interrupt() local 344 sts = inl(acpi_base + CS5536_PM1_STS); in setup_sci_interrupt()
|
/kernel/linux/linux-5.10/drivers/char/ipmi/ |
D | kcs_bmc_npcm7xx.c | 60 u32 sts; member 74 { .sts = KCS1ST, .dob = KCS1DO, .dib = KCS1DI, .ctl = KCS1CTL, .ie = KCS1IE }, 75 { .sts = KCS2ST, .dob = KCS2DO, .dib = KCS2DI, .ctl = KCS2CTL, .ie = KCS2IE }, 76 { .sts = KCS3ST, .dob = KCS3DO, .dib = KCS3DI, .ctl = KCS3CTL, .ie = KCS3IE }, 163 kcs_bmc->ioreg.str = priv->reg->sts; in npcm7xx_kcs_probe()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | mxic_nand.c | 286 u32 sts; in mxic_nfc_isr() local 288 sts = readl(nfc->regs + INT_STS); in mxic_nfc_isr() 289 if (sts & INT_RDY_PIN) in mxic_nfc_isr() 347 u32 sts; in mxic_nfc_data_xfer() local 356 ret = readl_poll_timeout(nfc->regs + INT_STS, sts, in mxic_nfc_data_xfer() 357 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_nfc_data_xfer() 363 ret = readl_poll_timeout(nfc->regs + INT_STS, sts, in mxic_nfc_data_xfer() 364 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_nfc_data_xfer() 368 ret = readl_poll_timeout(nfc->regs + INT_STS, sts, in mxic_nfc_data_xfer() 369 sts & INT_RX_NOT_EMPTY, 0, in mxic_nfc_data_xfer()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | max310x.c | 657 unsigned int sts, ch, flag, i; in max310x_handle_rx() local 671 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx() 676 sts &= port->read_status_mask; in max310x_handle_rx() 678 if (sts & MAX310X_LSR_RXOVR_BIT) { in max310x_handle_rx() 684 uart_insert_char(port, sts, 0, one->rx_buf[i], flag); in max310x_handle_rx() 691 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, in max310x_handle_rx() 704 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx() 706 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx() 712 if (unlikely(sts)) { in max310x_handle_rx() 713 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | drd.h | 23 __le32 sts; member 44 __le32 sts; member 67 __le32 sts; member 90 __le32 sts; member
|
D | drd.c | 92 id = readl(&cdns->otg_regs->sts) & OTGSTS_ID_VALUE; in cdns3_get_id() 102 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns3_get_vbus() 169 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns3_drd_host_on() 220 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns3_drd_gadget_on() 411 state = OTGSTS_STRAP(readl(&cdns->otg_regs->sts)); in cdns3_drd_init() 440 state = readl(&cdns->otg_regs->sts); in cdns3_drd_init()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | twl6030-irq.c | 166 } sts; in twl6030_irq_thread() local 171 ret = twl_i2c_read(TWL_MODULE_PIH, sts.bytes, REG_INT_STS_A, 3); in twl6030_irq_thread() 177 sts.bytes[3] = 0; /* Only 24 bits are valid*/ in twl6030_irq_thread() 183 if (sts.bytes[2] & 0x10) in twl6030_irq_thread() 184 sts.bytes[2] |= 0x08; in twl6030_irq_thread() 186 int_sts = le32_to_cpu(sts.int_sts); in twl6030_irq_thread()
|
/kernel/linux/linux-5.10/arch/sh/lib/ |
D | udivsi3_i4i-Os.S | 27 sts pr,r1 105 sts pr,r1 117 sts pr,r2 128 sts macl,r2
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | qlogicpti.c | 1067 static int qlogicpti_return_status(struct Status_Entry *sts, int id) in DEF_SCSI_QCMD() 1071 switch (sts->completion_status) { in DEF_SCSI_QCMD() 1076 if (!(sts->state_flags & SF_GOT_BUS)) in DEF_SCSI_QCMD() 1078 else if (!(sts->state_flags & SF_GOT_TARGET)) in DEF_SCSI_QCMD() 1080 else if (!(sts->state_flags & SF_SENT_CDB)) in DEF_SCSI_QCMD() 1082 else if (!(sts->state_flags & SF_TRANSFERRED_DATA)) in DEF_SCSI_QCMD() 1084 else if (!(sts->state_flags & SF_GOT_STATUS)) in DEF_SCSI_QCMD() 1086 else if (!(sts->state_flags & SF_GOT_SENSE)) in DEF_SCSI_QCMD() 1123 id, sts->completion_status); in DEF_SCSI_QCMD() 1128 return (sts->scsi_status & STATUS_MASK) | (host_status << 16); in DEF_SCSI_QCMD() [all …]
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | irq-aspeed-scu-ic.c | 48 unsigned int sts; in aspeed_scu_ic_irq_handler() local 69 regmap_read(scu_ic->scu, scu_ic->reg, &sts); in aspeed_scu_ic_irq_handler() 70 enabled = sts & scu_ic->irq_enable; in aspeed_scu_ic_irq_handler() 71 status = (sts >> ASPEED_SCU_IC_STATUS_SHIFT) & enabled; in aspeed_scu_ic_irq_handler()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 1540 s32 imr, omr, sts, limit; in de4x5_interrupt() local 1556 sts = inl(DE4X5_STS); /* Read IRQ status */ in de4x5_interrupt() 1557 outl(sts, DE4X5_STS); /* Reset the board interrupts */ in de4x5_interrupt() 1559 if (!(sts & lp->irq_mask)) break;/* All done */ in de4x5_interrupt() 1562 if (sts & (STS_RI | STS_RU)) /* Rx interrupt (packet[s] arrived) */ in de4x5_interrupt() 1565 if (sts & (STS_TI | STS_TU)) /* Tx interrupt (packet sent) */ in de4x5_interrupt() 1568 if (sts & STS_LNF) { /* TP Link has failed */ in de4x5_interrupt() 1572 if (sts & STS_UNF) { /* Transmit underrun */ in de4x5_interrupt() 1576 if (sts & STS_SE) { /* Bus Error */ in de4x5_interrupt() 1579 dev->name, sts); in de4x5_interrupt() [all …]
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/ |
D | entry.S | 59 sts.l macl, @-r15 60 sts.l mach, @-r15 64 sts.l pr,@-r15 99 sts.l macl,@-r8 100 sts.l mach,@-r8 103 sts.l pr,@-r8
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/iommu/intel/ |
D | irq_remapping.c | 484 u32 sts; in iommu_set_irq_remapping() local 497 readl, (sts & DMA_GSTS_IRTPS), sts); in iommu_set_irq_remapping() 510 u32 sts; in iommu_enable_irq_remapping() local 518 readl, (sts & DMA_GSTS_IRES), sts); in iommu_enable_irq_remapping() 521 if (sts & DMA_GSTS_CFIS) { in iommu_enable_irq_remapping() 525 readl, !(sts & DMA_GSTS_CFIS), sts); in iommu_enable_irq_remapping() 533 if (sts & DMA_GSTS_CFIS) in iommu_enable_irq_remapping() 681 u32 sts; in iommu_disable_irq_remapping() local 694 sts = readl(iommu->reg + DMAR_GSTS_REG); in iommu_disable_irq_remapping() 695 if (!(sts & DMA_GSTS_IRES)) in iommu_disable_irq_remapping() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 95 #define qlcnic_83xx_get_lro_sts_mss(sts) ((sts) & 0xffff) argument 115 #define qlcnic_83xx_pktln(sts) ((sts >> 32) & 0x3FFF) argument 116 #define qlcnic_83xx_hndl(sts) ((sts >> 48) & 0x7FFF) argument 117 #define qlcnic_83xx_csum_status(sts) ((sts >> 39) & 7) argument 118 #define qlcnic_83xx_opcode(sts) ((sts >> 42) & 0xF) argument 119 #define qlcnic_83xx_vlan_tag(sts) (((sts) >> 48) & 0xFFFF) argument 120 #define qlcnic_83xx_lro_pktln(sts) (((sts) >> 32) & 0x3FFF) argument 121 #define qlcnic_83xx_l2_hdr_off(sts) (((sts) >> 16) & 0xFF) argument 122 #define qlcnic_83xx_l4_hdr_off(sts) (((sts) >> 24) & 0xFF) argument 123 #define qlcnic_83xx_pkt_cnt(sts) (((sts) >> 16) & 0x7) argument [all …]
|