/openbsd/lib/libc/db/btree/ |
H A D | bt_open.c | 117 if (b.psize && in __bt_open() 118 (b.psize < MINPSIZE || b.psize > MAX_PAGE_OFFSET + 1 || in __bt_open() 145 b.psize = 0; in __bt_open() 226 M_32_SWAP(m.psize); in __bt_open() 233 if (m.psize < MINPSIZE || m.psize > MAX_PAGE_OFFSET + 1 || in __bt_open() 238 b.psize = m.psize; in __bt_open() 247 if (b.psize == 0) { in __bt_open() 248 b.psize = sb.st_blksize; in __bt_open() 249 if (b.psize < MINPSIZE) in __bt_open() 250 b.psize = MINPSIZE; in __bt_open() [all …]
|
/openbsd/sys/dev/pcmcia/ |
H A D | if_malo.c | 909 uint16_t psize; in cmalo_rx() local 1005 uint16_t psize; in cmalo_tx() local 1221 uint16_t psize; in cmalo_cmd_get_hwspec() local 1266 uint16_t psize; in cmalo_cmd_set_reset() local 1296 uint16_t psize; in cmalo_cmd_set_scan() local 1359 uint16_t psize; in cmalo_cmd_rsp_scan() local 1445 uint16_t psize; in cmalo_cmd_set_auth() local 1475 uint16_t psize; in cmalo_cmd_set_wep() local 1533 uint16_t psize; in cmalo_cmd_set_snmp() local 1586 uint16_t psize; in cmalo_cmd_set_radio() local [all …]
|
/openbsd/sys/lib/libsa/ |
H A D | cd9660.c | 128 size_t buf_size, nread, psize, dsize; in cd9660_open() local 162 psize = isonum_733(vd->path_table_size); in cd9660_open() 164 if (psize > ISO_DEFAULT_BLOCK_SIZE) { in cd9660_open() 192 if ((char *)pp >= buf + psize) in cd9660_open() 204 while ((char *)pp < buf + psize) { in cd9660_open() 215 for (psize = 0; psize < dsize;) { in cd9660_open() 216 if (!(psize % ISO_DEFAULT_BLOCK_SIZE)) { in cd9660_open() 233 psize += ISO_DEFAULT_BLOCK_SIZE; in cd9660_open() 235 psize = roundup(psize, ISO_DEFAULT_BLOCK_SIZE); in cd9660_open() 242 psize += isonum_711(dp->length); in cd9660_open() [all …]
|
/openbsd/lib/libc/stdio/ |
H A D | open_memstream.c | 32 size_t *psize; /* point to min(pos, len) */ member 69 *st->psize = st->pos; in memstream_write() 97 *st->psize = MINIMUM(st->pos, st->len); in memstream_seek() 113 open_memstream(char **pbuf, size_t *psize) in open_memstream() argument 118 if (pbuf == NULL || psize == NULL) { in open_memstream() 141 st->psize = psize; in open_memstream() 144 *psize = st->len; in open_memstream()
|
H A D | open_wmemstream.c | 33 size_t *psize; /* point to min(pos, len) */ member 73 *st->psize = st->pos; in wmemstream_write() 107 *st->psize = MINIMUM(st->pos, st->len); in wmemstream_seek() 123 open_wmemstream(wchar_t **pbuf, size_t *psize) in open_wmemstream() argument 128 if (pbuf == NULL || psize == NULL) { in open_wmemstream() 151 st->psize = psize; in open_wmemstream() 155 *psize = st->len; in open_wmemstream()
|
/openbsd/regress/lib/libc/db/ |
H A D | run.test | 159 for psize in 512 16384 65536; do 160 echo " page size $psize" 170 $PROG -i psize=$psize -o $TMP3 $type $TMP2 173 echo "test3: $type: page size $psize: failed" 185 for psize in 512 16384 65536; do 186 echo " page size $psize" 187 $PROG -i psize=$psize -o $TMP3 recno $TMP2 190 echo "test3: recno: page size $psize: failed" 549 $PROG -i psize=512 -o $TMP3 $type $TMP2
|
/openbsd/lib/libc/gen/ |
H A D | disklabel.c | 56 char p, max, psize[3], pbsize[3], in getdiskbyname() local 91 strlcpy(psize, "px", sizeof psize); in getdiskbyname() 102 psize[1] = pbsize[1] = pfsize[1] = poffset[1] = ptype[1] = p; in getdiskbyname() 104 if (cgetnum(buf, psize, &f) == -1) in getdiskbyname()
|
H A D | pw_dup.c | 51 size_t nsize, psize, csize, gsize, dsize, ssize, total; in pw_dup() local 57 PW_SIZE(pw_passwd, psize); in pw_dup() 75 PW_COPY(pw_passwd, psize); in pw_dup()
|
/openbsd/sys/dev/i2c/ |
H A D | ietp.c | 591 int psize, i; in ietp_intr() local 612 psize = sc->sc_ibuf[0] | sc->sc_ibuf[1] << 8; in ietp_intr() 613 if (psize <= 2 || psize > sc->sc_isize) { in ietp_intr() 615 sc->sc_dev.dv_xname, __func__, psize, in ietp_intr() 622 psize -= 2; in ietp_intr() 624 psize--; in ietp_intr() 628 for (i = 0; i < psize; i++) { in ietp_intr() 634 parse_input(sc, p, psize); in ietp_intr()
|
H A D | ihidev.c | 628 int psize, res, i, fast = 0; in ihidev_intr() local 656 psize = sc->sc_ibuf[0] | sc->sc_ibuf[1] << 8; in ihidev_intr() 657 if (psize <= 2 || psize > sc->sc_isize) { in ihidev_intr() 667 sc->sc_dev.dv_xname, __func__, psize, in ihidev_intr() 674 psize -= 2; in ihidev_intr() 676 rep = *p++, psize--; in ihidev_intr() 690 for (i = 0; i < psize; i++) { in ihidev_intr() 711 scd->sc_intr(scd, p, psize); in ihidev_intr()
|
/openbsd/usr.sbin/ldapd/ |
H A D | btree.c | 93 ((bt)->head.psize - PAGEHDRSZ)) 102 uint32_t psize; /* page size */ member 611 if ((rc = pread(bt->fd, page, bt->head.psize, (off_t)pgno*bt->head.psize)) == 0) { in btree_read_page() 769 size += bt->head.psize - (size % bt->head.psize); in btree_txn_commit() 789 iov[n].iov_len = bt->head.psize; in btree_txn_commit() 843 unsigned int psize; in btree_write_header() local 854 psize = PAGESIZE; in btree_write_header() 863 h->psize = psize; in btree_write_header() 1036 if (size % bt->head.psize != 0) { in btree_read_meta() 1505 max = bt->head.psize - PAGEHDRSZ; in btree_read_data() [all …]
|
/openbsd/sys/arch/arm/arm/ |
H A D | stubs.c | 125 int psize; in dumpsys() local 162 psize = (*bdev->d_psize)(dumpdev); in dumpsys() 164 if (psize == -1) { in dumpsys()
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | efifb.c | 83 psize_t psize; member 187 if (bus_space_map(iot, fb->paddr, fb->psize, in efifb_attach() 336 if (off < 0 || off >= sc->sc_fb->psize) in efifb_mmap() 372 fb->psize = bios_efiinfo->fb_height * in efifb_efiinfo_init() 409 if (_bus_space_map(iot, fb->paddr, fb->psize, in efifb_cnremap() 513 efifb_console.psize = cb_fb->y_resolution * cb_fb->bytes_per_line; in efifb_cb_cnattach() 585 return fb->psize; in efifb_stolen()
|
/openbsd/gnu/lib/libexecinfo/ |
H A D | backtrace.c | 155 size_t psize = len * slen; in backtrace_symbols_fmt() local 162 x = format_address(&ptr, &psize, offs, fmt, trace[i]); in backtrace_symbols_fmt() 170 assert(offs < psize); in backtrace_symbols_fmt()
|
/openbsd/include/ |
H A D | db.h | 120 unsigned int psize; /* page size */ member 149 unsigned int psize; /* page size */ member
|
/openbsd/usr.bin/vi/common/ |
H A D | exf.c | 124 size_t psize; in file_init() local 216 psize = 1024; in file_init() 226 psize = ((sb.st_size / 15) + 1023) / 1024; in file_init() 227 if (psize > 10) in file_init() 228 psize = 10; in file_init() 229 if (psize == 0) in file_init() 230 psize = 1; in file_init() 231 psize *= 1024; in file_init() 248 oinfo.psize = psize; in file_init()
|
/openbsd/gnu/usr.bin/perl/win32/ |
H A D | vmem.h | 779 size_t psize = PSIZE(ptr); in Realloc() local 780 if((psize&1) == 0 && (psize + cursize) >= realsize) { in Realloc() 781 PBLOCK prev = ptr - psize; in Realloc() 790 cursize += psize; /* combine sizes */ in Realloc() 847 size_t psize = PSIZE(ptr); in Free() local 848 if((psize&1) == 0) { in Free() 849 ptr -= psize; /* point to previous block */ in Free() 850 size += psize; /* merge the sizes of the two blocks */ in Free()
|
/openbsd/sys/dev/usb/ |
H A D | utvfu.c | 867 uint16_t psize = 0; in utvfu_match() local 901 psize = UGETW(ued->wMaxPacketSize); in utvfu_match() 910 if (nalt != 2 || nep != 4 || psize == 0) in utvfu_match() 940 / sc->sc_iface.psize; in utvfu_attach() 978 uint32_t psize; in utvfu_parse_desc() local 1017 psize = UGETW(ued->wMaxPacketSize); in utvfu_parse_desc() 1018 psize = UE_GET_SIZE(psize) * (1 + UE_GET_TRANS(psize)); in utvfu_parse_desc() 1019 sc->sc_iface.psize = psize; in utvfu_parse_desc() 1133 sc->sc_iface.psize); in utvfu_vs_open() 1285 ixfer->size[i] = sc->sc_iface.psize; in utvfu_vs_start_isoc_ixfer() [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | pciecam.c | 479 uint64_t physbase, pcibase, psize; in pciecam_bs_map() local 485 psize = sc->sc_pciranges[i].size; in pciecam_bs_map() 487 if (bpa >= pcibase && bpa + size <= pcibase + psize) in pciecam_bs_map() 500 uint64_t physbase, pcibase, psize; in pciecam_bs_mmap() local 506 psize = sc->sc_pciranges[i].size; in pciecam_bs_mmap() 508 if (bpa >= pcibase && bpa < pcibase + psize) in pciecam_bs_mmap()
|
/openbsd/usr.sbin/bgpd/ |
H A D | rde_prefix.c | 478 int flowlen, psize; in pt_writebuf() local 500 psize = PREFIX_SIZE(plen) - 1; in pt_writebuf() 522 ibuf_add(tmp, &pvpn4->prefix4, psize) == -1) in pt_writebuf() 527 psize = PREFIX_SIZE(plen) - 1; in pt_writebuf() 549 ibuf_add(tmp, &pvpn6->prefix6, psize) == -1) in pt_writebuf()
|
/openbsd/sys/kern/ |
H A D | kern_fork.c | 121 size_t psize = SCARG(uap, psize); in sys___tfork() local 125 if (psize == 0 || psize > sizeof(param)) in sys___tfork() 127 if ((error = copyin(SCARG(uap, param), ¶m, psize))) in sys___tfork()
|
/openbsd/lib/libc/db/recno/ |
H A D | rec_open.c | 73 btopeninfo.psize = openinfo->psize; in __rec_open()
|
/openbsd/usr.sbin/ypserv/common/ |
H A D | ypdb.c | 64 info.psize = 0; in ypdb_open() 89 info.psize = 0; in ypdb_open_suf()
|
/openbsd/libexec/ld.so/sparc64/ |
H A D | rtld_machine.c | 573 size_t psize; in _dl_bind() local 657 psize = sizeof(struct __kbind) + sizeof(buf.newval[0]); in _dl_bind() 682 psize = sizeof(struct __kbind) + sizeof(buf.newval[0]); in _dl_bind() 694 psize = 2 * sizeof(struct __kbind) + in _dl_bind() 703 register long arg2 __asm("o1") = psize; in _dl_bind()
|
/openbsd/usr.sbin/installboot/ |
H A D | efi_installboot.c | 402 u_int32_t psize; in gpt_chk_mbr() local 413 psize = letoh32(dp2->dp_size); in gpt_chk_mbr() 414 if (psize <= (dsize - GPTSECTOR) || psize == UINT32_MAX) in gpt_chk_mbr()
|