Lines Matching refs:alen
126 uint32_t addr, int alen, uint8_t *buf, int len) in _davinci_i2c_read() argument
131 if ((alen < 0) || (alen > 2)) { in _davinci_i2c_read()
132 printf("%s(): bogus address length %x\n", __func__, alen); in _davinci_i2c_read()
139 if (alen != 0) { in _davinci_i2c_read()
142 REG(&(i2c_base->i2c_cnt)) = alen; in _davinci_i2c_read()
150 switch (alen) { in _davinci_i2c_read()
224 uint32_t addr, int alen, uint8_t *buf, int len) in _davinci_i2c_write() argument
229 if ((alen < 0) || (alen > 2)) { in _davinci_i2c_write()
230 printf("%s(): bogus address length %x\n", __func__, alen); in _davinci_i2c_write()
244 REG(&(i2c_base->i2c_cnt)) = (alen == 0) ? in _davinci_i2c_write()
245 len & 0xffff : (len & 0xffff) + alen; in _davinci_i2c_write()
249 switch (alen) { in _davinci_i2c_write()
386 uint32_t addr, int alen, uint8_t *buf, int len) in davinci_i2c_read() argument
389 return _davinci_i2c_read(i2c_base, chip, addr, alen, buf, len); in davinci_i2c_read()
393 uint32_t addr, int alen, uint8_t *buf, int len) in davinci_i2c_write() argument
397 return _davinci_i2c_write(i2c_base, chip, addr, alen, buf, len); in davinci_i2c_write()