Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 25 of 93) sorted by relevance

1234

/freebsd/sbin/nvmecontrol/modules/samsung/
H A Dsamsung.c69 char cbuf[UINT128_DIG + 1]; in print_samsung_extended_smart() local
136 uint128_to_str(to128(temp->luw), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
138 uint128_to_str(to128(temp->lnw), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
140 uint128_to_str(to128(temp->lur), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
150 uint128_to_str(to128(temp->poh), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
152 uint128_to_str(to128(temp->npoc), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
154 uint128_to_str(to128(temp->spoc), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
/freebsd/crypto/heimdal/lib/roken/
H A Dnet_read.c47 char *cbuf = (char *)buf; in net_read() local
52 count = read (fd, cbuf, rem); in net_read()
61 cbuf += count; in net_read()
72 char *cbuf = (char *)buf; in net_read() local
83 count = _read (sock, cbuf, rem); in net_read()
85 count = recv (sock, cbuf, rem, 0); in net_read()
93 count = _read (sock, cbuf, rem); in net_read()
96 count = recv (sock, cbuf, rem, 0); in net_read()
112 cbuf += count; in net_read()
H A Dnet_write.c47 const char *cbuf = (const char *)buf; in net_write() local
52 count = write (fd, cbuf, rem); in net_write()
59 cbuf += count; in net_write()
70 const char *cbuf = (const char *)buf; in net_write() local
80 count = _write (sock, cbuf, rem); in net_write()
82 count = send (sock, cbuf, rem, 0); in net_write()
90 count = _write (sock, cbuf, rem); in net_write()
93 count = send (sock, cbuf, rem, 0); in net_write()
101 cbuf += count; in net_write()
/freebsd/sys/netgraph/
H A Dng_parse.c1450 cbuf += strlen(cbuf); in ng_unparse_composite()
1729 char *cbuf, *p; in ng_get_string_token() local
1739 if (cbuf == NULL) in ng_get_string_token()
1748 return (cbuf); in ng_get_string_token()
1817 char *cbuf; in ng_encode_string() local
1822 if (cbuf == NULL) in ng_encode_string()
1824 cbuf[off++] = '"'; in ng_encode_string()
1829 cbuf[off++] = 't'; in ng_encode_string()
1862 cbuf[off++] = '"'; in ng_encode_string()
1863 cbuf[off] = '\0'; in ng_encode_string()
[all …]
/freebsd/usr.bin/tip/libacu/
H A Dbiz22.c56 char cbuf[40]; in biz_dialer() local
68 (void)strlcpy(cbuf, "\02.\r", sizeof cbuf); in biz_dialer()
69 cbuf[1] = *mod; in biz_dialer()
70 if (cmd(cbuf)) { in biz_dialer()
74 (void)snprintf(cbuf, sizeof(cbuf), "\02D%s\r", num); in biz_dialer()
75 write(FD, cbuf, strlen(cbuf)); in biz_dialer()
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dftpcmd.y56 char cbuf[64*1024]; variable
1135 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
1152 c = cbuf[cpos];
1154 strupr(cbuf);
1156 cbuf[cpos] = c;
1177 c = cbuf[cpos];
1181 cbuf[cpos] = c;
1248 c = cbuf[cpos];
1251 cbuf[cpos] = c;
1263 c = cbuf[cpos];
[all …]
H A Dftpcmd.c255 char cbuf[64*1024]; variable
3188 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
3205 c = cbuf[cpos];
3207 strupr(cbuf);
3209 cbuf[cpos] = c;
3230 c = cbuf[cpos];
3234 cbuf[cpos] = c;
3301 c = cbuf[cpos];
3304 cbuf[cpos] = c;
3316 c = cbuf[cpos];
[all …]
/freebsd/contrib/ntp/libntp/
H A Ddolfptoa.c23 u_char cbuf[24]; in dolfptoa() local
34 ZERO(cbuf); in dolfptoa()
42 cp = cpend = cpdec = &cbuf[10]; in dolfptoa()
43 for (dec = (int)(cp - cbuf); dec > 0 && fpi != 0; dec--) { in dolfptoa()
64 if ((size_t)dec > sizeof(cbuf) - (cpend - cbuf)) in dolfptoa()
65 dec = (int)(sizeof(cbuf) - (cpend - cbuf)); in dolfptoa()
98 for (dec = (int)(tp - cbuf); carry && dec > 0; dec--) { in dolfptoa()
H A Ddofptoa.c23 u_char cbuf[12]; in dofptoa() local
36 ZERO(cbuf); in dofptoa()
42 cp = cpend = &cbuf[5]; in dofptoa()
69 cpdec = &cbuf[8]; in dofptoa()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dddt_zap.c113 uchar_t *cbuf; in ddt_zap_lookup() local
125 cbuf = kmem_alloc(csize, KM_SLEEP); in ddt_zap_lookup()
128 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup()
130 ddt_zap_decompress(cbuf, phys, csize, psize); in ddt_zap_lookup()
132 kmem_free(cbuf, csize); in ddt_zap_lookup()
161 DDT_KEY_WORDS, 1, csize, cbuf, tx); in ddt_zap_update()
163 kmem_free(cbuf, cbuf_size); in ddt_zap_update()
202 uchar_t *cbuf = kmem_alloc(csize, KM_SLEEP); in ddt_zap_walk() local
205 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_walk()
208 ddt_zap_decompress(cbuf, phys, csize, psize); in ddt_zap_walk()
[all …]
/freebsd/libexec/bootpd/
H A Dgetether.c191 struct strbuf cbuf; local
227 cbuf.buf = tmpbuf;
228 cbuf.len = DL_ATTACH_REQ_SIZE;
229 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
234 cbuf.buf = tmpbuf;
235 cbuf.maxlen = sizeof(tmpbuf);
269 cbuf.buf = tmpbuf;
270 cbuf.len = DL_BIND_REQ_SIZE;
271 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
276 cbuf.buf = tmpbuf;
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_utils.c454 ocs_lock_init(NULL, &cbuf->cbuf_clock, "cbuf_c:%p", cbuf); in ocs_cbuf_alloc()
456 ocs_sem_init(&cbuf->cbuf_csem, 0, "cbuf:%p", cbuf); in ocs_cbuf_alloc()
457 ocs_sem_init(&cbuf->cbuf_psem, cbuf->entry_count, "cbuf:%p", cbuf); in ocs_cbuf_alloc()
465 return cbuf; in ocs_cbuf_alloc()
482 ocs_free(cbuf->os, cbuf->array, sizeof(*cbuf->array) * cbuf->entry_count); in ocs_cbuf_free()
486 ocs_free(cbuf->os, cbuf, sizeof(*cbuf)); in ocs_cbuf_free()
507 ret = cbuf->array[cbuf->cidx]; in ocs_cbuf_get()
508 if (unlikely(++cbuf->cidx >= cbuf->entry_count)) { in ocs_cbuf_get()
534 cbuf->array[cbuf->pidx] = elem; in ocs_cbuf_put()
535 if (unlikely(++cbuf->pidx >= cbuf->entry_count)) { in ocs_cbuf_put()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_bancomm.c489 char cbuf[7]; in get_datumtime() local
543 snprintf(cbuf, sizeof(cbuf), "%3.3x", in get_datumtime()
546 time_vme->day = (unsigned short)atoi(cbuf); in get_datumtime()
549 snprintf(cbuf, sizeof(cbuf), "%2.2x", in get_datumtime()
551 time_vme->hr = (unsigned short)atoi(cbuf); in get_datumtime()
554 snprintf(cbuf, sizeof(cbuf), "%2.2x", in get_datumtime()
556 time_vme->mn = (unsigned short)atoi(cbuf); in get_datumtime()
559 snprintf(cbuf, sizeof(cbuf), "%2.2x", in get_datumtime()
561 time_vme->sec = (unsigned short)atoi(cbuf); in get_datumtime()
566 snprintf(cbuf, sizeof(cbuf), "%4.4x%2.2x", in get_datumtime()
[all …]
/freebsd/libexec/ftpd/
H A Dftpcmd.y74 char cbuf[512]; variable
1276 n = get_line(cbuf, sizeof(cbuf)-1, stdin);
1298 c = cbuf[cpos];
1300 upper(cbuf);
1302 cbuf[cpos] = c;
1320 c = cbuf[cpos];
1324 cbuf[cpos] = c;
1386 c = cbuf[cpos];
1389 cbuf[cpos] = c;
1401 c = cbuf[cpos];
[all …]
/freebsd/stand/libofw/
H A Dofw_console.c72 char cbuf; in ofw_cons_putchar() local
75 cbuf = '\r'; in ofw_cons_putchar()
76 OF_write(stdout, &cbuf, 1); in ofw_cons_putchar()
79 cbuf = c; in ofw_cons_putchar()
80 OF_write(stdout, &cbuf, 1); in ofw_cons_putchar()
/freebsd/contrib/less/
H A Dcommand.c245 char *cbuf; in exec_mca() local
249 if (cbuf == NULL) in exec_mca()
268 while (*cbuf == '+' || *cbuf == ' ') in exec_mca()
269 cbuf++; in exec_mca()
272 if (*cbuf == '\0') in exec_mca()
282 match_brac(cbuf[0], cbuf[1], 1, (int) number); in exec_mca()
285 match_brac(cbuf[1], cbuf[0], 0, (int) number); in exec_mca()
291 edit_list(cbuf); in exec_mca()
305 if (*cbuf != '!') in exec_mca()
1218 char *cbuf; in commands() local
[all …]
/freebsd/sbin/nvmecontrol/
H A Dlogpage.c295 char cbuf[UINT128_DIG + 1]; in print_log_health() local
325 uint128_to_str(to128(health->data_units_read), cbuf, sizeof(cbuf))); in print_log_health()
327 uint128_to_str(to128(health->data_units_written), cbuf, sizeof(cbuf))); in print_log_health()
329 uint128_to_str(to128(health->host_read_commands), cbuf, sizeof(cbuf))); in print_log_health()
331 uint128_to_str(to128(health->host_write_commands), cbuf, sizeof(cbuf))); in print_log_health()
333 uint128_to_str(to128(health->controller_busy_time), cbuf, sizeof(cbuf))); in print_log_health()
335 uint128_to_str(to128(health->power_cycles), cbuf, sizeof(cbuf))); in print_log_health()
337 uint128_to_str(to128(health->power_on_hours), cbuf, sizeof(cbuf))); in print_log_health()
339 uint128_to_str(to128(health->unsafe_shutdowns), cbuf, sizeof(cbuf))); in print_log_health()
341 uint128_to_str(to128(health->media_errors), cbuf, sizeof(cbuf))); in print_log_health()
[all …]
/freebsd/sys/kern/
H A Dtty_outq.c142 char *cbuf = buf; in ttyoutq_read() local
167 memcpy(cbuf, tob->tob_data + cbegin, clen); in ttyoutq_read()
168 cbuf += clen; in ttyoutq_read()
187 return (cbuf - (char *)buf); in ttyoutq_read()
279 const char *cbuf = buf; in ttyoutq_write() local
311 memcpy(tob->tob_data + boff, cbuf, l); in ttyoutq_write()
313 cbuf += l; in ttyoutq_write()
318 return (cbuf - (const char *)buf); in ttyoutq_write()
/freebsd/contrib/nvi/vi/
H A Dvs_line.c48 CHAR_T *cbp, *ecbp, cbuf[128]; in vs_line() local
137 nlen = snprintf((char*)cbuf, in vs_line()
138 sizeof(cbuf), O_NUMBER_FMT, (u_long)smp->lno); in vs_line()
139 (void)gp->scr_addstr(sp, (char*)cbuf, nlen); in vs_line()
338 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1; in vs_line()
409 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ in vs_line()
410 cbp = cbuf; \ in vs_line()
472 if (cbp > cbuf) in vs_line()
/freebsd/crypto/heimdal/lib/krb5/
H A Dnet_write.c56 const char *cbuf = (const char *)buf; in krb5_net_write_block() local
85 count = send (fd, cbuf, rem, 0); in krb5_net_write_block()
101 count = write (fd, cbuf, rem); in krb5_net_write_block()
112 cbuf += count; in krb5_net_write_block()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_clock_gettime.c162 char name[128], cbuf[512], ctrbuf[10240]; in ATF_TC_BODY() local
163 size_t cbufsiz = sizeof(cbuf); in ATF_TC_BODY()
169 if (sysctlbyname(TC_HARDWARE, cbuf, &cbufsiz, NULL, 0) != 0) { in ATF_TC_BODY()
176 (void)printf("%s = %s\n", TC_HARDWARE, cbuf); in ATF_TC_BODY()
177 REQUIRE_LIBC(save = strdup(cbuf), NULL); in ATF_TC_BODY()
/freebsd/sys/dev/ofw/
H A Dofw_console.c225 char cbuf; in ofw_cnputc() local
228 cbuf = '\r'; in ofw_cnputc()
229 OF_write(stdout, &cbuf, 1); in ofw_cnputc()
232 cbuf = c; in ofw_cnputc()
233 OF_write(stdout, &cbuf, 1); in ofw_cnputc()
/freebsd/sys/powerpc/pseries/
H A Dphyp_console.c362 } cbuf; in uart_phyp_put() local
369 memcpy(&cbuf, buffer, bufsize); in uart_phyp_put()
376 cbuf.bytes[0] = VS_DATA_PACKET_HEADER; in uart_phyp_put()
377 cbuf.bytes[1] = 4 + bufsize; /* total length, max 16 bytes */ in uart_phyp_put()
378 cbuf.bytes[2] = (seqno >> 8) & 0xff; in uart_phyp_put()
379 cbuf.bytes[3] = seqno & 0xff; in uart_phyp_put()
380 memcpy(&cbuf.bytes[4], buffer, bufsize); in uart_phyp_put()
386 err = phyp_hcall(H_PUT_TERM_CHAR, sc->vtermid, len, htobe64(cbuf.u64[0]), in uart_phyp_put()
387 htobe64(cbuf.u64[1])); in uart_phyp_put()
/freebsd/contrib/bsnmp/snmpd/
H A Dtrans_udp.c226 char cbuf[CMSG_SPACE(sizeof(struct in_addr))]; in udp_send() local
239 msg.msg_control = cbuf; in udp_send()
240 msg.msg_controllen = sizeof(cbuf); in udp_send()
274 char cbuf[CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + in udp_recv() local
301 memset(cbuf, 0, sizeof(cbuf)); in udp_recv()
302 msg.msg_control = cbuf; in udp_recv()
303 msg.msg_controllen = sizeof(cbuf); in udp_recv()
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_recompress.c260 char *cbuf, *dbuf; in zstream_do_recompress() local
267 cbuf = dbuf; in zstream_do_recompress()
269 cbuf = safe_calloc(payload_size); in zstream_do_recompress()
272 (void) sfread(cbuf, payload_size, stdin); in zstream_do_recompress()
274 if (0 != dinfo->ci_decompress(cbuf, dbuf, in zstream_do_recompress()
285 free(cbuf); in zstream_do_recompress()

1234