/freebsd/tools/tools/vimage/ |
H A D | vimage.c | 326 int psize = 0; in getjail() local 331 jailparam_init(¶ms[psize], "lastjid"); in getjail() 332 jailparam_import_raw(¶ms[psize++], &lastjid, sizeof lastjid); in getjail() 334 jailparam_init(¶ms[psize], "vnet"); in getjail() 335 jailparam_import_raw(¶ms[psize++], &vs->vnet, sizeof(vs->vnet)); in getjail() 337 jailparam_init(¶ms[psize], "name"); in getjail() 338 jailparam_import_raw(¶ms[psize++], &vs->name, sizeof(vs->name)); in getjail() 343 jailparam_init(¶ms[psize], "path"); in getjail() 344 jailparam_import_raw(¶ms[psize++], &vs->path, sizeof(vs->path)); in getjail() 346 jailparam_init(¶ms[psize], "host.hostname"); in getjail() [all …]
|
/freebsd/lib/libc/db/btree/ |
H A D | bt_open.c | 120 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
H A D | zdb_decompress.ksh | 97 IFS=/ read -r lsize psize _ <<< "$size_str" 105 output=$(zdb -R $TESTPOOL $vdev:$offset:$psize:dr) 108 psize_orig=$psize 109 psize=${psize%?} 110 psize=$((16#$psize)) 111 (( $result < $psize)) && log_fail \ 113 (length ${#output} < $psize)"
|
H A D | zdb_decompress_zstd.ksh | 77 IFS='/' read -r lsize psize _ <<<"$size_str" 79 psize_orig=$psize 81 psize=${psize%?}
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | blkptr.c | 96 int psize; in decode_embedded_bp_compressed() local 103 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp_compressed() 109 for (int i = 0; i < psize; i++) { in decode_embedded_bp_compressed() 131 int lsize, psize; in decode_embedded_bp() local 136 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp() 146 abd_get_from_buf_struct(&cabd, dstbuf, psize); in decode_embedded_bp() 149 &dabd, psize, buflen, NULL)); in decode_embedded_bp() 153 ASSERT3U(lsize, ==, psize); in decode_embedded_bp()
|
H A D | ddt_zap.c | 123 const ddt_key_t *ddk, void *phys, size_t psize) in ddt_zap_lookup() argument 135 ASSERT3U(csize, <=, psize + 1); in ddt_zap_lookup() 142 ddt_zap_decompress(cbuf, phys, csize, psize); in ddt_zap_lookup() 170 const void *phys, size_t psize, dmu_tx_t *tx) in ddt_zap_update() argument 172 const size_t cbuf_size = psize + 1; in ddt_zap_update() 176 uint64_t csize = ddt_zap_compress(phys, cbuf, psize, cbuf_size); in ddt_zap_update() 196 void *phys, size_t psize) in ddt_zap_walk() argument 219 ASSERT3U(csize, <=, psize + 1); in ddt_zap_walk() 227 ddt_zap_decompress(cbuf, phys, csize, psize); in ddt_zap_walk()
|
H A D | zio.c | 906 abd_t *data, uint64_t lsize, uint64_t psize, zio_done_func_t *done, in zio_create() argument 914 IMPLY(type != ZIO_TYPE_TRIM, psize <= SPA_MAXBLOCKSIZE); in zio_create() 915 ASSERT(P2PHASE(psize, SPA_MINBLOCKSIZE) == 0); in zio_create() 922 IMPLY(lsize != psize, (flags & ZIO_FLAG_RAW_COMPRESS) != 0); in zio_create() 969 zio->io_orig_size = zio->io_size = psize; in zio_create() 1286 abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, in zio_write() argument 1297 zio = zio_create(pio, spa, txg, bp, data, lsize, psize, done, private, in zio_write() 1746 uint64_t psize = in zio_read_bp_init() local 1754 zio_push_transform(zio, abd_alloc_sametype(zio->io_abd, psize), in zio_read_bp_init() 1755 psize, psize, zio_decompress); in zio_read_bp_init() [all …]
|
H A D | ddt_stats.c | 41 uint64_t psize = DDK_GET_PSIZE(&ddlwe->ddlwe_key); in ddt_stat_generate() local 65 dds->dds_psize += psize; in ddt_stat_generate() 70 dds->dds_ref_psize += psize * refcnt; in ddt_stat_generate() 312 ddt_get_pool_dedup_cached(spa_t *spa, uint64_t *psize) in ddt_get_pool_dedup_cached() argument 318 *psize = 0; in ddt_get_pool_dedup_cached() 336 *psize = l1tot + l2tot; in ddt_get_pool_dedup_cached()
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/ |
H A D | zpool_import_corrupt_001_pos.ksh | 74 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 D | alpine_machdep_mp.c | 79 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 D | alpine_machdep.c | 81 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 D | run.test | 154 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/netbsd-tests/lib/libc/db/ |
H A D | t_db.sh | 238 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/contrib/libder/libder/ |
H A D | libder.c | 47 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/lib/libc/gen/ |
H A D | disklabel.c | 66 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 D | xattr_012_pos.ksh | 59 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 D | blkptr.c | 49 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 D | geom_journal_ufs.c | 67 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/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_pool.c | 39 char blocks[6], lsize[6], psize[6], dsize[6]; in dump_ddt_stat() local 52 zfs_nicebytes(dds->dds_psize, psize, sizeof (psize)); in dump_ddt_stat() 61 blocks, lsize, psize, dsize, in dump_ddt_stat()
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_section.c | 367 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/include/sys/ |
H A D | vdev.h | 80 size_t psize, uint64_t phys_birth); 82 size_t psize, uint64_t phys_birth); 123 extern void vdev_stat_update(zio_t *zio, uint64_t psize); 135 extern uint64_t vdev_psize_to_asize_txg(vdev_t *vd, uint64_t psize, 137 extern uint64_t vdev_psize_to_asize(vdev_t *vd, uint64_t psize); 202 extern uint64_t vdev_label_offset(uint64_t psize, int l, uint64_t offset);
|
/freebsd/contrib/lua/src/ |
H A D | lmem.c | 97 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 D | ptunit-section-file.c | 56 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()
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_subr.c | 80 bus_size_t *psize, pcell_t *ppci_hi) in ofw_reg_to_paddr() argument 99 if (paddr == NULL || psize == NULL) in ofw_reg_to_paddr() 182 *psize = size; in ofw_reg_to_paddr()
|
/freebsd/sys/dev/firewire/ |
H A D | fwdev.c | 106 b->psize = roundup2(b->psize, sizeof(uint32_t)); in fwdev_allocbuf() 108 b->psize, b->nchunk * b->npacket, BUS_DMA_WAITOK); in fwdev_allocbuf() 117 q->psize = (b->psize + 3) & ~3; in fwdev_allocbuf() 148 q->psize = 0; in fwdev_freebuf() 381 if (uio->uio_resid >= ir->psize) { in fw_read() 631 ibufreq->rx.psize = ir->psize; in fw_ioctl() 637 ibufreq->tx.psize = it->psize; in fw_ioctl()
|