Lines Matching refs:start_address

321 static int read_download_mem(struct usb_device *dev, int start_address,  in read_download_mem()  argument
328 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, length); in read_download_mem()
341 dev_dbg(&dev->dev, "%s - @ %x for %d\n", __func__, start_address, read_length); in read_download_mem()
347 be_start_address = swab16((u16)start_address); in read_download_mem()
362 start_address += read_length; in read_download_mem()
370 static int read_ram(struct usb_device *dev, int start_address, in read_ram() argument
373 return read_download_mem(dev, start_address, length, in read_ram()
379 int start_address, int length, u8 *buffer) in read_boot_mem() argument
387 (u16)(start_address+i), &buffer[i], 0x01); in read_boot_mem()
395 __func__, start_address, length); in read_boot_mem()
405 int start_address, int length, u8 *buffer) in write_boot_mem() argument
425 buffer[i], (u16)(i + start_address), NULL, in write_boot_mem()
431 …dev_dbg(&serial->serial->dev->dev, "%s - start_sddr = %x, length = %d\n", __func__, start_address,… in write_boot_mem()
439 int start_address, int length, u8 address_type, u8 *buffer) in write_i2c_mem() argument
450 (start_address & (EPROM_PAGE_SIZE - 1)); in write_i2c_mem()
456 __func__, start_address, write_length); in write_i2c_mem()
465 be_start_address = swab16((u16)start_address); in write_i2c_mem()
475 start_address += write_length; in write_i2c_mem()
489 __func__, start_address, write_length); in write_i2c_mem()
498 be_start_address = swab16((u16)start_address); in write_i2c_mem()
508 start_address += write_length; in write_i2c_mem()
596 int start_address, int length, u8 *buffer) in read_rom() argument
602 start_address, in read_rom()
607 status = read_boot_mem(serial, start_address, length, in read_rom()
613 static int write_rom(struct edgeport_serial *serial, int start_address, in write_rom() argument
617 return write_boot_mem(serial, start_address, length, in write_rom()
621 return write_i2c_mem(serial, start_address, length, in write_rom()
630 int start_address; in get_descriptor_addr() local
634 start_address = 2; in get_descriptor_addr()
637 start_address, in get_descriptor_addr()
644 return start_address; in get_descriptor_addr()
646 start_address = start_address + sizeof(struct ti_i2c_desc) + in get_descriptor_addr()
649 } while ((start_address < TI_MAX_I2C_SIZE) && rom_desc->Type); in get_descriptor_addr()
676 int start_address = 2; in check_i2c_image() local
704 start_address, in check_i2c_image()
710 if ((start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
724 status = read_rom(serial, start_address + in check_i2c_image()
735 start_address = start_address + sizeof(struct ti_i2c_desc) + in check_i2c_image()
739 (start_address < TI_MAX_I2C_SIZE)); in check_i2c_image()
742 (start_address > TI_MAX_I2C_SIZE)) in check_i2c_image()
754 int start_address; in get_manuf_info() local
763 start_address = get_descriptor_addr(serial, I2C_DESC_TYPE_ION, in get_manuf_info()
766 if (!start_address) { in get_manuf_info()
773 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
1070 int start_address; in do_download_mode() local
1114 start_address = get_descriptor_addr(serial, in do_download_mode()
1116 if (start_address != 0) { in do_download_mode()
1135 status = read_rom(serial, start_address + in do_download_mode()
1198 status = write_rom(serial, start_address, in do_download_mode()
1214 start_address, in do_download_mode()
1259 start_address = get_descriptor_addr(serial, in do_download_mode()
1261 if (start_address != 0) { in do_download_mode()
1310 start_address, in do_download_mode()
1325 status = read_rom(serial, start_address, in do_download_mode()