Lines Matching refs:nbytes
188 size_t nbytes; in tb_nvm_read_data() local
192 nbytes = min_t(size_t, size + offset, NVM_DATA_DWORDS * 4); in tb_nvm_read_data()
195 dwords = ALIGN(nbytes, 4) / 4; in tb_nvm_read_data()
204 nbytes -= offset; in tb_nvm_read_data()
205 memcpy(buf, data + offset, nbytes); in tb_nvm_read_data()
207 size -= nbytes; in tb_nvm_read_data()
208 address += nbytes; in tb_nvm_read_data()
209 buf += nbytes; in tb_nvm_read_data()
235 size_t nbytes; in tb_nvm_write_data() local
239 nbytes = min_t(u32, size + offset, NVM_DATA_DWORDS * 4); in tb_nvm_write_data()
241 memcpy(data + offset, buf, nbytes); in tb_nvm_write_data()
244 ret = write_block(write_block_data, dwaddress, data, nbytes / 4); in tb_nvm_write_data()
254 size -= nbytes; in tb_nvm_write_data()
255 address += nbytes; in tb_nvm_write_data()
256 buf += nbytes; in tb_nvm_write_data()