Home
last modified time | relevance | path

Searched refs:totsize (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c89 GElf_Xword totsize; in process() local
132 first = second = third = totsize = 0; in process()
189 totsize = first + second + third; in process()
191 first, second, third, totsize); in process()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgtrans.c635 long totsize; in genheader() local
656 totsize = 0; in genheader()
666 totsize += statbuf.st_size/BLK_SIZE + 1; in genheader()
672 totsize += i/4 + 1; in genheader()
673 if (dstdev.capacity && totsize > dstdev.capacity) { in genheader()
727 totsize += nparts * maxpsize; in genheader()
731 if (totsize) in genheader()
732 totsize -= nparts * maxpsize; in genheader()
734 while (totsize <= dstdev.capacity && in genheader()
736 totsize += maxpsize; in genheader()
[all …]
/illumos-gate/usr/src/uts/intel/io/dktp/dcdev/
H A Ddadk.c521 int totsize; in dadk_setcap() local
524 totsize = dadkp->dad_phyg.g_secsiz; in dadk_setcap()
526 if (totsize == 0) { in dadk_setcap()
528 totsize = 2048; in dadk_setcap()
530 totsize = NBPSCTR; in dadk_setcap()
534 totsize &= ~(NBPSCTR-1); in dadk_setcap()
536 dadkp->dad_phyg.g_secsiz = totsize; in dadk_setcap()
539 totsize >>= SCTRSHFT; in dadk_setcap()
540 for (i = 0; totsize != 1; i++, totsize >>= 1) in dadk_setcap()
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_main.c217 size_t totsize; in rge_slice_chunk() local
219 totsize = qty*size; in rge_slice_chunk()
220 ASSERT(totsize <= chunk->alength); in rge_slice_chunk()
225 slice->alength = totsize; in rge_slice_chunk()
228 chunk->mem_va = (caddr_t)chunk->mem_va + totsize; in rge_slice_chunk()
229 chunk->alength -= totsize; in rge_slice_chunk()
230 chunk->offset += totsize; in rge_slice_chunk()
231 chunk->cookie.dmac_laddress += totsize; in rge_slice_chunk()
232 chunk->cookie.dmac_size -= totsize; in rge_slice_chunk()
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c130 size_t totsize = size + HDR_PAGE; in malloc_unlocked() local
131 size_t totpage = align(totsize, pagesize); in malloc_unlocked()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c180 size_t totsize = size + HDR_PAGE; in malloc() local
181 size_t totpage = S_ROUND(totsize, syspagsz); in malloc()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.c459 hole_discovery(int bytes, int segcnt, int *totsize, seg_info_t *offset_tbl) in hole_discovery() argument
463 *totsize = 0; in hole_discovery()
471 *totsize += offset_tbl[cnt].offset - in hole_discovery()
503 int totsize = 0; in find_offset() local
552 &totsize, offset_tbl); in find_offset()
563 if (totsize > offset_tbl[0].length) { in find_offset()
573 totsize = 0; in find_offset()
574 newoffset = hole_discovery(segsize, segcnt, &totsize, offset_tbl); in find_offset()
577 if (totsize >= segsize) { in find_offset()
579 newoffset = hole_discovery(segsize, segcnt, &totsize, in find_offset()
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_main.c276 size_t totsize; in nge_slice_chunk() local
278 totsize = qty*size; in nge_slice_chunk()
280 ASSERT(totsize <= chunk->alength); in nge_slice_chunk()
285 slice->alength = totsize; in nge_slice_chunk()
287 chunk->mem_va = (caddr_t)chunk->mem_va + totsize; in nge_slice_chunk()
288 chunk->alength -= totsize; in nge_slice_chunk()
289 chunk->offset += totsize; in nge_slice_chunk()
290 chunk->cookie.dmac_laddress += totsize; in nge_slice_chunk()
291 chunk->cookie.dmac_size -= totsize; in nge_slice_chunk()
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_main2.c2167 size_t totsize; local
2169 totsize = qty*size;
2170 ASSERT(totsize <= chunk->alength);
2175 slice->alength = totsize;
2178 chunk->mem_va = (caddr_t)chunk->mem_va + totsize;
2179 chunk->alength -= totsize;
2180 chunk->offset += totsize;
2181 chunk->cookie.dmac_laddress += totsize;
2182 chunk->cookie.dmac_size -= totsize;
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c4803 diskaddr_t totsize; local
4845 totsize = (diskaddr_t)d.dkg_ncyl * d.dkg_nhead * d.dkg_nsect;
4846 if (v.v_part[idx].p_size != totsize) {