Lines Matching refs:start_address

329 static int read_download_mem(struct usb_device *dev, int start_address,  in read_download_mem()  argument
336 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, length); in read_download_mem()
349 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, read_length); in read_download_mem()
355 be_start_address = swab16((u16)start_address); in read_download_mem()
370 start_address += read_length; in read_download_mem()
378 static int read_ram(struct usb_device *dev, int start_address, in read_ram() argument
381 return read_download_mem(dev, start_address, length, in read_ram()
387 int start_address, int length, __u8 *buffer) in read_boot_mem() argument
395 (__u16)(start_address+i), &buffer[i], 0x01); in read_boot_mem()
403 __func__, start_address, length); in read_boot_mem()
413 int start_address, int length, __u8 *buffer) in write_boot_mem() argument
433 buffer[i], (u16)(i + start_address), NULL, in write_boot_mem()
439 …dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address,… in write_boot_mem()
447 int start_address, int length, __u8 address_type, __u8 *buffer) in write_i2c_mem() argument
458 (start_address & (EPROM_PAGE_SIZE - 1)); in write_i2c_mem()
464 __func__, start_address, write_length); in write_i2c_mem()
473 be_start_address = swab16((u16)start_address); in write_i2c_mem()
483 start_address += write_length; in write_i2c_mem()
497 __func__, start_address, write_length); in write_i2c_mem()
506 be_start_address = swab16((u16)start_address); in write_i2c_mem()
516 start_address += write_length; in write_i2c_mem()
604 int start_address, int length, __u8 *buffer) in read_rom() argument
610 start_address, in read_rom()
615 status = read_boot_mem(serial, start_address, length, in read_rom()
621 static int write_rom(struct edgeport_serial *serial, int start_address, in write_rom() argument
625 return write_boot_mem(serial, start_address, length, in write_rom()
629 return write_i2c_mem(serial, start_address, length, in write_rom()
638 int start_address; in get_descriptor_addr() local
642 start_address = 2; in get_descriptor_addr()
645 start_address, in get_descriptor_addr()
652 return start_address; in get_descriptor_addr()
654 start_address = start_address + sizeof(struct ti_i2c_desc) + in get_descriptor_addr()
657 } while ((start_address < TI_MAX_I2C_SIZE) && rom_desc->Type); in get_descriptor_addr()
684 int start_address = 2; in check_i2c_image() local
712 start_address, in check_i2c_image()
718 if ((start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
732 status = read_rom(serial, start_address + in check_i2c_image()
743 start_address = start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
747 (start_address < TI_MAX_I2C_SIZE)); in check_i2c_image()
750 (start_address > TI_MAX_I2C_SIZE)) in check_i2c_image()
762 int start_address; in get_manuf_info() local
771 start_address = get_descriptor_addr(serial, I2C_DESC_TYPE_ION, in get_manuf_info()
774 if (!start_address) { in get_manuf_info()
781 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
1078 int start_address; in do_download_mode() local
1122 start_address = get_descriptor_addr(serial, in do_download_mode()
1124 if (start_address != 0) { in do_download_mode()
1143 status = read_rom(serial, start_address + in do_download_mode()
1206 status = write_rom(serial, start_address, in do_download_mode()
1222 start_address, in do_download_mode()
1267 start_address = get_descriptor_addr(serial, in do_download_mode()
1269 if (start_address != 0) { in do_download_mode()
1318 start_address, in do_download_mode()
1333 status = read_rom(serial, start_address, in do_download_mode()