Home
last modified time | relevance | path

Searched refs:ncopy (Results 1 – 15 of 15) sorted by relevance

/external/python/markupsafe/src/markupsafe/
D_speedups.c37 Py_ssize_t ncopy = 0; \
41 memcpy(outp, inp-ncopy, sizeof(*outp)*ncopy); \
42 outp += ncopy; ncopy = 0; \
50 memcpy(outp, inp-ncopy, sizeof(*outp)*ncopy); \
51 outp += ncopy; ncopy = 0; \
59 memcpy(outp, inp-ncopy, sizeof(*outp)*ncopy); \
60 outp += ncopy; ncopy = 0; \
68 memcpy(outp, inp-ncopy, sizeof(*outp)*ncopy); \
69 outp += ncopy; ncopy = 0; \
76 memcpy(outp, inp-ncopy, sizeof(*outp)*ncopy); \
[all …]
/external/mksh/src/
Dshf.c457 ssize_t ncopy, orig_bsize = bsize; in shf_read() local
470 ncopy = shf->rnleft; in shf_read()
471 if (ncopy > bsize) in shf_read()
472 ncopy = bsize; in shf_read()
473 memcpy(buf, shf->rp, ncopy); in shf_read()
474 buf += ncopy; in shf_read()
475 bsize -= ncopy; in shf_read()
476 shf->rp += ncopy; in shf_read()
477 shf->rnleft -= ncopy; in shf_read()
494 ssize_t ncopy; in shf_getse() local
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_dma_cs.c69 unsigned i, ncopy, csize; in si_sdma_clear_buffer() local
92 ncopy = DIV_ROUND_UP(size, SI_DMA_COPY_MAX_DWORD_ALIGNED_SIZE); in si_sdma_clear_buffer()
93 si_need_dma_space(sctx, ncopy * 4, sdst, NULL); in si_sdma_clear_buffer()
95 for (i = 0; i < ncopy; i++) { in si_sdma_clear_buffer()
112 ncopy = DIV_ROUND_UP(size, max_size_per_packet); in si_sdma_clear_buffer()
113 si_need_dma_space(sctx, ncopy * 5, sdst, NULL); in si_sdma_clear_buffer()
115 for (i = 0; i < ncopy; i++) { in si_sdma_clear_buffer()
133 unsigned i, ncopy, csize; in si_sdma_copy_buffer() local
165 ncopy = DIV_ROUND_UP(size, max_size); in si_sdma_copy_buffer()
166 si_need_dma_space(sctx, ncopy * 5, sdst, ssrc); in si_sdma_copy_buffer()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dobj_name.c26 size_t ncopy; in test_obj_name() local
30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name()
37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name()
51 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name()
59 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name()
/external/wpa_supplicant_8/src/wps/
Dhttpread.c530 int ncopy; in httpread_read_handler() local
608 ncopy = (h->chunk_start + h->chunk_size + 2) - in httpread_read_handler()
617 ncopy = h->content_length - h->body_nbytes; in httpread_read_handler()
619 ncopy = nread; in httpread_read_handler()
622 if (ncopy < 0) { in httpread_read_handler()
624 "httpread: Invalid ncopy=%d", ncopy); in httpread_read_handler()
627 if (ncopy > nread) in httpread_read_handler()
628 ncopy = nread; in httpread_read_handler()
629 os_memcpy(bbp, rbp, ncopy); in httpread_read_handler()
630 bbp += ncopy; in httpread_read_handler()
[all …]
/external/adhd/cras/src/server/
Dcras_audio_area.c33 unsigned int ncopy; in cras_audio_area_copy() local
36 ncopy = MIN(src->frames - src_offset, dst->frames - dst_offset); in cras_audio_area_copy()
51 dst_fmt->format, dchan, schan, ncopy, in cras_audio_area_copy()
58 return ncopy; in cras_audio_area_copy()
/external/mesa3d/src/gallium/drivers/r600/
Devergreen_hw_context.c39 unsigned i, ncopy, csize, sub_cmd, shift; in evergreen_dma_copy_buffer() local
61 ncopy = (size / EG_DMA_COPY_MAX_SIZE) + !!(size % EG_DMA_COPY_MAX_SIZE); in evergreen_dma_copy_buffer()
63 r600_need_dma_space(&rctx->b, ncopy * 5, rdst, rsrc); in evergreen_dma_copy_buffer()
64 for (i = 0; i < ncopy; i++) { in evergreen_dma_copy_buffer()
Dr600_hw_context.c588 unsigned i, ncopy, csize; in r600_dma_copy_buffer() local
599 ncopy = (size / R600_DMA_COPY_MAX_SIZE_DW) + !!(size % R600_DMA_COPY_MAX_SIZE_DW); in r600_dma_copy_buffer()
601 r600_need_dma_space(&rctx->b, ncopy * 5, rdst, rsrc); in r600_dma_copy_buffer()
602 for (i = 0; i < ncopy; i++) { in r600_dma_copy_buffer()
Dr600_state.c2861 unsigned ncopy, height, cheight, detile, i, x, y, z, src_mode, dst_mode; in r600_dma_copy_tile() local
2920 ncopy = (copy_height / cheight) + !!(copy_height % cheight); in r600_dma_copy_tile()
2921 r600_need_dma_space(&rctx->b, ncopy * 7, &rdst->resource, &rsrc->resource); in r600_dma_copy_tile()
2923 for (i = 0; i < ncopy; i++) { in r600_dma_copy_tile()
Devergreen_state.c3783 unsigned ncopy, height, cheight, detile, i, x, y, z, src_mode, dst_mode; in evergreen_dma_copy_tile() local
3854 ncopy = (size / EG_DMA_COPY_MAX_SIZE) + !!(size % EG_DMA_COPY_MAX_SIZE); in evergreen_dma_copy_tile()
3855 r600_need_dma_space(&rctx->b, ncopy * 9, &rdst->resource, &rsrc->resource); in evergreen_dma_copy_tile()
3857 for (i = 0; i < ncopy; i++) { in evergreen_dma_copy_tile()
/external/curl/lib/vquic/
Dngtcp2.c986 size_t ncopy = memlen; in write_data() local
989 size_t len = CURLMIN(ncopy, stream->len); in write_data()
995 ncopy -= len; in write_data()
998 if(ncopy) in write_data()
999 result = Curl_dyn_addn(&stream->overflow, buf, ncopy); in write_data()
1102 size_t ncopy; in cb_h3_recv_header() local
1105 ncopy = msnprintf(line, sizeof(line), "HTTP/3 %03d \r\n", status); in cb_h3_recv_header()
1106 result = write_data(stream, line, ncopy); in cb_h3_recv_header()
1234 size_t ncopy = CURLMIN(overlen, stream->len); in drain_overflow_buffer() local
1235 if(ncopy > 0) { in drain_overflow_buffer()
[all …]
/external/eigen/unsupported/Eigen/
DFFT319 size_t ncopy = (std::min)(src.size(),src.size() + resize_input);
323 tmp.head(ncopy) = src.head(ncopy);
324 tmp(ncopy-1) = real(tmp(ncopy-1)); // enforce real-only Nyquist bin
327 nhead = 1+ncopy/2-1; // range [0:pi)
328 ntail = ncopy/2-1; // range (-pi:0)
/external/curl/lib/
Dhttp2.c635 size_t left, ncopy; in on_frame_recv() local
719 ncopy = CURLMIN(stream->len, left); in on_frame_recv()
724 ncopy); in on_frame_recv()
725 stream->nread_header_recvbuf += ncopy; in on_frame_recv()
728 ncopy, stream_id, stream->mem)); in on_frame_recv()
730 stream->len -= ncopy; in on_frame_recv()
731 stream->memlen += ncopy; in on_frame_recv()
1603 size_t ncopy = CURLMIN(len, left); in http2_recv() local
1605 stream->nread_header_recvbuf, ncopy); in http2_recv()
1606 stream->nread_header_recvbuf += ncopy; in http2_recv()
[all …]
/external/python/cpython3/Modules/
Darraymodule.c913 Py_ssize_t ncopy = (done <= newbytes-done) ? done : newbytes-done; in array_repeat() local
914 memcpy(np->ob_item+done, np->ob_item, ncopy); in array_repeat()
915 done += ncopy; in array_repeat()
/external/elfutils/src/
Delflint.c2811 size_t ncopy = MIN (len - 1, strlen (known_flags[cnt].name)); in section_flags_string() local
2812 cp = mempcpy (cp, known_flags[cnt].name, ncopy); in section_flags_string()
2813 len -= ncopy; in section_flags_string()