Searched refs:sts_reg (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/usb_c/ppc/ |
D | nxp_nx20p3483.c | 111 uint8_t sts_reg; in nx20p3483_is_dead_battery_mode() local 114 ret = read_reg(dev, NX20P3483_REG_DEVICE_STATUS, &sts_reg); in nx20p3483_is_dead_battery_mode() 119 return ((sts_reg & NX20P3483_REG_DEVICE_STATUS_MODE_MASK) == NX20P3483_MODE_DEAD_BATTERY); in nx20p3483_is_dead_battery_mode() 143 uint8_t sts_reg; in nx20p3483_is_vbus_source() local 146 ret = read_reg(dev, NX20P3483_REG_SWITCH_STATUS, &sts_reg); in nx20p3483_is_vbus_source() 151 return !!(sts_reg & in nx20p3483_is_vbus_source() 157 uint8_t sts_reg; in nx20p3483_is_vbus_sink() local 160 ret = read_reg(dev, NX20P3483_REG_SWITCH_STATUS, &sts_reg); in nx20p3483_is_vbus_sink() 165 return !!(sts_reg & NX20P3483_REG_SWITCH_STATUS_HVSNK); in nx20p3483_is_vbus_sink()
|
/Zephyr-latest/drivers/flash/ |
D | flash_npcx_fiu_nor.c | 161 static int flash_npcx_nor_read_status_regs(const struct device *dev, uint8_t *sts_reg) in flash_npcx_nor_read_status_regs() argument 163 int ret = flash_npcx_uma_read(dev, SPI_NOR_CMD_RDSR, sts_reg, 1); in flash_npcx_nor_read_status_regs() 168 return flash_npcx_uma_read(dev, SPI_NOR_CMD_RDSR2, sts_reg + 1, 1); in flash_npcx_nor_read_status_regs() 171 static int flash_npcx_nor_write_status_regs(const struct device *dev, uint8_t *sts_reg) in flash_npcx_nor_write_status_regs() argument 180 ret = flash_npcx_uma_write(dev, SPI_NOR_CMD_WRSR, sts_reg, 2); in flash_npcx_nor_write_status_regs() 540 uint8_t qe_idx, qe_bit, sts_reg[2]; in flash_npcx_nor_init() local 542 ret = flash_npcx_nor_read_status_regs(dev, sts_reg); in flash_npcx_nor_init() 564 sts_reg[qe_idx - 1] |= BIT(qe_bit); in flash_npcx_nor_init() 565 ret = flash_npcx_nor_write_status_regs(dev, sts_reg); in flash_npcx_nor_init()
|