Home
last modified time | relevance | path

Searched refs:inbuf (Results 1 – 25 of 92) sorted by relevance

1234

/titanic_41/usr/src/cmd/audio/utilities/
H A DAudioGain.cc178 AudioBuffer* inbuf, in Process() argument
184 if (inbuf == NULL) in Process()
187 if (Undefined(inbuf->GetLength())) { in Process()
191 inbuf->RaiseError(err); in Process()
192 inbuf->Reference(); in Process()
193 inbuf->Dereference(); in Process()
198 newhdr = inbuf->GetHeader(); in Process()
211 if (inbuf->GetHeader() != newhdr) { in Process()
212 err = float_convert.Convert(inbuf, newhdr); in Process()
218 inbuf->Reference(); in Process()
[all …]
H A DAudioTypeSampleRate.cc75 AudioBuffer*& inbuf, // data buffer to process in Convert() argument
86 inhdr = inbuf->GetHeader(); in Convert()
87 length = inbuf->GetLength(); in Convert()
114 inbuf->SetHeader(outhdr); in Convert()
132 nsamps = resampler.filter((short *)inbuf->GetAddress(), in Convert()
133 (int)inbuf->GetHeader().Time_to_Samples(inbuf->GetLength()), in Convert()
153 inbuf->Reference(); in Convert()
154 inbuf->Dereference(); in Convert()
156 inbuf = outbuf; in Convert()
H A DAudioTypeChannel.cc68 AudioBuffer*& inbuf, // data buffer to process in Convert() argument
88 inhdr = inbuf->GetHeader(); in Convert()
89 length = inbuf->GetLength(); in Convert()
136 cin = (char *)inbuf->GetAddress(); in Convert()
153 sin = (short *)inbuf->GetAddress(); in Convert()
176 cin = (char *)inbuf->GetAddress(); in Convert()
190 if (outbuf != inbuf) in Convert()
196 inbuf->Reference(); in Convert()
197 inbuf->Dereference(); in Convert()
201 inbuf = outbuf; in Convert()
H A DAudioTypeMux.cc67 AudioBuffer*& inbuf, // data buffer to process in Convert() argument
88 inhdr = inbuf->GetHeader(); // Demux multi-channel data in Convert()
89 length = inbuf->GetLength(); in Convert()
91 multibuf = (AudioBuffer**) inbuf; // Mux multiple buffers in Convert()
145 in = (unsigned char *)inbuf->GetAddress(); in Convert()
160 inbuf->Reference(); in Convert()
161 inbuf->Dereference(); in Convert()
164 inbuf = (AudioBuffer*) multibuf; in Convert()
180 multibuf = (AudioBuffer**) inbuf; in Convert()
225 inbuf = outbuf; in Convert()
H A DAudioTypeG72X.cc97 AudioBuffer*& inbuf, // data buffer to process in Convert() argument
111 inhdr = inbuf->GetHeader(); in Convert()
112 length = inbuf->GetLength(); in Convert()
148 inptr = (unsigned char *)inbuf->GetAddress(); in Convert()
223 if (outbuf != inbuf) in Convert()
229 inbuf->Reference(); in Convert()
230 inbuf->Dereference(); in Convert()
234 inbuf = outbuf; in Convert()
H A DAudioTypePcm.cc211 AudioBuffer*& inbuf, // data buffer to process in Convert() argument
222 inhdr = inbuf->GetHeader(); in Convert()
223 length = inbuf->GetLength(); in Convert()
241 if (!inbuf->isReferenced() && in Convert()
243 outbuf = inbuf; in Convert()
256 inptr = inbuf->GetAddress(); in Convert()
474 if (outbuf != inbuf) in Convert()
480 if (outbuf == inbuf) { in Convert()
482 (void) inbuf->SetHeader(outhdr); in Convert()
485 inbuf->Reference(); in Convert()
[all …]
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Drsa.c74 u_char *inbuf, *outbuf; in rsa_public_encrypt() local
84 inbuf = xmalloc(ilen); in rsa_public_encrypt()
85 BN_bn2bin(in, inbuf); in rsa_public_encrypt()
87 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, in rsa_public_encrypt()
94 memset(inbuf, 0, ilen); in rsa_public_encrypt()
96 xfree(inbuf); in rsa_public_encrypt()
102 u_char *inbuf, *outbuf; in rsa_private_decrypt() local
109 inbuf = xmalloc(ilen); in rsa_private_decrypt()
110 BN_bn2bin(in, inbuf); in rsa_private_decrypt()
112 if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key, in rsa_private_decrypt()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_ja/
H A Dkiconv_ja.c325 _do_kiconv_fr_eucjp(void *kcd, char **inbuf, size_t *inbytesleft, in _do_kiconv_fr_eucjp() argument
339 if ((inbuf == NULL) || (*inbuf == NULL)) { in _do_kiconv_fr_eucjp()
343 ip = (uchar_t *)*inbuf; in _do_kiconv_fr_eucjp()
416 *inbuf = (char *)ip; in _do_kiconv_fr_eucjp()
427 _do_kiconv_to_eucjp(void *kcd, char **inbuf, size_t *inbytesleft, in _do_kiconv_to_eucjp() argument
443 if ((inbuf == NULL) || (*inbuf == NULL)) { in _do_kiconv_to_eucjp()
447 ip = (uchar_t *)*inbuf; in _do_kiconv_to_eucjp()
503 *inbuf = (char *)ip; in _do_kiconv_to_eucjp()
514 _do_kiconvstr_fr_eucjp(char *inbuf, size_t *inbytesleft, char *outbuf, in _do_kiconvstr_fr_eucjp() argument
529 if ((inbuf == NULL) || (*inbuf == NULL)) { in _do_kiconvstr_fr_eucjp()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/
H A Dhash_ef_generic.c69 char *inbuf = NULL; in k5_ef_mac() local
81 inbuf = (char *)malloc(inlen); in k5_ef_mac()
82 if (inbuf == NULL) in k5_ef_mac()
86 inbuf = input->data; in k5_ef_mac()
92 if (outbuf != NULL && inbuf != NULL) { in k5_ef_mac()
94 (void) memset(inbuf, 0, inlen); in k5_ef_mac()
95 (void) memcpy(inbuf, input->data, input->length); in k5_ef_mac()
98 (const mit_des_cblock *)inbuf, in k5_ef_mac()
108 if (inlen != input->length && inbuf != NULL) in k5_ef_mac()
109 free(inbuf); in k5_ef_mac()
/titanic_41/usr/src/cmd/geniconvtbl/
H A Dgeniconvtbl.c150 #define DISCARD(c) (((*inbuf) = (void *)((*inbuf) + (c))),\
152 #define GET(c) ((c) = **inbuf, (*inbuf)++, (*inbytesleft)--)
160 #define UPDATE_ARGS() (*inbuf = ip, \
272 const unsigned char **inbuf, in _icv_iconv() argument
289 if (NULL == inbuf) { in _icv_iconv()
291 inbuf = &ip; in _icv_iconv()
303 "outbuf=%p outbytesleft=%ld)\n", (NULL == inbuf) ? 0 : *inbuf, in _icv_iconv()
312 if ((NULL == inbuf) || (NULL == *inbuf)) { in _icv_iconv()
315 retval = eval_op_tbl(ist, hdr->op_reset_tbl, inbuf, in _icv_iconv()
338 retval = map_i_f(ist->direc, inbuf, inbytesleft, in _icv_iconv()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c72 static int8_t utf8_to_big5(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
74 static int8_t utf8_to_euctw(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
76 static int8_t utf8_to_cp950hkscs(uint32_t utf8, uchar_t **inbuf,
78 static int8_t utf8_to_big5hkscs(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
134 kiconv_fr_big5_common(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_big5_common() argument
153 if (inbuf == NULL || *inbuf == NULL) { in kiconv_fr_big5_common()
158 ib = (uchar_t *)*inbuf; in kiconv_fr_big5_common()
209 *inbuf = (char *)ib; in kiconv_fr_big5_common()
300 kiconv_fr_big5(void *kcd, char **inbuf, size_t *inbytesleft, char **outbuf, in kiconv_fr_big5() argument
303 return (kiconv_fr_big5_common(kcd, inbuf, inbytesleft, outbuf, in kiconv_fr_big5()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/isc/
H A Dctl_clnt.c94 struct ctl_buf inbuf; member
174 buffer_init(ctx->inbuf); in ctl_client()
373 if (allocated_p(ctx->inbuf)) in destroy()
374 ctl_bufput(&ctx->inbuf); in destroy()
501 if (!allocated_p(ctx->inbuf) && in readable()
502 ctl_bufget(&ctx->inbuf, ctx->logger) < 0) { in readable()
507 n = read(ctx->sock, ctx->inbuf.text + ctx->inbuf.used, in readable()
508 MAX_LINELEN - ctx->inbuf.used); in readable()
517 ctx->inbuf.used += n; in readable()
519 n, ctx->inbuf.used); in readable()
[all …]
H A Dctl_srvr.c94 struct ctl_buf inbuf; member
457 buffer_init(sess->inbuf); in ctl_accept()
509 if (allocated_p(sess->inbuf)) in ctl_close()
510 ctl_bufput(&sess->inbuf); in ctl_close()
532 sess->inbuf.used = 0; in ctl_start_read()
581 if (!allocated_p(sess->inbuf) && in ctl_readable()
582 ctl_bufget(&sess->inbuf, ctx->logger) < 0) { in ctl_readable()
588 n = read(sess->sock, sess->inbuf.text + sess->inbuf.used, in ctl_readable()
589 MAX_LINELEN - sess->inbuf.used); in ctl_readable()
597 sess->inbuf.used += n; in ctl_readable()
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dkiconv_ja.h119 #define KICONV_JA_CHECK_UTF8_BOM(inbuf, inleft) \ argument
121 *(inbuf) == 0xef && \
122 *((inbuf) + 1) == 0xbb && \
123 *((inbuf) + 2) == 0xbf) { \
124 (inbuf) += 3; \
129 #define KICONV_JA_CHECK_UTF8_BOM_WITHOUT_STATE(inbuf, inleft) \ argument
130 if ((inleft) >= 3 && *(inbuf) == 0xef && \
131 *((inbuf) + 1) == 0xbb && \
132 *((inbuf) + 2) == 0xbf) { \
133 (inbuf) += 3; \
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Drecvauth.c61 krb5_data inbuf; in recvauth_common() local
81 if ((retval = krb5_read_message(context, fd, &inbuf))) in recvauth_common()
83 if (strcmp(inbuf.data, sendauth_version)) { in recvauth_common()
86 krb5_xfree(inbuf.data); in recvauth_common()
94 if ((retval = krb5_read_message(context, fd, &inbuf))) in recvauth_common()
96 if (appl_version && strcmp(inbuf.data, appl_version)) { in recvauth_common()
101 *version = inbuf; in recvauth_common()
103 krb5_xfree(inbuf.data); in recvauth_common()
146 if ((retval = krb5_read_message(context, fd, &inbuf))) in recvauth_common()
172 problem = krb5_rd_req(context, auth_context, &inbuf, server, in recvauth_common()
[all …]
H A Dsendauth.c54 krb5_data inbuf, outbuf; in krb5_sendauth() local
187 if ((retval = krb5_read_message(context, fd, &inbuf)) != 0) in krb5_sendauth()
190 if (inbuf.length) { in krb5_sendauth()
193 if ((retval = krb5_rd_error(context, &inbuf, error)) != 0) { in krb5_sendauth()
194 krb5_xfree(inbuf.data); in krb5_sendauth()
199 krb5_xfree(inbuf.data); in krb5_sendauth()
210 if ((retval = krb5_read_message(context, fd, &inbuf)) != 0) in krb5_sendauth()
214 if ((retval = krb5_rd_rep(context, *auth_context, &inbuf, in krb5_sendauth()
218 krb5_xfree(inbuf.data); in krb5_sendauth()
222 krb5_xfree(inbuf.data); in krb5_sendauth()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dauth.c332 radix_encode(uchar_t *inbuf, uchar_t *outbuf, size_t buflen, in radix_encode() argument
341 inbuf[i] && inbuf[i] != radix_pad && (j < buflen); in radix_encode()
343 if ((p = strchr(radixN, inbuf[i])) == NULL) in radix_encode()
362 if (j == buflen && (inbuf[i] && inbuf[i] != radix_pad)) { in radix_encode()
369 if (strcmp((char *)&inbuf[i], "==")) in radix_encode()
374 if (strcmp((char *)&inbuf[i], "=")) in radix_encode()
382 outbuf[j++] = radixN[inbuf[i]>>2]; in radix_encode()
383 c = (inbuf[i]&3)<<4; in radix_encode()
386 outbuf[j++] = radixN[c|inbuf[i]>>4]; in radix_encode()
387 c = (inbuf[i]&15)<<2; in radix_encode()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_sc/
H A Dkiconv_sc.c51 static int8_t utf8_to_gb2312(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
53 static int8_t utf8_to_gbk(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
55 static int8_t utf8_to_gb18030(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
94 kiconv_to_gb18030(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_gb18030() argument
98 return kiconv_utf8_to_cck(kcd, inbuf, inbytesleft, outbuf, in kiconv_to_gb18030()
117 kiconv_fr_gb18030(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_gb18030() argument
136 if (inbuf == NULL || *inbuf == NULL) { in kiconv_fr_gb18030()
141 ib = (uchar_t *)*inbuf; in kiconv_fr_gb18030()
202 *inbuf = (char *)ib; in kiconv_fr_gb18030()
324 kiconv_to_gbk(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_gbk() argument
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_ko/
H A Dkiconv_ko.c48 static int8_t utf8_to_euckr(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
50 static int8_t utf8_to_uhc(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
85 kiconv_fr_euckr(void *kcd, char **inbuf, size_t *inbufleft, in kiconv_fr_euckr() argument
103 if (inbuf == NULL || *inbuf == NULL) { in kiconv_fr_euckr()
108 ib = (uchar_t *)*inbuf; in kiconv_fr_euckr()
159 *inbuf = (char *)ib; in kiconv_fr_euckr()
253 kiconv_fr_uhc(void *kcd, char **inbuf, size_t *inbufleft, in kiconv_fr_uhc() argument
271 if (inbuf == NULL || *inbuf == NULL) { in kiconv_fr_uhc()
276 ib = (uchar_t *)*inbuf; in kiconv_fr_uhc()
327 *inbuf = (char *)ib; in kiconv_fr_uhc()
[all …]
/titanic_41/usr/src/uts/sun4u/io/
H A Drmc_comm_dp.c736 pkt->inbuf = buf; in rmc_comm_dp_drecv()
746 (*pkt->inbuf != SYNC_CHAR) && in rmc_comm_dp_drecv()
747 (*pkt->inbuf != ESC_CHAR)) { in rmc_comm_dp_drecv()
751 (uchar_t)(*pkt->inbuf))); in rmc_comm_dp_drecv()
753 pkt->inbuf++; in rmc_comm_dp_drecv()
758 if (*pkt->inbuf == SYNC_CHAR) in rmc_comm_dp_drecv()
760 else if (*pkt->inbuf == ESC_CHAR) in rmc_comm_dp_drecv()
766 pkt->inbuf++; in rmc_comm_dp_drecv()
773 (*pkt->inbuf == SYNC_CHAR)) { in rmc_comm_dp_drecv()
774 pkt->inbuf++; in rmc_comm_dp_drecv()
[all …]
/titanic_41/usr/src/cmd/bnu/
H A Duudecode.c290 char inbuf[120], *ibp, *iptr; in decode() local
300 if (fgets(inbuf, sizeof (inbuf), in) == NULL) { in decode()
307 if (strcmp(inbuf, "end\n") == 0) { in decode()
311 n = DEC(inbuf[0]); in decode()
326 obp = (unsigned char *) &inbuf[0]; in decode()
327 ibp = &inbuf[1]; in decode()
350 (void) fwrite(inbuf, n, 1, out); in decode()
356 while ((fgets(inbuf, sizeof (inbuf), in)) != NULL) { in decode()
358 iptr = inbuf; in decode()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dread_msg.c34 krb5_read_message(krb5_context context, krb5_pointer fdp, krb5_data *inbuf) in krb5_read_message() argument
48 inbuf->length = ilen = (int) len; in krb5_read_message()
53 if (!(buf = malloc(inbuf->length))) { in krb5_read_message()
61 inbuf->data = buf; in krb5_read_message()
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Drules.c254 char inbuf[MAX_RULE_SZ]; in add_cmd_items() local
273 getcmd(str, inbuf); in add_cmd_items()
274 fd = popen(inbuf, "r"); in add_cmd_items()
277 fprintf(stderr, "%s\n", inbuf); in add_cmd_items()
343 static char inbuf[MAX_RULE_SZ]; in lex() local
353 space_left = sizeof (inbuf); in lex()
354 while ((err = fgets(&inbuf[len], space_left, fd)) != NULL) { in lex()
355 len = strlen(inbuf); in lex()
368 s = (char *)((int)inbuf + len); in lex()
380 s = inbuf; in lex()
/titanic_41/usr/src/lib/fm/libfmd_agent/common/
H A Dfmd_agent.c94 char *inbuf = NULL, *outbuf = NULL; in fmd_agent_nvl_ioctl() local
102 if ((inbuf = umem_alloc(insz, UMEM_DEFAULT)) == NULL) in fmd_agent_nvl_ioctl()
105 if ((err = nvlist_pack(innvl, &inbuf, &insz, in fmd_agent_nvl_ioctl()
107 umem_free(inbuf, insz); in fmd_agent_nvl_ioctl()
126 fid.fid_inbuf = inbuf; in fmd_agent_nvl_ioctl()
153 if (inbuf != NULL) in fmd_agent_nvl_ioctl()
154 umem_free(inbuf, insz); in fmd_agent_nvl_ioctl()
/titanic_41/usr/src/lib/libc/port/gen/
H A Diconv.c434 iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, in iconv() argument
445 inbuf, inbytesleft, outbuf, outbytesleft)); in iconv()
449 passthru_icv_iconv(iconv_t cd, const char **inbuf, size_t *inbufleft, in passthru_icv_iconv() argument
464 if (inbuf == NULL || *inbuf == NULL) in passthru_icv_iconv()
488 (void) memmove((void *)*outbuf, (const void *)*inbuf, len); in passthru_icv_iconv()
491 *inbuf = *inbuf + len; in passthru_icv_iconv()

1234