Lines Matching refs:start_address
324 static int read_download_mem(struct usb_device *dev, int start_address, in read_download_mem() argument
331 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, length); in read_download_mem()
344 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, read_length); in read_download_mem()
350 be_start_address = swab16((u16)start_address); in read_download_mem()
365 start_address += read_length; in read_download_mem()
373 static int read_ram(struct usb_device *dev, int start_address, in read_ram() argument
376 return read_download_mem(dev, start_address, length, in read_ram()
382 int start_address, int length, u8 *buffer) in read_boot_mem() argument
390 (u16)(start_address+i), &buffer[i], 0x01); in read_boot_mem()
398 __func__, start_address, length); in read_boot_mem()
408 int start_address, int length, u8 *buffer) in write_boot_mem() argument
428 buffer[i], (u16)(i + start_address), NULL, in write_boot_mem()
434 …dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address,… in write_boot_mem()
442 int start_address, int length, u8 address_type, u8 *buffer) in write_i2c_mem() argument
453 (start_address & (EPROM_PAGE_SIZE - 1)); in write_i2c_mem()
459 __func__, start_address, write_length); in write_i2c_mem()
468 be_start_address = swab16((u16)start_address); in write_i2c_mem()
478 start_address += write_length; in write_i2c_mem()
492 __func__, start_address, write_length); in write_i2c_mem()
501 be_start_address = swab16((u16)start_address); in write_i2c_mem()
511 start_address += write_length; in write_i2c_mem()
599 int start_address, int length, u8 *buffer) in read_rom() argument
605 start_address, in read_rom()
610 status = read_boot_mem(serial, start_address, length, in read_rom()
616 static int write_rom(struct edgeport_serial *serial, int start_address, in write_rom() argument
620 return write_boot_mem(serial, start_address, length, in write_rom()
624 return write_i2c_mem(serial, start_address, length, in write_rom()
633 int start_address; in get_descriptor_addr() local
637 start_address = 2; in get_descriptor_addr()
640 start_address, in get_descriptor_addr()
647 return start_address; in get_descriptor_addr()
649 start_address = start_address + sizeof(struct ti_i2c_desc) + in get_descriptor_addr()
652 } while ((start_address < TI_MAX_I2C_SIZE) && rom_desc->Type); in get_descriptor_addr()
679 int start_address = 2; in check_i2c_image() local
707 start_address, in check_i2c_image()
713 if ((start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
727 status = read_rom(serial, start_address + in check_i2c_image()
738 start_address = start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
742 (start_address < TI_MAX_I2C_SIZE)); in check_i2c_image()
745 (start_address > TI_MAX_I2C_SIZE)) in check_i2c_image()
757 int start_address; in get_manuf_info() local
766 start_address = get_descriptor_addr(serial, I2C_DESC_TYPE_ION, in get_manuf_info()
769 if (!start_address) { in get_manuf_info()
776 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
1073 int start_address; in do_download_mode() local
1117 start_address = get_descriptor_addr(serial, in do_download_mode()
1119 if (start_address != 0) { in do_download_mode()
1138 status = read_rom(serial, start_address + in do_download_mode()
1201 status = write_rom(serial, start_address, in do_download_mode()
1217 start_address, in do_download_mode()
1262 start_address = get_descriptor_addr(serial, in do_download_mode()
1264 if (start_address != 0) { in do_download_mode()
1313 start_address, in do_download_mode()
1328 status = read_rom(serial, start_address, in do_download_mode()