Lines Matching refs:count
267 static void stm32_i2c_setup_buf(stm32_i2c_buf_t *buf, uint8_t *data, size_t count) { in stm32_i2c_setup_buf() argument
269 buf->len = count; in stm32_i2c_setup_buf()
289 size_t count; in stm32_i2c_txn() local
291 count = tx_count; in stm32_i2c_txn()
295 count = rx_count; in stm32_i2c_txn()
302 i2c->regs->CR2 = (address & 0x7f) << 1 | dir | (count & 0xff) << I2C_CR2_NBYTES_SHIFT in stm32_i2c_txn()
332 status_t i2c_transmit(int bus, uint8_t address, const void *buf, size_t count) { in i2c_transmit() argument
339 return stm32_i2c_txn(i2c, address, NULL, (uint8_t *)buf, count, NULL, 0); in i2c_transmit()
342 status_t i2c_receive(int bus, uint8_t address, void *buf, size_t count) { in i2c_receive() argument
348 return stm32_i2c_txn(i2c, address, NULL, NULL, 0, buf, count); in i2c_receive()
351 …us_t i2c_write_reg_bytes(int bus, uint8_t address, uint8_t reg, const uint8_t *buf, size_t count) { in i2c_write_reg_bytes() argument
358 return stm32_i2c_txn(i2c, address, ®, (uint8_t *)buf, count, NULL, 0); in i2c_write_reg_bytes()
361 status_t i2c_read_reg_bytes(int bus, uint8_t address, uint8_t reg, uint8_t *buf, size_t count) { in i2c_read_reg_bytes() argument
364 return stm32_i2c_txn(i2c, address, ®, NULL, 0, buf, count); in i2c_read_reg_bytes()