Lines Matching refs:alen

254 	int	alen;  in get_alen()  local
256 alen = default_len; in get_alen()
259 alen = arg[j+1] - '0'; in get_alen()
264 return alen; in get_alen()
298 int alen; in do_i2c_read() local
318 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in do_i2c_read()
319 if (alen > 3) in do_i2c_read()
334 if (!ret && alen != -1) in do_i2c_read()
335 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_read()
339 ret = i2c_read(chip, devaddr, alen, memaddr, length); in do_i2c_read()
352 int alen; in do_i2c_write() local
378 alen = get_alen(argv[3], DEFAULT_ADDR_LEN); in do_i2c_write()
379 if (alen > 3) in do_i2c_write()
389 if (!ret && alen != -1) in do_i2c_write()
390 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_write()
409 ret = i2c_write(chip, devaddr, alen, memaddr, length); in do_i2c_write()
423 ret = i2c_write(chip, devaddr++, alen, memaddr++, 1); in do_i2c_write()
520 int alen; in do_i2c_md() local
532 alen = i2c_dp_last_alen; in do_i2c_md()
553 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in do_i2c_md()
554 if (alen > 3) in do_i2c_md()
567 if (!ret && alen != -1) in do_i2c_md()
568 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_md()
589 ret = i2c_read(chip, addr, alen, linebuf, linebytes); in do_i2c_md()
616 i2c_dp_last_alen = alen; in do_i2c_md()
640 int alen; in do_i2c_mw() local
660 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in do_i2c_mw()
661 if (alen > 3) in do_i2c_mw()
666 if (!ret && alen != -1) in do_i2c_mw()
667 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_mw()
688 ret = i2c_write(chip, addr++, alen, &byte, 1); in do_i2c_mw()
727 int alen; in do_i2c_crc() local
749 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in do_i2c_crc()
750 if (alen > 3) in do_i2c_crc()
755 if (!ret && alen != -1) in do_i2c_crc()
756 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_crc()
776 ret = i2c_read(chip, addr, alen, &byte, 1); in do_i2c_crc()
812 int alen; in mod_i2c_mem() local
831 alen = i2c_mm_last_alen; in mod_i2c_mem()
849 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in mod_i2c_mem()
850 if (alen > 3) in mod_i2c_mem()
856 if (!ret && alen != -1) in mod_i2c_mem()
857 ret = i2c_set_chip_offset_len(dev, alen); in mod_i2c_mem()
871 ret = i2c_read(chip, addr, alen, (uchar *)&data, size); in mod_i2c_mem()
919 ret = i2c_write(chip, addr, alen, in mod_i2c_mem()
936 i2c_mm_last_alen = alen; in mod_i2c_mem()
1036 int alen; in do_i2c_loop() local
1058 alen = get_alen(argv[2], DEFAULT_ADDR_LEN); in do_i2c_loop()
1059 if (alen > 3) in do_i2c_loop()
1063 if (!ret && alen != -1) in do_i2c_loop()
1064 ret = i2c_set_chip_offset_len(dev, alen); in do_i2c_loop()
1090 ret = i2c_read(chip, addr, alen, bytes, length); in do_i2c_loop()