Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 266) sorted by relevance

1234567891011

/rk3399_rockchip-uboot/common/
H A Dmalloc_simple.c16 void *malloc_simple(size_t bytes) in malloc_simple() argument
21 new_ptr = gd->malloc_ptr + bytes; in malloc_simple()
22 debug("%s: size=0x%lx, ptr=0x%lx, limit=0x%lx: ", __func__, (unsigned long)bytes, new_ptr, in malloc_simple()
28 ptr = map_sysmem(gd->malloc_base + gd->malloc_ptr, bytes); in malloc_simple()
35 void *memalign_simple(size_t align, size_t bytes) in memalign_simple() argument
41 new_ptr = addr + bytes - gd->malloc_base; in memalign_simple()
47 ptr = map_sysmem(addr, bytes); in memalign_simple()
H A Ddlmalloc.c1237 Void_t* mALLOc(size_t bytes) in mALLOc() argument
1239 Void_t* mALLOc(bytes) size_t bytes; in mALLOc()
1259 return malloc_simple(bytes);
1268 if ((long)bytes < 0) return NULL;
1270 nb = request2size(bytes); /* padded request size; */
1647 Void_t* rEALLOc(Void_t* oldmem, size_t bytes) in rEALLOc() argument
1649 Void_t* rEALLOc(oldmem, bytes) Void_t* oldmem; size_t bytes; in rEALLOc()
1674 if (!bytes) {
1680 if ((long)bytes < 0) return NULL;
1683 if (oldmem == NULL) return mALLOc(bytes);
[all …]
/rk3399_rockchip-uboot/doc/SPI/
H A DREADME.ti_qspi_dra_test15 55872 bytes read in 8 ms (6.7 MiB/s)
18 248600 bytes read in 19 ms (12.5 MiB/s)
27 SF: 65536 bytes @ 0x0 Erased: OK
29 SF: 65536 bytes @ 0x20000 Erased: OK
31 SF: 65536 bytes @ 0x30000 Erased: OK
33 SF: 65536 bytes @ 0x40000 Erased: OK
35 SF: 65536 bytes @ 0x50000 Erased: OK
37 SF: 65536 bytes @ 0x60000 Erased: OK
39 SF: 65536 bytes @ 0x0 Written: OK
41 SF: 393216 bytes @ 0x20000 Written: OK
/rk3399_rockchip-uboot/arch/arm/mach-imx/
H A Dhab.c277 void process_event_record(uint8_t *event_data, size_t bytes) in process_event_record() argument
287 void display_event(uint8_t *event_data, size_t bytes) in display_event() argument
291 if (!(event_data && bytes > 0)) in display_event()
294 for (i = 0; i < bytes; i++) { in display_event()
303 process_event_record(event_data, bytes); in display_event()
310 size_t bytes = sizeof(event_data); /* Event size in bytes */ in get_hab_status() local
331 &bytes) == HAB_SUCCESS) { in get_hab_status()
336 display_event(event_data, bytes); in get_hab_status()
338 bytes = sizeof(event_data); in get_hab_status()
416 size_t bytes; in authenticate_image() local
[all …]
/rk3399_rockchip-uboot/disk/
H A Dpart_mac.c110 ulong bytes; in part_print_mac() local
131 bytes = mpart->block_count; in part_print_mac()
132 bytes /= (1024 / ddesc->blk_size); /* kB; assumes blk_size == 512 */ in part_print_mac()
133 if (bytes >= 1024) { in part_print_mac()
134 bytes >>= 10; in part_print_mac()
137 if (bytes >= 1024) { in part_print_mac()
138 bytes >>= 10; in part_print_mac()
147 bytes, c in part_print_mac()
/rk3399_rockchip-uboot/tools/dtoc/
H A Dfdt.py40 def __init__(self, node, offset, name, bytes): argument
45 self.bytes = str(bytes)
46 if not bytes:
50 self.type, self.value = self.BytesToValue(bytes)
93 def BytesToValue(self, bytes): argument
108 bytes = str(bytes)
109 size = len(bytes)
110 strings = bytes.split('\0')
131 return TYPE_BYTE, bytes[0]
133 return TYPE_BYTE, list(bytes)
[all …]
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_util.c57 uint8_t bytes[4]; in avb_htobe32() member
59 ret.bytes[0] = (in >> 24) & 0xff; in avb_htobe32()
60 ret.bytes[1] = (in >> 16) & 0xff; in avb_htobe32()
61 ret.bytes[2] = (in >> 8) & 0xff; in avb_htobe32()
62 ret.bytes[3] = in & 0xff; in avb_htobe32()
70 uint8_t bytes[8]; in avb_htobe64() member
72 ret.bytes[0] = (in >> 56) & 0xff; in avb_htobe64()
73 ret.bytes[1] = (in >> 48) & 0xff; in avb_htobe64()
74 ret.bytes[2] = (in >> 40) & 0xff; in avb_htobe64()
75 ret.bytes[3] = (in >> 32) & 0xff; in avb_htobe64()
[all …]
/rk3399_rockchip-uboot/doc/
H A DREADME.android-fastboot-protocol14 * Max packet size must be 64 bytes for full-speed and 512 bytes for
24 packet no greater than 64 bytes.
26 2. Client response with a single packet no greater than 64 bytes.
27 The first four bytes of the response are "OKAY", "FAIL", "DATA",
28 or "INFO". Additional bytes may contain an (ascii) informative
31 a. INFO -> the remaining 60 bytes are an informative message
35 b. FAIL -> the requested command failed. The remaining 60 bytes
42 A DATA response packet will be 12 bytes long, in the form of
49 until the client has sent or received the number of bytes indicated
52 4. Client responds with a single packet no greater than 64 bytes.
[all …]
/rk3399_rockchip-uboot/drivers/mtd/ubi/
H A Dupd.c82 long long bytes) in clear_update_marker() argument
95 vol->used_bytes = bytes; in clear_update_marker()
96 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker()
122 long long bytes) in ubi_start_update() argument
126 dbg_gen("start update of volume %d, %llu bytes", vol->vol_id, bytes); in ubi_start_update()
145 if (bytes == 0) { in ubi_start_update()
159 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1, in ubi_start_update()
161 vol->upd_bytes = bytes; in ubi_start_update()
181 vol->vol_id, req->lnum, req->bytes); in ubi_start_leb_change()
182 if (req->bytes == 0) in ubi_start_leb_change()
[all …]
/rk3399_rockchip-uboot/drivers/spi/
H A Dath79_spi.c65 u32 bytes = bitlen / 8; in ath79_spi_xfer() local
74 bytes++; in ath79_spi_xfer()
77 while (bytes > 0) { in ath79_spi_xfer()
78 bytes--; in ath79_spi_xfer()
83 if (restbits && !bytes) { in ath79_spi_xfer()
118 if (!bytes) in ath79_spi_xfer()
123 if (restbits && !bytes) in ath79_spi_xfer()
H A Dich.c175 static inline void spi_use_out(struct spi_trans *trans, unsigned bytes) in spi_use_out() argument
177 trans->out += bytes; in spi_use_out()
178 trans->bytesout -= bytes; in spi_use_out()
181 static inline void spi_use_in(struct spi_trans *trans, unsigned bytes) in spi_use_in() argument
183 trans->in += bytes; in spi_use_in()
184 trans->bytesin -= bytes; in spi_use_in()
379 int bytes = bitlen / 8; in ich_spi_xfer() local
401 if (bytes > ICH_MAX_CMD_LEN) { in ich_spi_xfer()
405 memcpy(trans->cmd, dout, bytes); in ich_spi_xfer()
406 trans->cmd_len = bytes; in ich_spi_xfer()
[all …]
H A Dtegra210_qspi.c268 int bytes; in tegra210_qspi_xfer() local
271 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra210_qspi_xfer()
274 memcpy((void *)&tmpdout, (void *)dout, bytes); in tegra210_qspi_xfer()
275 dout += bytes; in tegra210_qspi_xfer()
276 num_bytes -= bytes; in tegra210_qspi_xfer()
289 (bytes * 8 - 1) << QSPI_CMD1_BITLEN_SHIFT); in tegra210_qspi_xfer()
341 memcpy(din, &tmpdin, bytes); in tegra210_qspi_xfer()
342 din += bytes; in tegra210_qspi_xfer()
343 num_bytes -= bytes; in tegra210_qspi_xfer()
H A Dtegra114_spi.c256 int bytes; in tegra114_spi_xfer() local
260 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra114_spi_xfer()
263 for (i = 0; i < bytes; ++i) in tegra114_spi_xfer()
265 dout += bytes; in tegra114_spi_xfer()
268 num_bytes -= bytes; in tegra114_spi_xfer()
275 (bytes * 8 - 1) << SPI_CMD1_BIT_LEN_SHIFT); in tegra114_spi_xfer()
318 for (i = bytes - 1; i >= 0; --i) { in tegra114_spi_xfer()
322 din += bytes; in tegra114_spi_xfer()
H A Dtegra20_sflash.c238 int bytes; in tegra20_sflash_xfer() local
243 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra20_sflash_xfer()
246 for (i = 0; i < bytes; ++i) in tegra20_sflash_xfer()
250 num_bytes -= bytes; in tegra20_sflash_xfer()
252 dout += bytes; in tegra20_sflash_xfer()
255 bytes * 8 - 1); in tegra20_sflash_xfer()
282 for (i = bytes - 1; i >= 0; --i) { in tegra20_sflash_xfer()
286 din += bytes; in tegra20_sflash_xfer()
H A Dtegra20_slink.c238 int bytes; in tegra30_spi_xfer() local
243 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra30_spi_xfer()
246 for (i = 0; i < bytes; ++i) in tegra30_spi_xfer()
248 dout += bytes; in tegra30_spi_xfer()
251 num_bytes -= bytes; in tegra30_spi_xfer()
254 bytes * 8 - 1); in tegra30_spi_xfer()
281 for (i = bytes - 1; i >= 0; --i) { in tegra30_spi_xfer()
285 din += bytes; in tegra30_spi_xfer()
/rk3399_rockchip-uboot/drivers/ufs/
H A Dufs-rockchip-rpmb.c46 static void u16_to_bytes(uint16_t u16, uint8_t *bytes) in u16_to_bytes() argument
48 *bytes = (uint8_t) (u16 >> 8); in u16_to_bytes()
49 *(bytes + 1) = (uint8_t) u16; in u16_to_bytes()
52 static void bytes_to_u16(uint8_t *bytes, uint16_t *u16) in bytes_to_u16() argument
54 *u16 = (uint16_t) ((*bytes << 8) + *(bytes + 1)); in bytes_to_u16()
57 static void bytes_to_u32(uint8_t *bytes, uint32_t *u32) in bytes_to_u32() argument
59 *u32 = (uint32_t) ((*(bytes) << 24) + in bytes_to_u32()
60 (*(bytes + 1) << 16) + in bytes_to_u32()
61 (*(bytes + 2) << 8) + (*(bytes + 3))); in bytes_to_u32()
64 static void u32_to_bytes(uint32_t u32, uint8_t *bytes) in u32_to_bytes() argument
[all …]
/rk3399_rockchip-uboot/lib/
H A Dtables_csum.c12 u8 *bytes = v; in table_compute_checksum() local
17 checksum -= bytes[i]; in table_compute_checksum()
H A Dstring.c662 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
664 while (bytes) { in check_bytes8()
668 bytes--; in check_bytes8()
681 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
687 if (bytes <= 16) in memchr_inv()
688 return check_bytes8(start, value, bytes); in memchr_inv()
704 bytes -= prefix; in memchr_inv()
707 words = bytes / 8; in memchr_inv()
716 return check_bytes8(start, value, bytes % 8); in memchr_inv()
/rk3399_rockchip-uboot/include/
H A Dtables_csum.h12 u8 *bytes = v; in table_compute_checksum() local
17 checksum -= bytes[i]; in table_compute_checksum()
/rk3399_rockchip-uboot/cmd/
H A Dmem.c52 ulong addr, length, bytes; in do_mem_md() local
86 bytes = size * length; in do_mem_md()
87 buf = map_sysmem(addr, bytes); in do_mem_md()
91 addr += bytes; in do_mem_md()
119 ulong bytes; in do_mem_mw() local
149 bytes = size * count; in do_mem_mw()
150 start = map_sysmem(addr, bytes); in do_mem_mw()
227 ulong addr1, addr2, count, ngood, bytes; in do_mem_cmp() local
257 bytes = size * count; in do_mem_cmp()
258 base = buf1 = map_sysmem(addr1, bytes); in do_mem_cmp()
[all …]
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Dsec_firmware.c257 int sec_firmware_get_random(uint8_t *rand, int bytes) in sec_firmware_get_random() argument
263 if (!bytes || bytes > 8) { in sec_firmware_get_random()
270 if (bytes <= 4) in sec_firmware_get_random()
282 memcpy(rand, &num, bytes); in sec_firmware_get_random()
/rk3399_rockchip-uboot/drivers/block/
H A Dblkcache.c79 lbaint_t bytes; in blkcache_fill() local
89 bytes = blksz * blkcnt; in blkcache_fill()
97 if (node->blkcnt * node->blksz < bytes) { in blkcache_fill()
109 node->cache = malloc(bytes); in blkcache_fill()
124 memcpy(node->cache, buffer, bytes); in blkcache_fill()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Domap_gpmc.c328 for (i = 0; i < chip->ecc.bytes; i++) in omap_calculate_ecc()
334 ecc_code[chip->ecc.bytes - 1] = 0x00; in omap_calculate_ecc()
507 for (i = 0; i < ecc->bytes && !ecc_flag; i++) { in omap_correct_data_bch()
516 for (i = 0; i < ecc->bytes && !ecc_flag; i++) { in omap_correct_data_bch()
530 omap_reverse_list(calc_ecc, ecc->bytes - 1); in omap_correct_data_bch()
534 omap_reverse_list(calc_ecc, ecc->bytes); in omap_correct_data_bch()
550 error_max = SECTOR_BYTES + (ecc->bytes - 1); in omap_correct_data_bch()
553 error_max = SECTOR_BYTES + ecc->bytes; in omap_correct_data_bch()
588 int eccbytes = chip->ecc.bytes; in omap_read_page_bch()
744 nand->ecc.bytes = 3; in omap_select_ecc_scheme()
[all …]
/rk3399_rockchip-uboot/drivers/video/drm/
H A Dlibnsbmp.c512 static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t **start, int bytes) in bmp_decode_rgb32() argument
527 end = data + bytes; in bmp_decode_rgb32()
592 static bmp_result bmp_decode_rgb24(bmp_image *bmp, uint8_t **start, int bytes) in bmp_decode_rgb24() argument
608 end = data + bytes; in bmp_decode_rgb24()
662 static bmp_result bmp_decode_rgb16(bmp_image *bmp, uint8_t **start, int bytes) in bmp_decode_rgb16() argument
677 end = data + bytes; in bmp_decode_rgb16()
748 static bmp_result bmp_decode_rgb(bmp_image *bmp, uint8_t **start, int bytes) in bmp_decode_rgb() argument
768 end = data + bytes; in bmp_decode_rgb()
820 static bmp_result bmp_decode_mask(bmp_image *bmp, uint8_t *data, int bytes) in bmp_decode_mask() argument
833 end = data + bytes; in bmp_decode_mask()
[all …]
/rk3399_rockchip-uboot/drivers/mmc/
H A Dmxcmmc.c280 static int mxcmci_pull(struct mxcmci_host *host, void *_buf, int bytes) in mxcmci_pull() argument
285 while (bytes > 3) { in mxcmci_pull()
291 bytes -= 4; in mxcmci_pull()
294 if (bytes) { in mxcmci_pull()
303 memcpy(b, &tmp, bytes); in mxcmci_pull()
309 static int mxcmci_push(struct mxcmci_host *host, const void *_buf, int bytes) in mxcmci_push() argument
314 while (bytes > 3) { in mxcmci_push()
319 bytes -= 4; in mxcmci_push()
322 if (bytes) { in mxcmci_push()
330 memcpy(&tmp, b, bytes); in mxcmci_push()

1234567891011