Home
last modified time | relevance | path

Searched refs:psize (Results 1 – 25 of 119) sorted by relevance

12345

/freebsd/tools/tools/vimage/
H A Dvimage.c326 int psize = 0; in getjail() local
331 jailparam_init(&params[psize], "lastjid"); in getjail()
332 jailparam_import_raw(&params[psize++], &lastjid, sizeof lastjid); in getjail()
334 jailparam_init(&params[psize], "vnet"); in getjail()
335 jailparam_import_raw(&params[psize++], &vs->vnet, sizeof(vs->vnet)); in getjail()
337 jailparam_init(&params[psize], "name"); in getjail()
338 jailparam_import_raw(&params[psize++], &vs->name, sizeof(vs->name)); in getjail()
343 jailparam_init(&params[psize], "path"); in getjail()
344 jailparam_import_raw(&params[psize++], &vs->path, sizeof(vs->path)); in getjail()
346 jailparam_init(&params[psize], "host.hostname"); in getjail()
[all …]
/freebsd/lib/libc/db/btree/
H A Dbt_open.c120 if (b.psize && in __bt_open()
121 (b.psize < MINPSIZE || b.psize > MAX_PAGE_OFFSET + 1 || in __bt_open()
122 b.psize & (sizeof(indx_t) - 1) )) in __bt_open()
148 b.psize = 0; in __bt_open()
229 M_32_SWAP(m.psize); in __bt_open()
236 if (m.psize < MINPSIZE || m.psize > MAX_PAGE_OFFSET + 1 || in __bt_open()
237 m.psize & (sizeof(indx_t) - 1) ) in __bt_open()
241 b.psize = m.psize; in __bt_open()
250 if (b.psize == 0) { in __bt_open()
251 b.psize = sb.st_blksize; in __bt_open()
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/btree/
H A Dbt_open.c126 if (b.psize && in __bt_open()
127 (b.psize < MINPSIZE || b.psize > MAX_PAGE_OFFSET + 1 || in __bt_open()
128 b.psize & (sizeof(indx_t) - 1))) in __bt_open()
154 b.psize = 0; in __bt_open()
240 M_32_SWAP(m.psize); in __bt_open()
247 if (m.psize < MINPSIZE || m.psize > MAX_PAGE_OFFSET + 1 || in __bt_open()
248 m.psize & (sizeof(indx_t) - 1)) in __bt_open()
252 b.psize = m.psize; in __bt_open()
261 if (b.psize == 0) { in __bt_open()
262 b.psize = sb.st_blksize; in __bt_open()
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/test/
H A Drun.test180 for psize in 512 16384 65536; do
181 echo " page size $psize"
191 $PROG -i psize=$psize -o $TMP3 $type $TMP2
194 echo "test3: $type: page size $psize: failed"
205 for psize in 512 16384 65536; do
206 echo " page size $psize"
207 $PROG -i psize=$psize -o $TMP3 recno $TMP2
210 echo "test3: recno: page size $psize: failed"
598 $PROG -i psize=512 -o $TMP3 $type $TMP2
771 for psize in 512 1024 2048 4096 8192; do
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_decompress.ksh98 IFS=/ read -r lsize psize _ <<< "$size_str"
106 output=$(zdb -R $TESTPOOL $vdev:$offset:$psize:dr)
109 psize_orig=$psize
110 psize=${psize%?}
111 psize=$((16#$psize))
112 (( $result < $psize)) && log_fail \
114 (length ${#output} < $psize)"
H A Dzdb_decompress_zstd.ksh78 IFS='/' read -r lsize psize _ <<<"$size_str"
80 psize_orig=$psize
82 psize=${psize%?}
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dddt_zap.c125 ddt_zap_lookup(dnode_t *dn, const ddt_key_t *ddk, void *phys, size_t psize) in ddt_zap_lookup() argument
131 cbuf = kmem_alloc(psize + 1, KM_SLEEP); in ddt_zap_lookup()
134 DDT_KEY_WORDS, 1, psize + 1, cbuf, &csize); in ddt_zap_lookup()
136 ASSERT3U(csize, <=, psize + 1); in ddt_zap_lookup()
137 ddt_zap_decompress(cbuf, phys, csize, psize); in ddt_zap_lookup()
140 kmem_free(cbuf, psize + 1); in ddt_zap_lookup()
167 const void *phys, size_t psize, dmu_tx_t *tx) in ddt_zap_update() argument
169 const size_t cbuf_size = psize + 1; in ddt_zap_update()
173 uint64_t csize = ddt_zap_compress(phys, cbuf, psize, cbuf_size); in ddt_zap_update()
192 void *phys, size_t psize) in ddt_zap_walk() argument
[all …]
H A Dblkptr.c97 int psize; in decode_embedded_bp_compressed() local
104 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp_compressed()
110 for (int i = 0; i < psize; i++) { in decode_embedded_bp_compressed()
132 int lsize, psize; in decode_embedded_bp() local
137 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp()
147 abd_get_from_buf_struct(&cabd, dstbuf, psize); in decode_embedded_bp()
150 &dabd, psize, buflen, NULL)); in decode_embedded_bp()
154 ASSERT3U(lsize, ==, psize); in decode_embedded_bp()
H A Dzio.c942 abd_t *data, uint64_t lsize, uint64_t psize, zio_done_func_t *done, in zio_create() argument
950 IMPLY(type != ZIO_TYPE_TRIM, psize <= SPA_MAXBLOCKSIZE); in zio_create()
951 ASSERT0(P2PHASE(psize, SPA_MINBLOCKSIZE)); in zio_create()
958 IMPLY(lsize != psize, (flags & ZIO_FLAG_RAW_COMPRESS) != 0); in zio_create()
1009 zio->io_orig_size = zio->io_size = psize; in zio_create()
1342 abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, in zio_write() argument
1353 zio = zio_create(pio, spa, txg, bp, data, lsize, psize, done, private, in zio_write()
1803 uint64_t psize = in zio_read_bp_init() local
1811 zio_push_transform(zio, abd_alloc_sametype(zio->io_abd, psize), in zio_read_bp_init()
1812 psize, psize, zio_decompress); in zio_read_bp_init()
[all …]
H A Dddt_stats.c42 uint64_t psize = DDK_GET_PSIZE(&ddlwe->ddlwe_key); in ddt_stat_generate() local
66 dds->dds_psize += psize; in ddt_stat_generate()
71 dds->dds_ref_psize += psize * refcnt; in ddt_stat_generate()
328 ddt_get_pool_dedup_cached(spa_t *spa, uint64_t *psize) in ddt_get_pool_dedup_cached() argument
334 *psize = 0; in ddt_get_pool_dedup_cached()
352 *psize = l1tot + l2tot; in ddt_get_pool_dedup_cached()
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/
H A Dzpool_import_corrupt_001_pos.ksh74 typeset -il psize=$1
79 roundsize=$(( $psize & -$VDEV_LABEL_SIZE ))
95 typeset -il psize=$(geom disk list $PROV | awk '/Mediasize/ {print $2}')
96 if [[ -z $psize ]]; then
110 log_note offset=vdev_label_offset $psize $j
111 offset=$(vdev_label_offset $psize $j)
/freebsd/sys/arm/annapurna/alpine/
H A Dalpine_machdep_mp.c79 static int alpine_get_cpu_resume_base(u_long *pbase, u_long *psize);
80 static int alpine_get_nb_base(u_long *pbase, u_long *psize);
124 alpine_get_cpu_resume_base(u_long *pbase, u_long *psize) in alpine_get_cpu_resume_base() argument
130 if (pbase == NULL || psize == NULL) in alpine_get_cpu_resume_base()
144 *psize = size; in alpine_get_cpu_resume_base()
150 alpine_get_nb_base(u_long *pbase, u_long *psize) in alpine_get_nb_base() argument
156 if (pbase == NULL || psize == NULL) in alpine_get_nb_base()
170 *psize = size; in alpine_get_nb_base()
H A Dalpine_machdep.c81 alpine_get_wdt_base(uint32_t *pbase, uint32_t *psize) in alpine_get_wdt_base() argument
87 if (pbase == NULL || psize == NULL) in alpine_get_wdt_base()
104 *psize = size; in alpine_get_wdt_base()
/freebsd/lib/libc/db/test/
H A Drun.test154 for psize in 512 16384 65536; do
155 echo " page size $psize"
165 $PROG -i psize=$psize -o $TMP3 $type $TMP2
168 echo "test3: $type: page size $psize: failed"
180 for psize in 512 16384 65536; do
181 echo " page size $psize"
182 $PROG -i psize=$psize -o $TMP3 recno $TMP2
185 echo "test3: recno: page size $psize: failed"
544 $PROG -i psize=512 -o $TMP3 $type $TMP2
/freebsd/contrib/libder/libder/
H A Dlibder.c47 long psize; in libder_get_buffer_size() local
49 psize = sysconf(_SC_PAGESIZE); in libder_get_buffer_size()
50 if (psize <= 0) in libder_get_buffer_size()
51 psize = 4096; in libder_get_buffer_size()
53 ctx->buffer_size = psize; in libder_get_buffer_size()
/freebsd/contrib/netbsd-tests/lib/libc/db/
H A Dt_db.sh238 for psize in 512 16384 65536; do
239 echo "checking page size: $psize"
250 cmp -s exp out || atf_fail "test failed for page size: $psize"
302 for psize in 512 16384 65536; do
303 echo "checking page size: $psize"
306 cmp -s exp out || atf_fail "test failed for page size: $psize"
763 atf_check -o file:exp "$(prog_db)" -i psize=512 btree in
982 for psize in 512 1024 2048 4096 8192; do
983 echo " page size $psize"
985 psize = '$psize'; hsize = int(psize/2);
[all …]
/freebsd/lib/libc/gen/
H A Ddisklabel.c66 char p, max, psize[3], pbsize[3], in getdiskbyname() local
117 strcpy(psize, "px"); in getdiskbyname()
126 psize[1] = pbsize[1] = pfsize[1] = poffset[1] = ptype[1] = p; in getdiskbyname()
127 if (cgetnum(buf, psize, &l) == -1) in getdiskbyname()
152 (void)strcpy(psize, "dx"); in getdiskbyname()
155 psize[1] = p; in getdiskbyname()
156 getnumdflt(*dx, psize, 0); in getdiskbyname()
/freebsd/tests/sys/cddl/zfs/tests/xattr/
H A Dxattr_012_pos.ksh59 psize=$( $ZPOOL list -H -o used $poolname )
60 if [[ $psize == *[mM] ]]
62 returnvalue=$($ECHO $psize | $SED -e 's/m//g' -e 's/M//g')
65 returnvalue=$($ECHO $psize | $SED -e 's/k//g' -e 's/K//g')
/freebsd/sys/cddl/boot/zfs/
H A Dblkptr.c49 int psize; in decode_embedded_bp_compressed() local
56 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp_compressed()
62 for (int i = 0; i < psize; i++) { in decode_embedded_bp_compressed()
/freebsd/lib/geom/journal/
H A Dgeom_journal_ufs.c67 off_t psize, fssize; in g_journal_ufs_using_last_sector() local
73 psize = g_get_mediasize(prov) / DEV_BSIZE; in g_journal_ufs_using_last_sector()
76 return (psize <= fssize); in g_journal_ufs_using_last_sector()
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_section.c367 uint64_t *psize) in pt_section_bcache_memsize() argument
371 if (!section || !psize) in pt_section_bcache_memsize()
376 *psize = 0ull; in pt_section_bcache_memsize()
380 *psize = sizeof(*bcache) + in pt_section_bcache_memsize()
387 uint64_t *psize) in pt_section_memsize_locked() argument
393 if (!section || !psize) in pt_section_memsize_locked()
401 *psize = 0ull; in pt_section_memsize_locked()
413 *psize = msize + bcsize; in pt_section_memsize_locked()
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_pool.c40 char blocks[32], lsize[32], psize[32], dsize[32]; in dump_ddt_stat() local
62 zfs_nicenum_format(dds->dds_psize, psize, sizeof (psize), in dump_ddt_stat()
77 blocks, lsize, psize, dsize, in dump_ddt_stat()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dvdev.h81 size_t psize, uint64_t phys_birth);
83 size_t psize, uint64_t phys_birth);
125 extern void vdev_stat_update(zio_t *zio, uint64_t psize);
139 extern uint64_t vdev_psize_to_asize_txg(vdev_t *vd, uint64_t psize,
141 extern uint64_t vdev_psize_to_asize(vdev_t *vd, uint64_t psize);
221 extern uint64_t vdev_label_offset(uint64_t psize, int l, uint64_t offset);
/freebsd/contrib/lua/src/
H A Dlmem.c97 void *luaM_growaux_ (lua_State *L, void *block, int nelems, int *psize, in luaM_growaux_() argument
100 int size = *psize; in luaM_growaux_()
115 newblock = luaM_saferealloc_(L, block, cast_sizet(*psize) * size_elems, in luaM_growaux_()
117 *psize = size; /* update only when everything else is OK */ in luaM_growaux_()
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-section-file.c56 int pt_section_mk_status(void **pstatus, uint64_t *psize, const char *filename) in pt_section_mk_status() argument
63 if (!pstatus || !psize) in pt_section_mk_status()
91 *psize = (uint64_t) size; in pt_section_mk_status()

12345