/titanic_41/usr/src/cmd/mdb/common/modules/usba/ |
H A D | prtusb.c | 68 uint_t nlen; /* if it's an byte array, nlen += BYTE_OFFSET */ member 504 static int prt_usb_ac_desc(uintptr_t paddr, uint_t nlen); 506 static int prt_usb_as_desc(uintptr_t paddr, uint_t nlen); 508 static int prt_usb_vc_desc(uintptr_t paddr, uint_t nlen); 510 static int prt_usb_vs_desc(uintptr_t paddr, uint_t nlen); 1026 uchar_t desc_type, nlen; in prt_usb_desc() local 1032 if (mdb_vread(&nlen, 1, paddr) == -1) { in prt_usb_desc() 1036 while ((paddr + nlen <= pend) && (nlen > 0)) { in prt_usb_desc() 1045 print_struct(paddr, nlen, &argv); in prt_usb_desc() 1052 print_descr(paddr, nlen, usb_cfg_descr, usb_cfg_item); in prt_usb_desc() [all …]
|
/titanic_41/usr/src/lib/libcurses/screen/ |
H A D | print.c | 238 size_t nlen; in pr_boolean() local 271 case (int)pr_terminfo: nlen = strlen(infoname); in pr_boolean() 273 case (int)pr_cap: nlen = strlen(capname); in pr_boolean() 276 nlen = strlen(fullname); in pr_boolean() 280 if ((printed > 0) && (printed + nlen + vlen + 1 > width)) { in pr_boolean() 323 printed += nlen + 2; in pr_boolean() 327 printed += nlen + 1; in pr_boolean() 328 caplen += nlen + 1; in pr_boolean() 332 printed += nlen + 2; in pr_boolean() 338 printed += nlen + 1; in pr_boolean() [all …]
|
/titanic_41/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4dep.c | 56 int nlen, clen, i; in setup_aux() local 58 if ((nlen = prom_getproplen(node, OBP_NAME)) <= 0 || in setup_aux() 59 nlen > sizeof (cpubuf) || in setup_aux() 75 if ((clen + nlen) > sizeof (cpubuf)) in setup_aux() 79 &cpubuf[nlen]) != clen) in setup_aux() 81 clen += nlen; /* total length */ in setup_aux()
|
/titanic_41/usr/src/cmd/ldmad/ |
H A D | ldma_device.c | 221 uint32_t nlen, reply_dlen; in ldma_dev_validate_nic() local 223 nlen = request->msg_info; in ldma_dev_validate_nic() 224 if (nlen == 0 || nlen > MAXPATHLEN || nlen > request_dlen) { in ldma_dev_validate_nic() 229 nic = malloc(nlen + 1); in ldma_dev_validate_nic() 235 (void) strncpy(nic, LDMA_HDR2DATA(request), nlen); in ldma_dev_validate_nic() 236 nic[nlen] = '\0'; in ldma_dev_validate_nic()
|
/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_pcu.c | 135 nsc_size_t nlen; in sdbc_anon_get() local 149 nlen = min(len, CACHE_BLOCK_SIZE - src_off); in sdbc_anon_get() 150 bcopy(&src->anon_data[src_off], dest, (size_t)nlen); in sdbc_anon_get() 153 bcopy(src->anon_data, &dest[nlen], (size_t)CACHE_BLOCK_SIZE); in sdbc_anon_get() 154 nlen += CACHE_BLOCK_SIZE; in sdbc_anon_get() 157 if (nlen != len) { in sdbc_anon_get() 158 bcopy(src->anon_data, &dest[nlen], (size_t)(len - nlen)); in sdbc_anon_get() 178 nsc_size_t nlen; in sdbc_anon_copy() local 192 nlen = min(len, CACHE_BLOCK_SIZE - dest_off); in sdbc_anon_copy() 193 bcopy(src, &dest->anon_data[dest_off], (size_t)nlen); in sdbc_anon_copy() [all …]
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 348 size_t olen = 0, nlen = 0, _len; in expand() local 357 while ((olen < *len) && (nlen < PATH_MAX)) { in expand() 381 if ((nlen += _len) < PATH_MAX) { in expand() 414 if ((nlen += _len) < PATH_MAX) { in expand() 450 nlen += scapset->sc_platsz; in expand() 451 if (nlen < PATH_MAX) { in expand() 487 nlen += scapset->sc_machsz; in expand() 488 if (nlen < PATH_MAX) { in expand() 516 if ((nlen += uts->uts_osnamesz) < PATH_MAX) { in expand() 544 if ((nlen += uts->uts_osrelsz) < PATH_MAX) { in expand() [all …]
|
/titanic_41/usr/src/common/bignum/ |
H A D | mont_mulf.c | 244 int nlen, double dn0) in mont_mulf_noconv() argument 253 pdm2[2 * nlen] = Zero; in mont_mulf_noconv() 255 if (nlen != 16) { in mont_mulf_noconv() 256 for (i = 0; i < 4 * nlen + 2; i++) in mont_mulf_noconv() 262 for (j = jj = 0; j < 2 * nlen; j++, jj++, pdtj++) { in mont_mulf_noconv() 269 for (i = 1; i < nlen; i++) { in mont_mulf_noconv() 273 cleanup(dt, j / 2 + 1, 2 * nlen + 1); in mont_mulf_noconv() 331 conv_d16_to_i32(result, dt + 2 * nlen, (int64_t *)dt, nlen + 1); in mont_mulf_noconv() 332 adjust_montf_result(result, nint, nlen); in mont_mulf_noconv()
|
H A D | bignumimpl.c | 1666 int i, j, nlen, needsubtract; in big_mont_mul() local 1682 nlen = n->len; in big_mont_mul() 1692 for (i = ret->len; i < 2 * nlen + 1; i++) { in big_mont_mul() 1697 if ((big_cpu == BIG_CPU_INTEL) && (nlen <= BIGTMPSIZE)) { in big_mont_mul() 1703 for (i = 0; i < nlen; i++) { in big_mont_mul() 1706 carry[i] = BIG_MUL_ADD_VEC(rrplusi, nn, nlen, digit); in big_mont_mul() 1708 for (i = 0; i < nlen; i++) { in big_mont_mul() 1709 j = i + nlen; in big_mont_mul() 1719 for (i = 0; i < nlen; i++) { in big_mont_mul() 1722 c = BIG_MUL_ADD_VEC(rrplusi, nn, nlen, digit); in big_mont_mul() [all …]
|
/titanic_41/usr/src/uts/common/rpc/sec/ |
H A D | sec_clnt.c | 162 size_t nlen; in dh_k4_clnt_loadinfo() local 208 sizeof (netname), &nlen); in dh_k4_clnt_loadinfo() 209 if (nlen != 0) { in dh_k4_clnt_loadinfo() 211 kmem_alloc(nlen, KM_SLEEP); in dh_k4_clnt_loadinfo() 212 bcopy(netname, data->netname, nlen); in dh_k4_clnt_loadinfo() 213 data->netnamelen = (int)nlen; in dh_k4_clnt_loadinfo() 234 kmem_free(data->netname, nlen); in dh_k4_clnt_loadinfo() 250 kmem_free(data->netname, nlen); in dh_k4_clnt_loadinfo() 268 kmem_free(data->netname, nlen); in dh_k4_clnt_loadinfo() 279 kmem_free(data->netname, nlen); in dh_k4_clnt_loadinfo() [all …]
|
/titanic_41/usr/src/cmd/allocate/ |
H A D | add_allocatable.c | 391 int nlen; in check_args() local 440 nlen = strlen(DAOPT_MINLABEL) + strlen(KV_ASSIGN) + in check_args() 444 if (nopts = (char *)malloc(nlen)) { in check_args() 445 (void) snprintf(nopts, nlen, "%s%s%s%s%s%s%s", in check_args() 456 nlen = strlen(devinfo->devopts) + in check_args() 460 if (nopts = (char *)malloc(nlen)) { in check_args() 461 (void) snprintf(nopts, nlen, in check_args() 472 nlen = strlen(devinfo->devopts) + in check_args() 476 if (nopts = (char *)malloc(nlen)) { in check_args() 477 (void) snprintf(nopts, nlen, in check_args()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 80 int nlen, plen, slen, lineno, fsize; in da_check_logindevperm() local 112 plen = nlen = lineno = 0; in da_check_logindevperm() 125 nlen = strlen(ptr) + 1; /* +1 terminator */ in da_check_logindevperm() 126 nlen += (plen + 1); in da_check_logindevperm() 128 slen = snprintf(fbuf, nlen, "%s", ptr); in da_check_logindevperm() 130 slen = snprintf(fbuf + plen, nlen - plen, ":%s", ptr); in da_check_logindevperm() 1350 int len = 0, nlen = 0, plen = 0; in _record_on_off() local 1388 nlen = strlen(nbuf); in _record_on_off() 1389 plen = nlen; in _record_on_off() 1392 nlen = plen + strlen(line) + 1; in _record_on_off() [all …]
|
H A D | getdaent.c | 504 int i = 0, nlen = 0; in da_interpret() local 510 nlen = 2; /* minlabel, maxlabel */ in da_interpret() 512 nlen += kvap->length; in da_interpret() 514 nlen++; in da_interpret() 516 nlen++; in da_interpret() 524 nkvap = _new_kva(nlen); in da_interpret()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 485 int olen, nlen; in check_format() local 520 nlen = extract_format(new, nfmt, nsz, strict); in check_format() 522 if (nlen == -1) { in check_format() 532 if (strict && (olen != nlen || olen == -1)) { in check_format() 542 if (strict && memcmp(ofmt, nfmt, nlen * FORMAT_SIZE) == 0) { in check_format() 550 nlen *= FORMAT_SIZE; in check_format() 552 for (n = nfmt; n = memchr(n, 'n', nfmt + nlen - n); in check_format()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnssrv.c | 64 int size, ret, rdlen, nlen; in krb5int_make_srv_query_realm() local 126 nlen = krb5int_dns_expand(ds, p, host, sizeof(host)); in krb5int_make_srv_query_realm() 127 if (nlen < 0 || !INCR_OK(base, rdlen, p, nlen)) in krb5int_make_srv_query_realm()
|
/titanic_41/usr/src/common/net/dhcp/ |
H A D | octet.c | 55 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) in octet_to_hexascii() argument 65 if ((nlen * 2) >= *blen) { in octet_to_hexascii() 69 for (i = 0, bp = bufp, np = (const uchar_t *)nump; i < nlen; i++) { in octet_to_hexascii()
|
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | Opaque.java | 91 int nlen = n / 3; in unescapeByteArray() local 92 byte[] b = new byte[nlen]; in unescapeByteArray() 114 if (len >= nlen) { in unescapeByteArray()
|
/titanic_41/usr/src/lib/efcode/engine/ |
H A D | properties.c | 567 int nlen = (strlen((char *)data)+1); in print_string() local 569 len -= nlen; in print_string() 570 data += nlen; in print_string() 624 int pcells, nlen; in print_reg() local 630 nlen = pcells*sizeof (uint32_t); in print_reg() 633 len -= nlen; in print_reg() 634 data += nlen; in print_reg() 676 int pcells, nlen; in print_ranges() local 683 nlen = pcells*sizeof (uint32_t); in print_ranges() 686 len -= nlen; in print_ranges() [all …]
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | pem_encode.c | 204 int nlen, n, i, j, outl; in Der2Pem() local 223 nlen = strlen(name); in Der2Pem() 233 (void) memcpy(p, name, nlen); in Der2Pem() 234 p += nlen; in Der2Pem() 255 (void) memcpy(p, name, nlen); in Der2Pem() 256 p += nlen; in Der2Pem() 261 *outlen = i+outl+nlen*2+11+6+9+6; in Der2Pem()
|
/titanic_41/usr/src/uts/sun4/os/ |
H A D | mlsetup.c | 330 int nlen, clen, i; local 337 if ((nlen = prom_getproplen(node, OBP_NAME)) <= 0 || 338 nlen > sizeof (cpubuf) || 357 if ((clen + nlen) > sizeof (cpubuf)) 361 &cpubuf[nlen]) != clen) 363 clen += nlen; /* total length */
|
/titanic_41/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_irc_pxy.c | 279 size_t nlen = 0, olen; local 340 nlen = strlen(newbuf); 341 inc = nlen - olen; 353 nm = allocb(nlen, BPRI_MED); 357 nm->b_wptr += nlen; 377 COPYBACK(m, off, nlen, newbuf);
|
/titanic_41/usr/src/lib/libsmbfs/smb/ |
H A D | ntlm.c | 570 int nlen; in smb_put_blob_name() local 575 nlen = unicode_strlen(ucs); in smb_put_blob_name() 577 nlen = 0; in smb_put_blob_name() 579 nlen <<= 1; /* length in bytes, without null. */ in smb_put_blob_name() 582 mb_put_uint16le(mbp, nlen); in smb_put_blob_name() 583 mb_put_mem(mbp, (char *)ucs, nlen, MB_MSYSTEM); in smb_put_blob_name()
|
/titanic_41/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_pr.c | 46 size_t len, nlen; local 104 nlen = strlen(name); 105 len = sizeof(DB_MPOOL_FSTAT) + nlen + 1; 111 memcpy((*tfsp)->file_name, name, nlen + 1);
|
/titanic_41/usr/src/cmd/rpcgen/ |
H A D | rpc_util.c | 415 size_t nlen; in make_argname() local 417 nlen = strlen(pname) + strlen(vname) + strlen(ARGEXT) + 3; in make_argname() 418 name = malloc(nlen); in make_argname() 423 (void) snprintf(name, nlen, "%s_%s_%s", locase(pname), vname, ARGEXT); in make_argname()
|
/titanic_41/usr/src/lib/rpcsec_gss/ |
H A D | rpcsec_gss_utils.c | 151 int nlen = 0, slen = 0, plen; in __rpc_gss_get_principal_name() local 168 nlen = strlen(node); in __rpc_gss_get_principal_name() 171 if (nlen > 0) { in __rpc_gss_get_principal_name()
|
/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_xattr.c | 248 int error, nlen; in smbfs_xa_getfattr() local 277 nlen = xnp->n_rplen - pnp->n_rplen; in smbfs_xa_getfattr() 282 error = smbfs_smb_lookup(pnp, &name, &nlen, fap, scrp); in smbfs_xa_getfattr() 284 smbfs_name_free(name, nlen); in smbfs_xa_getfattr()
|