Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/u-boot/arch/arm/mach-bcm283x/
A Dmbox.c92 void dump_buf(struct bcm2835_mbox_hdr *buffer) in dump_buf() argument
98 p = (u32 *)buffer; in dump_buf()
99 words = buffer->buf_size / 4; in dump_buf()
114 dump_buf(buffer); in bcm2835_mbox_call_prop()
117 flush_dcache_range((unsigned long)buffer, in bcm2835_mbox_call_prop()
118 (unsigned long)((void *)buffer + in bcm2835_mbox_call_prop()
122 phys_to_bus((unsigned long)buffer), in bcm2835_mbox_call_prop()
127 invalidate_dcache_range((unsigned long)buffer, in bcm2835_mbox_call_prop()
128 (unsigned long)((void *)buffer + in bcm2835_mbox_call_prop()
138 dump_buf(buffer); in bcm2835_mbox_call_prop()
[all …]
/u-boot/test/lib/
A Dsscanf.c33 char buffer[100], buffer1[100]; in lib_sscanf() local
44 strcpy(buffer, ""); in lib_sscanf()
45 ret = sscanf(buffer, "%d", &result); in lib_sscanf()
49 strcpy(buffer, "0x519"); in lib_sscanf()
53 strcpy(buffer, "0x51a"); in lib_sscanf()
57 strcpy(buffer, "0x51g"); in lib_sscanf()
62 ret = sprintf(buffer, " %s", pname); in lib_sscanf()
63 ret = sscanf(buffer, "%*c%[^\n]", buffer1); in lib_sscanf()
79 strcpy(buffer, "123"); in lib_sscanf()
80 ret = sscanf(buffer, "%i", &result); in lib_sscanf()
[all …]
/u-boot/cmd/
A Dpstore.c55 char *ptr = buffer; in pstore_read_kmsg_hdr()
70 return ptr - buffer + 1; in pstore_read_kmsg_hdr()
223 putc(buffer[i]); in pstore_print_buffer()
248 char *buffer; in pstore_display() local
335 pstore_pmsg_size, buffer); in pstore_display()
340 free(buffer); in pstore_display()
364 char *buffer; in pstore_save() local
385 sprintf(addr, "0x%p", buffer); in pstore_save()
425 buffer); in pstore_save()
447 buffer); in pstore_save()
[all …]
A Davb.c45 void *buffer; in do_avb_read_part() local
78 char *buffer; in do_avb_read_part_hex() local
92 buffer = malloc(bytes); in do_avb_read_part_hex()
93 if (!buffer) { in do_avb_read_part_hex()
108 free(buffer); in do_avb_read_part_hex()
114 free(buffer); in do_avb_read_part_hex()
124 void *buffer; in do_avb_write_part() local
357 void *buffer; in do_avb_read_pvalue() local
374 if (!buffer) in do_avb_read_pvalue()
381 free(buffer); in do_avb_read_pvalue()
[all …]
/u-boot/disk/
A Dpart_dos.c126 if (test_block_type(buffer) != DOS_MBR) in part_test_dos()
156 i=test_block_type(buffer); in print_partition_extended()
159 buffer[DOS_PART_MAGIC_OFFSET], in print_partition_extended()
160 buffer[DOS_PART_MAGIC_OFFSET + 1]); in print_partition_extended()
231 buffer[DOS_PART_MAGIC_OFFSET], in part_get_info_extended()
232 buffer[DOS_PART_MAGIC_OFFSET + 1]); in part_get_info_extended()
289 dos_type = test_block_type(buffer); in part_get_info_extended()
366 memset(buffer, 0, dev->blksz); in write_mbr_partitions()
367 buffer[DOS_PART_MAGIC_OFFSET] = 0x55; in write_mbr_partitions()
400 memset(buffer, 0, dev->blksz); in write_mbr_partitions()
[all …]
/u-boot/board/esd/vme8349/
A Dvme8349.c179 int vme8349_read_spd(uchar chip, uint addr, int alen, uchar *buffer, int len) in vme8349_read_spd() argument
187 if (i2c_read(chip, addr, alen, buffer, len) == 0) in vme8349_read_spd()
188 if (memcmp(&buffer[64], &default_spd_eeprom.mid[0], 8) == 0) { in vme8349_read_spd()
191 sum = (sum + buffer[l]) & 0xff; in vme8349_read_spd()
192 if (sum == buffer[63]) in vme8349_read_spd()
196 sum, buffer[63]); in vme8349_read_spd()
200 memcpy(buffer, (void *)&default_spd_eeprom, len); in vme8349_read_spd()
203 sum = (sum + buffer[l]) & 0xff; in vme8349_read_spd()
204 if (sum != buffer[63]) in vme8349_read_spd()
206 sum, buffer[63]); in vme8349_read_spd()
[all …]
/u-boot/board/samsung/origen/tools/
A Dmkorigenspl.c37 unsigned char buffer[BUFSIZE] = {0}; in main() local
65 memcpy(&buffer[0], SPL_HEADER, SPL_HEADER_SIZE); in main()
70 if (read(ifd, buffer + SPL_HEADER_SIZE, count) != count) { in main()
83 checksum += buffer[i+16]; in main()
85 *(unsigned long *)buffer ^= 0x1f; in main()
86 *(unsigned long *)(buffer+4) ^= checksum; in main()
89 buffer[i] ^= buffer[i-1]; in main()
91 if (write(ofd, buffer, BUFSIZE) != BUFSIZE) { in main()
/u-boot/tools/
A Dsunxi-spl-image-builder.c141 if (buffer[i] != 0xff) in write_page()
161 ret = fread(buffer + offs, 1, cnt, rnd); in write_page()
170 memset(buffer + offs, 0xff, cnt); in write_page()
174 fwrite(buffer + offs, cnt, 1, dst); in write_page()
182 ecc = buffer + info->ecc_step_size + 4; in write_page()
203 ret = fread(buffer + cnt, 1, pad, rnd); in write_page()
210 memset(buffer + cnt, 0xff, pad); in write_page()
229 memset(buffer, 0xff, 2); in write_page()
230 fwrite(buffer, 2, 1, dst); in write_page()
243 uint8_t *buffer; in create_image() local
[all …]
A Dmkexynosspl.c39 static void write_to_file(int ofd, void *buffer, int size) in write_to_file() argument
41 if (write(ofd, buffer, size) == size) in write_to_file()
77 unsigned char *buffer; in main() local
140 buffer = malloc(count); in main()
141 if (!buffer) { in main()
148 if (read(ifd, buffer, read_size) != read_size) { in main()
156 memset((char *)buffer + read_size, 0xff, count - read_size); in main()
159 checksum += buffer[i]; in main()
175 write_to_file(ofd, buffer, count); in main()
183 free(buffer); in main()
/u-boot/lib/efi_selftest/
A Defi_selftest_manageprotocols.c49 efi_handle_t *buffer) in find_in_buffer() argument
54 if (buffer[i] == handle) in find_in_buffer()
138 efi_handle_t *buffer; in execute() local
166 &count, &buffer); in execute()
172 ret = find_in_buffer(handle1, count, buffer); in execute()
177 ret = find_in_buffer(handle2, count, buffer); in execute()
183 ret = boottime->free_pool(buffer); in execute()
222 &count, &buffer); in execute()
249 &count, buffer); in execute()
270 ret = boottime->free_pool(buffer); in execute()
[all …]
/u-boot/include/
A Dblk.h100 void *buffer);
104 const void *buffer);
137 unsigned long blksz, void *buffer);
153 unsigned long blksz, void const *buffer);
194 unsigned long blksz, void *buffer) in blkcache_read() argument
223 lbaint_t blkcnt, void *buffer);
236 lbaint_t blkcnt, const void *buffer);
279 lbaint_t blkcnt, void *buffer);
281 lbaint_t blkcnt, const void *buffer);
436 lbaint_t blkcnt, void *buffer) in blk_dread() argument
[all …]
A Deeprom.h12 int eeprom_read(uint dev_addr, uint offset, uchar *buffer, uint cnt);
13 int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
20 #define eeprom_read(dev_addr, offset, buffer, cnt) (-ENOSYS) argument
21 #define eeprom_write(dev_addr, offset, buffer, cnt) (-ENOSYS) argument
/u-boot/board/cavium/thunderx/
A Datf.c27 regs.regs[3] = (uintptr_t)buffer; in atf_read_mmc()
40 regs.regs[3] = (uintptr_t)buffer; in atf_read_nor()
88 regs.regs[3] = (uintptr_t)buffer; in atf_write_nor()
102 regs.regs[3] = (uintptr_t)buffer; in atf_write_mmc()
233 void *buffer = 0; in do_atf() local
238 buffer = (void *)simple_strtoul(argv[2], NULL, 16); in do_atf()
242 ret = atf_read_mmc(offset, buffer, size); in do_atf()
244 buffer = (void *)simple_strtoul(argv[2], NULL, 16); in do_atf()
248 ret = atf_read_nor(offset, buffer, size); in do_atf()
254 ret = atf_write_mmc(offset, buffer, size); in do_atf()
[all …]
/u-boot/drivers/usb/musb-new/
A Dmusb_uboot.c38 unsigned long pipe, void *buffer, int len, in construct_urb() argument
53 urb->transfer_buffer = buffer; in construct_urb()
54 urb->transfer_dma = (unsigned long)buffer; in construct_urb()
98 pipe, buffer, len, setup, 0); in _musb_submit_control_msg()
111 pipe, buffer, len, NULL, 0); in _musb_submit_bulk_msg()
120 buffer, len, NULL, interval); in _musb_submit_int_msg()
126 int elementsize, void *buffer, int interval) in _musb_create_int_queue() argument
263 void *buffer, int length) in submit_bulk_msg() argument
283 void *buffer, int interval) in create_int_queue() argument
286 buffer, interval); in create_int_queue()
[all …]
/u-boot/board/gdsys/common/
A Dosd_cmd.c26 u8 *buffer; in do_osd_write() local
40 buffer = malloc(buflen); in do_osd_write()
41 if (!buffer) { in do_osd_write()
46 res = hex2bin(buffer, hexstr, buflen); in do_osd_write()
48 free(buffer); in do_osd_write()
58 res = video_osd_set_mem(dev, x, y, buffer, buflen, count); in do_osd_write()
60 free(buffer); in do_osd_write()
67 free(buffer); in do_osd_write()
/u-boot/common/
A Dkgdb.c226 getpacket(char *buffer) in getpacket() argument
256 buffer[count] = ch; in getpacket()
263 buffer[count] = 0; in getpacket()
273 if (buffer[2] == ':') { in getpacket()
274 putDebugChar(buffer[0]); in getpacket()
275 putDebugChar(buffer[1]); in getpacket()
277 count = strlen(buffer); in getpacket()
279 buffer[i-3] = buffer[i]; in getpacket()
288 putpacket(unsigned char *buffer) in putpacket() argument
554 char buffer[512]; in kgdb_output_string() local
[all …]
/u-boot/lib/
A Doid_registry.c110 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument
122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
125 buffer += count; in sprint_oid()
143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
146 buffer += count; in sprint_oid()
153 snprintf(buffer, bufsize, "(bad)"); in sprint_oid()
167 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument
175 buffer, bufsize); in sprint_OID()
/u-boot/drivers/gpio/
A Dpca9698.c29 static int pca9698_read40(u8 addr, u8 offset, u8 *buffer) in pca9698_read40() argument
33 return i2c_read(addr, command, 1, buffer, PCA9698_BUFFER_SIZE); in pca9698_read40()
36 static int pca9698_write40(u8 addr, u8 offset, u8 *buffer) in pca9698_write40() argument
40 return i2c_write(addr, command, 1, buffer, PCA9698_BUFFER_SIZE); in pca9698_write40()
43 static void pca9698_set_bit(unsigned gpio, u8 *buffer, unsigned value) in pca9698_set_bit() argument
49 buffer[byte] |= (1 << bit); in pca9698_set_bit()
51 buffer[byte] &= ~(1 << bit); in pca9698_set_bit()
A D74x164_gpio.c44 u8 *buffer; member
56 ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL, in gen_74x164_write_conf()
70 return (priv->buffer[bank] >> pin) & 0x1; in gen_74x164_get_value()
82 priv->buffer[bank] |= 1 << pin; in gen_74x164_set_value()
84 priv->buffer[bank] &= ~(1 << pin); in gen_74x164_set_value()
146 priv->buffer = calloc(priv->nregs, sizeof(u8)); in gen_74x164_probe()
147 if (!priv->buffer) { in gen_74x164_probe()
153 priv->buffer, priv->nregs); in gen_74x164_probe()
175 free(priv->buffer); in gen_74x164_probe()
/u-boot/include/cavium/
A Datf.h9 ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size);
10 ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size);
14 ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size);
15 ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size);
/u-boot/lib/efi_loader/
A Defi_gop.c184 pix = *buffer; in gop_blt_int()
187 pix = buffer[slineoff + j + sx]; in gop_blt_int()
203 buffer[dlineoff + j + dx] = pix; in gop_blt_int()
258 struct efi_gop_pixel *buffer, in gop_blt_video_fill() argument
270 struct efi_gop_pixel *buffer, in gop_blt_buf_to_vid16() argument
281 struct efi_gop_pixel *buffer, in gop_blt_buf_to_vid32() argument
292 struct efi_gop_pixel *buffer, in gop_blt_vid_to_vid() argument
304 struct efi_gop_pixel *buffer, in gop_blt_vid_to_buf() argument
330 struct efi_gop_pixel buffer = {0, 0, 0, 0}; in gop_set_mode() local
394 ret = gop_blt_buf_to_vid32(this, buffer, operation, sx, in gop_blt()
[all …]
/u-boot/test/
A Dunicode_ut.c188 pos = buffer; in unicode_test_utf8_put()
195 pos = buffer; in unicode_test_utf8_put()
201 pos = buffer; in unicode_test_utf8_put()
207 pos = buffer; in unicode_test_utf8_put()
213 pos = buffer; in unicode_test_utf8_put()
394 pos = buffer; in unicode_test_utf16_put()
401 pos = buffer; in unicode_test_utf16_put()
409 pos = buffer; in unicode_test_utf16_put()
639 char buffer[5]; in utf8_to_cp437_stream_helper() local
642 *buffer = 0; in utf8_to_cp437_stream_helper()
[all …]
/u-boot/doc/
A DREADME.arm-caches21 - Flush the buffer after the MPU writes the data and before the DMA is
25 - Invalidate the buffer before starting the DMA. In case there are any dirty
26 lines from the DMA buffer in the cache, subsequent cache-line replacements
27 may corrupt the buffer in memory while the DMA is still going on. Cache-line
30 - Invalidate the buffer after the DMA is complete and before the MPU reads
34 happens with the DMA buffer while DMA is going on we have a coherency problem.
37 - Any buffer that is invalidated(that is, typically the peripheral to
38 memory DMA buffer) should be aligned to cache-line boundary both at
39 at the beginning and at the end of the buffer.
40 - If the buffer is not cache-line aligned invalidation will be restricted
[all …]
/u-boot/fs/ext4/
A Ddev.c51 char *buffer) in ext4fs_devread() argument
54 byte_len, buffer); in ext4fs_devread()
57 int ext4_read_superblock(char *buffer) in ext4_read_superblock() argument
64 buffer); in ext4_read_superblock()
/u-boot/drivers/i2c/
A Dihs_i2c.c131 uchar *buffer, int len, int read, bool is_last) in ihs_i2c_transfer() argument
156 val = buffer[0]; in ihs_i2c_transfer()
159 val |= buffer[1] << 8; in ihs_i2c_transfer()
198 buffer[0] = val & 0xff; in ihs_i2c_transfer()
200 buffer[1] = val >> 8; in ihs_i2c_transfer()
252 int alen, uchar *buffer, int len, int read) in ihs_i2c_access() argument
255 int alen, uchar *buffer, int len, int read) in ihs_i2c_access()
332 uchar buffer[2]; in ihs_i2c_probe_chip() local
378 uchar buffer[2]; in ihs_i2c_probe() local
389 int alen, uchar *buffer, int len) in ihs_i2c_read() argument
[all …]

Completed in 41 milliseconds

12345678910>>...15