Home
last modified time | relevance | path

Searched refs:nleft (Results 1 – 12 of 12) sorted by relevance

/third_party/ltp/testcases/kernel/fs/doio/
Dpattern.c42 int nb, ncmp, nleft; in pattern_check() local
49 nleft = buflen; in pattern_check()
59 if (nleft < nb) { in pattern_check()
60 return (memcmp(cp, pat + patshift, nleft) ? -1 : 0); in pattern_check()
65 nleft -= nb; in pattern_check()
71 if (nleft < nb) { in pattern_check()
72 return (memcmp(cp, pat, nleft) ? -1 : 0); in pattern_check()
77 nleft -= nb; in pattern_check()
89 nb = (ncmp < nleft) ? ncmp : nleft; in pattern_check()
95 nleft -= nb; in pattern_check()
[all …]
/third_party/ltp/testcases/kernel/sched/clisrv/
Dwriten.c30 int nleft, nwritten; in writen() local
32 nleft = nbytes; in writen()
33 while (nleft > 0) { in writen()
34 nwritten = write(fd, ptr, nleft); in writen()
37 nleft -= nwritten; in writen()
40 return (nbytes - nleft); in writen()
/third_party/openssl/crypto/cmac/
Dcmac.c176 size_t nleft; in CMAC_Update() local
178 nleft = bl - ctx->nlast_block; in CMAC_Update()
179 if (dlen < nleft) in CMAC_Update()
180 nleft = dlen; in CMAC_Update()
181 memcpy(ctx->last_block + ctx->nlast_block, data, nleft); in CMAC_Update()
182 dlen -= nleft; in CMAC_Update()
183 ctx->nlast_block += nleft; in CMAC_Update()
187 data += nleft; in CMAC_Update()
/third_party/node/deps/openssl/openssl/crypto/cmac/
Dcmac.c176 size_t nleft; in CMAC_Update() local
178 nleft = bl - ctx->nlast_block; in CMAC_Update()
179 if (dlen < nleft) in CMAC_Update()
180 nleft = dlen; in CMAC_Update()
181 memcpy(ctx->last_block + ctx->nlast_block, data, nleft); in CMAC_Update()
182 dlen -= nleft; in CMAC_Update()
183 ctx->nlast_block += nleft; in CMAC_Update()
187 data += nleft; in CMAC_Update()
/third_party/skia/third_party/externals/freetype/src/cff/
Dcffload.c957 FT_UInt nleft; in cff_charset_load() local
972 if ( FT_READ_USHORT( nleft ) ) in cff_charset_load()
977 if ( FT_READ_BYTE( nleft ) ) in cff_charset_load()
982 if ( glyph_sid > 0xFFFFL - nleft ) in cff_charset_load()
985 " nleft=%d -> %ld\n", nleft, 0xFFFFL - glyph_sid )); in cff_charset_load()
986 nleft = ( FT_UInt )( 0xFFFFL - glyph_sid ); in cff_charset_load()
990 for ( i = 0; j < num_glyphs && i <= nleft; i++, j++, glyph_sid++ ) in cff_charset_load()
1721 FT_UInt nleft; in cff_encoding_load() local
1729 for ( j = 0; j < count; j++, i += nleft ) in cff_encoding_load()
1736 if ( FT_READ_BYTE( nleft ) ) in cff_encoding_load()
[all …]
/third_party/pulseaudio/src/pulse/
Dvolume.c725 pa_volume_t left, nleft, right, nright, m; in set_balance() local
734 nleft = m; in set_balance()
736 nleft = (1.0f - new_balance) * m; in set_balance()
743 v->values[c] = nleft; in set_balance()
745 …[c] = (pa_volume_t) PA_CLAMP_VOLUME(((uint64_t) v->values[c] * (uint64_t) nleft) / (uint64_t) left… in set_balance()
Dohos_pa_volume.c741 pa_volume_t left, nleft, right, nright, m; in set_balance() local
750 nleft = m; in set_balance()
752 nleft = (1.0f - new_balance) * m; in set_balance()
759 v->values[c] = nleft; in set_balance()
761 …[c] = (pa_volume_t) PA_CLAMP_VOLUME(((uint64_t) v->values[c] * (uint64_t) nleft) / (uint64_t) left… in set_balance()
/third_party/elfutils/src/
Dar.c583 size_t nleft; in do_oper_extract() local
584 char *data = elf_rawfile (subelf, &nleft); in do_oper_extract()
642 while ((n = TEMP_FAILURE_RETRY (write (xfd, data, nleft))) != -1) in do_oper_extract()
644 nleft -= n; in do_oper_extract()
645 if (nleft == 0) in do_oper_extract()
/third_party/python/Modules/
D_winapi.c1480 DWORD nread, navail, nleft; in _winapi_PeekNamedPipe_impl() local
1494 &navail, &nleft); in _winapi_PeekNamedPipe_impl()
1502 return Py_BuildValue("NII", buf, navail, nleft); in _winapi_PeekNamedPipe_impl()
1506 ret = PeekNamedPipe(handle, NULL, 0, NULL, &navail, &nleft); in _winapi_PeekNamedPipe_impl()
1511 return Py_BuildValue("II", navail, nleft); in _winapi_PeekNamedPipe_impl()
/third_party/astc-encoder/Source/
Dstb_image.h6005 int count, nleft, len; in stbi__psd_decode_rle() local
6008 while ((nleft = pixelCount - count) > 0) { in stbi__psd_decode_rle()
6015 if (len > nleft) return 0; // corrupt data in stbi__psd_decode_rle()
6027 if (len > nleft) return 0; // corrupt data in stbi__psd_decode_rle()
7175 int nleft; in stbi__hdr_load() local
7177 while ((nleft = width - i) > 0) { in stbi__hdr_load()
7183 …if (count > nleft) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad … in stbi__hdr_load()
7188 …if (count > nleft) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad … in stbi__hdr_load()
/third_party/skia/third_party/externals/freetype/docs/oldlogs/
DChangeLog.245261 * src/cff/cffload.c (cff_charset_load): Report the original `nleft'
5262 and truncated `nleft'.
DChangeLog.215075 * src/cff/cffload (cff_encoding_load): `nleft' must be FT_UInt,