| /openbsd-src/sys/kern/ |
| H A D | kern_malloc.c | 152 long indx, npg, allocsize; in malloc() 193 allocsize = round_page(size); in malloc() 195 allocsize = 1 << indx; in malloc() 213 ksp->ks_memuse += allocsize; /* account for this early */ in malloc() 218 npg = atop(round_page(allocsize)); in malloc() 241 ksp->ks_memuse -= allocsize; in malloc() 242 wake = ksp->ks_memuse + allocsize >= ksp->ks_limit && in malloc() 259 if (allocsize > MAXALLOCSAVE) { in malloc() 267 cp = va + (npg * PAGE_SIZE) - allocsize; in malloc() 275 poison_mem(cp, allocsize); in malloc() 148 long indx, npg, allocsize; malloc() local [all...] |
| /openbsd-src/sys/dev/pv/ |
| H A D | virtio.c | 360 int vq_size, allocsize1, allocsize2, allocsize3, allocsize = 0; in virtio_alloc_vq() 388 allocsize = allocsize1 + allocsize2 + allocsize3; in virtio_alloc_vq() 391 r = bus_dmamem_alloc(sc->sc_dmat, allocsize, VIRTIO_PAGE_SIZE, 0, in virtio_alloc_vq() 398 r = bus_dmamem_map(sc->sc_dmat, &vq->vq_segs[0], 1, allocsize, in virtio_alloc_vq() 405 r = bus_dmamap_create(sc->sc_dmat, allocsize, 1, allocsize, 0, in virtio_alloc_vq() 413 allocsize, NULL, BUS_DMA_NOWAIT); 437 vq->vq_bytesize = allocsize; in virtio_free_vq() 452 allocsize, index, name, vq_size); in vq_alloc_entry() 463 bus_dmamem_unmap(sc->sc_dmat, vq->vq_vaddr, allocsize); in vq_free_entry() 302 int vq_size, allocsize1, allocsize2, allocsize3, allocsize = 0; virtio_alloc_vq() local [all...] |
| H A D | vioscsi.c | 425 size_t allocsize; in vioscsi_alloc_reqs() 434 allocsize = nreqs * sizeof(struct vioscsi_req); in vioscsi_alloc_reqs() 435 r = bus_dmamem_alloc(vsc->sc_dmat, allocsize, 0, 0, in vioscsi_alloc_reqs() 439 allocsize, r); in vioscsi_alloc_reqs() 443 allocsize, (caddr_t *)&vaddr, BUS_DMA_NOWAIT); in vioscsi_alloc_reqs() 450 memset(vaddr, 0, allocsize); in vioscsi_alloc_reqs() 422 size_t allocsize; vioscsi_alloc_reqs() local
|
| H A D | viocon.c | 219 int rxidx, txidx, allocsize, nsegs; in viocon_port_create() 259 allocsize = (vp->vp_rx->vq_num + vp->vp_tx->vq_num) * BUFSIZE; in viocon_port_create() 261 if (bus_dmamap_create(vsc->sc_dmat, allocsize, 1, allocsize, 0, in viocon_port_create() 264 if (bus_dmamem_alloc(vsc->sc_dmat, allocsize, 8, 0, &vp->vp_dmaseg, in viocon_port_create() 268 allocsize, &kva, BUS_DMA_NOWAIT) != 0) in viocon_port_create() 271 allocsize, NULL, BUS_DMA_NOWAIT) != 0) in viocon_port_create() 218 int rxidx, txidx, allocsize, nsegs; viocon_port_create() local
|
| H A D | vioblk.c | 639 int allocsize, nreqs, r, rsegs, slot, i; in vioblk_alloc_reqs() 647 allocsize = sizeof(struct virtio_blk_req) * nreqs; in vioblk_alloc_reqs() 648 r = bus_dmamem_alloc(sc->sc_virtio->sc_dmat, allocsize, 0, 0, in vioblk_alloc_reqs() 652 allocsize, r); in vioblk_alloc_reqs() 656 allocsize, (caddr_t *)&vaddr, BUS_DMA_NOWAIT); in vioblk_alloc_reqs() 662 memset(vaddr, 0, allocsize); in vioblk_alloc_reqs() 740 allocsize); in vioblk_alloc_reqs() 634 int allocsize, nreqs, r, rsegs, slot, i; vioblk_alloc_reqs() local
|
| H A D | if_vio.c | 462 size_t allocsize, rxqsize, txqsize, offset = 0; in vio_alloc_mem() 475 allocsize = sizeof(struct virtio_net_hdr) * txqsize * sc->sc_nqueues; in vio_alloc_mem() 478 allocsize += sizeof(struct virtio_net_ctrl_cmd) * 1; in vio_alloc_mem() 479 allocsize += sizeof(struct virtio_net_ctrl_status) * 1; in vio_alloc_mem() 480 allocsize += sizeof(struct virtio_net_ctrl_rx) * 1; in vio_alloc_mem() 481 allocsize += sizeof(struct virtio_net_ctrl_mq_pairs_set) * 1; in vio_alloc_mem() 482 allocsize += sizeof(struct virtio_net_ctrl_guest_offloads) * 1; in vio_alloc_mem() 483 allocsize += VIO_CTRL_MAC_INFO_SIZE; in vio_alloc_mem() 485 sc->sc_dma_size = allocsize; in vio_alloc_mem() 518 KASSERT(offset == allocsize); in vio_put_lladdr() 407 int allocsize, r, i, txsize; vio_alloc_mem() local [all...] |
| /openbsd-src/regress/usr.bin/diff/ |
| H A D | t8.1 | 98 long indx, npg, allocsize; 133 allocsize = roundup(size, CLBYTES); 135 allocsize = 1 << indx; 136 npg = clrnd(btoc(allocsize)); 148 if (allocsize > MAXALLOCSAVE) { 153 ksp->ks_memuse += allocsize; 167 kbp->kb_next = cp = va + (npg * NBPG) - allocsize; 182 cp -= allocsize;
|
| H A D | t8.2 | 134 long indx, npg, allocsize; 175 allocsize = round_page(size); 177 allocsize = 1 << indx; 178 npg = btoc(allocsize); 201 if (allocsize > MAXALLOCSAVE) { 206 ksp->ks_memuse += allocsize; 220 kbp->kb_next = cp = va + (npg * PAGE_SIZE) - allocsize; 235 cp -= allocsize;
|
| /openbsd-src/usr.bin/rs/ |
| H A D | rs.c | 75 int allocsize = BUFSIZ; variable 336 newsize = allocsize * 2; in getptrs() 341 allocsize = newsize; in getptrs() 344 endelem = elem + allocsize; in getptrs()
|
| /openbsd-src/gnu/llvm/llvm/examples/BrainF/ |
| H A D | BrainF.cpp | 95 Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty); in header() local 96 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header() 97 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|
| /openbsd-src/sbin/restore/ |
| H A D | symtab.c | 370 #define allocsize(size) (((size) + 1 + STRTBLINCR - 1) & ~(STRTBLINCR - 1)) macro 372 static struct strhdr strtblhdr[allocsize(NAME_MAX) / STRTBLINCR]; 393 cp = malloc(allocsize(len)); in savename() 459 (int)allocsize(ep->e_namlen), fp); in dumpsymtable() 471 stroff += allocsize(ep->e_namlen); in dumpsymtable()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/rdi-share/ |
| H A D | devsw.c | 234 static const unsigned int allocsize = ADP_BUFFER_MIN_SIZE; variable 259 if ((ds->ds_nextreadpacket = DevSW_AllocatePacket(allocsize)) == NULL) in initialise_read() 268 dp->buf_len = allocsize; in initialise_read()
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | archive.c | 340 bfd_size_type allocsize = sizeof (struct areltdata) + sizeof (struct ar_hdr); in _bfd_generic_read_ar_hdr_mag() local 389 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag() 392 allocptr = bfd_zalloc (abfd, allocsize); in _bfd_generic_read_ar_hdr_mag() 430 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag() 435 allocptr = bfd_zalloc (abfd, allocsize); in _bfd_generic_read_ar_hdr_mag()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | archive.c | 393 bfd_size_type allocsize = sizeof (struct areltdata) + sizeof (struct ar_hdr); in _bfd_generic_read_ar_hdr_mag() local 439 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag() 442 allocptr = bfd_zalloc (abfd, allocsize); in _bfd_generic_read_ar_hdr_mag() 480 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag() 485 allocptr = bfd_zalloc (abfd, allocsize); in _bfd_generic_read_ar_hdr_mag()
|
| /openbsd-src/gnu/llvm/llvm/utils/vim/syntax/ |
| H A D | llvm.vim | 47 \ allocsize
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Attributes.td | 62 def AllocSize : IntAttr<"allocsize", [FnAttr]>;
|
| /openbsd-src/gnu/llvm/llvm/docs/ |
| H A D | BitCodeFormat.rst | 1057 * code 51: ``allocsize(<EltSizeParam>[, <NumEltsParam>])`` 1085 The ``allocsize`` attribute has a special encoding for its arguments. Its two
|
| H A D | LangRef.rst | 1639 ``allocsize(<EltSizeParam>[, <NumEltsParam>])``
|
| /openbsd-src/lib/libexpat/lib/ |
| H A D | xmlparse.c | 7673 const size_t allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() 7676 ret = (XML_Content *)MALLOC(parser, allocsize); in build_model() 7642 const size_t allocsize = (dtd->scaffCount * sizeof(XML_Content) build_model() local
|