Home
last modified time | relevance | path

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

12345678910>>...101

/dports/audio/mhwaveedit/mhwaveedit-1.4.24/src/
H A Dringbuf.c94 guint32 blksize; in ringbuf_enqueue() local
110 end += blksize; in ringbuf_enqueue()
117 return blksize; in ringbuf_enqueue()
128 end += blksize; in ringbuf_enqueue()
138 guint32 blksize; in ringbuf_enqueue_zeroes() local
154 end += blksize; in ringbuf_enqueue_zeroes()
171 end += blksize; in ringbuf_enqueue_zeroes()
190 start += blksize; in ringbuf_dequeue()
216 guint32 blksize; in ringbuf_transfer() local
231 blksize = ringbuf_dequeue(source, dest->data + dest_end, blksize); in ringbuf_transfer()
[all …]
/dports/security/p5-Data-Entropy/Data-Entropy-0.007/lib/Data/Entropy/RawSource/
H A DCryptCounter.pm67 blksize => $cipher->blocksize,
205 $self->{subpos} = $self->{blksize} - 1;
258 return -1 if $self->{blksize} >= 4;
259 $nblocks = 1 << ($self->{blksize} << 3);
275 my $ctr = $offset / $self->{blksize};
278 if($self->{blksize} < 4) {
281 4-$self->{blksize}, "");
291 $ctr .= "\0" x ($self->{blksize} - 4);
304 return undef if $self->{blksize} >= 4;
306 my $pos = $nblocks * $self->{blksize};
[all …]
/dports/math/csdp/Csdp-releases-6.2.0/lib/
H A Dmat_multsp.c52 int blksize,p,q; local
86 blksize=ptr->blocksize;
92 if (ptr->numentries/(blksize*blksize*1.0) > SPARSELIMB)
120 for (i=1; i<=blksize; i++)
214 if (ptr->numentries/(blksize*blksize*1.0) > SPARSELIMB)
289 int blksize,p,q; local
329 if (ptr->numentries/(blksize*blksize*1.0) > SPARSELIMA)
453 if (ptr->numentries/(blksize*blksize*1.0) > SPARSELIMA)
534 int blksize,p,q; local
577 if (ptr->numentries/(blksize*blksize*1.0) > SPARSELIMC)
[all …]
/dports/net/nbdkit/nbdkit-1.20.4/filters/cache/
H A Dcache.c70 unsigned blksize; variable
313 buf += blksize; in cache_pread()
314 count -= blksize; in cache_pread()
315 offset += blksize; in cache_pread()
392 buf += blksize; in cache_pwrite()
393 count -= blksize; in cache_pwrite()
394 offset += blksize; in cache_pwrite()
474 if (count >= blksize) in cache_zero()
483 count -= blksize; in cache_zero()
484 offset += blksize; in cache_zero()
[all …]
H A Dblk.c144 blksize = MAX (4096, statvfs.f_bsize); in blk_init()
145 nbdkit_debug ("cache: block size: %u", blksize); in blk_init()
147 bitmap_init (&bm, blksize, 2 /* bits per block */); in blk_init()
186 off_t offset = blknum * blksize; in blk_read()
219 if (pread (fd, block, blksize, offset) == -1) { in blk_read()
233 off_t offset = blknum * blksize; in blk_cache()
253 if (pwrite (fd, block, blksize, offset) == -1) { in blk_cache()
280 off_t offset = blknum * blksize; in blk_writethrough()
287 if (pwrite (fd, block, blksize, offset) == -1) { in blk_writethrough()
313 offset = blknum * blksize; in blk_write()
[all …]
/dports/devel/py-wsgitools/wsgitools-0.3.1/wsgitools/scgi/
H A D__init__.py17 def __init__(self, filelike, blksize=8192): argument
19 self.blksize = blksize
28 def transfer(self, sock, blksize=None): argument
30 if blksize is None:
31 blksize = self.blksize
33 blksize = min(self.blksize, blksize)
36 self.offset, blksize)
51 data = self.filelike.read(self.blksize)
/dports/sysutils/dcfldd/dcfldd-1.7.1/src/
H A Dsizeprobe.c47 static off_t midpoint(off_t a, off_t b, long blksize) in midpoint() argument
49 off_t aprime = a / blksize; in midpoint()
50 off_t bprime = b / blksize; in midpoint()
54 c = cprime * blksize; in midpoint()
65 static off_t get_dev_size(int fd, long blksize) in get_dev_size() argument
152 static off_t get_dev_size(int fd, long blksize) in get_dev_size() argument
158 if (blksize == 0) in get_dev_size()
161 buf = malloc(blksize); in get_dev_size()
167 nread = read(fd, buf, blksize); in get_dev_size()
168 if (nread < blksize) { in get_dev_size()
[all …]
/dports/math/arpack++/arpackpp-2.3.0/include/
H A Dardfmat.h72 return ((m!=0) && ((roword && (blksize<m)) || (blksize<n))); in IsOutOfCore()
348 blksize = blksizep; in Define()
381 if (blksize == 0) { in Define()
385 blksize = n; in Define()
387 val = new ARTYPE[m*blksize]; in Define()
395 if (blksize > m) blksize = m; in Define()
396 nblocks = (m+blksize-1)/blksize; in Define()
397 val = new ARTYPE[blksize*n]; in Define()
405 if (blksize > n) blksize = n; in Define()
406 nblocks = (n+blksize-1)/blksize; in Define()
[all …]
/dports/net/mpich2/mpich2-1.5/src/mpid/common/datatype/dataloop/
H A Ddarray_support.c184 int blksize, global_size, mysize, i, j; in MPIOI_Type_block() local
192 blksize = darg; in MPIOI_Type_block()
198 j = global_size - blksize*rank; in MPIOI_Type_block()
199 mysize = (blksize < j) ? blksize : j; in MPIOI_Type_block()
224 *st_offset = blksize * rank; in MPIOI_Type_block()
251 else blksize = darg; in MPIOI_Type_cyclic()
255 st_index = rank*blksize; in MPIOI_Type_cyclic()
260 local_size = ((end_index - st_index + 1)/(nprocs*blksize))*blksize; in MPIOI_Type_cyclic()
262 local_size += (rem < blksize) ? rem : blksize; in MPIOI_Type_cyclic()
265 count = local_size/blksize; in MPIOI_Type_cyclic()
[all …]
/dports/net/mpich/mpich-3.4.3/src/mpi/datatype/typerep/src/
H A Dtyperep_dataloop_darray.c171 blksize = darg; in type_block()
178 j = global_size - blksize * rank; in type_block()
179 mysize = (blksize < j) ? blksize : j; in type_block()
206 *st_offset = blksize * rank; in type_block()
233 blksize = 1; in type_cyclic()
235 blksize = darg; in type_cyclic()
239 st_index = rank * blksize; in type_cyclic()
245 local_size = ((end_index - st_index + 1) / (nprocs * blksize)) * blksize; in type_cyclic()
247 local_size += (rem < blksize) ? rem : blksize; in type_cyclic()
250 count = local_size / blksize; in type_cyclic()
[all …]
/dports/net/mpich2/mpich2-1.5/src/mpi/romio/adio/common/
H A Dad_darray.c164 blksize = darg; in MPIOI_Type_block()
167 if (blksize <= 0) { in MPIOI_Type_block()
171 if (blksize * nprocs < global_size) { in MPIOI_Type_block()
177 j = global_size - blksize*rank; in MPIOI_Type_block()
178 mysize = ADIOI_MIN(blksize, j); in MPIOI_Type_block()
223 else blksize = darg; in MPIOI_Type_cyclic()
226 if (blksize <= 0) { in MPIOI_Type_cyclic()
231 st_index = rank*blksize; in MPIOI_Type_cyclic()
236 local_size = ((end_index - st_index + 1)/(nprocs*blksize))*blksize; in MPIOI_Type_cyclic()
241 count = local_size/blksize; in MPIOI_Type_cyclic()
[all …]
/dports/net/mpich/mpich-3.4.3/src/mpi/romio/adio/common/
H A Dad_darray.c155 blksize = darg; in MPIOI_Type_block()
158 if (blksize <= 0) { in MPIOI_Type_block()
168 j = global_size - blksize * rank; in MPIOI_Type_block()
169 mysize = MPL_MIN(blksize, j); in MPIOI_Type_block()
223 blksize = 1; in MPIOI_Type_cyclic()
225 blksize = darg; in MPIOI_Type_cyclic()
228 if (blksize <= 0) { in MPIOI_Type_cyclic()
233 st_index = rank * blksize; in MPIOI_Type_cyclic()
239 local_size = ((end_index - st_index + 1) / (nprocs * blksize)) * blksize; in MPIOI_Type_cyclic()
244 count = local_size / blksize; in MPIOI_Type_cyclic()
[all …]
/dports/net/openmpi3/openmpi-3.1.6/ompi/mca/io/romio314/romio/adio/common/
H A Dad_darray.c164 blksize = darg; in MPIOI_Type_block()
167 if (blksize <= 0) { in MPIOI_Type_block()
171 if (blksize * nprocs < global_size) { in MPIOI_Type_block()
177 j = global_size - blksize*rank; in MPIOI_Type_block()
178 mysize = ADIOI_MIN(blksize, j); in MPIOI_Type_block()
223 else blksize = darg; in MPIOI_Type_cyclic()
226 if (blksize <= 0) { in MPIOI_Type_cyclic()
231 st_index = rank*blksize; in MPIOI_Type_cyclic()
236 local_size = ((end_index - st_index + 1)/(nprocs*blksize))*blksize; in MPIOI_Type_cyclic()
241 count = local_size/blksize; in MPIOI_Type_cyclic()
[all …]
/dports/net/openmpi/openmpi-4.1.1/ompi/mca/io/romio321/romio/adio/common/
H A Dad_darray.c162 blksize = darg; in MPIOI_Type_block()
165 if (blksize <= 0) { in MPIOI_Type_block()
169 if (blksize * nprocs < global_size) { in MPIOI_Type_block()
175 j = global_size - blksize*rank; in MPIOI_Type_block()
176 mysize = ADIOI_MIN(blksize, j); in MPIOI_Type_block()
221 else blksize = darg; in MPIOI_Type_cyclic()
224 if (blksize <= 0) { in MPIOI_Type_cyclic()
229 st_index = rank*blksize; in MPIOI_Type_cyclic()
234 local_size = ((end_index - st_index + 1)/(nprocs*blksize))*blksize; in MPIOI_Type_cyclic()
239 count = local_size/blksize; in MPIOI_Type_cyclic()
[all …]
/dports/net/openmpi3/openmpi-3.1.6/ompi/datatype/
H A Dompi_datatype_create_darray.c46 blksize = darg; in block()
50 mysize = blksize < j ? blksize : j; in block()
71 *st_offset = blksize * rank; in block()
104 blksize = 1; in cyclic()
106 blksize = darg; in cyclic()
109 st_index = rank * blksize; in cyclic()
115 local_size = ((end_index - st_index + 1)/(nprocs*blksize))*blksize; in cyclic()
117 local_size += rem < blksize ? rem : blksize; in cyclic()
120 count = local_size / blksize; in cyclic()
121 rem = local_size % blksize; in cyclic()
[all …]
/dports/net/openmpi/openmpi-4.1.1/ompi/datatype/
H A Dompi_datatype_create_darray.c46 blksize = darg; in block()
50 mysize = blksize < j ? blksize : j; in block()
71 *st_offset = blksize * rank; in block()
104 blksize = 1; in cyclic()
106 blksize = darg; in cyclic()
109 st_index = rank * blksize; in cyclic()
115 local_size = ((end_index - st_index + 1)/(nprocs*blksize))*blksize; in cyclic()
117 local_size += rem < blksize ? rem : blksize; in cyclic()
120 count = local_size / blksize; in cyclic()
121 rem = local_size % blksize; in cyclic()
[all …]
/dports/sysutils/syslinux/syslinux-6.03/gpxe/src/drivers/block/
H A Dramdisk.c48 unsigned long offset = ( block * blockdev->blksize ); in ramdisk_read()
49 unsigned long length = ( count * blockdev->blksize ); in ramdisk_read()
70 unsigned long offset = ( block * blockdev->blksize ); in ramdisk_write()
71 unsigned long length = ( count * blockdev->blksize ); in ramdisk_write()
86 unsigned int blksize ) { in init_ramdisk() argument
88 if ( ! blksize ) in init_ramdisk()
89 blksize = 512; in init_ramdisk()
93 ramdisk->blockdev.blksize = blksize; in init_ramdisk()
94 ramdisk->blockdev.blocks = ( len / blksize ); in init_ramdisk()
/dports/science/cdo/cdo-2.0.0/src/
H A Dremap_store_link_cnsrv.cc18 long blksize[] = { 128, 256, 512, 1024, 2048, 4096, 8192 }; in grid_store_init() local
19 long nblks = sizeof(blksize) / sizeof(long); in grid_store_init()
23 if (gridsize / blksize[iblk] > 99) break; in grid_store_init()
28 grid_store.blk_size = blksize[iblk]; in grid_store_init()
38 grid_store.blksize = (long *) Malloc(grid_store.nblocks * sizeof(long)); in grid_store_init()
45 grid_store.blksize[iblk] = grid_store.blk_size; in grid_store_init()
63 long blksize = grid_store.blksize[iblk]; in grid_store_delete() local
68 for (long i = 0; i < blksize; ++i) in grid_store_delete()
86 Free(grid_store.blksize); in grid_store_delete()
165 long blksize = grid_store.blksize[iblk]; in store_link_cnsrv() local
[all …]
/dports/games/uhexen2/hexen2source-1.5.9/libs/xdelta3/
H A Dxdelta3-blkcache.h77 usize_t blksize; in main_set_source() local
135 blksize = use_options->srcwinsz; in main_set_source()
139 source->blksize = blksize; in main_set_source()
165 source->blksize = blksize; in main_set_source()
167 lru[0].size = blksize; in main_set_source()
174 lru[i].size = blksize; in main_set_source()
189 XD3_ASSERT (source->blksize == blksize); in main_set_source()
236 xoff_t pos = blkno * source->blksize; in main_read_seek_source()
306 source->blksize, in main_read_seek_source()
312 if (nread != source->blksize) in main_read_seek_source()
[all …]
/dports/audio/pocketsphinx/pocketsphinx-0.8/src/libpocketsphinx/
H A Dblkarray_list.c61 _blkarray_list_init(int32 maxblks, int32 blksize) in _blkarray_list_init() argument
65 if ((maxblks <= 0) || (blksize <= 0)) { in _blkarray_list_init()
66 E_ERROR("Cannot allocate %dx%d blkarray\n", maxblks, blksize); in _blkarray_list_init()
73 bl->blksize = blksize; in _blkarray_list_init()
76 bl->cur_row_free = blksize; /* The dummy row is full */ in _blkarray_list_init()
105 if (bl->cur_row_free >= bl->blksize) { in blkarray_list_append()
111 bl->maxblks, bl->blksize); in blkarray_list_append()
118 bl->ptr[bl->cur_row] = (void **) ckd_malloc(bl->blksize * in blkarray_list_append()
141 for (j = 0; j < bl->blksize; j++) in blkarray_list_reset()
157 bl->cur_row_free = bl->blksize; in blkarray_list_reset()
/dports/audio/sphinx3/sphinx3-0.8/src/libs3decoder/libsearch/
H A Dblkarray_list.c78 _blkarray_list_init(int32 maxblks, int32 blksize) in _blkarray_list_init() argument
82 if ((maxblks <= 0) || (blksize <= 0)) { in _blkarray_list_init()
83 E_ERROR("Cannot allocate %dx%d blkarray\n", maxblks, blksize); in _blkarray_list_init()
90 bl->blksize = blksize; in _blkarray_list_init()
93 bl->cur_row_free = blksize; /* The dummy row is full */ in _blkarray_list_init()
122 if (bl->cur_row_free >= bl->blksize) { in blkarray_list_append()
128 bl->maxblks, bl->blksize); in blkarray_list_append()
135 bl->ptr[bl->cur_row] = (void **) ckd_calloc(bl->blksize, in blkarray_list_append()
158 for (j = 0; j < bl->blksize; j++) in blkarray_list_reset()
174 bl->cur_row_free = bl->blksize; in blkarray_list_reset()
/dports/archivers/dact/dact-0.8.42/
H A Dcipher_serpent.c47 int cipher_serpent(const char *inblock, char *outblock, const int blksize, char *key, const int mod… in cipher_serpent() argument
57 return(cipher_serpent_decrypt(inblock, outblock, blksize, key, IV)); in cipher_serpent()
60 return(cipher_serpent_encrypt(inblock, outblock, blksize, key, IV)); in cipher_serpent()
139 int cipher_serpent_encrypt(const char *inblk, char *outblk, int blksize, char *key, unsigned char *… in cipher_serpent_encrypt() argument
142 memcpy(outblk, inblk, blksize); in cipher_serpent_encrypt()
143 for (i=0; i<blksize; i++) { in cipher_serpent_encrypt()
146 return(blksize); in cipher_serpent_encrypt()
152 memcpy(outblk, inblk, blksize); in cipher_serpent_decrypt()
153 for (i=0; i<blksize; i++) { in cipher_serpent_decrypt()
156 return(blksize); in cipher_serpent_decrypt()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/fs/xfs/libxfs/
H A Dxfs_attr_remote.c126 int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local
146 len -= blksize; in __xfs_attr3_rmt_read_verify()
147 ptr += blksize; in __xfs_attr3_rmt_read_verify()
188 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local
221 len -= blksize; in xfs_attr3_rmt_write_verify()
222 ptr += blksize; in xfs_attr3_rmt_write_verify()
289 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyout() local
313 len -= blksize; in xfs_attr_rmtval_copyout()
314 src += blksize; in xfs_attr_rmtval_copyout()
337 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyin() local
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/fs/xfs/libxfs/
H A Dxfs_attr_remote.c126 int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local
146 len -= blksize; in __xfs_attr3_rmt_read_verify()
147 ptr += blksize; in __xfs_attr3_rmt_read_verify()
188 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local
221 len -= blksize; in xfs_attr3_rmt_write_verify()
222 ptr += blksize; in xfs_attr3_rmt_write_verify()
289 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyout() local
313 len -= blksize; in xfs_attr_rmtval_copyout()
314 src += blksize; in xfs_attr_rmtval_copyout()
337 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyin() local
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/fs/xfs/libxfs/
H A Dxfs_attr_remote.c126 int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local
146 len -= blksize; in __xfs_attr3_rmt_read_verify()
147 ptr += blksize; in __xfs_attr3_rmt_read_verify()
188 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local
221 len -= blksize; in xfs_attr3_rmt_write_verify()
222 ptr += blksize; in xfs_attr3_rmt_write_verify()
289 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyout() local
313 len -= blksize; in xfs_attr_rmtval_copyout()
314 src += blksize; in xfs_attr_rmtval_copyout()
337 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyin() local
[all …]

12345678910>>...101