Lines Matching refs:data_bytes
255 static int bcm63xx_hsspi_xfer_dummy_cs(struct udevice *dev, unsigned int data_bytes,
297 while (data_bytes > 0) {
298 size_t curr_step = min(step_size, (size_t)data_bytes);
336 data_bytes -= curr_step;
346 unsigned int data_bytes, const void *dout, void *din,
366 if (data_bytes > HSSPI_MAX_DATA_SIZE) {
375 if (priv->prepend_cnt + data_bytes > HSSPI_MAX_DATA_SIZE) {
380 if (priv->prepend_cnt + data_bytes > HSSPI_MAX_PREPEND_SIZE) {
389 memcpy(&priv->prepend_buf[priv->prepend_cnt], dout, data_bytes);
390 priv->prepend_cnt += data_bytes;
397 static int bcm63xx_hsspi_xfer_prepend(struct udevice *dev, unsigned int data_bytes,
414 if (dout && data_bytes) {
417 memcpy_toio(priv->regs + offset, dout, data_bytes);
423 data_bytes += priv->prepend_cnt;
457 val = opcode | (data_bytes & HSSPI_FIFO_OP_BYTES_MASK);
482 data_bytes);
494 u32 data_bytes = bitlen >> 3;
498 bcm63xx_prepare_prepend_transfer(priv, data_bytes, dout, din, flags);
510 ret = bcm63xx_hsspi_xfer_dummy_cs(dev, data_bytes, dout, din, flags);
512 ret = bcm63xx_hsspi_xfer_prepend(dev, data_bytes, dout, din, flags);