Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/cmd/bhyve/
H A Dusb_mouse.c395 data->blen = 0; in umouse_request()
410 data->blen = 0; in umouse_request()
434 data->blen -= 2; in umouse_request()
437 data->blen = 0; in umouse_request()
450 data->blen = 0; in umouse_request()
465 data->blen = 0; in umouse_request()
490 data->blen = 0; in umouse_request()
612 data->blen = 0; in umouse_request()
668 data->blen = 0; in umouse_request()
718 len = data->blen; in umouse_data_handler()
[all …]
H A Dusb_emul.c60 usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen, in usb_data_xfer_append() argument
70 xb->blen = blen; in usb_data_xfer_append()
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dtohexstr.c41 tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen) in tohexstr() argument
46 for (i = 0; i < blen; i++) { in tohexstr()
52 hexstr[2 * blen] = '\0'; in tohexstr()
67 hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes, size_t *blen) in hexstr_to_bytes() argument
74 *blen = 0; in hexstr_to_bytes()
84 *blen = (hexlen / 2); in hexstr_to_bytes()
86 b = malloc(*blen); in hexstr_to_bytes()
88 *blen = 0; in hexstr_to_bytes()
118 *blen = 0; in hexstr_to_bytes()
/illumos-gate/usr/src/common/net/dhcp/
H A Doctet.c53 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) in octet_to_hexascii() argument
60 if (nump == NULL || bufp == NULL || blen == NULL) in octet_to_hexascii()
63 if ((nlen * 2) >= *blen) { in octet_to_hexascii()
64 *blen = 0; in octet_to_hexascii()
72 *blen = i * 2; in octet_to_hexascii()
82 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) in hexascii_to_octet() argument
88 if (asp == NULL || bufp == NULL || blen == NULL) in hexascii_to_octet()
91 if (alen > (*blen * 2)) in hexascii_to_octet()
108 *blen = k; in hexascii_to_octet()
/illumos-gate/usr/src/cmd/tail/
H A Dread.c131 int blen; in lines() member
137 int blen, cnt, recno, wrap; in lines() local
143 blen = cnt = recno = wrap = 0; in lines()
147 if (++cnt > blen) { in lines()
148 if ((sp = realloc(sp, blen += 1024)) == NULL) in lines()
154 if ((int)llines[recno].blen < cnt) { in lines()
155 llines[recno].blen = cnt + 256; in lines()
157 llines[recno].blen)) == NULL) in lines()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rip.c316 int blen, num; in interpret_rip() local
323 blen = get_line_remain(); in interpret_rip()
324 (void) snprintf(cp, blen, "%-16s ", in interpret_rip()
327 blen -= 17; in interpret_rip()
333 blen -= strlen(cp); in interpret_rip()
342 (void) snprintf(cp, blen, in interpret_rip()
349 blen); in interpret_rip()
352 blen -= strlen(cp); in interpret_rip()
354 (void) snprintf(cp, blen, in interpret_rip()
360 blen -= strlen(cp); in interpret_rip()
[all …]
H A Dsnoop_ether.c147 data = (char *)malloc(blen); in interpret_ether()
150 datalen = blen; in interpret_ether()
829 data = (char *)malloc(blen); in interpret_tr()
832 datalen = blen; in interpret_tr()
1077 int blen = MAX(origlen, 4500); in interpret_fddi() local
1085 data = (char *)malloc(blen); in interpret_fddi()
1088 datalen = blen; in interpret_fddi()
1597 data = malloc(blen); in interpret_ib()
1600 datalen = blen; in interpret_ib()
1688 data = (char *)malloc(blen); in interpret_ipnet()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_macinfo.c72 size_t blen = BASE_MACINFO_MALLOC_LEN; in libdwarf_compose_begin() local
74 if (blen < maxlen) { in libdwarf_compose_begin()
75 blen = 2 * maxlen; in libdwarf_compose_begin()
77 len = sizeof(struct dw_macinfo_block_s) + blen; in libdwarf_compose_begin()
86 newb->mb_avail_len = blen; in libdwarf_compose_begin()
88 newb->mb_macinfo_data_space_len = blen; in libdwarf_compose_begin()
97 size_t blen = in libdwarf_compose_begin() local
99 if (blen < maxlen) { in libdwarf_compose_begin()
100 blen = 2 * maxlen; in libdwarf_compose_begin()
111 newb->mb_avail_len = blen; in libdwarf_compose_begin()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetgrnam.c64 size_t blen; in get_grbuf() local
69 blen = _nss_get_bufsizes(0); /* default size */ in get_grbuf()
71 blen = sysconf(_SC_GETGR_R_SIZE_MAX); /* max size */ in get_grbuf()
73 if ((*buffer)->buflen >= blen) /* existing size fits */ in get_grbuf()
77 b = NSS_XbyY_ALLOC(buffer, sizeof (struct group), blen); in get_grbuf()
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c401 size_t bsize, blen; in _nss_dns_gethost_withttl() local
448 blen = 0; in _nss_dns_gethost_withttl()
727 if (blen + len > bsize) { in _nss_dns_gethost_withttl()
731 (void) strlcpy(bptr, np, bsize - blen); in _nss_dns_gethost_withttl()
732 blen += iplen; in _nss_dns_gethost_withttl()
735 blen++; in _nss_dns_gethost_withttl()
737 blen += hlen; in _nss_dns_gethost_withttl()
741 blen++; in _nss_dns_gethost_withttl()
743 blen += alen; in _nss_dns_gethost_withttl()
747 blen++; in _nss_dns_gethost_withttl()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_name.c978 int b, blen, plen, i; in decode_bitstring() local
980 if ((blen = (*cp & 0xff)) == 0) in decode_bitstring()
981 blen = 256; in decode_bitstring()
982 plen = (blen + 3) / 4; in decode_bitstring()
983 plen += sizeof("\\[x/]") + (blen > 99 ? 3 : (blen > 9) ? 2 : 1); in decode_bitstring()
1012 i = SPRINTF((dn, "/%d]", blen)); in decode_bitstring()
1103 if (blen > 0) { in encode_bitsring()
1113 blen = tbcount; in encode_bitsring()
1114 if (blen == 256) in encode_bitsring()
1115 blen = 0; in encode_bitsring()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c141 int len, blen; in nb_encname_len() local
148 blen = *cp; in nb_encname_len()
149 if (blen++ == 0) in nb_encname_len()
151 len += blen; in nb_encname_len()
152 cp += blen; in nb_encname_len()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dexport_sec_context.c42 size_t bufsize, blen; local
76 blen = bufsize;
79 (krb5_pointer) ctx, &obp, &blen)))
83 interprocess_token->length = bufsize - blen;
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dfilehdr.c90 unsigned blen; in audio_write_filehdr() local
95 blen = ROUND_DBL(blen); in audio_write_filehdr()
106 err = audio_encode_wav(hdrp, buf, &blen); in audio_write_filehdr()
109 err = audio_encode_aiff(hdrp, buf, &blen); in audio_write_filehdr()
120 err = write(fd, (char *)buf, (int)blen); in audio_write_filehdr()
123 if (err != blen) in audio_write_filehdr()
955 *blen = buf_size; in audio_encode_aiff()
972 unsigned char *buf, unsigned int *blen) in audio_encode_au() argument
1084 if (*blen < offset) { in audio_encode_au()
1090 *blen = (unsigned)offset; in audio_encode_au()
[all …]
/illumos-gate/usr/src/common/bignum/i386/
H A Dbignum_i386.c85 (*big_mul_vec_impl)(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen)
106 big_mul_vec_init(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) in big_mul_vec_init() argument
109 (*big_mul_vec_impl)(r, a, alen, b, blen); in big_mul_vec_init()
136 big_mul_vec_umul(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) in big_mul_vec_umul() argument
141 for (i = 1; i < blen; ++i) in big_mul_vec_umul()
/illumos-gate/usr/src/boot/forth/
H A Dloader.4th97 to blen to baddr
119 blen to len
120 0 to blen
123 dup blen
184 blen 0<> if
188 blen 1- to blen
194 blen 1- to blen
199 0 to blen
302 to blen
305 baddr blen
[all …]
/illumos-gate/usr/src/lib/libmp/common/
H A Dmult.c80 int blen; in m_mult() local
87 blen = b->len; in m_mult()
89 c->len = alen + blen; in m_mult()
111 for (j = blen - 1; j > 0; j--) { in m_mult()
/illumos-gate/usr/src/common/bignum/
H A Dbignum.h186 #define BIG_MUL_VEC(r, a, alen, b, blen) \ argument
187 (*big_mul_vec_impl)(r, a, alen, b, blen)
197 int blen);
205 #define BIG_MUL_VEC(r, a, alen, b, blen) big_mul_vec(r, a, alen, b, blen) argument
213 BIG_CHUNK_TYPE *b, int blen);
/illumos-gate/usr/src/uts/common/sys/usb/usba/
H A Dwhcdi.h298 const uchar_t *bdata, size_t blen,
301 #define PRF_64(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
302 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 64)
304 #define PRF_128(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
305 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 128)
307 #define PRF_256(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
308 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 256)
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dimport_sec_context.c91 size_t blen; local
119 blen = (size_t) interprocess_token->length;
120 kret = kg_ctx_internalize(context, (krb5_pointer *) &ctx, &ibp, &blen);
/illumos-gate/usr/src/common/bignum/amd64/
H A Dbignum_amd64.c48 BIG_CHUNK_TYPE *b, int blen) in big_mul_vec() argument
53 for (i = 1; i < blen; ++i) in big_mul_vec()
/illumos-gate/usr/src/cmd/sh/
H A Dblok.c324 size_t blen; local
331 blen = blklen(pp);
333 if (blen < nbytes) { /* need to grow */
335 memcpy(q, pp, blen);
338 } else if (blen == nbytes) { /* do nothing */
/illumos-gate/usr/src/cmd/mdb/common/modules/arp/
H A Darp.c93 size_t blen; in arphdr_cmd() local
153 blen = 2 * (arp.arh.arh_hlen + arp.arh.arh_plen); in arphdr_cmd()
154 if (mdb_vread(&arp.addrs, blen, addr + sizeof (arp.arh)) == -1) { in arphdr_cmd()
/illumos-gate/usr/src/cmd/sdiff/
H A Dsdiff.c822 static int blen = 0; in fgetline() local
830 blen = BUFSIZ; in fgetline()
834 if (fgets(bp, blen, fp) == NULL) in fgetline()
840 while ((sl = strlen(bp)) == blen-1 && *(bp+blen-2) != '\n') { in fgetline()
842 blen *= 2; in fgetline()
843 bp = (char *)realloc(bp, blen); in fgetline()
847 (void) fgets(bp+sl, blen-sl, fp); in fgetline()
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvprojname.c41 valid_projname(char *project, struct project *pptr, void *buf, size_t blen, in valid_projname() argument
67 if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL) in valid_projname()

123