Lines Matching refs:write_length
394 int write_length; in TIWriteDownloadI2C() local
400 write_length = EPROM_PAGE_SIZE - (start_address & (EPROM_PAGE_SIZE - 1)); in TIWriteDownloadI2C()
402 if (write_length > length) in TIWriteDownloadI2C()
403 write_length = length; in TIWriteDownloadI2C()
405 dbg ("%s - BytesInFirstPage Addr = %x, length = %d", __FUNCTION__, start_address, write_length); in TIWriteDownloadI2C()
406 usb_serial_debug_data (__FILE__, __FUNCTION__, write_length, buffer); in TIWriteDownloadI2C()
415 write_length); in TIWriteDownloadI2C()
421 length -= write_length; in TIWriteDownloadI2C()
422 start_address += write_length; in TIWriteDownloadI2C()
423 buffer += write_length; in TIWriteDownloadI2C()
428 write_length = EPROM_PAGE_SIZE; in TIWriteDownloadI2C()
430 write_length = length; in TIWriteDownloadI2C()
432 dbg ("%s - Page Write Addr = %x, length = %d", __FUNCTION__, start_address, write_length); in TIWriteDownloadI2C()
433 usb_serial_debug_data (__FILE__, __FUNCTION__, write_length, buffer); in TIWriteDownloadI2C()
442 write_length); // TransferBufferLength in TIWriteDownloadI2C()
448 length -= write_length; in TIWriteDownloadI2C()
449 start_address += write_length; in TIWriteDownloadI2C()
450 buffer += write_length; in TIWriteDownloadI2C()