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