Lines Matching refs:start_address

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