Lines Matching refs:data_len
71 u8 *data, u16 data_len) in dln2_i2c_write() argument
90 tx->buf_len = cpu_to_le16(data_len); in dln2_i2c_write()
91 memcpy(tx->buf, data, data_len); in dln2_i2c_write()
93 len = sizeof(*tx) + data_len - DLN2_I2C_MAX_XFER_SIZE; in dln2_i2c_write()
98 return data_len; in dln2_i2c_write()
102 u16 data_len) in dln2_i2c_read() argument
124 tx.buf_len = cpu_to_le16(data_len); in dln2_i2c_read()
130 if (rx_len < sizeof(rx->buf_len) + data_len) in dln2_i2c_read()
132 if (le16_to_cpu(rx->buf_len) != data_len) in dln2_i2c_read()
135 memcpy(data, rx->buf, data_len); in dln2_i2c_read()
137 return data_len; in dln2_i2c_read()