Lines Matching refs:write_len
399 size_t write_len = dev->erase_size;
406 if(len < write_len)
407 write_len = len;
412 cpu_memory_rw_debug(cpu_single_env, data, dev->data, write_len, 0);
413 ret = do_write(dev->fd, dev->data, write_len);
414 if(ret < write_len) {
418 data += write_len;
419 len -= write_len;
427 size_t write_len = dev->erase_size;
433 if(len < write_len)
434 write_len = len;
435 ret = do_write(dev->fd, dev->data, write_len);
436 if(ret < write_len) {
440 len -= write_len;