Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 35) sorted by relevance

12

/common/
A Dcli_readline.c246 memmove(&buf[*num+1], &buf[*num], wlen-1); in cread_add_char()
273 char *buf = cls->buf; in cread_line_process_ch() local
310 memmove(&buf[cls->num], &buf[cls->num + 1], in cread_line_process_ch()
344 memmove(&buf[base], &buf[cls->num], in cread_line_process_ch()
367 memmove(&buf[cls->num], &buf[cls->num + 1], wlen); in cread_line_process_ch()
448 cls->buf = buf; in cli_cread_init()
452 cread_add_str(buf, init_len, 0, &cls->num, &cls->eol_num, buf, in cli_cread_init()
502 if (buf[0] && buf[0] != CREAD_HIST_CHAR) in cread_line()
635 buf[0] = c; in cread_line_simple()
636 buf[1] = '\0'; in cread_line_simple()
[all …]
A Dedid.c283 set_entry(&timing->pixelclock, (buf[0] + (buf[1] << 8)) * 10000); in decode_timing()
284 x_mm = (buf[12] + ((buf[14] & 0xf0) << 4)); in decode_timing()
285 y_mm = (buf[13] + ((buf[14] & 0x0f) << 8)); in decode_timing()
286 ha = (buf[2] + ((buf[4] & 0xf0) << 4)); in decode_timing()
287 hbl = (buf[3] + ((buf[4] & 0x0f) << 8)); in decode_timing()
288 hso = (buf[8] + ((buf[11] & 0xc0) << 2)); in decode_timing()
289 hspw = (buf[9] + ((buf[11] & 0x30) << 4)); in decode_timing()
291 va = (buf[5] + ((buf[7] & 0xf0) << 4)); in decode_timing()
292 vbl = (buf[6] + ((buf[7] & 0x0f) << 8)); in decode_timing()
293 vso = ((buf[10] >> 4) + ((buf[11] & 0x0c) << 2)); in decode_timing()
[all …]
A Dhash.c47 const void *buf, unsigned int size, in hash_update_sha1() argument
74 const void *buf, uint size, in hash_update_sha256() argument
101 const void *buf, uint size, in hash_update_sha384() argument
128 const void *buf, uint size, in hash_update_sha512() argument
156 void *ctx, const void *buf, in hash_update_crc16_ccitt() argument
464 void *buf; in store_result() local
469 unmap_sysmem(buf); in store_result()
504 void *buf; in parse_verify_sum() local
558 void *buf; local
576 buf = map_sysmem(addr, len);
[all …]
A Dhwconfig.c132 int hwconfig_f(const char *opt, char *buf) in hwconfig_f() argument
134 return !!__hwconfig(opt, NULL, buf); in hwconfig_f()
152 return __hwconfig(opt, arglen, buf); in hwconfig_arg_f()
169 int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf) in hwconfig_arg_cmp_f() argument
174 argstr = hwconfig_arg_f(opt, &arglen, buf); in hwconfig_arg_cmp_f()
193 int hwconfig_sub_f(const char *opt, const char *subopt, char *buf) in hwconfig_sub_f() argument
198 arg = __hwconfig(opt, &arglen, buf); in hwconfig_sub_f()
215 size_t *subarglen, char *buf) in hwconfig_subarg_f() argument
220 arg = __hwconfig(opt, &arglen, buf); in hwconfig_subarg_f()
237 const char *subarg, char *buf) in hwconfig_subarg_cmp_f() argument
[all …]
A Dbutton_cmd.c37 char buf[24]; in get_button_cmd() local
39 snprintf(buf, sizeof(buf), "button_cmd_%d_name", n); in get_button_cmd()
40 cmd->btn_name = env_get(buf); in get_button_cmd()
57 snprintf(buf, sizeof(buf), "button_cmd_%d", n); in get_button_cmd()
58 cmd_str = env_get(buf); in get_button_cmd()
A Dusb.c579 (type << 8) + index, 0, buf, size, in usb_get_descriptor()
774 if (!isprint(buf[newlength]) || buf[newlength + 1]) in usb_try_string_workarounds()
778 buf[0] = newlength; in usb_try_string_workarounds()
797 rc = usb_get_string(dev, langid, index, buf, buf[0]); in usb_string_sub()
801 if (!buf[0] && !buf[1]) in usb_string_sub()
805 if (buf[0] < rc) in usb_string_sub()
806 rc = buf[0]; in usb_string_sub()
829 if (size <= 0 || !buf || !index) in usb_string()
831 buf[0] = 0; in usb_string()
865 buf[idx++] = tbuf[u]; in usb_string()
[all …]
A Dlog.c222 char buf[CONFIG_SYS_CBSIZE]; in log_dispatch() local
240 len = vsnprintf(buf, sizeof(buf), fmt, args); in log_dispatch()
241 rec->msg = buf; in log_dispatch()
242 gd->log_cont = len && buf[len - 1] != '\n'; in log_dispatch()
284 char buf[CONFIG_SYS_CBSIZE]; in _log() local
287 vsnprintf(buf, sizeof(buf), fmt, args); in _log()
288 puts(buf); in _log()
318 char buf[HEXDUMP_MAX_BUF_LENGTH(width * linelen)]; in _log_buffer() local
321 buf, sizeof(buf)); in _log_buffer()
323 _log(cat, level, file, line, func, "%s\n", buf); in _log_buffer()
A Dkgdb.c133 mem2hex(char *mem, char *buf, int count) in mem2hex() argument
142 tmp = buf + count; in mem2hex()
149 *buf++ = hexchars[ch >> 4]; in mem2hex()
150 *buf++ = hexchars[ch & 0xf]; in mem2hex()
152 *buf = 0; in mem2hex()
154 return (unsigned char *)buf; in mem2hex()
161 hex2mem(char *buf, char *mem, int count) in hex2mem() argument
170 tmp_raw = buf + count * 2; in hex2mem()
174 while (tmp_hex >= buf) { in hex2mem()
192 return buf; in hex2mem()
A Dbootstage.c231 static const char *get_record_name(char *buf, int len, in get_record_name() argument
237 snprintf(buf, len, "user_%d", rec->id - BOOTSTAGE_ID_USER); in get_record_name()
239 snprintf(buf, len, "id=%d", rec->id); in get_record_name()
241 return buf; in get_record_name()
246 char buf[20]; in print_time_record() local
257 printf(" %s\n", get_record_name(buf, sizeof(buf), rec)); in print_time_record()
273 char buf[20]; in add_bootstages_devicetree() local
305 get_record_name(buf, sizeof(buf), rec))) in add_bootstages_devicetree()
383 char buf[20]; in bootstage_stash() local
409 name = get_record_name(buf, sizeof(buf), rec); in bootstage_stash()
A Dlog_syslog.c17 static void append(char **buf, char *buf_end, const char *fmt, ...) in append() argument
20 size_t size = buf_end - *buf; in append()
23 vsnprintf(*buf, size, fmt, args); in append()
25 *buf += strlen(*buf); in append()
A Dsplash.c135 char buf[DISPLAY_OPTIONS_BANNER_LENGTH]; in splash_display_banner() local
150 display_options_get_banner(false, buf, sizeof(buf)); in splash_display_banner()
152 vidconsole_put_string(dev, buf); in splash_display_banner()
A Dcommand.c359 int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp) in cmd_auto_complete() argument
379 cnt = strlen(buf); in cmd_auto_complete()
381 last_char = buf[cnt - 1]; in cmd_auto_complete()
386 strcpy(tmp_buf, buf); in cmd_auto_complete()
443 t = buf + cnt; in cmd_auto_complete()
461 puts(buf); in cmd_auto_complete()
663 void *buf; in cmd_source_script() local
667 buf = map_sysmem(addr, 0); in cmd_source_script()
668 ret = image_locate_script(buf, 0, fit_uname, confname, &data, &len); in cmd_source_script()
669 unmap_sysmem(buf); in cmd_source_script()
/common/spl/
A Dspl_ymodem.c28 char *buf; member
42 char *buf = info->buf; in ymodem_read_fit() local
76 memcpy(addr, buf, copy_size); in ymodem_read_fit()
79 memcpy(addr, buf, res); in ymodem_read_fit()
96 char buf[BUF_SIZE]; in spl_ymodem_load_image() local
116 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
121 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
136 info.buf = buf; in spl_ymodem_load_image()
144 ih = (struct legacy_img_hdr *)buf; in spl_ymodem_load_image()
154 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
[all …]
A Dspl_reloc.c82 image->buf = map_sysmem(base, need_size); in setup_layout()
83 image->fdt_buf = image->buf + image->size; in setup_layout()
118 magic = get_unaligned_le32(image->buf); in rcode_reloc_and_jump()
123 image->buf, image_len); in rcode_reloc_and_jump()
126 ret = gunzip(dst, unc_len, image->buf, &image_len); in rcode_reloc_and_jump()
128 ret = ulz4fn(image->buf, image_len, dst, &unc_len); in rcode_reloc_and_jump()
135 for (src = image->buf, end = (void *)src + image->size, in rcode_reloc_and_jump()
A Dspl_upl.c135 struct abuf buf; in spl_write_upl_handoff() local
156 ret = oftree_to_fdt(oftree_default(), &buf); in spl_write_upl_handoff()
159 log_debug("FDT size %zx\n", abuf_size(&buf)); in spl_write_upl_handoff()
161 ptr = bloblist_add(BLOBLISTT_CONTROL_FDT, abuf_size(&buf), 0); in spl_write_upl_handoff()
164 memcpy(ptr, abuf_data(&buf), abuf_size(&buf)); in spl_write_upl_handoff()
A Dspl_imx_container.c35 void *buf, *trampoline; in read_auth_image() local
57 buf = map_sysmem(images[image_index].dst, images[image_index].size); in read_auth_image()
59 arch_check_dst_in_secure(buf, size)) { in read_auth_image()
71 memcpy(buf, trampoline, images[image_index].size); in read_auth_image()
73 if (info->read(info, offset, size, buf) < images[image_index].size) { in read_auth_image()
A Dspl_net.c20 ulong count, void *buf) in spl_net_load_read() argument
23 __func__, sector, count, (ulong)buf); in spl_net_load_read()
24 memcpy(buf, map_sysmem(image_load_addr + sector, count), count); in spl_net_load_read()
A Dspl_nor.c14 ulong count, void *buf) in spl_nor_load_read() argument
17 __func__, sector, count, buf); in spl_nor_load_read()
18 memcpy(buf, map_sysmem(sector, count), count); in spl_nor_load_read()
A Dspl_ram.c20 ulong count, void *buf) in spl_ram_load_read() argument
25 __func__, sector, count, (ulong)buf); in spl_ram_load_read()
35 memcpy(buf, (void *)addr, count); in spl_ram_load_read()
A Dspl_fit.c581 void *buf; in spl_get_fit_load_buffer() local
583 buf = malloc_cache_aligned(size); in spl_get_fit_load_buffer()
584 if (!buf) { in spl_get_fit_load_buffer()
592 buf = spl_get_load_buffer(0, size); in spl_get_fit_load_buffer()
594 return buf; in spl_get_fit_load_buffer()
691 void *buf; in spl_simple_fit_read() local
710 buf = board_spl_fit_buffer_addr(size, size, 1); in spl_simple_fit_read()
711 if (!buf) { in spl_simple_fit_read()
720 count = info->read(info, offset, size, buf); in spl_simple_fit_read()
751 ctx->fit = buf; in spl_simple_fit_read()
[all …]
A Dspl_fat.c49 ulong size, void *buf) in spl_fit_read() argument
56 ret = fat_read_file(filename, buf, file_offset, size, &actread); in spl_fit_read()
61 header = (struct legacy_img_hdr *)buf; in spl_fit_read()
A Dspl_ext.c12 ulong size, void *buf) in spl_fit_read() argument
18 ret = ext4fs_read(buf, file_offset, size, &actlen); in spl_fit_read()
23 header = (struct legacy_img_hdr *)buf; in spl_fit_read()
A Dspl_semihosting.c13 ulong size, void *buf) in smh_fit_read() argument
21 ret = smh_read(fd, buf, size); in smh_fit_read()
/common/eeprom/
A Deeprom_field.c23 printf("%02x%s", field->buf[i], delimiter); in __eeprom_field_print_bin()
25 printf("%02x\n", field->buf[i]); in __eeprom_field_print_bin()
40 memset(field->buf, 0, field->size); in __eeprom_field_update_bin()
63 field->buf[j] = byte; in __eeprom_field_update_bin()
96 field->buf[i] = (unsigned char)val; in __eeprom_field_update_bin_delim()
213 printf(format, field->buf); in eeprom_field_print_ascii()
230 strncpy((char *)field->buf, value, field->size - 1); in eeprom_field_update_ascii()
231 field->buf[field->size - 1] = '\0'; in eeprom_field_update_ascii()
A Deeprom_layout.c120 void eeprom_layout_setup(struct eeprom_layout *layout, unsigned char *buf, in eeprom_layout_setup() argument
126 layout->layout_version = eeprom_layout_detect(buf); in eeprom_layout_setup()
135 layout->data = buf; in eeprom_layout_setup()
137 layout->fields[i].buf = buf; in eeprom_layout_setup()
138 buf += layout->fields[i].size; in eeprom_layout_setup()

Completed in 48 milliseconds

12