/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_ksocket.c | 45 int i, nseg; in ksocket_sendmblk() local 52 nseg = 0; in ksocket_sendmblk() 56 nseg++; in ksocket_sendmblk() 66 iov_sz = nseg * sizeof (iovec_t); in ksocket_sendmblk() 79 ASSERT3S(i, ==, nseg); in ksocket_sendmblk() 83 tmsg.msg_iovlen = nseg; in ksocket_sendmblk()
|
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | pe.c | 264 int nseg = 0; /* number cmdQ_ce entries created */ in pe_start() local 388 if (nseg >= (mseg-4)) { in pe_start() 395 for (j = 0; j < nseg; j++) in pe_start() 416 &hmp[nseg], mseg - nseg); in pe_start() 421 &hmp[nseg], in pe_start() 422 mseg - nseg)) == 0) { in pe_start() 438 if (nseg) in pe_start() 445 (void *)mp->b_rptr, &hmp[nseg], in pe_start() 446 mseg - nseg); in pe_start() 461 if (nseg) in pe_start() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | outfile.c | 380 int fd, nseg = 0, shidx, dataidx, ptloadidx = 0; in ld_create_outfile() local 462 nseg++; in ld_create_outfile() 465 nseg++; in ld_create_outfile() 468 nseg++; in ld_create_outfile() 471 nseg++; in ld_create_outfile() 474 nseg++; in ld_create_outfile() 477 nseg++; in ld_create_outfile() 480 nseg++; in ld_create_outfile() 483 nseg++; in ld_create_outfile() 485 nseg++; in ld_create_outfile() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/vm/ |
H A D | seg_nf.c | 346 struct seg *nseg; in segnf_unmap() local 352 nseg = seg_alloc(seg->s_as, nbase, nsize); in segnf_unmap() 353 if (nseg == NULL) in segnf_unmap() 359 nseg->s_ops = seg->s_ops; in segnf_unmap() 360 nseg->s_data = nseg; in segnf_unmap() 361 nseg->s_flags |= S_PURGE; in segnf_unmap()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vpm.c | 746 int nseg, in vpm_pagecreate() argument 754 ASSERT(nseg >= MINVMAPS && nseg <= MAXVMAPS); in vpm_pagecreate() 819 int nseg, in vpm_map_pages() argument 832 ASSERT(nseg >= MINVMAPS && nseg <= MAXVMAPS); in vpm_map_pages() 850 if (tlen > ((nseg - 1) * PAGESIZE)) { in vpm_map_pages() 851 tlen = ((nseg - 1) * PAGESIZE); in vpm_map_pages() 864 return (vpm_pagecreate(vp, baseoff, len, vml, nseg, newpage)); in vpm_map_pages() 1131 int nseg, in vpm_pagecreate() argument 1145 int nseg, in vpm_map_pages() argument
|
H A D | seg_vn.c | 695 struct seg *pseg, *nseg; in segvn_create() local 751 nseg = AS_SEGNEXT(pseg->s_as, pseg); in segvn_create() 752 if (nseg != NULL && in segvn_create() 753 nseg != pseg && in segvn_create() 754 nseg->s_ops == &segvn_ops && in segvn_create() 756 nseg->s_base) in segvn_create() 757 (void) segvn_concat(pseg, nseg, 0); in segvn_create() 774 nseg = AS_SEGNEXT(seg->s_as, seg); in segvn_create() 775 if (nseg != NULL && in segvn_create() 776 seg->s_base + seg->s_size == nseg->s_base && in segvn_create() [all …]
|
H A D | seg_dev.c | 626 register struct seg *nseg; in segdev_unmap() local 800 nseg = seg_alloc(seg->s_as, nbase, nsize); in segdev_unmap() 801 if (nseg == NULL) in segdev_unmap() 805 "segdev_unmap: seg=%p nseg=%p", (void *)seg, (void *)nseg); in segdev_unmap() 807 (void *)seg, (void *)nseg)); in segdev_unmap() 810 nseg->s_ops = seg->s_ops; in segdev_unmap() 811 nseg->s_data = (void *)nsdp; in segdev_unmap() 815 nsdp->offset = sdp->offset + (offset_t)(nseg->s_base - seg->s_base); in segdev_unmap() 839 nnpages = seg_pages(nseg); in segdev_unmap() 885 newdhp->dh_seg = nseg; in segdev_unmap() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | vmem.c | 677 ssize_t nseg; in vmem_populate() local 710 nseg = VMEM_MINFREE + vmem_populators * VMEM_POPULATE_RESERVE; in vmem_populate() 711 size = P2ROUNDUP(nseg * vmem_seg_size, vmem_seg_arena->vm_quantum); in vmem_populate() 712 nseg = size / vmem_seg_size; in vmem_populate() 735 (vmem_seg_t *)(p + --nseg * vmem_seg_size)); in vmem_populate() 745 ASSERT(nseg >= VMEM_MINFREE); in vmem_populate() 747 vmem_putseg(vmp, (vmem_seg_t *)(p + --nseg * vmem_seg_size)); in vmem_populate() 752 while (nseg > 0) in vmem_populate() 753 vmem_putseg_global((vmem_seg_t *)(p + --nseg * vmem_seg_size)); in vmem_populate() 1673 size_t old_size, new_size, h, nseg; in vmem_hash_rescale() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_net.c | 368 int len, nseg, rc; in smb_net_send_uio() local 373 len = nseg = 0; in smb_net_send_uio() 377 nseg++; in smb_net_send_uio() 381 if (nseg <= SMB_LOCAL_IOV_MAX) { in smb_net_send_uio()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | vmem.c | 565 ssize_t nseg; in vmem_populate() local 598 nseg = VMEM_MINFREE + vmem_populators * VMEM_POPULATE_RESERVE; in vmem_populate() 599 size = P2ROUNDUP(nseg * vmem_seg_size, vmem_seg_arena->vm_quantum); in vmem_populate() 600 nseg = size / vmem_seg_size; in vmem_populate() 628 (vmem_seg_t *)(p + --nseg * vmem_seg_size)); in vmem_populate() 639 ASSERT(nseg >= VMEM_MINFREE); in vmem_populate() 641 vmem_putseg(vmp, (vmem_seg_t *)(p + --nseg * vmem_seg_size)); in vmem_populate() 646 while (nseg > 0) in vmem_populate() 647 vmem_putseg_global((vmem_seg_t *)(p + --nseg * vmem_seg_size)); in vmem_populate() 1595 size_t old_size, new_size, h, nseg; in vmem_hash_rescale() local [all …]
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | fcns.c | 87 dump_exec_header(Elf *elf_file, unsigned nseg, char *filename) in dump_exec_header() argument 115 for (counter = 0; counter < nseg; counter++) { in dump_exec_header()
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.c | 2191 int nseg = ((n+1) + GLH_SEG_SIZE-1) / GLH_SEG_SIZE; in _glh_acquire_copy() local 2197 while(glh->nfree < nseg && glh->nbusy > 0) in _glh_acquire_copy() 2203 if(glh->nfree < nseg) in _glh_acquire_copy() 2209 for(i=0,seg=glh->unused; i<nseg-1; i++,seg=seg->next, offset+=GLH_SEG_SIZE) in _glh_acquire_copy() 2226 glh->nbusy += nseg; in _glh_acquire_copy() 2227 glh->nfree -= nseg; in _glh_acquire_copy() 2289 int nseg; /* The number of segments being discarded */ in _glh_discard_copy() local 2294 for(nseg=1,tail=hnode->head; tail->next; nseg++,tail=tail->next) in _glh_discard_copy() 2302 glh->nbusy -= nseg; in _glh_discard_copy() 2303 glh->nfree += nseg; in _glh_discard_copy()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | startup.c | 2425 int nseg; in ndata_alloc_memseg() local 2437 nseg = memseg_sz / sizeof (struct memseg); in ndata_alloc_memseg() 2443 while (nseg--) { in ndata_alloc_memseg()
|
/illumos-gate/usr/src/uts/common/io/iwi/ |
H A D | ipw2200_impl.h | 484 uint32_t nseg; member
|
H A D | ipw2200.c | 2323 txdsc->nseg = LE_32(1); in ipw2200_send()
|