Lines Matching refs:write_length
402 int write_length; in write_i2c_mem() local
408 write_length = EPROM_PAGE_SIZE - in write_i2c_mem()
411 if (write_length > length) in write_i2c_mem()
412 write_length = length; in write_i2c_mem()
415 __func__, start_address, write_length); in write_i2c_mem()
416 usb_serial_debug_data(dev, __func__, write_length, buffer); in write_i2c_mem()
423 buffer, write_length); in write_i2c_mem()
429 length -= write_length; in write_i2c_mem()
430 start_address += write_length; in write_i2c_mem()
431 buffer += write_length; in write_i2c_mem()
437 write_length = EPROM_PAGE_SIZE; in write_i2c_mem()
439 write_length = length; in write_i2c_mem()
442 __func__, start_address, write_length); in write_i2c_mem()
443 usb_serial_debug_data(dev, __func__, write_length, buffer); in write_i2c_mem()
450 buffer, write_length); in write_i2c_mem()
456 length -= write_length; in write_i2c_mem()
457 start_address += write_length; in write_i2c_mem()
458 buffer += write_length; in write_i2c_mem()