Searched refs:bytes_read (Results 1 – 2 of 2) sorted by relevance
48 alt_u32 bytes_read; in optional_irq_callback() local55 alt_avalon_i2c_rx_read_available(i2c_dev, irq->buffer, irq->size, &bytes_read); in optional_irq_callback()56 irq->size-=bytes_read; in optional_irq_callback()57 irq->buffer+=bytes_read; in optional_irq_callback()335 …able(ALT_AVALON_I2C_DEV_t *i2c_dev, alt_u8 *buffer, alt_u32 max_bytes_to_read, alt_u32 *bytes_read) in alt_avalon_i2c_rx_read_available() argument337 *bytes_read = 0; in alt_avalon_i2c_rx_read_available()341 buffer[*bytes_read] = (alt_u8)IORD_ALT_AVALON_I2C_RX_DATA(i2c_dev->i2c_base); in alt_avalon_i2c_rx_read_available()342 *bytes_read+=1; in alt_avalon_i2c_rx_read_available()343 if ((*bytes_read == max_bytes_to_read) && (max_bytes_to_read != 0)) break; in alt_avalon_i2c_rx_read_available()793 alt_u32 bytes_read=0; in alt_avalon_i2c_master_receive() local[all …]
490 …ble(ALT_AVALON_I2C_DEV_t *i2c_dev, alt_u8 *buffer, alt_u32 max_bytes_to_read, alt_u32 *bytes_read);