/u-boot/drivers/i2c/ |
A D | lpc32xx_i2c.c | 112 int alen, u8 *data, int length) in __i2c_read() argument 121 if (alen) { in __i2c_read() 125 while (alen--) { in __i2c_read() 127 int a = (addr >> (8 * alen)) & 0xff; in __i2c_read() 128 if (!alen) in __i2c_read() 188 if (alen | length) in __i2c_write() 194 while (alen) { in __i2c_write() 198 alen--; in __i2c_write() 200 if (!(alen | length)) in __i2c_write() 244 alen, data, length); in lpc32xx_i2c_read() [all …]
|
A D | davinci_i2c.c | 128 uint32_t addr, int alen, uint8_t *buf, int len) in _davinci_i2c_read() argument 133 if ((alen < 0) || (alen > 2)) { in _davinci_i2c_read() 141 if (alen != 0) { in _davinci_i2c_read() 144 REG(&(i2c_base->i2c_cnt)) = alen; in _davinci_i2c_read() 152 switch (alen) { in _davinci_i2c_read() 226 uint32_t addr, int alen, uint8_t *buf, int len) in _davinci_i2c_write() argument 231 if ((alen < 0) || (alen > 2)) { in _davinci_i2c_write() 246 REG(&(i2c_base->i2c_cnt)) = (alen == 0) ? in _davinci_i2c_write() 247 len & 0xffff : (len & 0xffff) + alen; in _davinci_i2c_write() 251 switch (alen) { in _davinci_i2c_write() [all …]
|
A D | soft_i2c.c | 328 int alen, uchar *buffer, int len) in soft_i2c_read() argument 332 chip, addr, alen, buffer, len); in soft_i2c_read() 346 chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW); in soft_i2c_read() 359 if(alen > 0) { in soft_i2c_read() 365 shift = (alen-1) * 8; in soft_i2c_read() 366 while(alen-- > 0) { in soft_i2c_read() 403 int alen, uchar *buffer, int len) in soft_i2c_write() argument 408 chip, addr, alen, buffer, len); in soft_i2c_write() 416 shift = (alen-1) * 8; in soft_i2c_write() 417 while(alen-- > 0) { in soft_i2c_write()
|
A D | omap24xx_i2c.c | 558 if (alen < 0) { in __omap24_i2c_read() 573 if (alen > 2) { in __omap24_i2c_read() 595 if (alen > 0) in __omap24_i2c_read() 609 if (alen) { in __omap24_i2c_read() 637 if (alen) { in __omap24_i2c_read() 640 alen--; in __omap24_i2c_read() 714 if (alen < 0) { in __omap24_i2c_write() 729 if (alen > 2) { in __omap24_i2c_write() 752 if (alen > 0) in __omap24_i2c_write() 770 while (alen) { in __omap24_i2c_write() [all …]
|
A D | ihs_i2c.c | 240 static int ihs_i2c_address(uchar chip, u8 *addr, int alen, bool hold_bus) in ihs_i2c_address() 244 return ihs_i2c_send_buffer(dev, chip, addr, alen, hold_bus, I2COP_WRITE); in ihs_i2c_address() 246 return ihs_i2c_send_buffer(chip, addr, alen, hold_bus, I2COP_WRITE); in ihs_i2c_address() 252 int alen, uchar *buffer, int len, int read) in ihs_i2c_access() argument 255 int alen, uchar *buffer, int len, int read) in ihs_i2c_access() 265 res = ihs_i2c_address(dev, chip, addr, alen, len); in ihs_i2c_access() 267 res = ihs_i2c_address(chip, addr, alen, len); in ihs_i2c_access() 389 int alen, uchar *buffer, int len) in ihs_i2c_read() argument 395 return ihs_i2c_access(adap, chip, addr_bytes, alen, buffer, len, in ihs_i2c_read() 400 int alen, uchar *buffer, int len) in ihs_i2c_write() argument [all …]
|
A D | mv_i2c.c | 245 "len=0x%02x)\n", chip, *addr, alen, len); in __i2c_read() 268 while (--alen >= 0) { in __i2c_read() 270 *addr, alen); in __i2c_read() 274 msg.data = addr[alen]; in __i2c_read() 321 "len=0x%02x)\n", chip, *addr, alen, len); in __i2c_write() 339 while (--alen >= 0) { in __i2c_write() 341 *addr, alen); in __i2c_write() 345 msg.data = addr[alen]; in __i2c_write() 495 int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len) in i2c_read() argument 504 return __i2c_read(base_glob, chip, addr_bytes, alen, buffer, len); in i2c_read() [all …]
|
A D | i2c-cortina.c | 147 int alen, int write_read) in i2c_xfer_init() argument 149 int addr_len = alen; in i2c_xfer_init() 156 if (alen == 0 && write_read == I2C_CMD_RD) in i2c_xfer_init() 161 while (alen) { in i2c_xfer_init() 162 alen--; in i2c_xfer_init() 194 int alen, uint8_t *buffer, int len) in ca_i2c_read() argument 199 rc = i2c_xfer_init(regs, chip, addr, alen, I2C_CMD_RD); in ca_i2c_read() 232 int alen, uint8_t *buffer, int len) in ca_i2c_write() argument 237 rc = i2c_xfer_init(regs, chip, addr, alen, I2C_CMD_WT); in ca_i2c_write()
|
A D | nx_i2c.c | 473 uint alen, uchar *buffer, uint len, uint seq) in nx_i2c_read() argument 483 if (alen > 4) { in nx_i2c_read() 484 debug("I2C read: addr len %d not supported\n", alen); in nx_i2c_read() 488 if (alen > 0) in nx_i2c_read() 491 if (alen > 0) { in nx_i2c_read() 499 &xaddr[4 - alen], alen, buffer, len, seq); in nx_i2c_read() 510 uint alen, uchar *buffer, uint len, uint seq) in nx_i2c_write() argument 520 if (alen > 4) { in nx_i2c_write() 521 debug("I2C write: addr len %d not supported\n", alen); in nx_i2c_write() 525 if (alen > 0) { in nx_i2c_write() [all …]
|
A D | designware_i2c.c | 415 int alen) in i2c_xfer_init() argument 421 while (alen) { in i2c_xfer_init() 422 alen--; in i2c_xfer_init() 424 writel((addr >> (alen * 8)) & 0xff, in i2c_xfer_init() 464 int alen, u8 *buffer, int len) in __dw_i2c_read() argument 482 addr &= ~(CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW << (alen * 8)); in __dw_i2c_read() 488 if (i2c_xfer_init(i2c_base, dev, addr, alen)) in __dw_i2c_read() 532 int alen, u8 *buffer, int len) in __dw_i2c_write() argument 556 if (i2c_xfer_init(i2c_base, dev, addr, alen)) in __dw_i2c_write() 656 int alen, u8 *buffer, int len) in dw_i2c_read() argument [all …]
|
A D | mvtwsi.c | 615 u8 *addr, int alen, uchar *data, int length, in __twsi_i2c_read() argument 622 if (alen > 0) { in __twsi_i2c_read() 626 while ((status == 0) && alen--) in __twsi_i2c_read() 627 status = twsi_send(twsi, addr[alen], in __twsi_i2c_read() 664 u8 *addr, int alen, uchar *data, int length, in __twsi_i2c_write() argument 673 while ((status == 0) && (alen-- > 0)) in __twsi_i2c_write() 674 status = twsi_send(twsi, addr[alen], MVTWSI_STATUS_DATA_W_ACK, in __twsi_i2c_write() 709 int alen, uchar *data, int length) in twsi_i2c_read() argument 719 return __twsi_i2c_read(twsi, chip, addr_bytes, alen, data, length, in twsi_i2c_read() 724 int alen, uchar *data, int length) in twsi_i2c_write() argument [all …]
|
A D | mxc_i2c.c | 288 u32 addr, int alen) in i2c_init_transfer_() argument 330 if (alen >= 0) { in i2c_init_transfer_() 336 while (alen--) { in i2c_init_transfer_() 510 u32 addr, int alen) in i2c_init_transfer() argument 673 int alen, u8 *buf, int len) in bus_i2c_read() argument 681 ret = i2c_init_transfer(i2c_bus, chip, addr, alen); in bus_i2c_read() 685 if (alen >= 0) { in bus_i2c_read() 721 int alen, const u8 *buf, int len) in bus_i2c_write() argument 725 ret = i2c_init_transfer(i2c_bus, chip, addr, alen); in bus_i2c_write() 742 uint addr, int alen, uint8_t *buffer, in mxc_i2c_read() argument [all …]
|
A D | exynos_hs_i2c.c | 367 unsigned char alen, in hsi2c_write() argument 374 if (!(len + alen)) { in hsi2c_write() 381 (i2c, chip, len + alen, false, issue_stop); in hsi2c_write() 386 for (i = 0; i < alen; i++) { in hsi2c_write() 420 unsigned char alen, in hsi2c_read() argument 434 if (alen) { in hsi2c_read() 436 rv = hsi2c_write(i2c, chip, addr, alen, NULL, 0, false); in hsi2c_read()
|
A D | i2c_core.c | 292 int i2c_read(uint8_t chip, unsigned int addr, int alen, in i2c_read() argument 295 return I2C_ADAP->read(I2C_ADAP, chip, addr, alen, buffer, len); in i2c_read() 298 int i2c_write(uint8_t chip, unsigned int addr, int alen, in i2c_write() argument 301 return I2C_ADAP->write(I2C_ADAP, chip, addr, alen, buffer, len); in i2c_write()
|
A D | sh_i2c.c | 243 uint addr, int alen, u8 *data, int len) in sh_i2c_read() argument 261 int alen, u8 *data, int len) in sh_i2c_write() argument
|
/u-boot/cmd/ |
A D | i2c.c | 254 int alen; in get_alen() local 264 return alen; in get_alen() 298 int alen; in do_i2c_read() local 319 if (alen > 3) in do_i2c_read() 352 int alen; in do_i2c_write() local 379 if (alen > 3) in do_i2c_write() 520 int alen; in do_i2c_md() local 640 int alen; in do_i2c_mw() local 727 int alen; in do_i2c_crc() local 812 int alen; in mod_i2c_mem() local [all …]
|
A D | eeprom.c | 88 int alen; in eeprom_addr() local 94 alen = 2; in eeprom_addr() 99 alen = 3; in eeprom_addr() 104 return alen; in eeprom_addr() 130 static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen, in eeprom_rw_block() argument 139 alen - 1, &dev); in eeprom_rw_block() 154 ret = i2c_read(addr[0], offset, alen - 1, buffer, len); in eeprom_rw_block() 156 ret = i2c_write(addr[0], offset, alen - 1, buffer, len); in eeprom_rw_block() 168 unsigned alen, len; in eeprom_rw() local 177 alen = eeprom_addr(dev_addr, offset, addr); in eeprom_rw() [all …]
|
/u-boot/board/gateworks/gw_ventana/ |
A D | gsc.h | 66 int gsc_i2c_read(uchar chip, uint addr, int alen, uchar *buf, int len); 67 int gsc_i2c_write(uchar chip, uint addr, int alen, uchar *buf, int len);
|
A D | gsc.c | 27 int gsc_i2c_read(uchar chip, uint addr, int alen, uchar *buf, int len) in gsc_i2c_read() argument 34 ret = i2c_read(chip, addr, alen, buf, len); in gsc_i2c_read() 46 int gsc_i2c_write(uchar chip, uint addr, int alen, uchar *buf, int len) in gsc_i2c_write() argument 53 ret = i2c_write(chip, addr, alen, buf, len); in gsc_i2c_write()
|
/u-boot/include/ |
A D | i2c.h | 626 uint addr, int alen, uint8_t *buffer, 629 uint addr, int alen, uint8_t *buffer, 784 int i2c_read(uint8_t chip, unsigned int addr, int alen, 787 int i2c_write(uint8_t chip, unsigned int addr, int alen, 837 int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len); 838 int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len);
|
/u-boot/fs/ubifs/ |
A D | lpt_commit.c | 233 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() 234 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 277 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 297 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 312 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() 313 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 314 dbg_chk_lpt_sz(c, 4, alen - offs); in layout_cnodes() 315 err = dbg_chk_lpt_sz(c, 3, alen); in layout_cnodes() 418 alen); in write_cnodes() 523 alen = ALIGN(wlen, c->min_io_size); in write_cnodes() [all …]
|
A D | lpt.c | 699 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt() 700 memset(p, 0xff, alen - len); in ubifs_create_dflt_lpt() 729 alen - len); in ubifs_create_dflt_lpt() 730 memset(p, 0xff, alen - len); in ubifs_create_dflt_lpt() 776 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt() 777 memset(p, 0xff, alen - len); in ubifs_create_dflt_lpt() 801 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt() 802 memset(p, 0xff, alen - len); in ubifs_create_dflt_lpt() 815 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt() 816 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt() [all …]
|
/u-boot/board/esd/vme8349/ |
A D | vme8349.c | 179 int vme8349_read_spd(uchar chip, uint addr, int alen, uchar *buffer, int len) in vme8349_read_spd() argument 187 if (i2c_read(chip, addr, alen, buffer, len) == 0) in vme8349_read_spd()
|
/u-boot/lib/rsa/ |
A D | rsa-keyprop.c | 586 size_t mlen, alen, u; in br_i32_reduce() local 601 alen = (a_bitlen + 31) >> 5; in br_i32_reduce() 603 memcpy(x + 1, a + 1, alen * sizeof *a); in br_i32_reduce() 604 for (u = alen; u < mlen; u ++) { in br_i32_reduce() 615 memcpy(x + 1, a + 2 + (alen - mlen), (mlen - 1) * sizeof *a); in br_i32_reduce() 617 for (u = 1 + alen - mlen; u > 0; u --) { in br_i32_reduce()
|
/u-boot/include/configs/ |
A D | vme8349.h | 311 int vme8349_read_spd(unsigned char chip, unsigned int addr, int alen,
|
A D | caddy2.h | 311 int vme8349_read_spd(unsigned char chip, unsigned int addr, int alen,
|