/linux-6.12.1/include/linux/ |
D | ptp_clock_kernel.h | 184 struct ptp_system_timestamp *sts); 190 struct ptp_system_timestamp *sts); 460 static inline void ptp_read_system_prets(struct ptp_system_timestamp *sts) in ptp_read_system_prets() argument 462 if (sts) { in ptp_read_system_prets() 463 switch (sts->clockid) { in ptp_read_system_prets() 465 ktime_get_real_ts64(&sts->pre_ts); in ptp_read_system_prets() 468 ktime_get_ts64(&sts->pre_ts); in ptp_read_system_prets() 471 ktime_get_raw_ts64(&sts->pre_ts); in ptp_read_system_prets() 479 static inline void ptp_read_system_postts(struct ptp_system_timestamp *sts) in ptp_read_system_postts() argument 481 if (sts) { in ptp_read_system_postts() [all …]
|
/linux-6.12.1/drivers/input/keyboard/ |
D | applespi.c | 620 int sts) in applespi_check_write_status() argument 624 if (sts < 0) { in applespi_check_write_status() 626 sts); in applespi_check_write_status() 673 int sts; in applespi_setup_spi() local 675 sts = applespi_get_spi_settings(applespi); in applespi_setup_spi() 676 if (sts) in applespi_setup_spi() 677 return sts; in applespi_setup_spi() 766 int sts; in applespi_send_cmd_msg() local 875 sts = applespi_async(applespi, &applespi->wr_m, in applespi_send_cmd_msg() 877 if (sts) { in applespi_send_cmd_msg() [all …]
|
/linux-6.12.1/drivers/misc/eeprom/ |
D | idt_89hpesx.c | 261 s32 sts; in idt_smb_write_byte() local 275 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_byte() 277 if (sts != 0) in idt_smb_write_byte() 278 return (int)sts; in idt_smb_write_byte() 293 s32 sts; in idt_smb_read_byte() local 307 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_byte() 308 if (sts < 0) in idt_smb_read_byte() 309 return (int)sts; in idt_smb_read_byte() 311 seq->data[idx] = (u8)sts; in idt_smb_read_byte() 326 s32 sts; in idt_smb_write_word() local [all …]
|
/linux-6.12.1/drivers/rtc/ |
D | rtc-s35390a.c | 277 char buf[3], sts = 0; in s35390a_rtc_set_alarm() local 286 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 291 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 296 sts = S35390A_INT2_MODE_ALARM; in s35390a_rtc_set_alarm() 298 sts = S35390A_INT2_MODE_NOINTR; in s35390a_rtc_set_alarm() 301 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 330 char buf[3], sts; in s35390a_rtc_read_alarm() local 333 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_read_alarm() 337 if ((sts & S35390A_INT2_MODE_MASK) != S35390A_INT2_MODE_ALARM) { in s35390a_rtc_read_alarm() 387 char sts; in s35390a_rtc_ioctl() local [all …]
|
/linux-6.12.1/drivers/net/can/rcar/ |
D | rcar_canfd.c | 706 u32 sts, ch; in rcar_canfd_reset_controller() local 712 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 713 !(sts & RCANFD_GSTS_GRAMINIT), 2, 500000); in rcar_canfd_reset_controller() 725 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 726 (sts & RCANFD_GSTS_GRSTSTS), 2, 500000); in rcar_canfd_reset_controller() 748 err = readl_poll_timeout((gpriv->base + RCANFD_CSTS(ch)), sts, in rcar_canfd_reset_controller() 749 (sts & RCANFD_CSTS_CRSTSTS), in rcar_canfd_reset_controller() 949 u32 gerfl, sts; in rcar_canfd_global_error() local 958 sts = rcar_canfd_read(priv->base, in rcar_canfd_global_error() 960 if (sts & RCANFD_CFSTS_CFMLT) { in rcar_canfd_global_error() [all …]
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-amd-mp2-pci.c | 138 enum status_type sts = i2c_common->eventval.r.status; in __amd_mp2_process_event() local 150 if (sts == i2c_readcomplete_event) { in __amd_mp2_process_event() 156 } else if (sts != i2c_readfail_event) { in __amd_mp2_process_event() 157 pci_err(pdev, "invalid i2c status after read (%d)!\n", sts); in __amd_mp2_process_event() 161 if (sts == i2c_writecomplete_event) in __amd_mp2_process_event() 163 else if (sts != i2c_writefail_event) in __amd_mp2_process_event() 164 pci_err(pdev, "invalid i2c status after write (%d)!\n", sts); in __amd_mp2_process_event() 167 if (sts == i2c_busenable_complete) in __amd_mp2_process_event() 169 else if (sts != i2c_busenable_failed) in __amd_mp2_process_event() 170 pci_err(pdev, "invalid i2c status after bus enable (%d)!\n", sts); in __amd_mp2_process_event() [all …]
|
/linux-6.12.1/drivers/pci/hotplug/ |
D | pnv_php.c | 534 uint16_t sts; in pnv_php_reset_slot() local 551 pcie_capability_read_word(php_slot->pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_reset_slot() 552 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_reset_slot() 553 pcie_capability_write_word(php_slot->pdev, PCI_EXP_SLTSTA, sts); in pnv_php_reset_slot() 769 u16 sts, lsts; in pnv_php_interrupt() local 775 pcie_capability_read_word(pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_interrupt() 776 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_interrupt() 777 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, sts); in pnv_php_interrupt() 781 !!(sts & PCI_EXP_SLTSTA_DLLSC), in pnv_php_interrupt() 782 !!(sts & PCI_EXP_SLTSTA_PDC)); in pnv_php_interrupt() [all …]
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/fsi/ |
D | fsi-sbefifo.c | 99 #define sbefifo_empty(sts) ((sts) & SBEFIFO_STS_EMPTY) argument 100 #define sbefifo_full(sts) ((sts) & SBEFIFO_STS_FULL) argument 101 #define sbefifo_parity_err(sts) ((sts) & SBEFIFO_STS_PARITY_ERR) argument 102 #define sbefifo_populated(sts) (((sts) & SBEFIFO_STS_ECNT_MASK) >> SBEFIFO_STS_ECNT_SHIFT) argument 103 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts)) argument 104 #define sbefifo_eot_set(sts) (((sts) & SBEFIFO_STS_EOT_MASK) >> SBEFIFO_STS_EOT_SHIFT) argument 456 u32 addr, sts = 0; in sbefifo_wait() local 466 rc = sbefifo_regr(sbefifo, addr, &sts); in sbefifo_wait() 471 if (!up && sbefifo_parity_err(sts)) { in sbefifo_wait() 475 ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts)); in sbefifo_wait() [all …]
|
/linux-6.12.1/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()
|
D | spi-mxic.c | 350 u32 sts; in mxic_spi_data_xfer() local 359 ret = readl_poll_timeout(mxic->regs + INT_STS, sts, in mxic_spi_data_xfer() 360 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_spi_data_xfer() 366 ret = readl_poll_timeout(mxic->regs + INT_STS, sts, in mxic_spi_data_xfer() 367 sts & INT_TX_EMPTY, 0, USEC_PER_SEC); in mxic_spi_data_xfer() 371 ret = readl_poll_timeout(mxic->regs + INT_STS, sts, in mxic_spi_data_xfer() 372 sts & INT_RX_NOT_EMPTY, 0, in mxic_spi_data_xfer() 395 u32 sts; in mxic_spi_mem_dirmap_read() local 425 ret = readl_poll_timeout(mxic->regs + INT_STS, sts, in mxic_spi_mem_dirmap_read() 426 sts & INT_LRD_DIS, 0, USEC_PER_SEC); in mxic_spi_mem_dirmap_read() [all …]
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/net/ethernet/engleder/ |
D | tsnep_ptp.c | 131 struct ptp_system_timestamp *sts) in tsnep_ptp_gettimex64() argument 143 ptp_read_system_prets(sts); in tsnep_ptp_gettimex64() 145 ptp_read_system_postts(sts); in tsnep_ptp_gettimex64() 180 struct ptp_system_timestamp *sts) in tsnep_ptp_getcyclesx64() argument 192 ptp_read_system_prets(sts); in tsnep_ptp_getcyclesx64() 194 ptp_read_system_postts(sts); in tsnep_ptp_getcyclesx64()
|
/linux-6.12.1/drivers/crypto/aspeed/ |
D | aspeed-hace.c | 33 u32 sts; in aspeed_hace_irq() local 35 sts = ast_hace_read(hace_dev, ASPEED_HACE_STS); in aspeed_hace_irq() 36 ast_hace_write(hace_dev, sts, ASPEED_HACE_STS); in aspeed_hace_irq() 38 HACE_DBG(hace_dev, "irq status: 0x%x\n", sts); in aspeed_hace_irq() 40 if (sts & HACE_HASH_ISR) { in aspeed_hace_irq() 47 if (sts & HACE_CRYPTO_ISR) { in aspeed_hace_irq()
|
/linux-6.12.1/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()
|
/linux-6.12.1/sound/soc/codecs/ |
D | cs35l41-lib.c | 1433 enum cs35l41_cspl_mbox_status sts) in cs35l41_check_cspl_mbox_sts() argument 1441 return (sts == CSPL_MBOX_STS_PAUSED); in cs35l41_check_cspl_mbox_sts() 1443 return (sts == CSPL_MBOX_STS_RUNNING); in cs35l41_check_cspl_mbox_sts() 1445 return (sts == CSPL_MBOX_STS_RUNNING); in cs35l41_check_cspl_mbox_sts() 1447 return (sts == CSPL_MBOX_STS_RDY_FOR_REINIT); in cs35l41_check_cspl_mbox_sts() 1449 return (sts == CSPL_MBOX_STS_RUNNING); in cs35l41_check_cspl_mbox_sts() 1458 unsigned int sts = 0, i; in cs35l41_set_cspl_mbox_cmd() local 1473 ret = regmap_read(regmap, CS35L41_DSP_MBOX_2, &sts); in cs35l41_set_cspl_mbox_cmd() 1479 if (sts == CSPL_MBOX_STS_ERROR || sts == CSPL_MBOX_STS_ERROR2) { in cs35l41_set_cspl_mbox_cmd() 1484 if (!cs35l41_check_cspl_mbox_sts(cmd, sts)) in cs35l41_set_cspl_mbox_cmd() [all …]
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/usb/cdns3/ |
D | drd.h | 22 __le32 sts; member 43 __le32 sts; member 66 __le32 sts; member 93 __le32 sts; member
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/drivers/tty/serial/ |
D | max310x.c | 655 unsigned int sts, 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 …]
|
/linux-6.12.1/drivers/net/dsa/hirschmann/ |
D | hellcreek_ptp.c | 31 struct ptp_system_timestamp *sts) in hellcreek_ptp_clock_read() argument 49 ptp_read_system_prets(sts); in hellcreek_ptp_clock_read() 51 ptp_read_system_postts(sts); in hellcreek_ptp_clock_read() 57 struct ptp_system_timestamp *sts) in __hellcreek_ptp_gettime() argument 61 ns = hellcreek_ptp_clock_read(hellcreek, sts); in __hellcreek_ptp_gettime() 90 struct ptp_system_timestamp *sts) in hellcreek_ptp_gettimex() argument 96 ns = __hellcreek_ptp_gettime(hellcreek, sts); in hellcreek_ptp_gettimex()
|
/linux-6.12.1/drivers/input/misc/ |
D | pm8941-pwrkey.c | 151 unsigned int sts; in pm8941_pwrkey_irq() local 163 err = regmap_read(pwrkey->regmap, pwrkey->baseaddr + PON_RT_STS, &sts); in pm8941_pwrkey_irq() 167 sts &= pwrkey->data->status_bit; in pm8941_pwrkey_irq() 169 if (pwrkey->sw_debounce_time_us && !sts) in pm8941_pwrkey_irq() 177 if (!pwrkey->last_status && !sts) { in pm8941_pwrkey_irq() 181 pwrkey->last_status = sts; in pm8941_pwrkey_irq() 183 input_report_key(pwrkey->input, pwrkey->code, sts); in pm8941_pwrkey_irq()
|
/linux-6.12.1/drivers/char/ipmi/ |
D | kcs_bmc_npcm7xx.c | 61 u32 sts; member 77 { .sts = KCS1ST, .dob = KCS1DO, .dib = KCS1DI, .ctl = KCS1CTL, .ie = KCS1IE }, 78 { .sts = KCS2ST, .dob = KCS2DO, .dib = KCS2DI, .ctl = KCS2CTL, .ie = KCS2IE }, 79 { .sts = KCS3ST, .dob = KCS3DO, .dib = KCS3DI, .ctl = KCS3CTL, .ie = KCS3IE }, 196 kcs_bmc->ioreg.str = priv->reg->sts; in npcm7xx_kcs_probe()
|
/linux-6.12.1/arch/sh/lib/ |
D | udivsi3_i4i-Os.S | 27 sts pr,r1 105 sts pr,r1 117 sts pr,r2 128 sts macl,r2
|
/linux-6.12.1/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()
|