Lines Matching refs:start_address
279 static int read_download_mem(struct usb_device *dev, int start_address, in read_download_mem() argument
286 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, length); in read_download_mem()
298 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, read_length); in read_download_mem()
304 be_start_address = swab16((u16)start_address); in read_download_mem()
319 start_address += read_length; in read_download_mem()
327 static int read_ram(struct usb_device *dev, int start_address, in read_ram() argument
330 return read_download_mem(dev, start_address, length, in read_ram()
336 int start_address, int length, __u8 *buffer) in read_boot_mem() argument
344 (__u16)(start_address+i), &buffer[i], 0x01); in read_boot_mem()
352 __func__, start_address, length); in read_boot_mem()
362 int start_address, int length, __u8 *buffer) in write_boot_mem() argument
383 (__u16)(i + start_address), NULL, 0); in write_boot_mem()
388 …dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address,… in write_boot_mem()
397 int start_address, int length, __u8 address_type, __u8 *buffer) in write_i2c_mem() argument
408 (start_address & (EPROM_PAGE_SIZE - 1)); in write_i2c_mem()
414 __func__, start_address, write_length); in write_i2c_mem()
423 be_start_address = swab16((u16)start_address); in write_i2c_mem()
434 start_address += write_length; in write_i2c_mem()
446 __func__, start_address, write_length); in write_i2c_mem()
455 be_start_address = swab16((u16)start_address); in write_i2c_mem()
466 start_address += write_length; in write_i2c_mem()
551 int start_address, int length, __u8 *buffer) in read_rom() argument
557 start_address, in read_rom()
562 status = read_boot_mem(serial, start_address, length, in read_rom()
568 static int write_rom(struct edgeport_serial *serial, int start_address, in write_rom() argument
572 return write_boot_mem(serial, start_address, length, in write_rom()
576 return write_i2c_mem(serial, start_address, length, in write_rom()
587 int start_address; in get_descriptor_addr() local
591 start_address = 2; in get_descriptor_addr()
594 start_address, in get_descriptor_addr()
601 return start_address; in get_descriptor_addr()
603 start_address = start_address + sizeof(struct ti_i2c_desc) + in get_descriptor_addr()
606 } while ((start_address < TI_MAX_I2C_SIZE) && rom_desc->Type); in get_descriptor_addr()
633 int start_address = 2; in check_i2c_image() local
661 start_address, in check_i2c_image()
667 if ((start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
681 status = read_rom(serial, start_address + in check_i2c_image()
692 start_address = start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
696 (start_address < TI_MAX_I2C_SIZE)); in check_i2c_image()
699 (start_address > TI_MAX_I2C_SIZE)) in check_i2c_image()
711 int start_address; in get_manuf_info() local
720 start_address = get_descriptor_addr(serial, I2C_DESC_TYPE_ION, in get_manuf_info()
723 if (!start_address) { in get_manuf_info()
730 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
938 int start_address; in download_fw() local
1016 start_address = get_descriptor_addr(serial, in download_fw()
1018 if (start_address != 0) { in download_fw()
1035 status = read_rom(serial, start_address + in download_fw()
1092 status = write_rom(serial, start_address, in download_fw()
1107 start_address, in download_fw()
1146 …else if ((start_address = get_descriptor_addr(serial, I2C_DESC_TYPE_FIRMWARE_BLANK, rom_desc)) != … in download_fw()
1192 start_address, in download_fw()
1205 status = read_rom(serial, start_address, in download_fw()