Home
last modified time | relevance | path

Searched refs:reg_status (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/input/misc/
H A Dtps65218-pwrbutton.c23 unsigned int reg_status; member
29 .reg_status = TPS65217_REG_STATUS,
35 .reg_status = TPS65218_REG_STATUS,
62 error = regmap_read(pwr->regmap, tps_data->reg_status, &reg); in tps6521x_pb_irq()
/linux/drivers/reset/starfive/
H A Dreset-starfive-jh71x0.c39 void __iomem *reg_status = data->status + offset * sizeof(u32); in jh71x0_reset_update() local
58 ret = readl_poll_timeout_atomic(reg_status, value, (value & mask) == done, 0, 1000); in jh71x0_reset_update()
94 void __iomem *reg_status = data->status + offset * sizeof(u32); in jh71x0_reset_status() local
95 u32 value = readl(reg_status); in jh71x0_reset_status()
/linux/drivers/usb/typec/tcpm/
H A Dtcpci_maxim_core.c292 u8 reg_status; in _max_tcpci_irq() local
318 ret = max_tcpci_read8(chip, TCPC_FAULT_STATUS, &reg_status); in _max_tcpci_irq()
322 ret = max_tcpci_write8(chip, TCPC_FAULT_STATUS, reg_status); in _max_tcpci_irq()
326 if (reg_status & TCPC_FAULT_STATUS_VCONN_OC) { in _max_tcpci_irq()
333 ret = max_tcpci_read8(chip, TCPC_ALERT_EXTENDED, &reg_status); in _max_tcpci_irq()
337 ret = max_tcpci_write8(chip, TCPC_ALERT_EXTENDED, reg_status); in _max_tcpci_irq()
341 if (reg_status & TCPC_SINK_FAST_ROLE_SWAP) { in _max_tcpci_irq()
348 ret = max_tcpci_read8(chip, TCPC_EXTENDED_STATUS, (u8 *)&reg_status); in _max_tcpci_irq()
349 if (ret >= 0 && (reg_status & TCPC_EXTENDED_STATUS_VSAFE0V)) in _max_tcpci_irq()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dpsp_v14_0.c523 uint32_t reg_status; in psp_v14_0_load_usbc_pd_fw() local
544 reg_status = RREG32_SOC15(MP0, 0, regMPASP_SMN_C2PMSG_35); in psp_v14_0_load_usbc_pd_fw()
546 if (reg_status & 0x80000000) in psp_v14_0_load_usbc_pd_fw()
554 if ((reg_status & 0xFFFF) != 0) { in psp_v14_0_load_usbc_pd_fw()
556 reg_status & 0xFFFF); in psp_v14_0_load_usbc_pd_fw()
580 uint32_t reg_status = 0, reg_val = 0; in psp_v14_0_exec_spi_cmd() local
605 reg_status = RREG32_SOC15(MP0, 0, regMPASP_SMN_C2PMSG_115); in psp_v14_0_exec_spi_cmd()
606 if ((reg_status & 0xFFFF) != 0) { in psp_v14_0_exec_spi_cmd()
608 cmd, reg_status & 0xFFFF); in psp_v14_0_exec_spi_cmd()
H A Dpsp_v13_0.c635 uint32_t reg_status; in psp_v13_0_load_usbc_pd_fw() local
656 reg_status = RREG32_SOC15(MP0, 0, regMP0_SMN_C2PMSG_35); in psp_v13_0_load_usbc_pd_fw()
658 if (reg_status & 0x80000000) in psp_v13_0_load_usbc_pd_fw()
666 if ((reg_status & 0xFFFF) != 0) { in psp_v13_0_load_usbc_pd_fw()
668 reg_status & 0xFFFF); in psp_v13_0_load_usbc_pd_fw()
692 uint32_t reg_status = 0, reg_val = 0; in psp_v13_0_exec_spi_cmd() local
714 reg_status = RREG32_SOC15(MP0, 0, regMP0_SMN_C2PMSG_115); in psp_v13_0_exec_spi_cmd()
715 if ((reg_status & 0xFFFF) != 0) { in psp_v13_0_exec_spi_cmd()
717 cmd, reg_status & 0xFFFF); in psp_v13_0_exec_spi_cmd()
H A Dpsp_v11_0.c592 uint32_t reg_status; in psp_v11_0_load_usbc_pd_fw() local
613 reg_status = RREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_35); in psp_v11_0_load_usbc_pd_fw()
615 if (reg_status & 0x80000000) in psp_v11_0_load_usbc_pd_fw()
623 if ((reg_status & 0xFFFF) != 0) { in psp_v11_0_load_usbc_pd_fw()
625 reg_status & 0xFFFF); in psp_v11_0_load_usbc_pd_fw()
H A Dvi.c1058 u32 reg_status; in vi_set_vce_clocks() local
1064 reg_status = ixGNB_CLK3_STATUS; in vi_set_vce_clocks()
1069 reg_status = ixCG_ECLK_STATUS; in vi_set_vce_clocks()
1081 if (RREG32_SMC(reg_status) & status_mask) in vi_set_vce_clocks()
1095 if (RREG32_SMC(reg_status) & status_mask) in vi_set_vce_clocks()
/linux/drivers/net/can/esd/
H A Desdacc.c531 const u32 reg_status = msg->reg_status; in handle_core_msg_buserr() local
532 const u8 rxerr = reg_status; in handle_core_msg_buserr()
533 const u8 txerr = (reg_status >> 8); in handle_core_msg_buserr()
588 const u32 reg_status = msg->reg_status; in handle_core_msg_errstatechange() local
589 const u8 rxerr = reg_status; in handle_core_msg_errstatechange()
590 const u8 txerr = (reg_status >> 8); in handle_core_msg_errstatechange()
593 if (reg_status & ACC_REG_STATUS_MASK_STATUS_BS) { in handle_core_msg_errstatechange()
595 } else if (reg_status & ACC_REG_STATUS_MASK_STATUS_EP) { in handle_core_msg_errstatechange()
597 } else if (reg_status & ACC_REG_STATUS_MASK_STATUS_ES) { in handle_core_msg_errstatechange()
H A Desdacc.h177 u32 reg_status; member
189 u32 reg_status; member
/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c91 int reg_status; in rk_ahash_reg_init() local
93 reg_status = CRYPTO_READ(dev, RK_CRYPTO_CTRL) | in rk_ahash_reg_init()
95 CRYPTO_WRITE(dev, RK_CRYPTO_CTRL, reg_status); in rk_ahash_reg_init()
97 reg_status = CRYPTO_READ(dev, RK_CRYPTO_CTRL); in rk_ahash_reg_init()
98 reg_status &= (~RK_CRYPTO_HASH_FLUSH); in rk_ahash_reg_init()
99 reg_status |= _SBF(0xffff, 16); in rk_ahash_reg_init()
100 CRYPTO_WRITE(dev, RK_CRYPTO_CTRL, reg_status); in rk_ahash_reg_init()
/linux/drivers/crypto/ccp/
H A Dccp-dev-v3.c71 return CMD_Q_DEPTH(ioread32(cmd_q->reg_status)); in ccp_get_free_slots()
339 cmd_q->q_status = ioread32(cmd_q->reg_status); in ccp_irq_bh()
412 cmd_q->reg_status = ccp->io_regs + CMD_Q_STATUS_BASE + in ccp_init()
447 ioread32(cmd_q->reg_status); in ccp_init()
538 ioread32(cmd_q->reg_status); in ccp_destroy()
H A Dccp-dev-v5.c749 cmd_q->q_status = ioread32(cmd_q->reg_status); in ccp5_irq_bh()
852 cmd_q->reg_status = cmd_q->reg_control + CMD5_Q_STATUS_BASE; in ccp5_init()
882 ioread32(cmd_q->reg_status); in ccp5_init()
1040 ioread32(cmd_q->reg_status); in ccp5_destroy()
H A Dccp-dev.h311 void __iomem *reg_status; member
/linux/drivers/irqchip/
H A Dirq-mmp.c42 void __iomem *reg_status; member
171 status = readl_relaxed(data->reg_status) & ~mask; in icu_mux_irq_demux()
387 icu_data[i].reg_status = mmp_icu_base + reg[0]; in mmp2_mux_of_init()
H A Dirq-bcm6345-l1.c100 static inline unsigned int reg_status(struct bcm6345_l1_chip *intc, in reg_status() function
130 pending = __raw_readl(cpu->map_base + reg_status(intc, idx)); in bcm6345_l1_irq_handle()
H A Dirq-bcm7038-l1.c79 static inline unsigned int reg_status(struct bcm7038_l1_chip *intc, in reg_status() function
140 pending = l1_readl(cpu->map_base + reg_status(intc, idx)) & in bcm7038_l1_irq_handle()
/linux/drivers/iio/magnetometer/
H A Dmmc35240.c262 unsigned int reg_status; in mmc35240_take_measurement() local
271 &reg_status); in mmc35240_take_measurement()
274 if (reg_status & MMC35240_STATUS_MEAS_DONE_BIT) in mmc35240_take_measurement()
/linux/drivers/iio/temperature/
H A Dmlx90632.c334 unsigned int reg_status; in mlx90632_perform_measurement() local
342 ret = regmap_read_poll_timeout(data->regmap, MLX90632_REG_STATUS, reg_status, in mlx90632_perform_measurement()
343 !(reg_status & MLX90632_STAT_DATA_RDY), 10000, in mlx90632_perform_measurement()
351 return (reg_status & MLX90632_STAT_CYCLE_POS) >> 2; in mlx90632_perform_measurement()
365 unsigned int reg_status; in mlx90632_perform_measurement_burst() local
380 reg_status, in mlx90632_perform_measurement_burst()
381 (reg_status & MLX90632_STAT_BUSY) == 0, in mlx90632_perform_measurement_burst()
H A Dmlx90635.c379 unsigned int reg_status; in mlx90635_perform_measurement_burst() local
400 ret = regmap_read_poll_timeout(data->regmap, MLX90635_REG_STATUS, reg_status, in mlx90635_perform_measurement_burst()
401 (!(reg_status & MLX90635_STAT_END_CONV)) == 0, in mlx90635_perform_measurement_burst()
/linux/arch/powerpc/platforms/powermac/
H A Dlow_i2c.c127 reg_status, enumerator
261 ack = kw_read_reg(reg_status); in kw_i2c_handle_interrupt()
263 kw_write_reg(reg_status, 0); in kw_i2c_handle_interrupt()
272 ack = kw_read_reg(reg_status); in kw_i2c_handle_interrupt()
308 ack = kw_read_reg(reg_status); in kw_i2c_handle_interrupt()
427 kw_write_reg(reg_status, 0); in kw_i2c_xfer()
/linux/drivers/usb/gadget/udc/
H A Dgoku_udc.h219 u32 __iomem *reg_status; member
/linux/drivers/soc/ti/
H A Dknav_qmss_queue.c1438 qmgr->reg_status = in knav_queue_init_qmgrs()
1468 (IS_ERR(qmgr->reg_status) || IS_ERR(qmgr->reg_pop))) || in knav_queue_init_qmgrs()
1473 if (!IS_ERR(qmgr->reg_status)) in knav_queue_init_qmgrs()
1474 devm_iounmap(dev, qmgr->reg_status); in knav_queue_init_qmgrs()
1497 qmgr->reg_peek, qmgr->reg_status, in knav_queue_init_qmgrs()
H A Dknav_qmss.h144 void __iomem *reg_status; member
/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.c1007 ret = ksz_read16(dev, ptpirq->reg_status, &data); in ksz_ptp_irq_thread_fn()
1012 ret = ksz_write16(dev, ptpirq->reg_status, data); in ksz_ptp_irq_thread_fn()
1133 ptpirq->reg_status = ops->get_port_addr(p, in ksz_ptp_irq_setup()
/linux/drivers/input/mouse/
H A Dcyapa.h277 int (*state_parse)(struct cyapa *cyapa, u8 *reg_status, int len);

12