| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/crypto/ |
| H A D | sha256-internal.c | 131 md->curlen = 0; in _sha256_init() 155 if (md->curlen >= sizeof(md->buf)) in sha256_process() 159 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 166 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 167 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 168 md->curlen += n; in sha256_process() 171 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 175 md->curlen = 0; in sha256_process() 194 if (md->curlen >= sizeof(md->buf)) in sha256_done() 198 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/crypto/ |
| H A D | sha256-internal.c | 131 md->curlen = 0; in sha256_init() 155 if (md->curlen >= sizeof(md->buf)) in sha256_process() 159 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 166 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 167 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 168 md->curlen += n; in sha256_process() 171 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 175 md->curlen = 0; in sha256_process() 194 if (md->curlen >= sizeof(md->buf)) in sha256_done() 198 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/crypto/ |
| H A D | sha256-internal.c | 130 md->curlen = 0; in _sha256_init() 154 if (md->curlen >= sizeof(md->buf)) in sha256_process() 158 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process() 165 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process() 166 os_memcpy(md->buf + md->curlen, in, n); in sha256_process() 167 md->curlen += n; in sha256_process() 170 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process() 174 md->curlen = 0; in sha256_process() 193 if (md->curlen >= sizeof(md->buf)) in sha256_done() 197 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/esa/common/ |
| H A D | sha256.c | 332 md->curlen = 0; in sha256_init() 361 if (md->curlen > sizeof(md->buf)) { in sha256_process() 366 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 376 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 377 memcpy(util_fns, md->buf + md->curlen, in, n); in sha256_process() 378 md->curlen += n; in sha256_process() 381 if (md->curlen == block_size) { in sha256_process() 389 md->curlen = 0; in sha256_process() 411 if (md->curlen >= sizeof(md->buf)) { in sha256_done() 416 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/txx9/rbtx4939/ |
| H A D | setup.c | 331 ssize_t curlen; in rbtx4939_flash_copy_from() local 338 curlen = min_t(unsigned long, len, in rbtx4939_flash_copy_from() 343 curlen); in rbtx4939_flash_copy_from() 344 len -= curlen; in rbtx4939_flash_copy_from() 345 from += curlen; in rbtx4939_flash_copy_from() 346 to += curlen; in rbtx4939_flash_copy_from() 354 curlen = min_t(unsigned long, len, in rbtx4939_flash_copy_from() 356 memcpy(to, (void *)(from ^ 0x400000), curlen); in rbtx4939_flash_copy_from() 357 len -= curlen; in rbtx4939_flash_copy_from() 358 from += curlen; in rbtx4939_flash_copy_from() [all …]
|
| /OK3568_Linux_fs/kernel/lib/zlib_deflate/ |
| H A D | deftree.c | 580 int curlen; /* length of current code */ in scan_tree() local 590 curlen = nextlen; nextlen = tree[n+1].Len; in scan_tree() 591 if (++count < max_count && curlen == nextlen) { in scan_tree() 594 s->bl_tree[curlen].Freq += count; in scan_tree() 595 } else if (curlen != 0) { in scan_tree() 596 if (curlen != prevlen) s->bl_tree[curlen].Freq++; in scan_tree() 603 count = 0; prevlen = curlen; in scan_tree() 606 } else if (curlen == nextlen) { in scan_tree() 626 int curlen; /* length of current code */ in send_tree() local 636 curlen = nextlen; nextlen = tree[n+1].Len; in send_tree() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/zlib/ |
| H A D | trees.c | 718 int curlen; /* length of current code */ local 728 curlen = nextlen; nextlen = tree[n+1].Len; 729 if (++count < max_count && curlen == nextlen) { 732 s->bl_tree[curlen].Freq += count; 733 } else if (curlen != 0) { 734 if (curlen != prevlen) s->bl_tree[curlen].Freq++; 741 count = 0; prevlen = curlen; 744 } else if (curlen == nextlen) { 763 int curlen; /* length of current code */ local 773 curlen = nextlen; nextlen = tree[n+1].Len; [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/parser/ |
| H A D | scan.c | 1053 int len, curlen, iscomment, hasnewline = 0, insnewline, endnewline; in xf86addComment() local 1059 curlen = strlen(cur); in xf86addComment() 1060 if (curlen) in xf86addComment() 1061 hasnewline = cur[curlen - 1] == '\n'; in xf86addComment() 1065 curlen = 0; in xf86addComment() 1079 insnewline = eol_seen || (curlen && !hasnewline); in xf86addComment() 1088 str = realloc(cur, curlen + len + 1); in xf86addComment() 1095 cur[curlen++] = '\n'; in xf86addComment() 1097 cur[curlen++] = '#'; in xf86addComment() 1098 strcpy(cur + curlen, add); in xf86addComment()
|
| /OK3568_Linux_fs/kernel/net/sunrpc/xprtrdma/ |
| H A D | rpc_rdma.c | 1059 int i, npages, curlen; in rpcrdma_inline_fixup() local 1073 curlen = rqst->rq_rcv_buf.head[0].iov_len; in rpcrdma_inline_fixup() 1074 if (curlen > copy_len) in rpcrdma_inline_fixup() 1075 curlen = copy_len; in rpcrdma_inline_fixup() 1076 srcp += curlen; in rpcrdma_inline_fixup() 1077 copy_len -= curlen; in rpcrdma_inline_fixup() 1091 curlen = PAGE_SIZE - page_base; in rpcrdma_inline_fixup() 1092 if (curlen > pagelist_len) in rpcrdma_inline_fixup() 1093 curlen = pagelist_len; in rpcrdma_inline_fixup() 1096 memcpy(destp + page_base, srcp, curlen); in rpcrdma_inline_fixup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_dp_mst_topology.c | 789 memcpy(&msg->msg[msg->curlen], msg->chunk, msg->curchunk_len - 1); in drm_dp_sideband_append_payload() 790 msg->curlen += msg->curchunk_len - 1; in drm_dp_sideband_append_payload() 805 if (idx > raw->curlen) in drm_dp_sideband_parse_link_address() 815 if (idx > raw->curlen) in drm_dp_sideband_parse_link_address() 822 if (idx > raw->curlen) in drm_dp_sideband_parse_link_address() 827 if (idx > raw->curlen) in drm_dp_sideband_parse_link_address() 831 if (idx > raw->curlen) in drm_dp_sideband_parse_link_address() 838 if (idx > raw->curlen) in drm_dp_sideband_parse_link_address() 844 DRM_DEBUG_KMS("link address reply parse length fail %d %d\n", idx, raw->curlen); in drm_dp_sideband_parse_link_address() 855 if (idx > raw->curlen) in drm_dp_sideband_parse_remote_dpcd_read() [all …]
|
| /OK3568_Linux_fs/buildroot/package/rtl8821au/ |
| H A D | 0004-rename-sha256_state-to-rtl_sha256_state-to-avoid-nam.patch | 35 md->curlen = 0; 75 u32 state[8], curlen;
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/core/ |
| H A D | rtw_security.c | 2328 md->curlen = 0; in sha256_init() 2353 if (md->curlen > sizeof(md->buf)) in sha256_process() 2357 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 2364 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 2365 _rtw_memcpy(md->buf + md->curlen, in, n); in sha256_process() 2366 md->curlen += n; in sha256_process() 2369 if (md->curlen == block_size) { in sha256_process() 2373 md->curlen = 0; in sha256_process() 2392 if (md->curlen >= sizeof(md->buf)) in sha256_done() 2396 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/core/ |
| H A D | rtw_security.c | 2275 md->curlen = 0; in sha256_init() 2300 if (md->curlen > sizeof(md->buf)) in sha256_process() 2304 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 2311 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 2312 _rtw_memcpy(md->buf + md->curlen, in, n); in sha256_process() 2313 md->curlen += n; in sha256_process() 2316 if (md->curlen == block_size) { in sha256_process() 2320 md->curlen = 0; in sha256_process() 2339 if (md->curlen >= sizeof(md->buf)) in sha256_done() 2343 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/core/ |
| H A D | rtw_security.c | 2328 md->curlen = 0; in sha256_init() 2353 if (md->curlen > sizeof(md->buf)) in sha256_process() 2357 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 2364 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 2365 _rtw_memcpy(md->buf + md->curlen, in, n); in sha256_process() 2366 md->curlen += n; in sha256_process() 2369 if (md->curlen == block_size) { in sha256_process() 2373 md->curlen = 0; in sha256_process() 2392 if (md->curlen >= sizeof(md->buf)) in sha256_done() 2396 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/core/ |
| H A D | rtw_security.c | 2183 md->curlen = 0; in sha256_init() 2208 if (md->curlen >= sizeof(md->buf)) in sha256_process() 2212 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 2219 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 2220 _rtw_memcpy(md->buf + md->curlen, in, n); in sha256_process() 2221 md->curlen += n; in sha256_process() 2224 if (md->curlen == block_size) { in sha256_process() 2228 md->curlen = 0; in sha256_process() 2247 if (md->curlen >= sizeof(md->buf)) in sha256_done() 2251 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/u-boot/net/ |
| H A D | bootp.c | 178 static int truncate_sz(const char *name, int maxlen, int curlen) in truncate_sz() argument 180 if (curlen >= maxlen) { in truncate_sz() 182 " - truncated\n", name, curlen, maxlen); in truncate_sz() 183 curlen = maxlen - 1; in truncate_sz() 185 return curlen; in truncate_sz()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/core/ |
| H A D | rtw_security.c | 2187 md->curlen = 0; in sha256_init() 2212 if (md->curlen >= sizeof(md->buf)) in sha256_process() 2216 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 2223 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 2224 _rtw_memcpy(md->buf + md->curlen, in, n); in sha256_process() 2225 md->curlen += n; in sha256_process() 2228 if (md->curlen == block_size) { in sha256_process() 2232 md->curlen = 0; in sha256_process() 2251 if (md->curlen >= sizeof(md->buf)) in sha256_done() 2255 md->length += md->curlen * 8; in sha256_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/core/ |
| H A D | rtw_security.c | 2187 md->curlen = 0; in sha256_init() 2212 if (md->curlen >= sizeof(md->buf)) in sha256_process() 2216 if (md->curlen == 0 && inlen >= block_size) { in sha256_process() 2223 n = MIN(inlen, (block_size - md->curlen)); in sha256_process() 2224 _rtw_memcpy(md->buf + md->curlen, in, n); in sha256_process() 2225 md->curlen += n; in sha256_process() 2228 if (md->curlen == block_size) { in sha256_process() 2232 md->curlen = 0; in sha256_process() 2251 if (md->curlen >= sizeof(md->buf)) in sha256_done() 2255 md->length += md->curlen * 8; in sha256_done() [all …]
|