Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 18 of 18) sorted by relevance

/AliOS-Things-master/components/py_engine/tests/esp32/
A Dpartition_ota.py93 blk = bytearray(4096)
96 blk = blk[: sz - addr]
100 src.readblocks(addr >> 12, blk)
101 dest.writeblocks(addr >> 12, blk)
102 addr += len(blk)
/AliOS-Things-master/kernel/rhino/include/
A Dk_mm_blk.h90 kstat_t krhino_mblk_free(mblk_pool_t *pool, void *blk);
91 kstat_t krhino_mblk_free_nolock(mblk_pool_t *pool, void *blk);
110 #define krhino_mblk_check(pool, blk) \ argument
112 && ((uintptr_t)(blk) >= ((mblk_pool_t*)(pool))->pool_start) \
113 && ((uintptr_t)(blk) < ((mblk_pool_t*)(pool))->pool_end))
121 RHINO_INLINE size_t krhino_mblk_get_size(mblk_pool_t *pool, void *blk) in krhino_mblk_get_size() argument
127 slice_idx = ((uintptr_t)blk - pool->pool_start) >> MM_BLK_SLICE_BIT; in krhino_mblk_get_size()
A Dk_mm.h88 #define MM_GET_BUF_SIZE(blk) ((blk)->buf_size & (~MM_ALIGN_MASK)) argument
92 #define MM_GET_BLK_SIZE(blk) (MM_GET_BUF_SIZE(blk) + MMLIST_HEAD_SIZE) argument
97 #define MM_GET_NEXT_BLK(blk) ((k_mm_list_t *)((blk)->mbinfo.buffer + MM_GET_BUF_SIZE(blk))) argument
/AliOS-Things-master/components/mbedtls/library/
A Dpadlock.c87 uint32_t *blk; in mbedtls_padlock_xcryptecb() local
92 blk = MBEDTLS_PADLOCK_ALIGN16( buf ); in mbedtls_padlock_xcryptecb()
93 memcpy( blk, input, 16 ); in mbedtls_padlock_xcryptecb()
95 ctrl = blk + 4; in mbedtls_padlock_xcryptecb()
109 : "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk) in mbedtls_padlock_xcryptecb()
112 memcpy( output, blk, 16 ); in mbedtls_padlock_xcryptecb()
A Daria.c942 uint8_t blk[MBEDTLS_ARIA_BLOCKSIZE]; in mbedtls_aria_self_test() local
964 mbedtls_aria_crypt_ecb( &ctx, aria_test1_ecb_pt, blk ); in mbedtls_aria_self_test()
965 if( memcmp( blk, aria_test1_ecb_ct[i], MBEDTLS_ARIA_BLOCKSIZE ) != 0 ) in mbedtls_aria_self_test()
972 mbedtls_aria_crypt_ecb( &ctx, aria_test1_ecb_ct[i], blk ); in mbedtls_aria_self_test()
973 if( memcmp( blk, aria_test1_ecb_pt, MBEDTLS_ARIA_BLOCKSIZE ) != 0 ) in mbedtls_aria_self_test()
1053 mbedtls_aria_crypt_ctr( &ctx, 48, &j, iv, blk, in mbedtls_aria_self_test()
1065 mbedtls_aria_crypt_ctr( &ctx, 48, &j, iv, blk, in mbedtls_aria_self_test()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/examples/
A Dfitblk.c132 unsigned char *blk; /* intermediate and final stream */ in main() local
147 blk = malloc(size + EXCESS); in main()
152 if (ret != Z_OK || blk == NULL) in main()
157 def.next_out = blk; in main()
166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
172 free(blk); in main()
194 inf.next_in = blk; in main()
211 def.next_out = blk; in main()
219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
228 free(blk); in main()
/AliOS-Things-master/kernel/rhino/
A Dk_mm.c340 blk->mbinfo.free_ptr.prev = NULL; in k_mm_freelist_insert()
347 mmhead->freelist[level] = blk; in k_mm_freelist_insert()
363 blk->mbinfo.free_ptr.next->mbinfo.free_ptr.prev = blk->mbinfo.free_ptr.prev; in k_mm_freelist_delete()
366 blk->mbinfo.free_ptr.prev->mbinfo.free_ptr.next = blk->mbinfo.free_ptr.next; in k_mm_freelist_delete()
369 if (mmhead->freelist[level] == blk) { in k_mm_freelist_delete()
378 blk->mbinfo.free_ptr.prev = NULL; in k_mm_freelist_delete()
379 blk->mbinfo.free_ptr.next = NULL; in k_mm_freelist_delete()
758 k_mm_list_t *blk; in krhino_owner_attach() local
777 blk = MM_GET_THIS_BLK(addr); in krhino_owner_attach()
784 memset(blk->trace, 0, sizeof(blk->trace)); in krhino_owner_attach()
[all …]
A Dk_mm_blk.c103 kstat_t krhino_mblk_free_nolock(mblk_pool_t *pool, void *blk) in krhino_mblk_free_nolock() argument
110 NULL_PARA_CHK(blk); in krhino_mblk_free_nolock()
112 slice_idx = ((uintptr_t)blk - pool->pool_start) >> MM_BLK_SLICE_BIT; in krhino_mblk_free_nolock()
124 *((uintptr_t *)blk) = blk_list->free_head; in krhino_mblk_free_nolock()
125 blk_list->free_head = (uintptr_t)blk; in krhino_mblk_free_nolock()
181 kstat_t krhino_mblk_free(mblk_pool_t *pool, void *blk) in krhino_mblk_free() argument
187 NULL_PARA_CHK(blk); in krhino_mblk_free()
191 ret = krhino_mblk_free_nolock(pool, blk); in krhino_mblk_free()
/AliOS-Things-master/components/py_engine/tests/micropython/
A Dmeminfo.py.exp4 No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+, max free sz: \\d\+
8 No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+, max free sz: \\d\+
/AliOS-Things-master/components/drivers/peripheral/flash/include/aos/
A Dmtdnand.h88 …int(*isbad)(aos_nand_t *nand, uint32_t blk); /* if NULL OOB[0] used as bad mark(not 0xff is bad)…
89 … int(*markbad)(aos_nand_t *nand, uint32_t blk); /* if NULL OOB[0] used as bad mark(set to 0x00) */
/AliOS-Things-master/components/drivers/peripheral/flash/src/
A Dmtdnand.c541 static int nand_block_isbad(aos_mtd_t *mtd, uint32_t blk) in nand_block_isbad() argument
548 ret = chip->ops->isbad(chip, blk); in nand_block_isbad()
554 page = blk * chip->pages_pb; in nand_block_isbad()
562 static int nand_block_markbad(aos_mtd_t *mtd, uint32_t blk) in nand_block_markbad() argument
571 ret = chip->ops->markbad(chip, blk); in nand_block_markbad()
577 page = blk * chip->pages_pb; in nand_block_markbad()
/AliOS-Things-master/components/py_engine/tests/cmdline/
A Dcmd_verbose.py.exp21 No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+, max free sz: \\d\+
A Dcmd_parsetree.py.exp73 No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+, max free sz: \\d\+
A Dcmd_showbc.py.exp547 No. of 1-blocks: \\d\+, 2-blocks: \\d\+, max blk sz: \\d\+, max free sz: \\d\+
/AliOS-Things-master/components/osal_aos/
A DREADME.md449 AliOS Things内存管理采用类buddy伙伴算法,以及blk快速小内存申请算法相结合的策略。
473 - blk小内存快速申请:
479 blk小内存算法申请的内存最小为4字节对齐
480 小于RHINO_CONFIG_MM_BLK_SIZE大小的内存块会优先从blk算法中申请不够的再从通过buddy申请
535 设定从blk小内存申请的阈值(byte)即
542 注: blk目前最大支持1K以下的小内存块如果需要调整可修改内部配置 MM_BLK_SLICE_BIT一般无需修改
634 其中blk算法不包含维测信息。
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Diterator_enc.c432 const uint8_t* const blk = yuv_out + VP8Scan[it->i4_]; in VP8IteratorRotateI4() local
438 top[-4 + i] = blk[i + 3 * BPS]; // store future top samples in VP8IteratorRotateI4()
442 top[i] = blk[3 + (2 - i) * BPS]; in VP8IteratorRotateI4()
/AliOS-Things-master/components/littlefs/src/littlefs-v220/
A Dlfs.c19 static int gc_cb(void *data, lfs_block_t blk);
3394 static int gc_cb(void *data, lfs_block_t blk) in gc_cb() argument
3397 return lfs->cfg->nty_gc(lfs->cfg, blk); in gc_cb()
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/
A Dduktape.c95172 duk_uint_t blk; local
95183 for (blk = start_blk; blk <= end_blk; blk++) {
95184 offset = blk >> 3;
95185 mask = 1U << (blk & 0x07);
95197 if (blk > start_blk) {
95198 return (duk_codepoint_t) (blk << DUK_CANON_BITMAP_BLKSHIFT);
95204 DUK_ASSERT(blk == end_blk + 1); /* Reached end block which is continuous. */

Completed in 310 milliseconds