Home
last modified time | relevance | path

Searched refs:curr_step (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/drivers/spi/
H A Dbcm63xx_hsspi.c254 size_t curr_step = min(step_size, data_bytes); in bcm63xx_hsspi_xfer() local
260 HSSPI_FIFO_OP_SIZE, tx, curr_step); in bcm63xx_hsspi_xfer()
261 tx += curr_step; in bcm63xx_hsspi_xfer()
265 writew_be(opcode | (curr_step & HSSPI_FIFO_OP_BYTES_MASK), in bcm63xx_hsspi_xfer()
288 curr_step); in bcm63xx_hsspi_xfer()
289 rx += curr_step; in bcm63xx_hsspi_xfer()
292 data_bytes -= curr_step; in bcm63xx_hsspi_xfer()
/openbmc/linux/drivers/spi/
H A Dspi-bcmbca-hsspi.c288 int curr_step = min_t(int, step_size, pending); in bcmbca_hsspi_do_txrx() local
292 memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN, tx, curr_step); in bcmbca_hsspi_do_txrx()
293 tx += curr_step; in bcmbca_hsspi_do_txrx()
296 *(__be16 *)(&val) = cpu_to_be16(opcode | curr_step); in bcmbca_hsspi_do_txrx()
318 pending -= curr_step; in bcmbca_hsspi_do_txrx()
321 memcpy_fromio(rx, bs->fifo, curr_step); in bcmbca_hsspi_do_txrx()
322 rx += curr_step; in bcmbca_hsspi_do_txrx()
H A Dspi-bcm63xx-hsspi.c507 int curr_step = min_t(int, step_size, pending); in bcm63xx_hsspi_do_txrx() local
511 memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN, tx, curr_step); in bcm63xx_hsspi_do_txrx()
512 tx += curr_step; in bcm63xx_hsspi_do_txrx()
515 *(__be16 *)(&val) = cpu_to_be16(opcode | curr_step); in bcm63xx_hsspi_do_txrx()
532 memcpy_fromio(rx, bs->fifo, curr_step); in bcm63xx_hsspi_do_txrx()
533 rx += curr_step; in bcm63xx_hsspi_do_txrx()
536 pending -= curr_step; in bcm63xx_hsspi_do_txrx()