Lines Matching refs:data_len
420 u16 data_len, u8 attr) in dln2_spi_write_one() argument
432 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_write_one()
436 tx->size = cpu_to_le16(data_len); in dln2_spi_write_one()
439 dln2_spi_copy_to_buf(tx->buf, data, data_len, dln2->bpw); in dln2_spi_write_one()
441 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_write_one()
449 u16 data_len, u8 attr) in dln2_spi_read_one() argument
465 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_read_one()
469 tx.size = cpu_to_le16(data_len); in dln2_spi_read_one()
476 if (rx_len < sizeof(rx->size) + data_len) in dln2_spi_read_one()
478 if (le16_to_cpu(rx->size) != data_len) in dln2_spi_read_one()
481 dln2_spi_copy_from_buf(data, rx->buf, data_len, dln2->bpw); in dln2_spi_read_one()
490 u8 *rx_data, u16 data_len, u8 attr) in dln2_spi_read_write_one() argument
508 if (data_len > DLN2_SPI_MAX_XFER_SIZE) in dln2_spi_read_write_one()
520 tx->size = cpu_to_le16(data_len); in dln2_spi_read_write_one()
523 dln2_spi_copy_to_buf(tx->buf, tx_data, data_len, dln2->bpw); in dln2_spi_read_write_one()
525 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_read_write_one()
532 if (rx_len < sizeof(rx->size) + data_len) in dln2_spi_read_write_one()
534 if (le16_to_cpu(rx->size) != data_len) in dln2_spi_read_write_one()
537 dln2_spi_copy_from_buf(rx_data, rx->buf, data_len, dln2->bpw); in dln2_spi_read_write_one()
547 u8 *rx_data, u16 data_len, u8 attr) in dln2_spi_rdwr() argument
552 u16 remaining = data_len; in dln2_spi_rdwr()
564 offset = data_len - remaining; in dln2_spi_rdwr()