Searched refs:buf (Results 251 - 275 of 1055) sorted by relevance

<<11121314151617181920>>

/u-boot/cmd/
H A Ditest.c56 void *buf; local
61 buf = map_physmem(addr, w, MAP_WRBACK);
62 if (!buf && addr) {
68 l = (long)(*(u8 *)buf);
71 l = (long)(*(u16 *)buf);
74 l = (long)(*(u32 *)buf);
78 l = (long)(*(unsigned long *)buf);
82 unmap_physmem(buf, w);
H A Drtc.c16 u8 buf[MAX_RTC_BYTES]; local
39 r = min_t(int, len, sizeof(buf));
40 ret = dm_rtc_read(dev, reg, buf, r);
45 print_buffer(reg, buf, 1, r, 0);
55 u8 buf[MAX_RTC_BYTES]; local
88 len = min_t(int, slen / 2, sizeof(buf));
89 if (hex2bin(buf, s, len)) {
94 ret = dm_rtc_write(dev, reg, buf, len);
/u-boot/common/eeprom/
H A Deeprom_field.c22 printf("%02x%s", field->buf[i], delimiter);
24 printf("%02x\n", field->buf[i]);
39 memset(field->buf, 0, field->size);
41 /* i - string iterator, j - buf iterator */
62 field->buf[j] = byte;
95 field->buf[i] = (unsigned char)val;
212 printf(format, field->buf);
229 strncpy((char *)field->buf, value, field->size - 1);
230 field->buf[field->size - 1] = '\0';
/u-boot/test/boot/
H A Dbootflow.c864 * @buf: Buffer to use
872 const char *expect_str, char *buf, const char *from,
876 buf[expect_ret] = '[';
878 cmdline_set_arg(buf, expect_ret, from, arg, val, NULL));
879 ut_asserteq_str(expect_str, buf);
880 ut_asserteq('[', buf[expect_ret]);
883 ut_asserteq(-E2BIG, cmdline_set_arg(buf, expect_ret - 1, from, arg,
892 char buf[50]; local
893 const int size = sizeof(buf);
901 ut_asserteq(-ENOENT, cmdline_set_arg(buf, siz
871 check_arg(struct unit_test_state *uts, int expect_ret, const char *expect_str, char *buf, const char *from, const char *arg, const char *val) argument
1127 char buf[500]; local
[all...]
/u-boot/drivers/w1-eeprom/
H A Dds2502.c38 static unsigned int ds2502_crc8(const u8 *buf, int len) argument
45 u8 data = buf[i];
62 u8 *buf, int bytes_for_user)
108 memcpy(buf, pagebuf, bytes_for_user);
120 static inline int ds2502_read_status_bytes(struct udevice *dev, u8 *buf) argument
124 buf, DS2502_STATUS_SIZE);
166 u8 *buf, unsigned int count)
211 &buf[xfered], bytes_for_user);
60 ds2502_read(struct udevice *dev, u8 cmd, int bytes_in_page, int pos, u8 *buf, int bytes_for_user) argument
165 ds2502_read_buf(struct udevice *dev, unsigned int offset, u8 *buf, unsigned int count) argument
H A Dds24xxx.c19 u8 *buf, unsigned int count)
27 return w1_read_buf(dev, buf, count);
18 ds24xxx_read_buf(struct udevice *dev, unsigned int offset, u8 *buf, unsigned int count) argument
/u-boot/board/gdsys/a38x/
H A Dhre.c144 uint8_t buf[288]; local
152 err = tpm1_get_capability(tpm, TPM_CAP_HANDLE, TPM_RT_KEY, buf,
153 sizeof(buf));
156 key_count = get_unaligned_be16(buf);
157 ptr = buf + 2;
163 buf_len = sizeof(buf);
164 err = tpm1_get_pub_key_oiap(tpm, key_handles[i], auth, buf,
170 sha1_csum(buf, buf_len, digest);
188 uint8_t buf[256]; local
194 err = tpm1_nv_read_value(tpm, NV_COMMON_DATA_INDEX, buf,
386 uint8_t buf[20]; local
[all...]
/u-boot/include/
H A Dsquashfs.h19 int sqfs_read(const char *filename, void *buf, loff_t offset,
H A Derofs.h11 int erofs_read(const char *filename, void *buf, loff_t offset,
H A Dubifs_uboot.h30 int ubifs_read(const char *filename, void *buf, loff_t offset,
H A Denv.h134 int env_get_f(const char *name, char *buf, unsigned int len);
225 * @buf: Buffer to use for matches
229 int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf,
302 * @buf: Buffer containing the environment (struct environemnt_s *)
309 int env_import(const char *buf, int check, int flags);
361 * copy its value in buf.
367 int env_get_default_into(const char *name, char *buf, unsigned int len);
H A Dbootmeth.h51 * @buf: Buffer to place the info in (terminator must fit)
56 int (*get_state_desc)(struct udevice *dev, char *buf, int maxsize);
102 * @buf: Buffer containing the possible bootflow file
107 char *buf, int size);
162 * @buf: Buffer to place the info in (terminator must fit)
167 int bootmeth_get_state_desc(struct udevice *dev, char *buf, int maxsize);
213 * @buf: Buffer containing the possible bootflow file (must be allocated
219 char *buf, int size);
/u-boot/arch/arm/include/asm/arch-npcm8xx/
H A Dsha.h31 int npcm_sha_calc(u8 type, const u8 *buf, u32 len, u8 *digest);
/u-boot/drivers/usb/gadget/
H A Dcomposite.c196 enum usb_device_speed speed, void *buf, u8 type)
199 void *next = buf + USB_DT_CONFIG_SIZE;
206 c = buf;
244 len = next - buf;
295 return config_buf(c, speed, cdev->req->buf, type);
337 struct usb_qualifier_descriptor *qual = cdev->req->buf;
567 static void collect_langs(struct usb_gadget_strings **sp, void *buf) argument
572 __le16_packed *end = (buf + 252);
577 for (tmp = buf; tmp->val && tmp < end; tmp++) {
589 void *buf,
195 config_buf(struct usb_configuration *config, enum usb_device_speed speed, void *buf, u8 type) argument
587 lookup_string( struct usb_gadget_strings **sp, void *buf, u16 language, int id ) argument
608 get_string(struct usb_composite_dev *cdev, void *buf, u16 language, int id) argument
874 fill_ext_compat(struct usb_configuration *c, u8 *buf) argument
943 fill_ext_prop(struct usb_configuration *c, int interface, u8 *buf) argument
1165 u8 *buf; local
[all...]
/u-boot/board/sifive/unleashed/
H A Dunleashed.c99 char buf[9] = {0}; local
108 snprintf(buf, sizeof(buf), "%08x", serial_num);
109 env_set("serial#", buf);
/u-boot/drivers/cpu/
H A Dat91_cpu.c28 int at91_cpu_get_desc(const struct udevice *dev, char *buf, int size) argument
32 snprintf(buf, size, "%s\n"
57 static int at91_cpu_get_vendor(const struct udevice *dev, char *buf, int size) argument
59 snprintf(buf, size, "Microchip Technology Inc.");
/u-boot/drivers/soc/
H A Dsoc_ti_k3.c93 static int soc_ti_k3_get_family(struct udevice *dev, char *buf, int size) argument
97 snprintf(buf, size, "%s", plat->family);
102 static int soc_ti_k3_get_revision(struct udevice *dev, char *buf, int size) argument
106 snprintf(buf, size, "SR%s", plat->revision);
/u-boot/drivers/mtd/spi/
H A Dsf-uclass.c22 int spi_flash_read_dm(struct udevice *dev, u32 offset, size_t len, void *buf) argument
24 return log_ret(sf_get_ops(dev)->read(dev, offset, len, buf));
28 const void *buf)
30 return log_ret(sf_get_ops(dev)->write(dev, offset, len, buf));
27 spi_flash_write_dm(struct udevice *dev, u32 offset, size_t len, const void *buf) argument
/u-boot/drivers/mtd/nand/raw/
H A Dkmeter1_nand.c80 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) argument
85 write_data(buf[i]);
90 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) argument
95 buf[i] = read_data();
H A Ddavinci_nand.c58 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) argument
63 /* Make sure that buf is 32 bit aligned */
64 if (((int)buf & 0x3) != 0) {
65 if (((int)buf & 0x1) != 0) {
67 *buf = readb(nand);
68 buf += 1;
73 if (((int)buf & 0x3) != 0) {
75 *(u16 *)buf = readw(nand);
76 buf += 2;
84 *(u32 *)buf
102 nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) argument
366 nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, uint32_t offset, int data_len, const uint8_t *buf, int oob_required, int page, int raw) argument
425 nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument
[all...]
/u-boot/drivers/sysreset/
H A Dsysreset_sandbox.c32 int sandbox_warm_sysreset_get_status(struct udevice *dev, char *buf, int size) argument
34 strlcpy(buf, "Reset Status: WARM", size);
81 int sandbox_sysreset_get_status(struct udevice *dev, char *buf, int size) argument
83 strlcpy(buf, "Reset Status: COLD", size);
/u-boot/board/ronetix/pm9261/
H A Dpm9261.c120 char buf[32]; local
124 strmhz(buf, get_main_clk_rate()));
126 strmhz(buf, get_cpu_clk_rate()));
128 strmhz(buf, get_mck_clk_rate()));
/u-boot/arch/x86/lib/fsp1/
H A Dfsp_dram.c23 mrc->buf = fsp_get_nvs_data(gd->arch.hob_list, &mrc->len);
/u-boot/env/
H A Donenand.c38 char *buf = (char *)&environment; local
42 char *buf = (char *)&onenand_env[0]; local
54 &retlen, (u_char *)buf);
59 rc = env_import(buf, 1, H_EXTERNAL);
/u-boot/drivers/virtio/
H A Dvirtio_rng.c24 unsigned char buf[BUFFER_SIZE] __aligned(4);
31 sg.addr = buf;
37 sg.length = min(rsize ? len : len + 8, sizeof(buf));
52 memcpy(ptr, buf, rsize);

Completed in 161 milliseconds

<<11121314151617181920>>