Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c102 void *pval, uint_t psize, uint_t flags) in mod_get_boolean() argument
109 bzero(pval, psize); in mod_get_boolean()
111 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo)); in mod_get_boolean()
113 nbytes = snprintf(pval, psize, "%u,%u", B_FALSE, B_TRUE); in mod_get_boolean()
115 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_bval); in mod_get_boolean()
117 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_bval); in mod_get_boolean()
118 if (nbytes >= psize) in mod_get_boolean()
191 void *pval, uint_t psize, uint_t flags) in mod_get_uint32() argument
198 bzero(pval, psize); in mod_get_uint32()
200 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo)); in mod_get_uint32()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_open.c126 if (b.psize &&
127 (b.psize < MINPSIZE || b.psize > MAX_PAGE_OFFSET + 1 ||
128 b.psize & (sizeof(indx_t) - 1)))
154 b.psize = 0;
240 M_32_SWAP(m.psize);
247 if (m.psize < MINPSIZE || m.psize > MAX_PAGE_OFFSET + 1 ||
248 m.psize & (sizeof(indx_t) - 1))
252 b.psize = m.psize;
261 if (b.psize == 0) {
262 b.psize = sb.st_blksize;
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dblkptr.c95 int psize; in decode_embedded_bp_compressed() local
102 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp_compressed()
108 for (int i = 0; i < psize; i++) { in decode_embedded_bp_compressed()
130 int lsize, psize; in decode_embedded_bp() local
135 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp()
145 dstbuf, buf, psize, buflen)); in decode_embedded_bp()
147 ASSERT3U(lsize, ==, psize); in decode_embedded_bp()
H A Dzio.c694 abd_t *data, uint64_t lsize, uint64_t psize, zio_done_func_t *done, in zio_create() argument
701 IMPLY(type != ZIO_TYPE_TRIM, psize <= SPA_MAXBLOCKSIZE); in zio_create()
702 ASSERT(P2PHASE(psize, SPA_MINBLOCKSIZE) == 0); in zio_create()
709 IMPLY(lsize != psize, (flags & ZIO_FLAG_RAW_COMPRESS) != 0); in zio_create()
754 zio->io_orig_size = zio->io_size = psize; in zio_create()
949 abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, in zio_write() argument
966 zio = zio_create(pio, spa, txg, bp, data, lsize, psize, done, private, in zio_write()
1361 uint64_t psize = in zio_read_bp_init() local
1369 zio_push_transform(zio, abd_alloc_sametype(zio->io_abd, psize), in zio_read_bp_init()
1370 psize, psize, zio_decompress); in zio_read_bp_init()
[all …]
H A Darc.c1634 uint64_t psize = HDR_GET_PSIZE(hdr); in arc_hdr_authenticate() local
1658 ASSERT3U(csize, <=, psize); in arc_hdr_authenticate()
1659 abd_zero_off(abd, csize, psize - csize); in arc_hdr_authenticate()
1668 ASSERT3U(lsize, ==, psize); in arc_hdr_authenticate()
1670 psize, hdr->b_l1hdr.b_byteswap != DMU_BSWAP_NUMFUNCS); in arc_hdr_authenticate()
1672 ret = spa_do_crypt_mac_abd(B_FALSE, spa, dsobj, abd, psize, in arc_hdr_authenticate()
2660 arc_loan_compressed_buf(spa_t *spa, uint64_t psize, uint64_t lsize, in arc_loan_compressed_buf() argument
2664 psize, lsize, compression_type); in arc_loan_compressed_buf()
2674 dmu_object_type_t ot, uint64_t psize, uint64_t lsize, in arc_loan_raw_buf() argument
2678 byteorder, salt, iv, mac, ot, psize, lsize, compression_type); in arc_loan_raw_buf()
[all …]
H A Dvdev_missing.c48 vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_missing_open() argument
57 *psize = 0; in vdev_missing_open()
/illumos-gate/usr/src/uts/common/os/
H A Dbp_map.c281 size_t psize; in bp_copy_common() local
327 psize = MIN(PAGESIZE - poff, size); in bp_copy_common()
355 } else if (offset < psize) { in bp_copy_common()
362 addr += psize - offset; in bp_copy_common()
364 addr += psize; in bp_copy_common()
373 if ((offset > 0) && (offset < psize)) { in bp_copy_common()
374 psize -= offset; in bp_copy_common()
385 } else if (offset >= psize) { in bp_copy_common()
386 offset -= psize; in bp_copy_common()
387 psize = MIN(PAGESIZE, size); in bp_copy_common()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Ddb_page.h247 #define P_MAXSPACE(psize) ((psize) - P_OVERHEAD) argument
301 #define LEN_HKEYDATA(pg, psize, indx) \ argument
302 (((indx) == 0 ? psize : pg->inp[indx - 1]) - \
330 #define H_PAIRSIZE(pg, psize, pindx) \ argument
331 (LEN_HITEM(pg, psize, H_KEYINDEX(pindx)) + \
332 LEN_HITEM(pg, psize, H_DATAINDEX(pindx)))
333 #define LEN_HDATA(p, psize, pindx) LEN_HKEYDATA(p, psize, H_DATAINDEX(pindx)) argument
334 #define LEN_HKEY(p, psize, pindx) LEN_HKEYDATA(p, psize, H_KEYINDEX(pindx)) argument
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c73 const char *ifname, void *val, uint_t psize, uint_t flags) in tcp_listener_conf_get() argument
82 bzero(pval, psize); in tcp_listener_conf_get()
83 size = psize; in tcp_listener_conf_get()
91 if (psize == size) in tcp_listener_conf_get()
100 if (tbytes >= psize) { in tcp_listener_conf_get()
203 void *val, uint_t psize, uint_t flags) in tcp_get_buf_prop() argument
206 pinfo, ifname, val, psize, flags)); in tcp_get_buf_prop()
288 const char *ifname, void *pval, uint_t psize, uint_t flags) in tcp_get_cc_algorithm() argument
293 tcp_copy_ccname_t cd = { pval, psize, 0 }; in tcp_get_cc_algorithm()
296 nbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW); in tcp_get_cc_algorithm()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/
H A Dxattr_012_pos.ksh54 psize=$(zpool list -H -o allocated $poolname)
55 if [[ $psize == *[mM] ]]
57 returnvalue=$(echo $psize | sed -e 's/m//g' -e 's/M//g')
60 returnvalue=$(echo $psize | sed -e 's/k//g' -e 's/K//g')
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_tunables.c184 void *pval, uint_t psize, uint_t flags) in ip_get_debug() argument
191 bzero(pval, psize); in ip_get_debug()
193 nbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW); in ip_get_debug()
195 nbytes = snprintf(pval, psize, "%u-%u", in ip_get_debug()
198 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_uval); in ip_get_debug()
200 nbytes = snprintf(pval, psize, "%u", ip_debug); in ip_get_debug()
201 if (nbytes >= psize) in ip_get_debug()
271 void *pval, uint_t psize, uint_t flags) in ip_get_mtu() argument
305 nbytes = snprintf(pval, psize, "%u", def_mtu); in ip_get_mtu()
310 nbytes = snprintf(pval, psize, "%u-%u", min_mtu, max_mtu); in ip_get_mtu()
[all …]
/illumos-gate/usr/src/boot/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()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c47 const char *ifname, void *val, uint_t psize, uint_t flags) in sctp_listener_conf_get() argument
56 bzero(pval, psize); in sctp_listener_conf_get()
57 size = psize; in sctp_listener_conf_get()
65 if (psize == size) in sctp_listener_conf_get()
74 if (tbytes >= psize) { in sctp_listener_conf_get()
177 void *val, uint_t psize, uint_t flags) in sctp_get_buf_prop() argument
180 stack, pinfo, ifname, val, psize, flags)); in sctp_get_buf_prop()
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_pool.c41 char blocks[6], lsize[6], psize[6], dsize[6]; in dump_ddt_stat() local
54 zfs_nicebytes(dds->dds_psize, psize, sizeof (psize)); in dump_ddt_stat()
63 blocks, lsize, psize, dsize, in dump_ddt_stat()
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_vxvm.c299 int psize; in load_vxvm() local
319 psize = (vxdl_libvxvm_get_conf)(VXVM_PATH_SIZE); in load_vxvm()
321 if (nsize == -1 || psize == -1) { in load_vxvm()
332 pathp = (vm_path_t *)calloc(MAX_DISKS_DG, psize); in load_vxvm()
384 ppp += psize; in load_vxvm()
/illumos-gate/usr/src/uts/i86pc/io/
H A Drootnex.c2714 uint32_t psize; in rootnex_need_bounce_seg() local
2741 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_need_bounce_seg()
2752 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_need_bounce_seg()
2762 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_need_bounce_seg()
2763 vaddr += psize; in rootnex_need_bounce_seg()
2768 if ((raddr + psize) > sglinfo->si_segmask) { in rootnex_need_bounce_seg()
2773 size -= psize; in rootnex_need_bounce_seg()
2781 psize = MIN(size, MMU_PAGESIZE); in rootnex_need_bounce_seg()
2797 vaddr += psize; in rootnex_need_bounce_seg()
2802 if ((raddr + psize) > sglinfo->si_segmask) { in rootnex_need_bounce_seg()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c207 vdev_label_start(uint64_t psize, int l) in vdev_label_start() argument
210 0 : psize - VDEV_LABELS * sizeof (vdev_label_t))); in vdev_label_start()
360 int i, psize; in zio_read_data() local
362 psize = BP_GET_PSIZE(bp); in zio_read_data()
379 if (devread(sector, 0, psize, buf) == 0) in zio_read_data()
384 if (zio_checksum_verify(bp, buf, psize) == 0) { in zio_read_data()
400 int psize, i; in decode_embedded_bp_compressed() local
405 psize = BPE_GET_PSIZE(bp); in decode_embedded_bp_compressed()
411 for (i = 0; i < psize; i++) { in decode_embedded_bp_compressed()
433 int lsize, psize; in decode_embedded_bp() local
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dstr_conv.c155 size_t nsize, psize; local
163 psize = (positive) ? strlen(positive) : 0;
172 else if (psize && !strncasecmp(positive, string, psize)) {
173 cpos += (int) psize;
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Darc.h209 uint64_t psize, uint64_t lsize, enum zio_compress compression_type);
212 const uint8_t *mac, dmu_object_type_t ot, uint64_t psize, uint64_t lsize,
215 arc_buf_t *arc_loan_compressed_buf(spa_t *spa, uint64_t psize, uint64_t lsize,
219 dmu_object_type_t ot, uint64_t psize, uint64_t lsize,
/illumos-gate/usr/src/uts/i86pc/io/xsvc/
H A Dxsvc.c820 size_t psize; in xsvc_devmap() local
861 psize = P2ROUNDUP(off + len, PAGESIZE) - off_align; in xsvc_devmap()
869 npages = btop(psize); in xsvc_devmap()
871 kva = vmem_alloc(heap_arena, psize, VM_SLEEP); in xsvc_devmap()
897 err = xsvc_umem_cookie_alloc(kva, psize, KM_SLEEP, &cookie); in xsvc_devmap()
903 cookie, 0, psize, PROT_ALL, 0, &xsvc_device_attr)) < 0) { in xsvc_devmap()
906 *maplen = psize; in xsvc_devmap()
914 off_align, psize, PROT_ALL, 0, &xsvc_device_attr)) < 0) { in xsvc_devmap()
917 *maplen = psize; in xsvc_devmap()
932 vmem_free(heap_arena, kva, psize); in xsvc_devmap()
/illumos-gate/usr/src/uts/i86pc/vm/
H A Di86_mmu.c244 int64_t psize; in hat_kern_alloc() local
255 psize = pmem->ml_size; in hat_kern_alloc()
256 while (psize >= MMU_PAGESIZE) { in hat_kern_alloc()
260 psize > LEVEL_SIZE(l)) in hat_kern_alloc()
275 psize -= LEVEL_SIZE(l); in hat_kern_alloc()
/illumos-gate/usr/src/cmd/sgs/ldprof/common/
H A Dprofile.c161 size_t psize; /* profile histogram size */ in profile_open() local
280 psize = (size_t)PRF_ROUNDUP((msize / PRF_BARSIZE), sizeof (long)); in profile_open()
282 Fsize = (hsize + psize + csize); in profile_open()
352 Hptr->hd_psize = (unsigned int)psize; in profile_open()
361 Cptr = (L_cgarc *)(addr + hsize + psize); in profile_open()
368 psize, (unsigned long)lpc, (unsigned int) PRF_SCALE); in profile_open()
/illumos-gate/usr/src/common/crypto/rsa/
H A Drsa_impl.c108 RSA_key_init(RSAkey *key, int psize, int qsize) in RSA_key_init() argument
114 plen = BITLEN2BIGNUMLEN(psize); in RSA_key_init()
117 key->size = psize + qsize; in RSA_key_init()
187 generate_rsa_key(RSAkey *key, int psize, int qsize, BIGNUM *pubexp, in generate_rsa_key() argument
197 size = psize + qsize; in generate_rsa_key()
246 if ((brv = big_random(&a, psize, rf)) != BIG_OK) { in generate_rsa_key()
352 rv = generate_rsa_key(key, psize, qsize, pubexp, rf); in generate_rsa_key()
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmailcompat.c250 size_t psize = strlen(s) + 1; local
252 p = malloc(psize);
258 strlcpy(p, s, psize);
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpassutils.c64 pkcs11_get_pass(char *token_name, char **pdata, size_t *psize, size_t min_psize, in pkcs11_get_pass() argument
126 *psize = strlen(databuf); in pkcs11_get_pass()

1234