/illumos-gate/usr/src/uts/common/disp/ |
H A D | cpupart.c | 220 int i, sz; local 222 sz = cp->cp_nlgrploads = lgrp_plat_max_lgrps(); 223 cp->cp_lgrploads = kmem_zalloc(sizeof (lpl_t) * sz, KM_SLEEP); 225 for (i = 0; i < sz; i++) { 231 cp->cp_lgrploads[i].lpl_rset_sz = sz + 1; 233 kmem_zalloc(sizeof (struct lgrp_ld *) * (sz + 1), KM_SLEEP); 235 kmem_zalloc(sizeof (int) * (sz + 1), KM_SLEEP); 246 int i, sz; local 252 sz = lpl->lpl_rset_sz; 253 kmem_free(lpl->lpl_rset, sizeof (struct lgrp_ld *) * sz); [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | nl7clogd.c | 654 int sz; local 696 sz = MIN((quri->path.ep - quri->path.cp), MAX_URL_LEN); 697 if ((wp + sz + 1) >= pep) goto full; 698 bcopy(quri->path.cp, wp, sz); 699 wp += sz; 701 sz++; 702 req->request_url_len = sz; 704 off += sz; 736 sz = pep - wp; 737 bzero(wp, sz); [all...] |
H A D | nl7curi.h | 114 size_t sz; /* Size of data */ member in struct:uri_rd_s 186 (rdp)->sz = size; \
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_bmap.c | 202 uint32_t blkno, sz; local 525 &blkno, &sz, 1, 0)) != 0) { 528 ip->i_lbr += sz; 529 if (sz == 0) { 534 error = ud_zero_it(ip, blkno, sz); 537 acount = sz << l2b; 552 if (sz == blkcount) { 572 if (sz < blkcount) { 574 ip, i, sz << l2b)) != 0) { 1016 uint32_t blkno, sz; local 1098 uint32_t blkno, sz, prox, mext_sz; local [all...] |
/illumos-gate/usr/src/uts/common/inet/kssl/ |
H A D | ksslapi.c | 790 int sz; local 982 sz = recend - mp->b_rptr; 985 ssl->msg.msglen <= sz) { 989 sz += msgdsize(ssl->msg.head); 990 if (ssl->msg.msglen <= sz) { 997 recend = mp->b_rptr + sz;
|
/illumos-gate/usr/src/stand/lib/fs/ufs/ |
H A D | lufsboot.c | 311 lufs_alloc_from_logbuf(size_t sz) argument 320 if ((sz == sizeof (lb_me_t)) && lfreelist) { 325 if (elogbuffer < logbuf_curptr + sz) { 337 nsz = roundup(sz, PAGESIZE); 353 logbuf_curptr += sz; 354 bzero(tmpaddr, sz);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | kiconv.c | 198 int8_t sz; local 247 sz = u8_number_of_bytes[*ib]; 248 if (sz <= 0) { 275 if (sz == 1) { 284 if ((ibtail - ib) < sz) { 298 for (i = 1; i < sz; i++) { 370 int8_t sz; local 415 sz = u8_number_of_bytes[to_u8_tbl[(ulong_t)kcd][k].u8[0]]; 418 * If sz <= 0, that means we don't have any assigned character 423 if (sz < 466 int8_t sz; local 646 int8_t sz; local [all...] |
H A D | pg.c | 797 int i, sz; local 802 sz = GROUP_SIZE(grp); 803 for (i = 0; i < sz; i++) { 818 int i, sz; local 823 sz = GROUP_SIZE(grp); 824 for (i = 0; i < sz; i++) {
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_pvn.c | 1114 size_t sz, xlen; local 1131 sz = (pl != NULL) ? PAGESIZE : 0; 1141 sz = plsz - (o - off); 1143 err = (*getpage)(vp, o, xlen, protp, ppp, sz, seg, addr, 1169 ssize_t sz; local 1192 sz = plsz; 1205 sz -= PAGESIZE; 1206 } while (sz > 0 && pp != NULL);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | enx_ibt.c | 312 uint_t sz; local 332 ret = ibt_alloc_cq(info->ti_hca, &cq_attr, &info->ti_cq_hdl, &sz); 342 info->ti_cq_sz = sz; 343 info->ti_wc = kmem_zalloc(sizeof (ibt_wc_t) * sz, KM_SLEEP);
|
/illumos-gate/usr/src/uts/common/io/usb/clients/video/usbvc/ |
H A D | usbvc_v4l2.c | 758 uint32_t w, h, diff, sz, i; local 774 sz = min(w, width) * min(h, height); 775 sz = (w * h + width * height - sz * 2); 776 if (sz < diff) { 778 diff = sz;
|
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_sc.c | 125 int8_t sz; local 193 sz = gbk_to_utf8(gb_val, ob, obtail, &ret_val, isgbk4); 194 if (sz < 0) { 199 ob += sz; 223 int8_t sz; local 293 sz = gbk_to_utf8(gb_val, ob, obtail, &ret_val, isgbk4); 294 if (sz < 0) { 299 ob += sz; 355 int8_t sz; local 411 sz 442 int8_t sz; local 543 int8_t sz; local 627 int8_t sz; local 701 int8_t sz; local 744 int8_t sz; local [all...] |
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | ckdate.c | 74 setmsg(char *msg, char *fmt, size_t sz) argument 78 (void) snprintf(msg, sz, "%s. Format is <%s>.", MESG, fmt);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ksyms.c | 81 size_t sz; local 89 sz = MIN(rsize, (BUF_SIZE - hptr->curbuf_off)); 90 bcopy(src, (hptr->cur->buf + hptr->curbuf_off), sz); 92 hptr->curbuf_off += sz; 99 src += sz; 100 rsize -= sz; 183 size_t sz, rlen = roundup(size, PAGESIZE); local 193 sz = MIN(size, BUF_SIZE); 195 if (copyout(list->buf, raddr, sz)) { 200 raddr += sz; [all...] |
/illumos-gate/usr/src/uts/common/io/lvm/softpart/ |
H A D | sp_ioctl.c | 162 int i, nunits, sz; local 170 sz = msp->size; 176 minors = kmem_alloc(sz, KM_SLEEP); 180 if (err = ddi_copyin((void *)(uintptr_t)msp->minors, minors, sz, mode)) 204 kmem_free(minors, sz); 1031 size_t sz = 0; local 1049 sz = sizeof (md_set_params_t); 1051 d = kmem_alloc(sz, KM_SLEEP); 1053 if (ddi_copyin(data, d, sz, mode)) { 1068 sz [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vnet_rxdring.c | 964 uint_t sz = 0; local 1003 sz += mblk_sz; 1007 if (sz >= bytes_to_pickup) { 1031 DTRACE_PROBE2(vgen_poll_bytes, vgen_ldc_t *, ldcp, uint_t, sz);
|
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_util.c | 196 uint32_t sz = pcmu_rp->pci_size_low; local 204 sz = sz ? MIN(sz, PCI_CONF_HDR_SIZE) : PCI_CONF_HDR_SIZE; 207 reg_end = reg_begin + sz - 1; 229 new_rp->regspec_size = sz; 232 n, new_rp->regspec_bustype, new_rp->regspec_addr, sz);
|
/illumos-gate/usr/src/uts/intel/kdi/ |
H A D | kdi_idt.c | 206 kdi_idt_patch(caddr_t code, size_t sz) argument 210 ASSERT(sz <= KDI_MSR_PATCHSZ); 228 bcopy(code, patch, sz); 231 while (sz < KDI_MSR_PATCHSZ) 232 patch[sz++] = 0x90; /* nop */
|
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | i915_dma.c | 383 int cmd, sz; local 390 if ((sz = validate_cmd(cmd)) == 0 || i + sz > dwords) { 396 while (++i, --sz) { 485 if (cmd->sz & 0x3) { 502 ret = i915_emit_cmds(dev, (int __user *)(void *)cmd->buf, cmd->sz / 4); 715 cmdbuf.sz = cmdbuffer32_t.sz; 725 DRM_DEBUG("i915 cmdbuffer, buf %p sz %d cliprects %d\n", 726 cmdbuf.buf, cmdbuf.sz, cmdbu [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_info.c | 642 smb_get_nameservers(smb_inaddr_t *ips, int sz) argument 658 if (i >= sz)
|
/illumos-gate/usr/src/uts/sparc/v9/os/ |
H A D | simulator.c | 79 int sz, nf = 0, ltlend = 0; local 118 case 0: sz = 4; 122 sz = 4; /* ldfsr/stfsr */ 124 sz = 8; /* ldxfsr/stxfsr */ 128 case 2: sz = 16; 130 case 3: sz = 8; 137 if ((sz > 4) && (fsrflg == 0)) { 141 if ((sz == 16) && ((rd & 0x1) != 0)) 151 sz = 4; break; 156 sz 1317 int sz; local 1423 int sz = 0; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/ |
H A D | panic_diag.c | 409 size_t sz; local 437 if (nvlist_size(attr, &sz, NV_ENCODE_NATIVE) != 0) { 442 cdp = fmd_hdl_zalloc(hdl, sizeof (*cdp) + sz, FMD_SLEEP); 446 cdp->scd_nvlbufsz = sz; 453 cdp, sizeof (*cdp) + sz)) == NULL) { 456 fmd_hdl_free(hdl, cdp, sizeof (*cdp) + sz); 476 (void) nvlist_pack(attr, &fmribuf, &sz, NV_ENCODE_NATIVE, 0);
|
/illumos-gate/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 368 size_t sz; local 387 sz = strlcat(buf, pathp, bufsize); 388 assert(sz < bufsize); 402 sz = strlcat(buf, sibuf, bufsize); 403 assert(sz < bufsize); 413 sz = strlcat(buf, pathp, bufsize); 414 assert(sz < bufsize);
|
/illumos-gate/usr/src/cmd/ptools/ppriv/ |
H A D | ppriv.c | 168 size_t sz; local 190 sz = PRIV_PRPRIV_SIZE(ppriv); 197 if ((sz & 3) || ppriv->pr_nsets == 0 || 198 sz / ppriv->pr_nsets < ppriv->pr_setsize || 199 ppriv->pr_infosize > sz || sz > 1024 * 1024) { 202 command, arg, (long)sz); 233 x = (char *)ppriv + sz - ppriv->pr_infosize; 234 while (x < (char *)ppriv + sz) { 494 int sz local [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/ |
H A D | nfsd.c | 309 size_t sz = (ac / 2) * sizeof (char *); local 310 dss_pathnames = (char **)malloc(sz); 317 (void) memset(dss_pathnames, 0, sz); 865 size_t sz; local 870 sz = nreal * sizeof (char *); 871 tmp_pathnames = (char **)malloc(sz);
|