Lines Matching refs:value
151 uint64_t value = 0; in npcm7xx_fiu_flash_read() local
191 value = deposit64(value, 8 * i, 8, ssi_transfer(fiu->spi, 0)); in npcm7xx_fiu_flash_read()
195 addr, size, value); in npcm7xx_fiu_flash_read()
199 return value; in npcm7xx_fiu_flash_read()
266 uint32_t value; in npcm7xx_fiu_ctrl_read() local
269 value = s->regs[reg]; in npcm7xx_fiu_ctrl_read()
274 value = 0; in npcm7xx_fiu_ctrl_read()
277 trace_npcm7xx_fiu_ctrl_read(DEVICE(s)->canonical_path, addr, value); in npcm7xx_fiu_ctrl_read()
279 return value; in npcm7xx_fiu_ctrl_read()
384 uint32_t value = v; in npcm7xx_fiu_ctrl_write() local
386 trace_npcm7xx_fiu_ctrl_write(DEVICE(s)->canonical_path, addr, value); in npcm7xx_fiu_ctrl_write()
391 value &= ~FIU_UMA_CFG_CMMLCK_MASK; in npcm7xx_fiu_ctrl_write()
392 value |= (s->regs[reg] & FIU_UMA_CFG_CMMLCK_MASK); in npcm7xx_fiu_ctrl_write()
403 s->regs[reg] = value; in npcm7xx_fiu_ctrl_write()
407 if (value & FIU_UMA_CTS_RDYST) { in npcm7xx_fiu_ctrl_write()
408 value &= ~FIU_UMA_CTS_RDYST; in npcm7xx_fiu_ctrl_write()
410 value |= s->regs[reg] & FIU_UMA_CTS_RDYST; in npcm7xx_fiu_ctrl_write()
412 if ((s->regs[reg] ^ value) & FIU_UMA_CTS_SW_CS) { in npcm7xx_fiu_ctrl_write()
413 if (value & FIU_UMA_CTS_SW_CS) { in npcm7xx_fiu_ctrl_write()
418 if (!((value | s->regs[reg]) & FIU_UMA_CTS_EXEC_DONE)) { in npcm7xx_fiu_ctrl_write()
426 s->regs[reg] = value | (s->regs[reg] & FIU_UMA_CTS_EXEC_DONE); in npcm7xx_fiu_ctrl_write()
427 if (value & FIU_UMA_CTS_EXEC_DONE) { in npcm7xx_fiu_ctrl_write()
447 s->regs[reg] = value; in npcm7xx_fiu_ctrl_write()