Lines Matching refs:data_len
249 size_t data_len = 0; in parse_ihex() local
341 if (data_len != 0 in parse_ihex()
342 && (off != (data_addr + data_len) in parse_ihex()
344 || (data_len + len) > sizeof(data))) { in parse_ihex()
346 external = is_external(data_addr, data_len); in parse_ihex()
347 rc = poke(context, data_addr, external, data, data_len); in parse_ihex()
351 data_len = 0; in parse_ihex()
358 data[data_len + idx] = (uint8_t)strtoul(cp, NULL, 16); in parse_ihex()
361 data_len += len; in parse_ihex()
366 if (data_len != 0) { in parse_ihex()
368 external = is_external(data_addr, data_len); in parse_ihex()
369 rc = poke(context, data_addr, external, data, data_len); in parse_ihex()
397 size_t data_len = 0; in parse_bin() local
402 data_len = fread(data, 1, 4096, image); in parse_bin()
403 if (data_len == 0) in parse_bin()
406 external = is_external(data_addr, data_len); in parse_bin()
407 rc = poke(context, data_addr, external, data, data_len); in parse_bin()
410 data_addr += (uint32_t)data_len; in parse_bin()
435 size_t data_len = 0, read_len; in parse_iic() local
458 data_len = (block_header[0] << 8) + block_header[1]; in parse_iic()
460 if (data_len > sizeof(data)) { in parse_iic()
465 read_len = fread(data, 1, data_len, image); in parse_iic()
466 if (read_len != data_len) { in parse_iic()
471 external = is_external(data_addr, data_len); in parse_iic()
472 rc = poke(context, data_addr, external, data, data_len); in parse_iic()