Home
last modified time | relevance | path

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

/external/syslinux/com32/lib/sys/
Dfileread.c62 size_t ncopy; in __file_read() local
71 ncopy = pmapi_read_file(&fp->i.fd.handle, bufp, in __file_read()
73 if (!ncopy) { in __file_read()
85 ncopy = min(count, fp->i.nbytes); in __file_read()
86 memcpy(bufp, fp->i.datap, ncopy); in __file_read()
88 fp->i.datap += ncopy; in __file_read()
89 fp->i.offset += ncopy; in __file_read()
90 fp->i.nbytes -= ncopy; in __file_read()
93 n += ncopy; in __file_read()
94 bufp += ncopy; in __file_read()
[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.c40 unsigned i, ncopy, count, max_size, sub_cmd, shift; in si_dma_copy_buffer() local
64 ncopy = DIV_ROUND_UP(size, max_size); in si_dma_copy_buffer()
65 r600_need_dma_space(&ctx->b, ncopy * 5, rdst, rsrc); in si_dma_copy_buffer()
67 for (i = 0; i < ncopy; i++) { in si_dma_copy_buffer()
89 unsigned i, ncopy, csize; in si_dma_clear_buffer() local
105 ncopy = DIV_ROUND_UP(size, SI_DMA_COPY_MAX_DWORD_ALIGNED_SIZE); in si_dma_clear_buffer()
106 r600_need_dma_space(&sctx->b, ncopy * 4, rdst, NULL); in si_dma_clear_buffer()
108 for (i = 0; i < ncopy; i++) { in si_dma_clear_buffer()
148 unsigned ncopy, height, cheight, i; in si_dma_copy_tile() local
194 ncopy = DIV_ROUND_UP(size, SI_DMA_COPY_MAX_DWORD_ALIGNED_SIZE); in si_dma_copy_tile()
[all …]
Dcik_sdma.c39 unsigned i, ncopy, csize; in cik_sdma_copy_buffer() local
52 ncopy = DIV_ROUND_UP(size, CIK_SDMA_COPY_MAX_SIZE); in cik_sdma_copy_buffer()
53 r600_need_dma_space(&ctx->b, ncopy * 7, rdst, rsrc); in cik_sdma_copy_buffer()
55 for (i = 0; i < ncopy; i++) { in cik_sdma_copy_buffer()
80 unsigned i, ncopy, csize; in cik_sdma_clear_buffer() local
96 ncopy = DIV_ROUND_UP(size, CIK_SDMA_COPY_MAX_SIZE); in cik_sdma_clear_buffer()
97 r600_need_dma_space(&sctx->b, ncopy * 5, rdst, NULL); in cik_sdma_clear_buffer()
99 for (i = 0; i < ncopy; i++) { in cik_sdma_clear_buffer()
/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()
52 ncopy, in cras_audio_area_copy()
59 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.c528 unsigned i, ncopy, csize; in r600_dma_copy_buffer() local
539 ncopy = (size / R600_DMA_COPY_MAX_SIZE_DW) + !!(size % R600_DMA_COPY_MAX_SIZE_DW); in r600_dma_copy_buffer()
541 r600_need_dma_space(&rctx->b, ncopy * 5, rdst, rsrc); in r600_dma_copy_buffer()
542 for (i = 0; i < ncopy; i++) { in r600_dma_copy_buffer()
Dr600_state.c2824 unsigned ncopy, height, cheight, detile, i, x, y, z, src_mode, dst_mode; in r600_dma_copy_tile() local
2883 ncopy = (copy_height / cheight) + !!(copy_height % cheight); in r600_dma_copy_tile()
2884 r600_need_dma_space(&rctx->b, ncopy * 7, &rdst->resource, &rsrc->resource); in r600_dma_copy_tile()
2886 for (i = 0; i < ncopy; i++) { in r600_dma_copy_tile()
Devergreen_state.c3356 unsigned ncopy, height, cheight, detile, i, x, y, z, src_mode, dst_mode; in evergreen_dma_copy_tile() local
3427 ncopy = (size / EG_DMA_COPY_MAX_SIZE) + !!(size % EG_DMA_COPY_MAX_SIZE); in evergreen_dma_copy_tile()
3428 r600_need_dma_space(&rctx->b, ncopy * 9, &rdst->resource, &rsrc->resource); in evergreen_dma_copy_tile()
3430 for (i = 0; i < ncopy; i++) { in evergreen_dma_copy_tile()
/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/linux-kselftest/tools/testing/selftests/bpf/
Dtest_progs.c573 size_t ncopy; in test_obj_name() local
577 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name()
584 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name()
598 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name()
606 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name()
/external/curl/lib/
Dhttp2.c516 size_t left, ncopy; in on_frame_recv() local
596 ncopy = MIN(stream->len, left); in on_frame_recv()
600 ncopy); in on_frame_recv()
601 stream->nread_header_recvbuf += ncopy; in on_frame_recv()
604 ncopy, stream_id, stream->mem)); in on_frame_recv()
606 stream->len -= ncopy; in on_frame_recv()
607 stream->memlen += ncopy; in on_frame_recv()
1459 size_t ncopy = MIN(len, left); in http2_recv() local
1461 ncopy); in http2_recv()
1462 stream->nread_header_recvbuf += ncopy; in http2_recv()
[all …]
/external/elfutils/src/
Dld.h890 size_t ncopy; member
Di386_ld.c599 ++statep->ncopy; in elf_i386_count_relocations()
Delflint.c2772 size_t ncopy = MIN (len - 1, strlen (known_flags[cnt].name)); in section_flags_string() local
2773 cp = mempcpy (cp, known_flags[cnt].name, ncopy); in section_flags_string()
2774 len -= ncopy; in section_flags_string()
Dldgeneric.c3010 if (ld_state.ncopy > 0 || ld_state.common_syms != NULL) in sort_sections_lscript()
3040 if (ld_state.ncopy > 0) in sort_sections_lscript()
/external/python/cpython3/Modules/
Darraymodule.c841 Py_ssize_t ncopy = (done <= newbytes-done) ? done : newbytes-done; in array_repeat() local
842 memcpy(np->ob_item+done, np->ob_item, ncopy); in array_repeat()
843 done += ncopy; in array_repeat()