/kernel/linux/linux-5.10/drivers/misc/eeprom/ |
H A 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 406 s32 sts; idt_smb_read_word() local 480 s32 sts; idt_smb_read_block() local 541 s32 sts; idt_smb_read_i2c_block() local [all...] |
/kernel/linux/linux-6.6/drivers/misc/eeprom/ |
H A 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 375 s32 sts; idt_smb_read_word() local 449 s32 sts; idt_smb_read_block() local 510 s32 sts; idt_smb_read_i2c_block() local [all...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | applespi.c | 607 int sts) in applespi_check_write_status() 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() 606 applespi_check_write_status(struct applespi_data *applespi, int sts) applespi_check_write_status() argument 893 int sts; applespi_set_capsl_led() local 1216 int sts; applespi_register_touchpad_device() local 1560 int sts; applespi_notify() local 1588 int sts; applespi_get_saved_bl_level() local 1617 int sts; applespi_save_bl_level() local 1638 int sts, i; applespi_probe() local 1885 int sts; applespi_suspend() local [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | applespi.c | 620 int sts) in applespi_check_write_status() 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() 619 applespi_check_write_status(struct applespi_data *applespi, int sts) applespi_check_write_status() argument 908 int sts; applespi_set_capsl_led() local 1231 int sts; applespi_register_touchpad_device() local 1575 int sts; applespi_notify() local 1600 efi_status_t sts = EFI_NOT_FOUND; applespi_get_saved_bl_level() local 1618 efi_status_t sts = EFI_UNSUPPORTED; applespi_save_bl_level() local 1639 int sts, i; applespi_probe() local 1884 int sts; applespi_suspend() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | ptp_clock_kernel.h | 82 * parameter sts: If not NULL, it holds a pair of timestamps from 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-6.6/include/linux/ |
H A D | ptp_clock_kernel.h | 100 * parameter sts: If not NULL, it holds a pair of timestamps from 126 * parameter sts: If not NULL, it holds a pair of timestamps 182 struct ptp_system_timestamp *sts); 188 struct ptp_system_timestamp *sts); 455 static inline void ptp_read_system_prets(struct ptp_system_timestamp *sts) in ptp_read_system_prets() argument 457 if (sts) in ptp_read_system_prets() 458 ktime_get_real_ts64(&sts->pre_ts); in ptp_read_system_prets() 461 static inline void ptp_read_system_postts(struct ptp_system_timestamp *sts) in ptp_read_system_postts() argument 463 if (sts) in ptp_read_system_postts() 464 ktime_get_real_ts64(&sts in ptp_read_system_postts() [all...] |
/kernel/linux/linux-6.6/drivers/net/can/rcar/ |
H A D | rcar_canfd.c | 712 u32 sts, ch; in rcar_canfd_reset_controller() local 718 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 719 !(sts & RCANFD_GSTS_GRAMINIT), 2, 500000); in rcar_canfd_reset_controller() 731 err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts, in rcar_canfd_reset_controller() 732 (sts & RCANFD_GSTS_GRSTSTS), 2, 500000); in rcar_canfd_reset_controller() 754 err = readl_poll_timeout((gpriv->base + RCANFD_CSTS(ch)), sts, in rcar_canfd_reset_controller() 755 (sts & RCANFD_CSTS_CRSTSTS), in rcar_canfd_reset_controller() 955 u32 gerfl, sts; in rcar_canfd_global_error() local 964 sts = rcar_canfd_read(priv->base, in rcar_canfd_global_error() 966 if (sts in rcar_canfd_global_error() 1115 u32 sts; rcar_canfd_tx_done() local 1176 u32 sts, cc; rcar_canfd_handle_global_receive() local 1254 u32 sts; rcar_canfd_handle_channel_tx() local 1277 u32 sts, cerfl; rcar_canfd_handle_channel_err() local 1379 u32 sts, ch = priv->channel; rcar_canfd_start() local 1457 u32 sts, ch = priv->channel; rcar_canfd_stop() local 1501 u32 sts = 0, id, dlc; rcar_canfd_start_xmit() local 1575 u32 sts = 0, id, dlc; rcar_canfd_rx_pkt() local 1653 u32 sts; rcar_canfd_rx_poll() local 1854 u32 sts, ch, fcan_freq; rcar_canfd_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/net/can/rcar/ |
H A 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 in rcar_canfd_global_error() 1036 u32 sts; rcar_canfd_tx_done() local 1078 u32 sts, cc, gerfl; rcar_canfd_global_interrupt() local 1149 u32 sts, ch, cerfl; rcar_canfd_channel_interrupt() local 1231 u32 sts, ch = priv->channel; rcar_canfd_start() local 1302 u32 sts, ch = priv->channel; rcar_canfd_stop() local 1345 u32 sts = 0, id, dlc; rcar_canfd_start_xmit() local 1419 u32 sts = 0, id, dlc; rcar_canfd_rx_pkt() local 1493 u32 sts; rcar_canfd_rx_poll() local 1636 u32 sts, ch, fcan_freq; rcar_canfd_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A 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 393 char sts; s35390a_rtc_ioctl() local [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-s35390a.c | 278 char buf[3], sts = 0; in s35390a_rtc_set_alarm() local 287 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 292 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 297 sts = S35390A_INT2_MODE_ALARM; in s35390a_rtc_set_alarm() 299 sts = S35390A_INT2_MODE_NOINTR; in s35390a_rtc_set_alarm() 302 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm() 331 char buf[3], sts; in s35390a_rtc_read_alarm() local 388 char sts; s35390a_rtc_ioctl() local [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A 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() local 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() local 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() local 183 sts); __amd_mp2_process_event() local [all...] |
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A 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...] |
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-sbefifo.c | 97 #define sbefifo_empty(sts) ((sts) & SBEFIFO_STS_EMPTY) 98 #define sbefifo_full(sts) ((sts) & SBEFIFO_STS_FULL) 99 #define sbefifo_parity_err(sts) ((sts) & SBEFIFO_STS_PARITY_ERR) 100 #define sbefifo_populated(sts) (((sts) & SBEFIFO_STS_ECNT_MASK) >> SBEFIFO_STS_ECNT_SHIFT) 101 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts)) 441 u32 addr, sts = 0; sbefifo_wait() local [all...] |
/kernel/linux/linux-6.6/drivers/fsi/ |
H A D | fsi-sbefifo.c | 99 #define sbefifo_empty(sts) ((sts) & SBEFIFO_STS_EMPTY) 100 #define sbefifo_full(sts) ((sts) & SBEFIFO_STS_FULL) 101 #define sbefifo_parity_err(sts) ((sts) & SBEFIFO_STS_PARITY_ERR) 102 #define sbefifo_populated(sts) (((sts) & SBEFIFO_STS_ECNT_MASK) >> SBEFIFO_STS_ECNT_SHIFT) 103 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts)) 456 u32 addr, sts = 0; sbefifo_wait() local [all...] |
/kernel/linux/linux-5.10/drivers/power/reset/ |
H A 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-6.6/drivers/power/reset/ |
H A 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/pci/hotplug/ |
H A D | pnv_php.c | 532 uint16_t sts; in pnv_php_reset_slot() local 549 pcie_capability_read_word(php_slot->pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_reset_slot() 550 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_reset_slot() 551 pcie_capability_write_word(php_slot->pdev, PCI_EXP_SLTSTA, sts); in pnv_php_reset_slot() 767 u16 sts, lsts; in pnv_php_interrupt() local 773 pcie_capability_read_word(pdev, PCI_EXP_SLTSTA, &sts); in pnv_php_interrupt() 774 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_interrupt() 775 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, sts); in pnv_php_interrupt() 779 !!(sts & PCI_EXP_SLTSTA_DLLSC), in pnv_php_interrupt() 780 !!(sts in pnv_php_interrupt() 841 u16 sts, ctrl; pnv_php_init_irq() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A 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 in pnv_php_interrupt() 843 u16 sts, ctrl; pnv_php_init_irq() local [all...] |
/kernel/linux/linux-5.10/drivers/spi/ |
H A 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-6.6/drivers/spi/ |
H A 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-6.6/drivers/net/ethernet/engleder/ |
H A D | tsnep_ptp.c | 131 struct ptp_system_timestamp *sts) in tsnep_ptp_gettimex64() 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() 192 ptp_read_system_prets(sts); in tsnep_ptp_getcyclesx64() 194 ptp_read_system_postts(sts); in tsnep_ptp_getcyclesx64() 129 tsnep_ptp_gettimex64(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) tsnep_ptp_gettimex64() argument 178 tsnep_ptp_getcyclesx64(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *sts) tsnep_ptp_getcyclesx64() argument
|
/kernel/linux/linux-6.6/drivers/crypto/aspeed/ |
H A D | aspeed-hace.c | 35 u32 sts; in aspeed_hace_irq() local 37 sts = ast_hace_read(hace_dev, ASPEED_HACE_STS); in aspeed_hace_irq() 38 ast_hace_write(hace_dev, sts, ASPEED_HACE_STS); in aspeed_hace_irq() 40 HACE_DBG(hace_dev, "irq status: 0x%x\n", sts); in aspeed_hace_irq() 42 if (sts & HACE_HASH_ISR) { in aspeed_hace_irq() 49 if (sts & HACE_CRYPTO_ISR) { in aspeed_hace_irq()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | init.c | 484 int sts; in mt7996_set_stream_vht_txbf_caps() local 490 sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_vht_txbf_caps() 495 FIELD_PREP(IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK, sts - 1); in mt7996_set_stream_vht_txbf_caps() 501 if (sts < 2) in mt7996_set_stream_vht_txbf_caps() 506 FIELD_PREP(IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK, sts - 1); in mt7996_set_stream_vht_txbf_caps() 514 int sts = hweight16(phy->mt76->chainmask); in mt7996_set_stream_he_txbf_caps() local 554 if (sts < 2) in mt7996_set_stream_he_txbf_caps() 558 elem->phy_cap_info[7] |= min_t(int, sts - 1, 2) << 3; in mt7996_set_stream_he_txbf_caps() 568 sts - 1) | in mt7996_set_stream_he_txbf_caps() 570 sts in mt7996_set_stream_he_txbf_caps() 719 int sts = hweight16(phy->mt76->chainmask); mt7996_init_eht_caps() local [all...] |
/kernel/linux/linux-5.10/arch/x86/platform/olpc/ |
H A 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 in setup_sci_interrupt() [all...] |
/kernel/linux/linux-6.6/arch/x86/platform/olpc/ |
H A 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 in setup_sci_interrupt() [all...] |