Searched refs:buf (Results 76 - 100 of 1055) sorted by relevance

1234567891011>>

/u-boot/include/
H A Dhexdump.h23 static inline char *hex_byte_pack(char *buf, u8 byte) argument
25 *buf++ = hex_asc_hi(byte);
26 *buf++ = hex_asc_lo(byte);
27 return buf;
86 * @buf: data blob to dump
87 * @len: number of bytes in the @buf
114 int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, int groupsize,
125 * @buf: data blob to dump
126 * @len: number of bytes in the @buf
136 * print_hex_dump() iterates over the entire input @buf, breakin
[all...]
H A DstratixII.h10 extern int StratixII_dump (Altera_desc * desc, void *buf, size_t bsize);
H A Dcpu.h64 * @buf: Buffer to place string
68 int (*get_desc)(const struct udevice *dev, char *buf, int size);
91 * @buf: Buffer to place string
95 int (*get_vendor)(const struct udevice *dev, char *buf, int size);
112 * @buf: Buffer to place string
117 int cpu_get_desc(const struct udevice *dev, char *buf, int size);
139 * @buf: Buffer to place string
144 int cpu_get_vendor(const struct udevice *dev, char *buf, int size);
H A Dnvmem.h43 * @buf: The buffer to read into
44 * @size: The size of @buf
48 * * -EINVAL if @buf is not the same size as @cell.
52 int nvmem_cell_read(struct nvmem_cell *cell, void *buf, size_t size);
57 * @buf: The buffer to write from
58 * @size: The size of @buf
62 * * -EINVAL if @buf is not the same size as @cell
66 int nvmem_cell_write(struct nvmem_cell *cell, const void *buf, size_t size);
111 static inline int nvmem_cell_read(struct nvmem_cell *cell, void *buf, int size) argument
116 static inline int nvmem_cell_write(struct nvmem_cell *cell, const void *buf, argument
[all...]
H A Dxilinx.h57 int (*load)(xilinx_desc *desc, const void *buf, size_t bsize,
59 int (*loadfs)(xilinx_desc *desc, const void *buf, size_t bsize,
61 int (*loads)(xilinx_desc *desc, const void *buf, size_t bsize,
63 int (*dump)(xilinx_desc *desc, const void *buf, size_t bsize);
74 int xilinx_dump(xilinx_desc *desc, const void *buf, size_t bsize);
76 int xilinx_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
78 int xilinx_loads(xilinx_desc *desc, const void *buf, size_t bsize,
96 typedef int (*xilinx_bwr_fn)(void *buf, size_t len, int flush, int cookie);
/u-boot/common/
H A Dbutton_cmd.c37 char buf[24]; local
39 snprintf(buf, sizeof(buf), "button_cmd_%d_name", n);
40 cmd->btn_name = env_get(buf);
57 snprintf(buf, sizeof(buf), "button_cmd_%d", n);
58 cmd_str = env_get(buf);
H A Dcli_readline.c224 putnstr(buf + cls->num, wlen); \
230 uint *eol_num, char *buf, uint len)
246 memmove(&buf[*num+1], &buf[*num], wlen-1);
248 buf[*num] = ichar;
249 putnstr(buf + *num, wlen);
256 buf[*num] = ichar;
257 putnstr(buf + *num, wlen);
263 uint *num, uint *eol_num, char *buf, uint len)
266 cread_add_char(*str, insert, num, eol_num, buf, le
229 cread_add_char(char ichar, int insert, uint *num, uint *eol_num, char *buf, uint len) argument
262 cread_add_str(char *str, int strsize, int insert, uint *num, uint *eol_num, char *buf, uint len) argument
273 char *buf = cls->buf; local
442 cli_cread_init(struct cli_line_state *cls, char *buf, uint buf_size) argument
456 cread_line(const char *const prompt, char *buf, unsigned int *len, int timeout) argument
516 cread_line(const char *const prompt, char *buf, unsigned int *len, int timeout) argument
628 char __maybe_unused buf[2]; local
[all...]
/u-boot/drivers/mtd/spi/
H A Dfsl_espi_spl.c40 unsigned char *buf = NULL; local
58 buf = malloc(flash->page_size);
59 if (buf == NULL) {
63 memset(buf, 0, flash->page_size);
66 flash->page_size, (void *)buf);
67 offset = *(u32 *)(buf + ESPI_BOOT_IMAGE_ADDR);
71 code_len = *(u32 *)(buf + ESPI_BOOT_IMAGE_SIZE);
/u-boot/cmd/
H A Dkaslrseed.c21 u64 *buf; local
30 buf = malloc(n);
31 if (!buf) {
36 if (dm_rng_read(dev, buf, n)) {
60 ret = fdt_setprop(working_fdt, nodeoffset, "kaslr-seed", buf, sizeof(buf));
66 free(buf);
/u-boot/drivers/mtd/ubi/
H A Dmisc.c18 * @buf: a buffer with the contents of the physical eraseblock
21 * This function calculates how much "real data" is stored in @buf and returnes
25 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, argument
33 if (((const uint8_t *)buf)[i] != 0xFF)
53 void *buf; local
60 buf = vmalloc(vol->usable_leb_size);
61 if (!buf)
74 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1);
82 vfree(buf);
130 * @buf
137 ubi_check_pattern(const void *buf, uint8_t patt, int size) argument
[all...]
/u-boot/arch/mips/lib/
H A Dreloc.c37 * @buf: pointer to a pointer to the reloc buffer
39 * Read one whole unsigned integer from the relocation data pointed to by @buf,
40 * advancing @buf past the bytes encoding the integer.
42 * Returns: the integer read from @buf
44 static unsigned long read_uint(uint8_t **buf) argument
51 new = *(*buf)++;
69 static void apply_reloc(unsigned int type, void *addr, long off, uint8_t *buf) argument
95 type, buf);
113 uint8_t *buf, *bss_start; local
132 buf
[all...]
/u-boot/net/
H A Dpcap.c17 static void *buf; variable
51 buf = map_physmem(paddr, size, 0);
52 if (!buf) {
58 (unsigned long)buf, size);
60 memcpy(buf, &file_header, sizeof(file_header));
104 if (!initialized || !running || !buf)
121 memcpy(buf + pos, &header, sizeof(header));
123 memcpy(buf + pos, packet, len);
144 (unsigned long)buf, max_size);
/u-boot/arch/xtensa/cpu/
H A Dcpu.c32 char buf[120], mhz[8]; local
39 sprintf(buf, "CPU: Xtensa %s (id: %08x:%08x) at %s MHz\n",
41 puts(buf);
/u-boot/tools/gdb/
H A Dremote.c381 hexnumstr (char *buf, ULONGEST num) argument
386 buf[len] = '\0';
390 buf[i] = "0123456789abcdef"[(num & 0xf)];
427 char *buf = alloca (PBUFSIZ); local
431 p = buf;
439 putpkt_binary (buf, (int) (p - buf));
440 getpkt (buf, 0);
442 if (buf[0] == '\0')
471 unsigned char *buf local
751 read_frame(char *buf) argument
[all...]
/u-boot/test/dm/
H A Dacpi.c264 void *buf; local
267 buf = malloc(BUF_SIZE);
268 ut_assertnonnull(buf);
269 addr = map_to_sysmem(buf);
339 void *buf, *end; local
346 buf = memalign(64, BUF_SIZE);
347 ut_assertnonnull(buf);
348 addr = map_to_sysmem(buf);
350 ut_asserteq(map_to_sysmem(PTR_ALIGN(buf + 4, 16)), gd_acpi_start());
352 rsdp = buf
387 void *buf; local
430 void *buf; local
461 char buf[ACPI_PATH_MAX]; local
510 u8 *buf; local
541 u8 *buf; local
573 void *buf; local
622 void *buf; local
686 void *buf; local
[all...]
/u-boot/fs/ubifs/
H A Dscan.c28 * @buf: buffer to scan
34 static int scan_padding_bytes(void *buf, int len) argument
37 uint8_t *p = buf;
55 * @buf: buffer to scan
63 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, argument
66 struct ubifs_ch *ch = buf;
77 return scan_padding_bytes(buf, len);
85 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1))
89 struct ubifs_pad_node *pad = buf;
145 sleb->buf
188 ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, void *buf, int offs) argument
232 ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, void *buf) argument
264 void *buf = sbuf + offs; local
[all...]
/u-boot/drivers/misc/
H A Dgsc.c95 static int gsc_i2c_read(struct udevice *dev, uint addr, u8 *buf, int len) argument
103 ret = dm_i2c_read(dev, addr, buf, len);
113 static int gsc_i2c_write(struct udevice *dev, uint addr, const u8 *buf, int len) argument
121 ret = dm_i2c_write(dev, addr, buf, len);
180 u8 buf[2]; local
195 memset(buf, 0, sizeof(buf));
196 if (!gsc_i2c_read(priv->hwmon, reg, buf, sizeof(buf))) {
197 val = buf[
284 u8 buf[2]; local
351 u8 buf[4]; local
370 u8 buf[32]; local
569 gsc_i2c_read(uint chip, uint addr, u8 *buf, int len) argument
587 gsc_i2c_write(uint chip, uint addr, u8 *buf, int len) argument
608 u8 buf[32]; local
[all...]
/u-boot/drivers/fpga/
H A Dzynqpl.c73 static u32 load_word(const void *buf, u32 swap) argument
76 u8 *bitc = (u8 *)buf;
94 static u32 check_header(const void *buf) argument
98 u32 *test = (u32 *)buf;
127 (u32)buf, swap == SWAP_NO ? "without" : "with");
132 static void *check_data(u8 *buf, size_t bsize, u32 *swap) argument
136 /* Because buf doesn't need to be aligned let's read it by chars */
138 word = load_word(&buf[p], SWAP_NO);
139 debug("%s: word %x %x/%x\n", __func__, word, p, (u32)&buf[p]);
144 __func__, p, (u32)&buf[
303 zynq_align_dma_buffer(u32 *buf, u32 len, u32 swap) argument
341 zynq_validate_bitstream(xilinx_desc *desc, const void *buf, size_t bsize, u32 blocksize, u32 *swap, bitstream_type *bstype) argument
373 zynq_load(xilinx_desc *desc, const void *buf, size_t bsize, bitstream_type bstype, int flags) argument
423 zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize, fpga_fs_info *fsinfo) argument
[all...]
/u-boot/tools/
H A Dncb.c10 char buf[512]; local
30 len = recvfrom (s, buf, sizeof buf, 0, (struct sockaddr *) &addr, &addr_len);
33 if (write (1, buf, len) != len)
/u-boot/arch/sandbox/include/asm/
H A Dserial.h44 * @buf: holds input characters available to be read by this driver
47 struct membuff buf; member in struct:sandbox_serial_priv
/u-boot/drivers/rng/
H A Dsandbox_rng.c15 unsigned char *buf = data; local
27 memcpy(buf, &random, sizeof(random));
28 buf += sizeof(random);
34 memcpy(buf, &random, nrem);
/u-boot/arch/arm/mach-at91/arm926ejs/
H A Dcpu.c45 char __maybe_unused buf[32]; local
49 strmhz(buf, get_main_clk_rate()));
51 strmhz(buf, get_cpu_clk_rate()));
53 strmhz(buf, get_mck_clk_rate()));
/u-boot/arch/arm/mach-at91/armv7/
H A Dcpu.c54 char buf[32]; local
58 strmhz(buf, get_main_clk_rate()));
60 strmhz(buf, get_cpu_clk_rate()));
62 strmhz(buf, get_mck_clk_rate()));
/u-boot/lib/efi_selftest/
H A Defi_selftest_unaligned.c44 struct aligned_buffer buf = { local
50 r = deref(&buf.a[1]);
/u-boot/arch/arm/include/asm/arch-apple/
H A Drtkit.h18 struct apple_rtkit_buffer *buf);
20 struct apple_rtkit_buffer *buf);

Completed in 143 milliseconds

1234567891011>>