Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/fs/doio/
H A 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()
103 int trans, ncopied, nleft; pattern_fill() local
[all...]
/third_party/ltp/testcases/kernel/sched/clisrv/
H A 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/node/deps/openssl/openssl/crypto/cmac/
H A 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/openssl/crypto/cmac/
H A 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/
H A 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()
981 /* try to rescue some of the SIDs if `nleft' is too large */ 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()
989 /* Fill in the range of sids -- `nleft + 1' glyphs. */ in cff_charset_load()
990 for ( i = 0; j < num_glyphs && i <= nleft; in cff_charset_load()
1721 FT_UInt nleft; cff_encoding_load() local
[all...]
/third_party/pulseaudio/src/pulse/
H A 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 v->values[c] = (pa_volume_t) PA_CLAMP_VOLUME(((uint64_t) v->values[c] * (uint64_t) nleft) / (uint64_t) left); in set_balance()
H A 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 v->values[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/
H A 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/
H A D_winapi.c1504 DWORD nread, navail, nleft; in _winapi_PeekNamedPipe_impl() local
1518 &navail, &nleft); in _winapi_PeekNamedPipe_impl()
1526 return Py_BuildValue("NII", buf, navail, nleft); in _winapi_PeekNamedPipe_impl()
1530 ret = PeekNamedPipe(handle, NULL, 0, NULL, &navail, &nleft); in _winapi_PeekNamedPipe_impl()
1535 return Py_BuildValue("II", navail, nleft); in _winapi_PeekNamedPipe_impl()
/third_party/toybox/toys/pending/
H A Dawk.c3570 double nleft, nright, d; in interpx() local
3598 nleft = to_num(STKP-1); in interpx()
3601 case tkpow: nleft = pow(nleft, nright); break; in interpx()
3602 case tkmul: nleft *= nright; break; in interpx()
3603 case tkdiv: nleft /= nright; break; in interpx()
3604 case tkmod: nleft = fmod(nleft, nright); break; in interpx()
3605 case tkplus: nleft += nright; break; in interpx()
3606 case tkminus: nleft in interpx()
[all...]
/third_party/backends/backend/
H A Dmicrotek.c2337 int nmax, ntoget, nleft; in do_real_calibrate() local
2361 for (nleft = STRIPS, spot=0; in do_real_calibrate()
2362 nleft > 0; in do_real_calibrate()
2363 nleft -= ntoget, spot += buffsize) { in do_real_calibrate()
2364 ntoget = (nleft > nmax) ? nmax : nleft; in do_real_calibrate()
2366 DBG(23, "...nleft %d toget %d size %lu spot %d input+spot %p\n", in do_real_calibrate()
2367 nleft, ntoget, (u_long) buffsize, spot, (void *) (input+spot)); in do_real_calibrate()
/third_party/astc-encoder/Source/
H A Dstb_image.h6089 int count, nleft, len;
6092 while ((nleft = pixelCount - count) > 0) {
6099 if (len > nleft) return 0; // corrupt data
6111 if (len > nleft) return 0; // corrupt data
7265 int nleft;
7267 while ((nleft = width - i) > 0) {
7273 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7278 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }

Completed in 31 milliseconds