/u-boot/lib/ |
A D | membuff.c | 43 if (maxlen >= 0 && len > maxlen) in membuff_putrawflex() 44 len = maxlen; in membuff_putrawflex() 54 if ((maxlen < 0 || len < maxlen) && mb->tail != mb->start) { in membuff_putrawflex() 64 if (maxlen >= 0 && len > maxlen) in membuff_putrawflex() 65 len = maxlen; in membuff_putrawflex() 116 if (maxlen >= 0 && len > maxlen) in membuff_getraw() 117 len = maxlen; in membuff_getraw() 133 if (maxlen >= 0 && len > maxlen) in membuff_getraw() 134 len = maxlen; in membuff_getraw() 180 maxlen -= len; in membuff_get() [all …]
|
/u-boot/include/ |
A D | membuff.h | 67 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data); 85 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data); 125 int membuff_get(struct membuff *mb, char *buff, int maxlen); 198 int membuff_readline(struct membuff *mb, char *str, int maxlen, int minch);
|
A D | console.h | 77 int console_record_readline(char *str, int maxlen); 104 static inline int console_record_readline(char *str, int maxlen) in console_record_readline() argument
|
A D | bootm.h | 113 int bootm_process_cmdline(char *buf, int maxlen, int flags);
|
A D | os.h | 318 int os_find_u_boot(char *fname, int maxlen);
|
A D | cros_ec.h | 72 int cros_ec_read_id(struct udevice *dev, char *id, int maxlen);
|
/u-boot/common/ |
A D | bootm.c | 497 if (size * 2 > maxlen) in fixup_silent_linux() 499 cmdline = buf + maxlen - size; in fixup_silent_linux() 519 if (size + CONSOLE_ARG_SIZE > maxlen) in fixup_silent_linux() 538 if (maxlen < sizeof(CONSOLE_ARG)) in fixup_silent_linux() 556 static int process_subst(char *buf, int maxlen) in process_subst() argument 564 cmdline = buf + maxlen - size; in process_subst() 582 ret = fixup_silent_linux(buf, maxlen); in bootm_process_cmdline() 587 ret = process_subst(buf, maxlen); in bootm_process_cmdline() 597 const int maxlen = MAX_CMDLINE_SIZE; in bootm_process_cmdline_env() local 610 if (env && strlen(env) >= maxlen) in bootm_process_cmdline_env() [all …]
|
A D | hwconfig.c | 31 static const char *hwconfig_parse(const char *opts, size_t maxlen, in hwconfig_parse() argument 43 if (end - start > maxlen) in hwconfig_parse() 59 *arglen = min(maxlen, strlen(str)) - optlen - 1; in hwconfig_parse()
|
A D | console.c | 755 int console_record_readline(char *str, int maxlen) in console_record_readline() argument 758 maxlen, ' '); in console_record_readline()
|
/u-boot/cmd/ |
A D | eeprom.c | 118 unsigned maxlen = EEPROM_PAGE_SIZE - EEPROM_PAGE_OFFSET(blk_off); in eeprom_len() local 120 if (maxlen > I2C_RXTX_LEN) in eeprom_len() 121 maxlen = I2C_RXTX_LEN; in eeprom_len() 123 if (len > maxlen) in eeprom_len() 124 len = maxlen; in eeprom_len()
|
A D | mtdparts.c | 1110 if (len > maxlen) in generate_mtdparts() 1115 maxlen -= len; in generate_mtdparts() 1129 if (len > maxlen) in generate_mtdparts() 1133 maxlen -= len; in generate_mtdparts() 1148 maxlen -= len; in generate_mtdparts() 1161 maxlen -= len; in generate_mtdparts() 1171 maxlen -= 2; in generate_mtdparts() 1177 if (1 > maxlen) in generate_mtdparts() 1180 maxlen--; in generate_mtdparts() 1186 if (1 > maxlen) in generate_mtdparts() [all …]
|
/u-boot/board/keymile/common/ |
A D | ivm.c | 101 unsigned long maxlen, in ivm_findinventorystring() argument 111 memset(string, '\0', maxlen); in ivm_findinventorystring() 137 (size < (maxlen - 1) && in ivm_findinventorystring() 151 } else if ((size > (maxlen - 1)) && in ivm_findinventorystring()
|
/u-boot/scripts/dtc/ |
A D | data.c | 93 struct data data_copy_file(FILE *f, size_t maxlen) in data_copy_file() argument 97 while (!feof(f) && (d.len < maxlen)) { in data_copy_file() 100 if (maxlen == -1) in data_copy_file() 103 chunksize = maxlen - d.len; in data_copy_file()
|
/u-boot/drivers/net/octeontx/ |
A D | nic_reg.h | 214 uint64_t maxlen:16; /* Max frame size */ member 218 uint64_t maxlen:16;
|
A D | nic_main.c | 351 if (new_frs <= nic->pkind.maxlen) in nic_update_hw_frs() 354 nic->pkind.maxlen = new_frs; in nic_update_hw_frs() 520 nic->pkind.maxlen = NIC_HW_MAX_FRS + ETH_HLEN; in nic_init_hw()
|
/u-boot/include/acpi/ |
A D | acpi_device.h | 327 int acpi_device_path(const struct udevice *dev, char *buf, int maxlen); 341 int acpi_device_scope(const struct udevice *dev, char *scope, int maxlen);
|
/u-boot/drivers/mmc/ |
A D | mtk-sd.c | 339 u8 maxlen; member 1065 delay_phase.maxlen = len_final; in get_best_delay() 1193 if (final_rise_delay.maxlen >= 12 || in msdc_tune_response() 1216 final_maxlen = max(final_rise_delay.maxlen, final_fall_delay.maxlen); in msdc_tune_response() 1217 if (final_maxlen == final_rise_delay.maxlen) { in msdc_tune_response() 1289 if (final_rise_delay.maxlen >= 12 || in msdc_tune_data() 1314 final_maxlen = max(final_rise_delay.maxlen, final_fall_delay.maxlen); in msdc_tune_data() 1315 if (final_maxlen == final_rise_delay.maxlen) { in msdc_tune_data() 1368 if (final_rise_delay.maxlen >= 12 || in msdc_tune_together() 1386 final_maxlen = max(final_rise_delay.maxlen, final_fall_delay.maxlen); in msdc_tune_together() [all …]
|
/u-boot/drivers/core/ |
A D | acpi.c | 86 int acpi_get_path(const struct udevice *dev, char *out_path, int maxlen) in acpi_get_path() argument 93 if (strlen(path) >= maxlen) in acpi_get_path() 98 ret = acpi_device_path(dev, out_path, maxlen); in acpi_get_path()
|
/u-boot/include/dm/ |
A D | acpi.h | 228 int acpi_get_path(const struct udevice *dev, char *out_path, int maxlen);
|
/u-boot/lib/acpi/ |
A D | acpi_device.c | 65 int acpi_device_path(const struct udevice *dev, char *buf, int maxlen) in acpi_device_path() argument 69 ret = acpi_device_path_fill(dev, buf, maxlen, 0); in acpi_device_path() 76 int acpi_device_scope(const struct udevice *dev, char *scope, int maxlen) in acpi_device_scope() argument 83 ret = acpi_device_path_fill(dev_get_parent(dev), scope, maxlen, 0); in acpi_device_scope()
|
/u-boot/net/ |
A D | bootp.c | 196 static int truncate_sz(const char *name, int maxlen, int curlen) in truncate_sz() argument 198 if (curlen >= maxlen) { in truncate_sz() 200 " - truncated\n", name, curlen, maxlen); in truncate_sz() 201 curlen = maxlen - 1; in truncate_sz()
|
/u-boot/drivers/misc/ |
A D | cros_ec.c | 439 int cros_ec_read_id(struct udevice *dev, char *id, int maxlen) in cros_ec_read_id() argument 451 if (maxlen > (int)sizeof(r->version_string_ro)) in cros_ec_read_id() 452 maxlen = sizeof(r->version_string_ro); in cros_ec_read_id() 456 memcpy(id, r->version_string_ro, maxlen); in cros_ec_read_id() 459 memcpy(id, r->version_string_rw, maxlen); in cros_ec_read_id() 466 id[maxlen - 1] = '\0'; in cros_ec_read_id()
|
/u-boot/drivers/serial/ |
A D | usbtty.c | 468 int maxlen = usbtty_output.totalsize; in __usbtty_puts() local 475 space = maxlen - usbtty_output.size; in __usbtty_puts() 480 n = min(space, min(len, maxlen)); in __usbtty_puts()
|
/u-boot/arch/sandbox/cpu/ |
A D | os.c | 732 int os_find_u_boot(char *fname, int maxlen) in os_find_u_boot() argument 741 if (len >= maxlen || len < 4) in os_find_u_boot()
|
/u-boot/lib/efi_loader/ |
A D | efi_device_path.c | 1166 const size_t maxlen) in efi_dp_check_length() argument 1171 if (maxlen > SSIZE_MAX) in efi_dp_check_length() 1178 if (ret > maxlen) in efi_dp_check_length()
|