Lines Matching refs:start_address

327 static int read_download_mem(struct usb_device *dev, int start_address,  in read_download_mem()  argument
334 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, length); in read_download_mem()
347 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, read_length); in read_download_mem()
353 be_start_address = swab16((u16)start_address); in read_download_mem()
368 start_address += read_length; in read_download_mem()
376 static int read_ram(struct usb_device *dev, int start_address, in read_ram() argument
379 return read_download_mem(dev, start_address, length, in read_ram()
385 int start_address, int length, __u8 *buffer) in read_boot_mem() argument
393 (__u16)(start_address+i), &buffer[i], 0x01); in read_boot_mem()
401 __func__, start_address, length); in read_boot_mem()
411 int start_address, int length, __u8 *buffer) in write_boot_mem() argument
431 buffer[i], (u16)(i + start_address), NULL, in write_boot_mem()
437 …dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address,… in write_boot_mem()
445 int start_address, int length, __u8 address_type, __u8 *buffer) in write_i2c_mem() argument
456 (start_address & (EPROM_PAGE_SIZE - 1)); in write_i2c_mem()
462 __func__, start_address, write_length); in write_i2c_mem()
471 be_start_address = swab16((u16)start_address); in write_i2c_mem()
481 start_address += write_length; in write_i2c_mem()
495 __func__, start_address, write_length); in write_i2c_mem()
504 be_start_address = swab16((u16)start_address); in write_i2c_mem()
514 start_address += write_length; in write_i2c_mem()
602 int start_address, int length, __u8 *buffer) in read_rom() argument
608 start_address, in read_rom()
613 status = read_boot_mem(serial, start_address, length, in read_rom()
619 static int write_rom(struct edgeport_serial *serial, int start_address, in write_rom() argument
623 return write_boot_mem(serial, start_address, length, in write_rom()
627 return write_i2c_mem(serial, start_address, length, in write_rom()
636 int start_address; in get_descriptor_addr() local
640 start_address = 2; in get_descriptor_addr()
643 start_address, in get_descriptor_addr()
650 return start_address; in get_descriptor_addr()
652 start_address = start_address + sizeof(struct ti_i2c_desc) + in get_descriptor_addr()
655 } while ((start_address < TI_MAX_I2C_SIZE) && rom_desc->Type); in get_descriptor_addr()
682 int start_address = 2; in check_i2c_image() local
710 start_address, in check_i2c_image()
716 if ((start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
730 status = read_rom(serial, start_address + in check_i2c_image()
741 start_address = start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
745 (start_address < TI_MAX_I2C_SIZE)); in check_i2c_image()
748 (start_address > TI_MAX_I2C_SIZE)) in check_i2c_image()
760 int start_address; in get_manuf_info() local
769 start_address = get_descriptor_addr(serial, I2C_DESC_TYPE_ION, in get_manuf_info()
772 if (!start_address) { in get_manuf_info()
779 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
1076 int start_address; in do_download_mode() local
1120 start_address = get_descriptor_addr(serial, in do_download_mode()
1122 if (start_address != 0) { in do_download_mode()
1141 status = read_rom(serial, start_address + in do_download_mode()
1204 status = write_rom(serial, start_address, in do_download_mode()
1220 start_address, in do_download_mode()
1265 start_address = get_descriptor_addr(serial, in do_download_mode()
1267 if (start_address != 0) { in do_download_mode()
1316 start_address, in do_download_mode()
1331 status = read_rom(serial, start_address, in do_download_mode()