Searched refs:buf (Results 1 - 25 of 1054) sorted by relevance

1234567891011>>

/u-boot/lib/
H A Dcircbuf.c13 int buf_init (circbuf_t * buf, unsigned int size) argument
15 assert (buf != NULL);
17 buf->size = 0;
18 buf->totalsize = size;
19 buf->data = (char *) malloc (sizeof (char) * size);
20 assert (buf->data != NULL);
22 buf->top = buf->data;
23 buf->tail = buf
29 buf_free(circbuf_t * buf) argument
40 buf_pop(circbuf_t * buf, char *dest, unsigned int len) argument
69 buf_push(circbuf_t * buf, const char *src, unsigned int len) argument
[all...]
/u-boot/test/lib/
H A Dabuf.c20 struct abuf buf; local
25 abuf_init(&buf);
26 abuf_set(&buf, test_data, TEST_DATA_LEN);
27 ut_asserteq_ptr(test_data, buf.data);
28 ut_asserteq(TEST_DATA_LEN, buf.size);
29 ut_asserteq(false, buf.alloced);
32 ut_asserteq(true, abuf_realloc(&buf, TEST_DATA_LEN + 1));
33 ut_assertnonnull(buf.data);
34 ut_asserteq(TEST_DATA_LEN + 1, buf.size);
35 ut_asserteq(true, buf
53 struct abuf buf; local
71 struct abuf buf; local
132 struct abuf buf; local
161 struct abuf buf; local
186 struct abuf buf; local
251 struct abuf buf; local
323 struct abuf buf; local
346 struct abuf buf; local
360 struct abuf buf; local
386 struct abuf buf; local
[all...]
/u-boot/scripts/dtc/libfdt/
H A Dfdt_empty_tree.c13 int fdt_create_empty_tree(void *buf, int bufsize) argument
17 err = fdt_create(buf, bufsize);
21 err = fdt_finish_reservemap(buf);
25 err = fdt_begin_node(buf, "");
29 err = fdt_end_node(buf);
33 err = fdt_finish(buf);
37 return fdt_open_into(buf, buf, bufsize);
/u-boot/test/
H A Dbootm.c28 char buf[BUF_SIZE]; local
30 *buf = '\0';
31 ut_assertok(bootm_process_cmdline(buf, BUF_SIZE, true));
32 ut_asserteq_str("", buf);
34 strcpy(buf, "test");
35 ut_assertok(bootm_process_cmdline(buf, BUF_SIZE, true));
36 ut_asserteq_str("test", buf);
45 char buf[BUF_SIZE]; local
48 *buf = '\0';
49 ut_asserteq(-ENOSPC, bootm_process_cmdline(buf,
72 char buf[BUF_SIZE]; local
123 char buf[BUF_SIZE]; local
[all...]
H A Dunicode_ut.c110 char buf[20]; local
114 memset(buf, 0xff, sizeof(buf));
115 sprintf(buf, "%8.6ls", c2);
116 ut_asserteq(' ', buf[1]);
117 ut_assert(!strncmp(&buf[2], d2, 7));
118 ut_assert(!buf[9]);
120 memset(buf, 0xff, sizeof(buf));
121 sprintf(buf, "
317 u16 buf[16]; local
362 u16 buf[16]; local
506 char buf[16]; local
551 char buf[16]; local
720 char buf[16]; local
751 s32 buf[16]; local
787 u16 buf[16]; local
804 u16 buf[40]; local
[all...]
H A Dprint_ut.c70 u8 buf[sizeof(struct efi_device_path_sd_mmc_path) + local
72 u8 *pos = buf;
89 snprintf(str, sizeof(str), "_%pD_", buf);
170 u8 *buf; local
177 buf = map_sysmem(0, BUF_SIZE);
178 memset(buf, '\0', BUF_SIZE);
180 buf[i] = i * 0x11;
184 print_buffer(0, buf, 1, 0x12, 0);
191 print_buffer(0, buf, 1, 0x12, 8);
199 buf[
254 u8 *buf; local
279 u8 *buf; local
372 char buf[10] = "xxxxxxxxx"; local
[all...]
H A Dcompression.c375 struct buf_state *buf)
380 printf("\torig_size:%lu\n", buf->orig_size);
381 memset(buf->compressed_buf, 'A', TEST_BUFFER_SIZE);
382 ut_assertok(compress(uts, buf->orig_buf, buf->orig_size,
383 buf->compressed_buf, buf->compressed_size,
384 &buf->compressed_size));
385 printf("\tcompressed_size:%lu\n", buf->compressed_size);
386 ut_assert(buf
373 run_test_internal(struct unit_test_state *uts, char *name, mutate_func compress, mutate_func uncompress, struct buf_state *buf) argument
442 struct buf_state sbuf, *buf = &sbuf; local
[all...]
/u-boot/drivers/usb/gadget/
H A Du_os_desc.h37 static inline u8 *__usb_ext_prop_ptr(u8 *buf, size_t offset) argument
39 return buf + offset;
42 static inline u8 *usb_ext_prop_size_ptr(u8 *buf) argument
44 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_SIZE);
47 static inline u8 *usb_ext_prop_type_ptr(u8 *buf) argument
49 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_PROPERTY_DATA_TYPE);
52 static inline u8 *usb_ext_prop_name_len_ptr(u8 *buf) argument
54 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_W_PROPERTY_NAME_LENGTH);
57 static inline u8 *usb_ext_prop_name_ptr(u8 *buf) argument
59 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_NAM
62 usb_ext_prop_data_len_ptr(u8 *buf, size_t off) argument
68 usb_ext_prop_data_ptr(u8 *buf, size_t off) argument
73 usb_ext_prop_put_size(u8 *buf, int dw_size) argument
78 usb_ext_prop_put_type(u8 *buf, int type) argument
83 usb_ext_prop_put_name(u8 *buf, const char *name, int pnl) argument
99 usb_ext_prop_put_binary(u8 *buf, int pnl, const char *data, int data_len) argument
106 usb_ext_prop_put_unicode(u8 *buf, int pnl, const char *string, int data_len) argument
[all...]
H A Dusbstring.c19 * @buf: at least 256 bytes
33 usb_gadget_get_string(struct usb_gadget_strings *table, int id, u8 *buf) argument
43 buf[0] = 4;
44 buf[1] = USB_DT_STRING;
45 buf[2] = (u8) table->language;
46 buf[3] = (u8) (table->language >> 8);
59 memset(buf + 2, 0, 2 * len); /* zero all the bytes */
60 len = utf8_to_utf16le(s->s, (__le16 *)&buf[2], len);
63 buf[0] = (len + 1) * 2;
64 buf[
[all...]
/u-boot/include/
H A Dcircbuf.h21 int buf_init (circbuf_t * buf, unsigned int size);
22 int buf_free (circbuf_t * buf);
23 int buf_pop (circbuf_t * buf, char *dest, unsigned int len);
24 int buf_push (circbuf_t * buf, const char *src, unsigned int len);
H A Drc4.h12 * rc4_encode() - encode a buf with the RC4 cipher
14 * @buf: Buffer to encode (it is overwrite in the process
18 void rc4_encode(unsigned char *buf, unsigned int len, const unsigned char key[16]);
H A Dhwconfig.h19 extern int hwconfig_f(const char *opt, char *buf);
20 extern const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf);
21 extern int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf);
22 extern int hwconfig_sub_f(const char *opt, const char *subopt, char *buf);
24 size_t *subarglen, char *buf);
26 const char *subarg, char *buf);
29 static inline int hwconfig_f(const char *opt, char *buf) argument
35 char *buf)
42 char *buf)
47 static inline int hwconfig_sub_f(const char *opt, const char *subopt, char *buf) argument
34 hwconfig_arg_f(const char *opt, size_t *arglen, char *buf) argument
41 hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf) argument
52 hwconfig_subarg_f(const char *opt, const char *subopt, size_t *subarglen, char *buf) argument
59 hwconfig_subarg_cmp_f(const char *opt, const char *subopt, const char *subarg, char *buf) argument
[all...]
/u-boot/include/linux/soc/ti/
H A Dk3-sec-proxy.h16 * @buf: Buffer pointer
22 u32 *buf; member in struct:k3_sec_proxy_msg
/u-boot/test/cmd/
H A Dmem_search.c23 u8 *buf; local
25 buf = map_sysmem(0, BUF_SIZE + 1);
26 memset(buf, '\0', BUF_SIZE);
27 buf[0x0] = 0x12;
28 buf[0x31] = 0x12;
29 buf[0xff] = 0x12;
30 buf[0x100] = 0x12;
43 unmap_sysmem(buf);
52 u16 *buf; local
54 buf
77 u32 *buf; local
113 u8 *buf; local
163 u8 *buf; local
206 char *buf; local
236 char *buf; local
277 u8 *buf; local
306 u8 *buf; local
[all...]
H A Dsetexpr.c24 u8 *buf; local
26 buf = map_sysmem(0, BUF_SIZE);
27 memset(buf, '\xff', BUF_SIZE);
30 buf[0x0] = 0x12;
37 *(short *)buf = 0x2345;
44 *(u32 *)buf = 0x3456789a;
51 *(u64 *)buf = 0x456789abcdef0123;
63 unmap_sysmem(buf);
72 char *buf; local
74 buf
114 char *buf; local
157 char *buf, *val; local
201 char *buf, *val; local
218 char *buf, *nbuf; local
258 char *buf, *nbuf; local
302 char *buf; local
338 char *buf; local
387 char *buf, *val; local
407 u8 *buf; local
[all...]
/u-boot/board/socionext/developerbox/
H A Dfwu_plat.c17 ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
21 memset(buf, 0, sizeof(buf));
29 ret = fwu_gen_alt_info_from_mtd(buf, DFU_ALT_BUF_LEN, mtd);
34 log_debug("Make dfu_alt_info: '%s'\n", buf);
36 env_set("dfu_alt_info", buf);
51 u32 buf; local
62 ret = mtd_read(mtd, SCB_PLAT_METADATA_OFFSET, sizeof(buf),
63 &readlen, (u_char *)&buf);
67 *boot_idx = buf;
[all...]
/u-boot/board/congatec/conga-qeval20-qa3-e3845/
H A Dconga-qeval20-qa3.c34 u8 buf[8]; local
48 dm_i2c_read(dev, 0x00, buf, 1);
55 buf[0] = 0x93;
56 dm_i2c_write(dev, 0x06, buf, 1);
58 buf[0] = 0xaa;
59 dm_i2c_write(dev, 0xf8, buf, 1);
61 buf[0] = 0x0f;
62 dm_i2c_write(dev, 0xfa, buf, 1);
64 buf[0] = 0x01;
65 dm_i2c_write(dev, 0xff, buf,
[all...]
/u-boot/drivers/power/pmic/
H A Dpmic_tps65910.c13 static inline int tps65910_read_reg(int addr, uchar *buf) argument
16 return i2c_read(TPS65910_CTRL_I2C_ADDR, addr, 1, buf, 1);
23 *buf = (uchar)rc;
28 static inline int tps65910_write_reg(int addr, uchar *buf) argument
31 return i2c_write(TPS65910_CTRL_I2C_ADDR, addr, 1, buf, 1);
33 return dm_i2c_reg_write(tps65910_dev, addr, *buf);
60 uchar buf; local
63 ret = tps65910_read_reg(TPS65910_DEVCTRL_REG, &buf);
68 buf |= TPS65910_DEVCTRL_REG_SR_CTL_I2C_SEL_CTL_I2C;
70 return tps65910_write_reg(TPS65910_DEVCTRL_REG, &buf);
81 uchar buf; local
[all...]
/u-boot/drivers/bootcount/
H A Dbootcount_ext.c24 bootcount_ext_t *buf; local
38 buf = map_sysmem(CONFIG_SYS_BOOTCOUNT_ADDR, sizeof(bootcount_ext_t));
39 buf->magic = BC_MAGIC;
40 buf->version = BC_VERSION;
41 buf->bootcount = (a & 0xff);
42 buf->upgrade_available = upgrade_available;
43 unmap_sysmem(buf);
54 bootcount_ext_t *buf; local
71 buf = map_sysmem(CONFIG_SYS_BOOTCOUNT_ADDR, sizeof(bootcount_ext_t));
72 if (buf
[all...]
/u-boot/drivers/soc/
H A Dsoc_sandbox.c13 int soc_sandbox_get_family(struct udevice *dev, char *buf, int size) argument
15 snprintf(buf, size, "SANDBOX1xx");
20 int soc_sandbox_get_machine(struct udevice *dev, char *buf, int size) argument
22 snprintf(buf, size, "SANDBOX123");
27 int soc_sandbox_get_revision(struct udevice *dev, char *buf, int size) argument
29 snprintf(buf, size, "1.0");
/u-boot/lib/zlib/
H A Dadler32.c15 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
16 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1);
17 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2);
18 #define DO8(buf,i) DO4(buf,
57 adler32(uLong adler, const Bytef *buf, uInt len) argument
[all...]
/u-boot/board/toradex/common/
H A Dtdx-eeprom.h11 int read_tdx_eeprom_data(u32 eeprom_id, int offset, uint8_t *buf, int size);
12 int write_tdx_eeprom_data(u32 eeprom_id, int offset, uint8_t *buf, int size);
/u-boot/arch/x86/include/asm/
H A Dcpu_x86.h27 * @buf: Buffer to place string
31 int cpu_x86_get_desc(const struct udevice *dev, char *buf, int size);
52 * @buf: Buffer to place string
56 int cpu_x86_get_vendor(const struct udevice *dev, char *buf, int size);
/u-boot/board/compulab/common/
H A Deeprom.h14 int cl_eeprom_read_mac_addr(uchar *buf, uint eeprom_bus);
16 int cl_eeprom_get_product_name(uchar *buf, uint eeprom_bus);
18 static inline int cl_eeprom_read_mac_addr(uchar *buf, uint eeprom_bus) argument
26 static inline int cl_eeprom_get_product_name(uchar *buf, uint eeprom_bus) argument
/u-boot/fs/yaffs2/
H A Dyaffs_nameval.h22 int nval_set(char *xb, int xb_size, const YCHAR * name, const char *buf,
24 int nval_get(const char *xb, int xb_size, const YCHAR * name, char *buf,
26 int nval_list(const char *xb, int xb_size, char *buf, int bsize);

Completed in 261 milliseconds

1234567891011>>