Searched refs:buf (Results 51 - 75 of 1055) sorted by relevance

1234567891011>>

/u-boot/drivers/serial/
H A Dserial_octeon_bootcmd.c65 struct octeon_pci_io_buf *buf; member in struct:octeon_bootcmd_priv
79 if (priv->buf->owner != OCTEON_PCI_IO_BUF_OWNER_OCTEON)
82 if (priv->buf->len > priv->copy_offset &&
83 (priv->buf->data[priv->copy_offset] != '\0'))
110 c = priv->buf->data[priv->copy_offset];
111 priv->buf->data[priv->copy_offset++] = '\0';
115 (priv->buf->data[priv->copy_offset] == '\0')) {
117 priv->buf->len = 0;
118 priv->buf->owner = OCTEON_PCI_IO_BUF_OWNER_HOST;
135 priv->buf
[all...]
/u-boot/tools/
H A Drkcommon.h49 * @buf: Pointer to header place (must be at least 2KB in size)
51 void rkcommon_set_header(void *buf, struct stat *sbuf, int ifd,
57 * @buf: Pointer to the image file
61 int rkcommon_verify_header(unsigned char *buf, int size,
69 * @buf: Pointer to the image (can be a read-only file-mapping)
71 void rkcommon_print_header(const void *buf, struct image_tool_params *params);
89 * @buf: Pointer to the SPL data (header and SPL binary)
90 * @offset: offset inside buf to start at
93 void rkcommon_rc4_encode_spl(void *buf, unsigned int offset, unsigned int size);
/u-boot/include/
H A Dsoc.h41 * @buf: Buffer to place string
45 int (*get_machine)(struct udevice *dev, char *buf, int size);
51 * @buf: Buffer to place string
55 int (*get_revision)(struct udevice *dev, char *buf, int size);
61 * @buf: Buffer to place string
65 int (*get_family)(struct udevice *dev, char *buf, int size);
85 * @buf: Buffer to place string
90 int soc_get_machine(struct udevice *dev, char *buf, int size);
95 * @buf: Buffer to place string
100 int soc_get_revision(struct udevice *dev, char *buf, in
128 soc_get_machine(struct udevice *dev, char *buf, int size) argument
133 soc_get_revision(struct udevice *dev, char *buf, int size) argument
138 soc_get_family(struct udevice *dev, char *buf, int size) argument
[all...]
H A Dw1-eeprom.h22 u8 *buf, unsigned int count);
26 u8 *buf, unsigned int count);
H A Dsemihostingfs.h16 int smh_fs_read(const char *filename, void *buf, loff_t offset, loff_t len,
18 int smh_fs_write(const char *filename, void *buf, loff_t offset,
/u-boot/drivers/thermal/
H A Dti-lm74.c15 char buf[2]; local
23 ret = dm_spi_xfer(dev, 16, NULL, buf, SPI_XFER_BEGIN | SPI_XFER_END);
29 raw = ((buf[0] << 8) + buf[1]) >> 3;
/u-boot/drivers/fpga/
H A Dversalpl.c16 static ulong versal_align_dma_buffer(ulong *buf, u32 len) argument
20 if ((ulong)buf != ALIGN((ulong)buf, ARCH_DMA_MINALIGN)) {
21 new_buf = (ulong *)ALIGN((ulong)buf, ARCH_DMA_MINALIGN);
22 memcpy(new_buf, buf, len);
23 buf = new_buf;
26 return (ulong)buf;
29 static int versal_load(xilinx_desc *desc, const void *buf, size_t bsize, argument
37 bin_buf = versal_align_dma_buffer((ulong *)buf, bsize);
H A Dzynqmppl.c56 static u32 load_word(const void *buf, u32 swap) argument
59 u8 *bitc = (u8 *)buf;
77 static u32 check_header(const void *buf) argument
81 u32 *test = (u32 *)buf;
105 buf, swap == SWAP_NO ? "without" : "with");
110 static void *check_data(u8 *buf, size_t bsize, u32 *swap) argument
114 /* Because buf doesn't need to be aligned let's read it by chars */
116 word = load_word(&buf[p], SWAP_NO);
117 debug("%s: word %x %x/%px\n", __func__, word, p, &buf[p]);
122 __func__, p, &buf[
136 zynqmp_align_dma_buffer(u32 *buf, u32 len, u32 swap) argument
175 zynqmp_validate_bitstream(xilinx_desc *desc, const void *buf, size_t bsize, u32 blocksize, u32 *swap) argument
228 zynqmp_load(xilinx_desc *desc, const void *buf, size_t bsize, bitstream_type bstype, int flags) argument
303 zynqmp_loads(xilinx_desc *desc, const void *buf, size_t bsize, struct fpga_secure_info *fpga_sec_info) argument
[all...]
/u-boot/lib/
H A Dvsprintf.c51 static char *put_dec_trunc(char *buf, unsigned q) argument
61 *buf++ = d0 + '0'; /* least significant digit */
66 *buf++ = d1 + '0'; /* next digit */
72 *buf++ = d2 + '0'; /* next digit */
78 *buf++ = d3 + '0'; /* next digit */
80 *buf++ = q + '0'; /* most sign. digit */
84 return buf;
87 static char *put_dec_full(char *buf, unsigned q) argument
109 *buf++ = d0 + '0';
113 *buf
129 put_dec(char *buf, uint64_t num) argument
159 number(char *buf, char *end, u64 num, int base, int size, int precision, int type) argument
258 string(char *buf, char *end, const char *s, int field_width, int precision, int flags) argument
279 string16(char *buf, char *end, u16 *s, int field_width, int precision, int flags) argument
311 device_path_string(char *buf, char *end, void *dp, int field_width, int precision, int flags) argument
330 mac_address_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags) argument
349 ip6_addr_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags) argument
369 ip4_addr_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags) argument
402 uuid_string(char *buf, char *end, u8 *addr, int field_width, int precision, int flags, const char *fmt) argument
454 pointer(const char *fmt, char *buf, char *end, void *ptr, int field_width, int precision, int flags) argument
521 vsnprintf_internal(char *buf, size_t size, const char *fmt, va_list args) argument
742 vsnprintf(char *buf, size_t size, const char *fmt, va_list args) argument
748 vscnprintf(char *buf, size_t size, const char *fmt, va_list args) argument
761 snprintf(char *buf, size_t size, const char *fmt, ...) argument
773 scnprintf(char *buf, size_t size, const char *fmt, ...) argument
798 vsprintf(char *buf, const char *fmt, va_list args) argument
803 sprintf(char *buf, const char *fmt, ...) argument
909 strmhz(char *buf, unsigned long hz) argument
[all...]
H A Dfdt-libcrypto.c15 uint32_t *buf, *ptr; local
47 buf = malloc(size);
48 if (!buf) {
54 for (ptr = buf + nwords - 1; ptr >= buf; ptr--) {
64 ret = fdt_setprop(blob, noffset, prop_name, buf, size);
65 free(buf);
/u-boot/test/dm/
H A Dmisc.c17 u8 buf[16]; local
27 ut_asserteq(9, misc_read(dev, 0, buf, 9));
29 ut_asserteq_mem(buf, "TESTWRITE", 9);
34 ut_assertok(misc_call(dev, 0, &id, 4, buf, 16));
35 ut_asserteq_mem(buf, "Zero", 4);
38 ut_assertok(misc_call(dev, 0, &id, 4, buf, 16));
39 ut_asserteq_mem(buf, "Two", 3);
41 ut_assertok(misc_call(dev, 1, &id, 4, buf, 16));
42 ut_asserteq_mem(buf, "Forty-two", 9);
45 ut_assertok(misc_call(dev, 1, &id, 4, buf, 1
[all...]
/u-boot/drivers/rtc/
H A Disl1208.c79 uchar buf[8], val; local
81 ret = dm_i2c_read(dev, 0, buf, sizeof(buf));
85 if (buf[RTC_STAT_REG_ADDR] & RTC_STAT_BIT_RTCF) {
97 tmp->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F);
98 tmp->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F);
99 tmp->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F);
100 tmp->tm_mday = bcd2bin(buf[RTC_DATE_REG_ADDR] & 0x3F);
101 tmp->tm_mon = bcd2bin(buf[RTC_MON_REG_ADDR] & 0x1F);
102 tmp->tm_year = bcd2bin(buf[RTC_YR_REG_ADD
120 uchar val, buf[7]; local
[all...]
H A Dpcf2127.c41 msg.buf = buffer;
54 uchar buf[7] = {0}; local
58 buf[i++] = bin2bcd(tm->tm_sec);
59 buf[i++] = bin2bcd(tm->tm_min);
60 buf[i++] = bin2bcd(tm->tm_hour);
61 buf[i++] = bin2bcd(tm->tm_mday);
62 buf[i++] = tm->tm_wday & 0x07;
65 buf[i++] = bin2bcd(tm->tm_mon);
68 buf[i++] = bin2bcd(tm->tm_year % 100);
71 ret = dm_i2c_write(dev, PCF2127_REG_SC, buf,
79 uchar buf[10] = { PCF2127_REG_CTRL1 }; local
[all...]
H A Drv8803.c42 u8 buf[7]; local
51 buf[RTC_YR_REG_ADDR] = bin2bcd(tm->tm_year % 100);
52 buf[RTC_MON_REG_ADDR] = bin2bcd(tm->tm_mon + 1);
53 buf[RTC_DAY_REG_ADDR] = 1 << (tm->tm_wday & 0x7);
54 buf[RTC_DATE_REG_ADDR] = bin2bcd(tm->tm_mday);
55 buf[RTC_HR_REG_ADDR] = bin2bcd(tm->tm_hour);
56 buf[RTC_MIN_REG_ADDR] = bin2bcd(tm->tm_min);
57 buf[RTC_SEC_REG_ADDR] = bin2bcd(tm->tm_sec);
59 ret = dm_i2c_write(dev, 0, buf, sizeof(buf));
69 u8 buf[7]; local
[all...]
H A Dds3232.c64 u8 buf; local
74 ret = dm_i2c_read(dev, reg, &buf, sizeof(buf));
78 return buf;
83 u8 buf = (u8)val; local
93 return dm_i2c_write(dev, reg, &buf, sizeof(buf));
143 u8 buf[RTC_DATE_TIME_REG_SIZE]; local
151 buf[RTC_SEC_REG_ADDR] = bin2bcd(tm->tm_sec);
152 buf[RTC_MIN_REG_ADD
165 u8 buf[RTC_DATE_TIME_REG_SIZE]; local
[all...]
/u-boot/include/u-boot/
H A Dmd5.h14 __u32 buf[4]; member in struct:MD5Context
23 void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len);
/u-boot/arch/arm/mach-stm32mp/include/mach/
H A Dstm32prog.h9 void *buf, long *len);
11 void *buf, long *len);
/u-boot/fs/btrfs/crypto/
H A Dhash.c22 int hash_sha256(const u8 *buf, size_t length, u8 *out) argument
27 sha256_update(&ctx, buf, length);
33 int hash_xxhash(const u8 *buf, size_t length, u8 *out) argument
37 hash = xxh64(buf, length, 0);
45 int hash_blake2(const u8 *buf, size_t length, u8 *out) argument
50 blake2b_update(&S, buf, length);
56 int hash_crc32c(const u8 *buf, size_t length, u8 *out) argument
60 crc = crc32c_cal((u32)~0, (char *)buf, length, btrfs_crc32c_table);
/u-boot/lib/efi_loader/
H A Defi_smbios.c35 void *buf; local
51 buf = map_sysmem(addr, 0);
52 ret = efi_install_configuration_table(&smbios3_guid, buf);
53 unmap_sysmem(buf);
61 void *buf; local
69 buf = memalign(SZ_4K, TABLE_SIZE);
70 if (!buf)
73 addr = map_to_sysmem(buf);
H A Defi_var_file.c66 struct efi_var_file *buf; local
71 ret = efi_var_collect(&buf, &len, EFI_VARIABLE_NON_VOLATILE);
79 r = fs_write(EFI_VAR_FILE_NAME, map_to_sysmem(buf), 0, len, &actlen);
86 free(buf);
93 efi_status_t efi_var_restore(struct efi_var_file *buf, bool safe) argument
99 if (buf->reserved || buf->magic != EFI_VAR_FILE_MAGIC ||
100 buf->crc32 != crc32(0, (u8 *)buf->var,
101 buf
153 struct efi_var_file *buf; local
[all...]
/u-boot/board/atmel/common/
H A Dboard.c28 u8 buf[AT91_PDA_EEPROM_ID_LENGTH + 1] = {0}; local
44 (u8 *)buf, AT91_PDA_EEPROM_ID_LENGTH);
50 pda = dectoul((const char *)buf, NULL);
54 if (buf[4] == 'B')
68 env_set("pda", (const char *)buf);
/u-boot/arch/m68k/include/asm/
H A Dio.h46 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns))
47 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns))
48 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns))
49 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns))
50 #define insl(port, buf, nl) _insl_ns((u32 *)((port)+_IO_BASE), (buf), (n
69 _insb(volatile u8 * port, void *buf, int ns) argument
76 _outsb(volatile u8 * port, const void *buf, int ns) argument
83 _insw(volatile u16 * port, void *buf, int ns) argument
90 _outsw(volatile u16 * port, const void *buf, int ns) argument
99 _insl(volatile u32 * port, void *buf, int nl) argument
106 _outsl(volatile u32 * port, const void *buf, int nl) argument
115 _insw_ns(volatile u16 * port, void *buf, int ns) argument
122 _outsw_ns(volatile u16 * port, const void *buf, int ns) argument
130 _insl_ns(volatile u32 * port, void *buf, int nl) argument
137 _outsl_ns(volatile u32 * port, const void *buf, int nl) argument
[all...]
/u-boot/drivers/power/pmic/
H A Dmc34708.c26 u8 buf[3] = { 0 }; local
36 buf[0] = buff[2];
37 buf[1] = buff[1];
38 buf[2] = buff[0];
40 ret = dm_i2c_write(dev, reg, buf, len);
49 u8 buf[3] = { 0 }; local
55 ret = dm_i2c_read(dev, reg, buf, len);
59 buff[0] = buf[2];
60 buff[1] = buf[1];
61 buff[2] = buf[
[all...]
/u-boot/test/boot/
H A Dbootstd_common.c27 ALLOC_CACHE_ALIGN_BUFFER(u8, buf, MMC_MAX_BLOCK_LEN);
41 memset(buf, '\0', MMC_MAX_BLOCK_LEN);
42 strcpy(buf, TEST_VERSION);
43 if (blk_dwrite(desc, VERSION_START_BLK, 1, buf) != 1)
47 memset(buf, '\0', MMC_MAX_BLOCK_LEN);
48 buf[1] = ilog2(0x40) << 4 | 1;
49 *(u32 *)(buf + 4) = TEST_VERNUM;
50 buf[0] = crc8(0, buf + 1, 0x3f);
51 if (blk_dwrite(desc, NVDATA_START_BLK, 1, buf) !
[all...]
/u-boot/drivers/reboot-mode/
H A Dreboot-mode-rtc.c15 static int reboot_mode_get(struct udevice *dev, u32 *buf) argument
17 if (!buf)
21 u8 *val = (u8 *)buf;
37 *buf = __be32_to_cpu(*buf);
39 *buf = __le32_to_cpu(*buf);
44 static int reboot_mode_set(struct udevice *dev, u32 buf) argument
55 buf = __cpu_to_be32(buf);
[all...]

Completed in 99 milliseconds

1234567891011>>