Home
last modified time | relevance | path

Searched refs:blksize (Results 1 – 25 of 79) sorted by relevance

1234

/external/libtextclassifier/native/utils/base/
Darena_test.cc61 void TestArena(const char* name, A* a, int blksize) { in TestArena() argument
62 TC3_VLOG(INFO) << "Testing arena '" << name << "': blksize = " << blksize in TestArena()
66 blksize = a->block_size(); in TestArena()
74 CheckMemory(a->Alloc(blksize), blksize); in TestArena()
78 s = blksize / 4; in TestArena()
83 int s2 = blksize - (s * 3); in TestArena()
87 CheckMemory(a->Alloc(blksize * 2), blksize * 2); in TestArena()
88 CheckMemory(a->Alloc(blksize * 2 + 1), blksize * 2 + 1); in TestArena()
89 CheckMemory(a->Alloc(blksize * 2 + 2), blksize * 2 + 2); in TestArena()
90 CheckMemory(a->Alloc(blksize * 2 + 3), blksize * 2 + 3); in TestArena()
[all …]
/external/toybox/toys/pending/
Dtftpd.c104 socklen_t socklen, char *file, int opcode, int tsize, int blksize) in do_action() argument
111 spkt = xzalloc(blksize + 4); in do_action()
112 rpkt = xzalloc(blksize + 4); in do_action()
130 if (blksize != TFTPD_BLKSIZE || tsize) { in do_action()
133 if (blksize != TFTPD_BLKSIZE) { in do_action()
136 ptr += snprintf(ptr, 6, "%d", blksize) + 1; in do_action()
163 len = readall(fd, ptr, blksize); in do_action()
168 if (len != blksize) done = 1; //last pkt. in do_action()
193 len = read(pollfds[0].fd, rpkt, blksize + 4); in do_action()
237 if (nw != blksize) done = 1; in do_action()
[all …]
/external/arm-optimized-routines/networking/test/
Dchksum.c134 uint32_t blksize, in benchmark() argument
138 printf("%11u ", (unsigned int) blksize); fflush(stdout); in benchmark()
146 const void *data = &base[random % (poolsize - blksize)]; in benchmark()
147 SINK = CKSUM_FP(data, blksize); in benchmark()
155 uint64_t accbytes = (uint64_t) numops * blksize; in benchmark()
159 if (blksize != 0) in benchmark()
161 unsigned int cyc_per_byte = 1000 * cyc_per_blk / blksize; in benchmark()
185 int blksize = atoi(optarg); in main() local
186 if (blksize < 1 || blksize > POOLSIZE / 2) in main()
188 fprintf(stderr, "Invalid block size %d\n", blksize); in main()
[all …]
/external/curl/lib/
Dtftp.c138 int blksize; member
317 state->blksize = TFTP_BLKSIZE_DEFAULT; in tftp_parse_option_ack()
331 long blksize; in tftp_parse_option_ack() local
333 blksize = strtol(value, NULL, 10); in tftp_parse_option_ack()
335 if(!blksize) { in tftp_parse_option_ack()
339 if(blksize > TFTP_BLKSIZE_MAX) { in tftp_parse_option_ack()
344 else if(blksize < TFTP_BLKSIZE_MIN) { in tftp_parse_option_ack()
349 else if(blksize > state->requested_blksize) { in tftp_parse_option_ack()
354 "server requested blksize larger than allocated", blksize); in tftp_parse_option_ack()
358 state->blksize = (int)blksize; in tftp_parse_option_ack()
[all …]
/external/tcpdump/tests/
Ddecnet.out1 …1 19:34:25.597822 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello 1…
2 …2 19:34:35.597816 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello 1…
3 …3 19:34:45.597817 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello 1…
4 …4 19:34:55.597814 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello 1…
5 …5 19:35:05.597817 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello 1…
19 …19 19:35:15.597819 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello …
33 …33 19:35:25.597810 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello …
44 …44 19:35:35.597818 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello …
95 …95 19:35:45.597817 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello …
128 …128 19:35:55.597819 endnode-hello endnode vers 2 eco 0 ueco 0 src 1.1 blksize 16434 rtr 0.0 hello…
[all …]
/external/fec/
Ddotprod_sse2.c26 int i,j,blksize; in initdp_sse2() local
38 blksize = (1+(len+i-1)/8) * 8*sizeof(signed short); in initdp_sse2()
39 posix_memalign((void **)&dp->coeffs[i],16,blksize); in initdp_sse2()
40 memset(dp->coeffs[i],0,blksize); in initdp_sse2()
/external/python/cpython2/Lib/wsgiref/
Dutil.py14 def __init__(self, filelike, blksize=8192): argument
16 self.blksize = blksize
21 data = self.filelike.read(self.blksize)
30 data = self.filelike.read(self.blksize)
/external/python/cpython3/Lib/wsgiref/
Dutil.py14 def __init__(self, filelike, blksize=8192): argument
16 self.blksize = blksize
28 data = self.filelike.read(self.blksize)
37 data = self.filelike.read(self.blksize)
/external/e2fsprogs/misc/
Dfilefrag.c408 static unsigned int blksize; local
447 if ((ioctl(fd, FIGETBSZ, &blksize) < 0) || !blksize)
448 blksize = fsinfo.f_bsize;
453 st.st_blksize = blksize;
464 long cylgroups = div_ceil(fsinfo.f_blocks, blksize * 8);
470 data_blocks_per_cyl = blksize * 8 -
479 numblocks = (st.st_size + blksize - 1) / blksize;
483 blk_shift = ulong_log2(blksize);
496 (unsigned long long) (numblocks * blksize >> blk_shift),
/external/iperf3/src/
Diperf_udp.c74 int size = sp->settings->blksize; in iperf_udp_recv()
216 int size = sp->settings->blksize; in iperf_udp_send()
260 …printf("sent %d bytes of %d, total %" PRIu64 "\n", r, sp->settings->blksize, sp->result->bytes_sen… in iperf_udp_send()
319 if (test->settings->blksize > sndbuf_actual) { in iperf_udp_buffercheck()
323 test->settings->blksize, sndbuf_actual); in iperf_udp_buffercheck()
341 if (test->settings->blksize > rcvbuf_actual) { in iperf_udp_buffercheck()
345 test->settings->blksize, rcvbuf_actual); in iperf_udp_buffercheck()
406 int bufsize = test->settings->blksize + UDP_BUFFER_EXTRA; in iperf_udp_accept()
518 int bufsize = test->settings->blksize + UDP_BUFFER_EXTRA; in iperf_udp_connect()
Diperf_client_api.c394 if (test->settings->blksize == 0) { in iperf_connect()
396 test->settings->blksize = test->ctrl_sck_mss; in iperf_connect()
399 test->settings->blksize = DEFAULT_UDP_BLKSIZE; in iperf_connect()
402 printf("Setting UDP block size to %d\n", test->settings->blksize); in iperf_connect()
411 test->settings->blksize > test->ctrl_sck_mss) { in iperf_connect()
414 …xceeds TCP MSS %d, may result in fragmentation / drops", test->settings->blksize, test->ctrl_sck_m… in iperf_connect()
Diperf_api.c230 return ipt->settings->blksize; in iperf_get_test_blksize()
429 iperf_set_test_blksize(struct iperf_test *ipt, int blksize) in iperf_set_test_blksize() argument
431 ipt->settings->blksize = blksize; in iperf_set_test_blksize()
752 …->protocol->name, (int64_t) test->num_streams, (int64_t) test->settings->blksize, (int64_t) test->… in iperf_on_test_start()
756 …st_start_bytes, test->protocol->name, test->num_streams, test->settings->blksize, test->omit, test… in iperf_on_test_start()
758 …t_start_blocks, test->protocol->name, test->num_streams, test->settings->blksize, test->omit, test… in iperf_on_test_start()
760 …est_start_time, test->protocol->name, test->num_streams, test->settings->blksize, test->omit, test… in iperf_on_test_start()
940 int blksize; in iperf_parse_arguments() local
950 blksize = 0; in iperf_parse_arguments()
1100 blksize = unit_atoi(optarg); in iperf_parse_arguments()
[all …]
/external/curl/tests/data/
Dtest33226 TFTP retrieve with blksize 400
29 tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --tftp-blksize 400
40 blksize = 400
Dtest28320 tftp://%HOSTIP:%TFTPPORT//invalid-file --tftp-blksize 1024
34 blksize = 1024
Dtest109937 blksize = 512
43 blksize = 512
Dtest200448 blksize = 512
54 blksize = 512
/external/libjpeg-turbo/
Djquant1.c282 int i, j, k, nci, blksize, blkdist, ptr, val; in create_colormap() local
310 blksize = blkdist / nci; in create_colormap()
315 for (ptr = j * blksize; ptr < total_colors; ptr += blkdist) { in create_colormap()
317 for (k = 0; k < blksize; k++) in create_colormap()
321 blkdist = blksize; /* blksize of this color is blkdist of next */ in create_colormap()
341 int i, j, k, nci, blksize, val, pad; in create_colorindex() local
362 blksize = cquantize->sv_actual; in create_colorindex()
367 blksize = blksize / nci; in create_colorindex()
382 indexptr[j] = (JSAMPLE)(val * blksize); in create_colorindex()
/external/scapy/scapy/layers/
Dtftp.py306 self.blksize=512
331 self.blksize = int(opt[0].value)
332 self.debug(2,"Negotiated new blksize at %i" % self.blksize)
360 if len(data.load) < self.blksize:
393 self.blksize=512
425 self.blksize = int(opt[0].value)
426 self.debug(2,"Negotiated new blksize at %i" % self.blksize)
436 self.blknb = len(self.data)/self.blksize+1
449 ….send(self.l3/TFTP_DATA(block=self.blk)/self.data[(self.blk-1)*self.blksize:self.blk*self.blksize])
/external/curl/docs/cmdline-opts/
Dtftp-blksize.d1 Long: tftp-blksize
7 Example: --tftp-blksize 1024 tftp://example.com/file
/external/e2fsprogs/lib/ext2fs/
Dtest_io.c54 void (*set_blksize)(int blksize, errcode_t err);
74 (int blksize, errcode_t err) = 0;
283 static errcode_t test_set_blksize(io_channel channel, int blksize) in test_set_blksize() argument
293 retval = io_channel_set_blksize(data->real, blksize); in test_set_blksize()
297 data->set_blksize(blksize, retval); in test_set_blksize()
301 blksize, retval ? error_message(retval) : "OK"); in test_set_blksize()
302 channel->block_size = blksize; in test_set_blksize()
Dinode_io.c52 static errcode_t inode_set_blksize(io_channel channel, int blksize);
195 static errcode_t inode_set_blksize(io_channel channel, int blksize) in inode_set_blksize() argument
203 channel->block_size = blksize; in inode_set_blksize()
Ddosio.c57 static errcode_t dos_set_blksize(io_channel channel, int blksize);
366 static errcode_t dos_set_blksize(io_channel channel, int blksize) in dos_set_blksize() argument
368 channel->block_size = blksize; in dos_set_blksize()
Dext2_io.h79 errcode_t (*set_blksize)(io_channel channel, int blksize);
169 (int blksize, errcode_t err);
/external/musl/include/sys/
Dquota.h14 #define fs_to_dq_blocks(num, blksize) (((num) * (blksize)) / 1024) argument
/external/libvpx/libvpx/vp8/common/
Dmfqe.c107 int blksize, /* Currently only values supported are 16, 8 */ in multiframe_quality_enhance_block() argument
113 int uvblksize = blksize >> 1; in multiframe_quality_enhance_block()
124 if (blksize == 16) { in multiframe_quality_enhance_block()
186 uvd_stride, blksize, ifactor); in multiframe_quality_enhance_block()
189 if (blksize == 16) { in multiframe_quality_enhance_block()

1234