Lines Matching refs:value
282 uint32_t value = 0; in imx_spi_read() local
292 value = s->regs[index]; in imx_spi_read()
299 value = 0xdeadbeef; in imx_spi_read()
302 value = fifo32_pop(&s->rx_fifo); in imx_spi_read()
324 DPRINTF("reg[%s] => 0x%" PRIx32 "\n", imx_spi_reg_name(index), value); in imx_spi_read()
326 return (uint64_t)value; in imx_spi_read()
329 static void imx_spi_write(void *opaque, hwaddr offset, uint64_t value, in imx_spi_write() argument
344 (uint32_t)value); in imx_spi_write()
354 change_mask = s->regs[index] ^ value; in imx_spi_write()
367 fifo32_push(&s->tx_fifo, (uint32_t)value); in imx_spi_write()
381 value &= ECSPI_STATREG_RO | ECSPI_STATREG_TC; in imx_spi_write()
382 s->regs[ECSPI_STATREG] &= ~value; in imx_spi_write()
386 s->regs[ECSPI_CONREG] = value; in imx_spi_write()
412 if ((value & change_mask & ECSPI_CONREG_SMC) && in imx_spi_write()
416 } else if ((value & change_mask & ECSPI_CONREG_XCH) && in imx_spi_write()
417 !(value & ECSPI_CONREG_SMC)) { in imx_spi_write()
433 s->regs[index] = value; in imx_spi_write()