/u-boot/boot/ |
H A D | image-host.c | 13 void memmove_wd(void *to, void *from, size_t len, ulong chunksz) argument 15 memmove(to, from, len);
|
H A D | bootflow.c | 677 * @arg: String to copy from 678 * @len: Number of chars to copy from @arg (note that this is not usually the 720 const char *from; local 726 from = cmdline ?: ∅ 733 for (to = buf, end = buf + maxlen; *from;) { 739 while (*from == ' ') 740 from++; 741 if (!*from) 749 for (p = from;; p++) { 778 * from || | [all...] |
/u-boot/common/ |
H A D | kgdb_stubs.c | 51 void kgdb_flush_cache_range(void *from, void *to) argument 53 flush_cache((unsigned long)from, (unsigned long)(to - from));
|
H A D | flash.c | 27 flash_protect(int flag, ulong from, ulong to, flash_info_t *info) argument 34 if (!info || info->sector_count == 0 || info->size == 0 || to < from) { 41 debug("%s %s: from 0x%08lX to 0x%08lX\n", __func__, 44 from, to); 50 to < info->start[0] || from > b_end) { 62 if (from <= end && to >= info->start[i]) {
|
/u-boot/tools/u_boot_pylib/ |
H A D | u_boot_pylib | 11 # Allow 'from u_boot_pylib import xxx to work' 16 from u_boot_pylib import terminal 17 from u_boot_pylib import test_util
|
/u-boot/lib/zlib/ |
H A D | inffast.c | 61 unsigned dmax; /* maximum distance from zlib header */ 78 unsigned char FAR *from; /* where to copy match from */ local 178 if (dist > op) { /* see if copy from window */ 186 from = window; 188 from += wsize - op; 189 if (op < len) { /* some from window */ 192 *out++ = *from++; 194 from = out - dist; /* rest from outpu [all...] |
/u-boot/tools/buildman/ |
H A D | buildman | 23 from buildman import bsettings 24 from buildman import cmdline 25 from buildman import control 26 from u_boot_pylib import test_util 27 from u_boot_pylib import tools 41 from buildman import func_test 42 from buildman import test
|
/u-boot/tools/binman/ |
H A D | binman | 7 # Creates binary images from input files controlled by a description 22 # Extract $(srctree) from Kbuild environment, or use relative paths below 36 from binman import bintool 37 from u_boot_pylib import test_util 45 from binman import cmdline 46 from binman import control 47 from u_boot_pylib import test_util 65 from binman import bintool_test 66 from binman import cbfs_util_test 67 from binma [all...] |
/u-boot/tools/patman/ |
H A D | patman | 10 from importlib import resources 19 # Allow 'from patman import xxx to work' 25 from patman import cmdline 26 from patman import control 27 from u_boot_pylib import terminal 28 from u_boot_pylib import test_util 29 from u_boot_pylib import tools 46 from patman import func_test 47 from patman import test_checkpatch 58 # Called from gi [all...] |
/u-boot/include/ |
H A D | onenand_uboot.h | 4 * Adaptation from kernel to U-Boot 33 extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, 35 extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops); 36 extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
|
H A D | video.h | 141 * struct video_handoff - video information passed from SPL 240 * @xstart: X start position in pixels from the left 241 * @ystart: Y start position in pixels from the top 242 * @xend: X end position in pixels from the left 243 * @yend: Y end position in pixels from the top 288 * @x: X position in pixels from the left 289 * @y: Y position in pixels from the top 351 * @from and @to can be in either order. The region between them is synced. 354 * @from: Start/end address within the framebuffer (->fb) 359 int video_sync_copy(struct udevice *dev, void *from, voi 369 video_sync_copy(struct udevice *dev, void *from, void *to) argument [all...] |
H A D | net.h | 125 * @enetaddr: The Ethernet MAC address that is loaded from EEPROM or env 158 * called when no error was returned from recv - optional 159 * stop: Stop the hardware from looking for packets - may be called even if 557 extern int net_ntp_time_offset; /* offset time from UTC */ 647 /* Currently no way to return errors from eth_send() */ 727 static inline struct in_addr net_read_ip(void *from) argument 731 memcpy((void *)&ip, (void *)from, sizeof(ip)); 736 static inline u32 net_read_u32(void *from) argument 740 memcpy((void *)&l, (void *)from, sizeof(l)); 751 static inline void net_copy_ip(void *to, void *from) argument 757 net_copy_u32(void *to, void *from) argument [all...] |
/u-boot/drivers/mtd/onenand/ |
H A D | onenand_bbt.c | 71 loff_t from; local 80 /* We need only read few bytes from the OOB area */ 90 from = 0; 104 from + j * mtd->writesize + 116 (unsigned int)from); 123 rgn = flexonenand_region(mtd, from); 124 from += mtd->eraseregions[rgn].erasesize; 126 from += (1 << bbm->bbt_erase_shift);
|
/u-boot/tools/dtoc/ |
H A D | dtoc | 11 indent is to allow a C program to access data from the device tree without 12 having to link against libfdt. By putting the data from the device tree into 24 from argparse import ArgumentParser 38 from dtoc import dtb_platdata 39 from u_boot_pylib import test_util 52 from dtoc import test_src_scan 53 from dtoc import test_dtoc 77 epilog = 'Generate C code from devicetree files. See of-plat.rst for details'
|
/u-boot/arch/arm/include/asm/ |
H A D | io.h | 2 * I/O device access primitives. Based on early versions from the Linux kernel. 280 #define outsb_p(port,from,len) outsb(port,from,len) 281 #define outsw_p(port,from,len) outsw(port,from,len) 282 #define outsl_p(port,from,len) outsl(port,from,len) 301 /* Optimized copy functions to read from/write to IO sapce */ 305 * Copy data from IO memory space to "real" memory space. 308 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_ argument 338 __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) argument [all...] |
/u-boot/fs/ubifs/ |
H A D | key.h | 22 * node. We use "r5" hash borrowed from reiserfs. 45 * key_r5_hash - R5 hash function (borrowed from reiserfs). 334 * key_inum - fetch inode number from key. 336 * @k: key to fetch inode number from 346 * key_inum_flash - fetch inode number from an on-flash formatted key. 348 * @k: key to fetch inode number from 360 * @key: the key to get hash from 369 * key_hash_flash - get directory entry hash from an on-flash formatted key. 371 * @k: the key to get hash from 383 * @key: the key to get the block number from 410 key_read(const struct ubifs_info *c, const void *from, union ubifs_key *to) argument 425 key_write(const struct ubifs_info *c, const union ubifs_key *from, void *to) argument 441 key_write_idx(const struct ubifs_info *c, const union ubifs_key *from, void *to) argument 456 key_copy(const struct ubifs_info *c, const union ubifs_key *from, union ubifs_key *to) argument [all...] |
/u-boot/include/dm/ |
H A D | of_access.h | 3 * Originally from Linux v4.9 8 * Derived from PowerPC and Sparc prom.h files by Stephen Rothwell, IBM Corp. 32 #define for_each_of_allnodes_from(from, dn) \ 33 for (dn = of_find_all_nodes(from); dn; dn = of_find_all_nodes(dn)) 231 * @from: Node to start searching from or NULL. the node you pass will not be 239 struct device_node *of_find_compatible_node(struct device_node *from, 246 * @from: Node to start searching from or NULL. the node you pass will not be 254 struct device_node *of_find_node_by_prop_value(struct device_node *from, [all...] |
/u-boot/include/linux/mtd/ |
H A D | mtd.h | 62 uint64_t offset; /* At which this region starts, from the beginning of the MTD */ 235 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 237 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 243 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, 249 int (*_read_oob) (struct mtd_info *mtd, loff_t from, 255 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, 259 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from, 263 int (*_lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, 402 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, 404 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_ [all...] |
/u-boot/drivers/mtd/ |
H A D | mtdcore.c | 518 * Remove a device from the list of MTD devices present in the system, 682 * Removes a callback function pair from the list of 'users' to be 928 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, argument 937 if (from < 0 || from > mtd->size || len > mtd->size - from) 941 return mtd->_point(mtd, from, len, retlen, virt, phys); 946 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) argument 950 if (from < 0 || from > mt 975 mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1096 mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) argument 1531 mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1554 mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1588 mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) argument [all...] |
H A D | mtdpart.c | 43 /* from mm/util.c */ 87 * This function is widely inspired from part_parse (mtdparts.c). 188 * mtd_parse_partitions - Create a partition array from an mtdparts definition 292 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, argument 299 res = mtd->parent->_read(mtd->parent, from + mtd->offset, len, 311 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, argument 314 return mtd->parent->_point(mtd->parent, from + mtd->offset, len, 318 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) argument 320 return mtd->parent->_unpoint(mtd->parent, from + mtd->offset, len); 333 static int part_read_oob(struct mtd_info *mtd, loff_t from, argument 370 part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 384 part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 422 part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 429 part_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) argument [all...] |
/u-boot/cmd/ |
H A D | mtd.c | 85 printf("\nDump %d data bytes from 0x%08llx:\n", 93 printf("Dump %d OOB bytes from page at 0x%08llx:\n", 100 printf("\nDump %lld data bytes from 0x%llx:\n", 192 /* Logic taken from fs/ubifs/recovery.c:is_empty() */ 214 off_t from; local 234 from = simple_strtoul(argv[3], NULL, 0); 243 printf("Reading %s OTP from 0x%lx, %zu bytes\n", 244 user ? "user" : "factory", from, len); 247 ret = mtd_read_user_prot_reg(mtd, from, len, &retlen, buf); 249 ret = mtd_read_fact_prot_reg(mtd, from, le 277 off_t from; local 313 off_t from; local [all...] |
H A D | ximg.c | 73 printf("## Copying part %d from legacy image " 130 printf("## Copying '%s' subimage from FIT image " 189 void *from = (void *)data; local 196 memmove(to, from, tail); 198 from += tail; 258 " - extract <part> from legacy image at <addr> and copy to <dest>" 262 " - extract <uname> subimage from FIT image at <addr> and copy to <dest>"
|
/u-boot/arch/sh/include/asm/ |
H A D | io.h | 107 #define outsb_p(port, from, len) outsb(port, from, len) 108 #define outsw_p(port, from, len) outsw(port, from, len) 109 #define outsl_p(port, from, len) outsl(port, from, len) 141 * macros. These should only be used with the cookie passed from
|
/u-boot/include/linux/ |
H A D | bitfield.h | 25 * from which they extract the base mask and shift amount. 98 * FIELD_GET() extracts the field specified by @_mask from the 124 #define ____MAKE_OP(type, base, to, from) \ 143 return (from(v) & field) / field_multiplier(field); \
|
/u-boot/drivers/mtd/spi/ |
H A D | sf_mtd.c | 52 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, argument 61 err = spi_flash_read(flash, from, len, buf); 156 * spi_flash object from being destroyed when del_mtd_device() fails.
|