Lines Matching refs:alen
552 uchar chip, uint addr, int alen, uchar *buffer, in __omap24_i2c_read() argument
558 if (alen < 0) { in __omap24_i2c_read()
573 if (alen > 2) { in __omap24_i2c_read()
574 printf("I2C read: addr len %d not supported\n", alen); in __omap24_i2c_read()
595 if (alen > 0) in __omap24_i2c_read()
596 chip |= ((addr >> (alen * 8)) & in __omap24_i2c_read()
605 omap_i2c_write_reg(i2c_base, ip_rev, alen, OMAP_I2C_CNT_REG); in __omap24_i2c_read()
609 if (alen) { in __omap24_i2c_read()
637 if (alen) { in __omap24_i2c_read()
640 alen--; in __omap24_i2c_read()
641 addr_byte = (addr >> (8 * alen)) & 0xff; in __omap24_i2c_read()
706 uchar chip, uint addr, int alen, uchar *buffer, in __omap24_i2c_write() argument
714 if (alen < 0) { in __omap24_i2c_write()
729 if (alen > 2) { in __omap24_i2c_write()
730 printf("I2C write: addr len %d not supported\n", alen); in __omap24_i2c_write()
752 if (alen > 0) in __omap24_i2c_write()
753 chip |= ((addr >> (alen * 8)) & in __omap24_i2c_write()
762 omap_i2c_write_reg(i2c_base, ip_rev, alen + len, OMAP_I2C_CNT_REG); in __omap24_i2c_write()
770 while (alen) { in __omap24_i2c_write()
787 alen--; in __omap24_i2c_write()
789 (addr >> (8 * alen)) & 0xff, in __omap24_i2c_write()
886 int alen, uchar *buffer, int len) in omap24_i2c_read() argument
892 alen, buffer, len); in omap24_i2c_read()
896 int alen, uchar *buffer, int len) in omap24_i2c_write() argument
902 alen, buffer, len); in omap24_i2c_write()