Home
last modified time | relevance | path

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

123456

/linux/drivers/input/keyboard/
A Dapplespi.c626 sts); in applespi_check_write_status()
673 int sts; in applespi_setup_spi() local
676 if (sts) in applespi_setup_spi()
766 int sts; in applespi_send_cmd_msg() local
908 int sts; in applespi_set_capsl_led() local
1231 int sts; in applespi_register_touchpad_device() local
1575 int sts; in applespi_notify() local
1603 int sts; in applespi_get_saved_bl_level() local
1615 if (sts && sts != -ENOENT) in applespi_get_saved_bl_level()
1618 sts); in applespi_get_saved_bl_level()
[all …]
/linux/drivers/misc/eeprom/
A Didt_89hpesx.c261 s32 sts; in idt_smb_write_byte() local
293 s32 sts; in idt_smb_read_byte() local
308 if (sts < 0) in idt_smb_read_byte()
326 s32 sts; in idt_smb_write_word() local
375 s32 sts; in idt_smb_read_word() local
393 if (sts < 0) in idt_smb_read_word()
408 if (sts < 0) in idt_smb_read_word()
449 s32 sts; in idt_smb_read_block() local
462 return (sts < 0 ? sts : -ENODATA); in idt_smb_read_block()
510 s32 sts; in idt_smb_read_i2c_block() local
[all …]
/linux/drivers/net/can/rcar/
A Drcar_canfd.c634 u32 sts, ch; in rcar_canfd_reset_controller() local
880 u32 gerfl, sts; in rcar_canfd_global_error() local
1045 u32 sts; in rcar_canfd_tx_done() local
1109 u32 sts; in rcar_canfd_handle_global_receive() local
1187 u32 sts; in rcar_canfd_handle_channel_tx() local
1212 u32 sts, cerfl; in rcar_canfd_handle_channel_err() local
1305 u32 sts, ch = priv->channel; in rcar_canfd_start() local
1419 u32 sts = 0, id, dlc; in rcar_canfd_start_xmit() local
1493 u32 sts = 0, id, dlc; in rcar_canfd_rx_pkt() local
1567 u32 sts; in rcar_canfd_rx_poll() local
[all …]
/linux/drivers/rtc/
A Drtc-s35390a.c280 char buf[3], sts = 0; in s35390a_rtc_set_alarm() local
289 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm()
294 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &sts, sizeof(sts)); in s35390a_rtc_set_alarm()
299 sts = S35390A_INT2_MODE_ALARM; in s35390a_rtc_set_alarm()
301 sts = S35390A_INT2_MODE_NOINTR; in s35390a_rtc_set_alarm()
304 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm()
333 char buf[3], sts; in s35390a_rtc_read_alarm() local
336 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_read_alarm()
340 if ((sts & S35390A_INT2_MODE_MASK) != S35390A_INT2_MODE_ALARM) { in s35390a_rtc_read_alarm()
390 char sts; in s35390a_rtc_ioctl() local
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
A Dtxrx.h171 #define RTW89_GET_PHY_STS_RSSI_A(sts) \ argument
172 le32_get_bits(*((__le32 *)(sts) + 1), GENMASK(7, 0))
173 #define RTW89_GET_PHY_STS_RSSI_B(sts) \ argument
174 le32_get_bits(*((__le32 *)(sts) + 1), GENMASK(15, 8))
175 #define RTW89_GET_PHY_STS_RSSI_C(sts) \ argument
176 le32_get_bits(*((__le32 *)(sts) + 1), GENMASK(23, 16))
177 #define RTW89_GET_PHY_STS_RSSI_D(sts) \ argument
179 #define RTW89_GET_PHY_STS_LEN(sts) \ argument
180 le32_get_bits(*((__le32 *)sts), GENMASK(15, 8))
181 #define RTW89_GET_PHY_STS_RSSI_AVG(sts) \ argument
[all …]
/linux/include/linux/
A Dptp_clock_kernel.h154 struct ptp_system_timestamp *sts);
366 static inline void ptp_read_system_prets(struct ptp_system_timestamp *sts) in ptp_read_system_prets() argument
368 if (sts) in ptp_read_system_prets()
369 ktime_get_real_ts64(&sts->pre_ts); in ptp_read_system_prets()
372 static inline void ptp_read_system_postts(struct ptp_system_timestamp *sts) in ptp_read_system_postts() argument
374 if (sts) in ptp_read_system_postts()
375 ktime_get_real_ts64(&sts->post_ts); in ptp_read_system_postts()
/linux/drivers/i2c/busses/
A Di2c-amd-mp2-pci.c138 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()
173 if (sts == i2c_busdisable_complete) in __amd_mp2_process_event()
[all …]
/linux/drivers/fsi/
A Dfsi-sbefifo.c97 #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
450 u32 addr, sts = 0; in sbefifo_wait() local
460 rc = sbefifo_regr(sbefifo, addr, &sts); in sbefifo_wait()
465 if (!up && sbefifo_parity_err(sts)) { in sbefifo_wait()
469 ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts)); in sbefifo_wait()
[all …]
/linux/drivers/pci/hotplug/
A Dpnv_php.c533 uint16_t sts; in pnv_php_reset_slot() local
551 sts &= (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC); in pnv_php_reset_slot()
768 u16 sts, lsts; in pnv_php_interrupt() local
780 !!(sts & PCI_EXP_SLTSTA_DLLSC), in pnv_php_interrupt()
781 !!(sts & PCI_EXP_SLTSTA_PDC)); in pnv_php_interrupt()
783 if (sts & PCI_EXP_SLTSTA_DLLSC) { in pnv_php_interrupt()
787 (sts & PCI_EXP_SLTSTA_PDC)) { in pnv_php_interrupt()
792 php_slot->name, ret, sts); in pnv_php_interrupt()
824 php_slot->name, sts); in pnv_php_interrupt()
842 u16 sts, ctrl; in pnv_php_init_irq() local
[all …]
/linux/Documentation/devicetree/bindings/pinctrl/
A Dcirrus,madera.yaml81 spk-overheat-warn, timer1-sts, timer2-sts,
82 timer3-sts, timer4-sts, timer5-sts, timer6-sts,
83 timer7-sts, timer8-sts, log1-fifo-ne,
/linux/drivers/power/reset/
A Dpiix4-poweroff.c31 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/drivers/spi/
A Dspi-iproc-qspi.c35 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()
/linux/arch/x86/platform/olpc/
A Dolpc-xo1-sci.c216 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/drivers/tty/serial/
A Dmax310x.c657 unsigned int sts, ch, flag, i; in max310x_handle_rx() local
676 sts &= port->read_status_mask; in max310x_handle_rx()
678 if (sts & MAX310X_LSR_RXOVR_BIT) { in max310x_handle_rx()
712 if (unlikely(sts)) { in max310x_handle_rx()
713 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx()
719 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
721 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
724 sts &= port->read_status_mask; in max310x_handle_rx()
725 if (sts & MAX310X_LSR_RXBRK_BIT) in max310x_handle_rx()
727 else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
[all …]
/linux/drivers/mtd/nand/raw/
A Dmxic_nand.c286 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/drivers/scsi/
A Dqlogicpti.c1070 switch (sts->completion_status) { in DEF_SCSI_QCMD()
1075 if (!(sts->state_flags & SF_GOT_BUS)) in DEF_SCSI_QCMD()
1079 else if (!(sts->state_flags & SF_SENT_CDB)) in DEF_SCSI_QCMD()
1085 else if (!(sts->state_flags & SF_GOT_SENSE)) in DEF_SCSI_QCMD()
1122 id, sts->completion_status); in DEF_SCSI_QCMD()
1133 struct Status_Entry *sts; in qlogicpti_intr_handler() local
1168 cmd_slot = sts->handle; in qlogicpti_intr_handler()
1173 sts->completion_status == CS_ABORTED || in qlogicpti_intr_handler()
1174 (sts->status_flags & STF_BUS_RESET)) in qlogicpti_intr_handler()
1177 if (sts->state_flags & SF_GOT_SENSE) in qlogicpti_intr_handler()
[all …]
/linux/drivers/mfd/
A Dtwl6030-irq.c166 } 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/drivers/usb/cdns3/
A Ddrd.h22 __le32 sts; member
43 __le32 sts; member
66 __le32 sts; member
89 __le32 sts; member
A Ddrd.c90 id = readl(&cdns->otg_regs->sts) & OTGSTS_ID_VALUE; in cdns_get_id()
100 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns_get_vbus()
193 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns_drd_host_on()
244 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns_drd_gadget_on()
437 state = OTGSTS_STRAP(readl(&cdns->otg_regs->sts)); in cdns_drd_init()
466 state = readl(&cdns->otg_regs->sts); in cdns_drd_init()
/linux/drivers/char/ipmi/
A Dkcs_bmc_npcm7xx.c61 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/arch/sh/lib/
A Dudivsi3_i4i-Os.S27 sts pr,r1
105 sts pr,r1
117 sts pr,r2
128 sts macl,r2
/linux/drivers/net/ethernet/dec/tulip/
A Dde4x5.c2581 if (sts < 0) { in dc21041_autoconf()
2598 if (sts < 0) { in dc21041_autoconf()
2628 if (sts < 0) { in dc21041_autoconf()
2662 if (sts < 0) { in dc21041_autoconf()
2693 if (sts < 0) { in dc21041_autoconf()
2706 if (sts) { in dc21041_autoconf()
3085 if (sts) { in dc2114x_autoconf()
3361 return sts; in test_media()
3792 s32 sts, ans; in test_ans() local
3812 return sts; in test_ans()
[all …]
/linux/drivers/irqchip/
A Dirq-aspeed-scu-ic.c47 unsigned int sts; in aspeed_scu_ic_irq_handler() local
68 regmap_read(scu_ic->scu, scu_ic->reg, &sts); in aspeed_scu_ic_irq_handler()
69 enabled = sts & scu_ic->irq_enable; in aspeed_scu_ic_irq_handler()
70 status = (sts >> ASPEED_SCU_IC_STATUS_SHIFT) & enabled; in aspeed_scu_ic_irq_handler()
/linux/drivers/scsi/esas2r/
A Desas2r_ioctl.c400 u32 sts = CSMI_STS_SUCCESS; in csmi_ioctl_callback() local
517 sts = CSMI_STS_FAILED; in csmi_ioctl_callback()
588 sts = CSMI_STS_FAILED; in csmi_ioctl_callback()
692 u8 sts = ATTO_SPT_RS_FAILED; in scsi_passthru_comp_cb() local
702 sts = ATTO_SPT_RS_SUCCESS; in scsi_passthru_comp_cb()
708 sts = ATTO_SPT_RS_OVERRUN; in scsi_passthru_comp_cb()
715 sts = ATTO_SPT_RS_NO_LUN; in scsi_passthru_comp_cb()
718 sts = ATTO_SPT_RS_TIMEOUT; in scsi_passthru_comp_cb()
724 sts = ATTO_SPT_RS_BUSY; in scsi_passthru_comp_cb()
727 sts = ATTO_SPT_RS_ABORTED; in scsi_passthru_comp_cb()
[all …]
/linux/drivers/md/
A Ddm-zone.c529 blk_status_t sts; in dm_zone_map_bio() local
567 sts = dm_zone_map_bio_end(md, orig_bio, *tio->len_ptr); in dm_zone_map_bio()
575 sts = dm_zone_map_bio_end(md, orig_bio, *tio->len_ptr); in dm_zone_map_bio()
576 if (sts != BLK_STS_OK) in dm_zone_map_bio()
583 sts = BLK_STS_IOERR; in dm_zone_map_bio()
588 dm_io_dec_pending(io, sts); in dm_zone_map_bio()
590 if (sts != BLK_STS_OK) in dm_zone_map_bio()

Completed in 66 milliseconds

123456