| /f-stack/dpdk/lib/librte_cmdline/ |
| H A D | cmdline_cirbuf.c | 79 memcpy(cbuf->buf + cbuf->end + !e, c, cbuf->maxlen - in cirbuf_add_buf_tail() 86 cbuf->end %= cbuf->maxlen; in cirbuf_add_buf_tail() 128 cbuf->buf[cbuf->end] = c; in __cirbuf_add_tail() 156 cbuf->buf[(cbuf->start+i)%cbuf->maxlen] = in __cirbuf_shift_left() 157 cbuf->buf[(cbuf->start+i+1)%cbuf->maxlen]; in __cirbuf_shift_left() 159 cbuf->buf[(cbuf->start-1+cbuf->maxlen)%cbuf->maxlen] = tmp; in __cirbuf_shift_left() 173 cbuf->buf[(cbuf->end+cbuf->maxlen-i)%cbuf->maxlen] = in __cirbuf_shift_right() 174 cbuf->buf[(cbuf->end+cbuf->maxlen-i-1)%cbuf->maxlen]; in __cirbuf_shift_right() 176 cbuf->buf[(cbuf->end+1)%cbuf->maxlen] = tmp; in __cirbuf_shift_right() 351 memcpy(c, cbuf->buf + cbuf->start , cbuf->maxlen - cbuf->start); in cirbuf_get_buf_head() [all …]
|
| H A D | cmdline_cirbuf.h | 82 int cirbuf_add_head_safe(struct cirbuf *cbuf, char c); 88 void cirbuf_add_head(struct cirbuf *cbuf, char c); 100 void cirbuf_add_tail(struct cirbuf *cbuf, char c); 106 int cirbuf_del_head_safe(struct cirbuf *cbuf); 112 void cirbuf_del_head(struct cirbuf *cbuf); 118 int cirbuf_del_tail_safe(struct cirbuf *cbuf); 124 void cirbuf_del_tail(struct cirbuf *cbuf); 130 char cirbuf_get_head(struct cirbuf *cbuf); 136 char cirbuf_get_tail(struct cirbuf *cbuf); 182 int cirbuf_align_left(struct cirbuf *cbuf); [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | ddt_zap.c | 61 uchar_t *cbuf; in ddt_zap_lookup() local 65 cbuf = kmem_alloc(sizeof (dde->dde_phys) + 1, KM_SLEEP); in ddt_zap_lookup() 76 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup() 82 kmem_free(cbuf, sizeof (dde->dde_phys) + 1); in ddt_zap_lookup() 97 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_update() local 100 csize = ddt_compress(dde->dde_phys, cbuf, in ddt_zap_update() 101 sizeof (dde->dde_phys), sizeof (cbuf)); in ddt_zap_update() 104 DDT_KEY_WORDS, 1, csize, cbuf, tx)); in ddt_zap_update() 134 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_walk() local 138 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_walk() [all …]
|
| H A D | zio.c | 1713 void *cbuf = zio_buf_alloc(lsize); in zio_write_compress() local 1714 psize = zio_compress_data(compress, zio->io_abd, cbuf, lsize, in zio_write_compress() 1718 zio_buf_free(cbuf, lsize); in zio_write_compress() 1724 cbuf, compress, lsize, psize); in zio_write_compress() 1728 zio_buf_free(cbuf, lsize); in zio_write_compress() 1748 zio_buf_free(cbuf, lsize); in zio_write_compress() 1751 abd_t *cdata = abd_get_from_buf(cbuf, lsize); in zio_write_compress()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_parse.c | 1449 cbuf += strlen(cbuf); in ng_unparse_composite() 1728 char *cbuf, *p; in ng_get_string_token() local 1738 if (cbuf == NULL) in ng_get_string_token() 1747 return (cbuf); in ng_get_string_token() 1816 char *cbuf; in ng_encode_string() local 1821 if (cbuf == NULL) in ng_encode_string() 1823 cbuf[off++] = '"'; in ng_encode_string() 1828 cbuf[off++] = 't'; in ng_encode_string() 1861 cbuf[off++] = '"'; in ng_encode_string() 1862 cbuf[off] = '\0'; in ng_encode_string() [all …]
|
| H A D | ng_ksocket.c | 313 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_ksocket_sockaddr_unparse() argument 331 slen += snprintf(cbuf, cbuflen, "local/%s", pathtoken); in ng_ksocket_sockaddr_unparse() 343 slen += snprintf(cbuf, cbuflen, "inet/%d.%d.%d.%d", in ng_ksocket_sockaddr_unparse() 349 slen += snprintf(cbuf + strlen(cbuf), in ng_ksocket_sockaddr_unparse() 350 cbuflen - strlen(cbuf), ":%d", in ng_ksocket_sockaddr_unparse() 366 data, off, cbuf, cbuflen); in ng_ksocket_sockaddr_unparse()
|
| /f-stack/freebsd/kern/ |
| H A D | tty_outq.c | 145 char *cbuf = buf; in ttyoutq_read() local 170 memcpy(cbuf, tob->tob_data + cbegin, clen); in ttyoutq_read() 171 cbuf += clen; in ttyoutq_read() 190 return (cbuf - (char *)buf); in ttyoutq_read() 282 const char *cbuf = buf; in ttyoutq_write() local 314 memcpy(tob->tob_data + boff, cbuf, l); in ttyoutq_write() 316 cbuf += l; in ttyoutq_write() 321 return (cbuf - (const char *)buf); in ttyoutq_write()
|
| H A D | tty_inq.c | 283 const char *cbuf = buf; in ttyinq_write() local 315 memcpy(tib->tib_data + boff, cbuf, l); in ttyinq_write() 320 cbuf += l; in ttyinq_write() 325 return (cbuf - (const char *)buf); in ttyinq_write()
|
| H A D | tty_ttydisc.c | 1100 const char *cbuf; in ttydisc_rint_simple() local 1105 for (cbuf = buf; len-- > 0; cbuf++) { in ttydisc_rint_simple() 1106 if (ttydisc_rint(tp, *cbuf, 0) != 0) in ttydisc_rint_simple() 1110 return (cbuf - (const char *)buf); in ttydisc_rint_simple()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | rio.c | 314 char cbuf[128]; in rioWriteBulkCount() local 317 cbuf[0] = prefix; in rioWriteBulkCount() 318 clen = 1+ll2string(cbuf+1,sizeof(cbuf)-1,count); in rioWriteBulkCount() 319 cbuf[clen++] = '\r'; in rioWriteBulkCount() 320 cbuf[clen++] = '\n'; in rioWriteBulkCount() 321 if (rioWrite(r,cbuf,clen) == 0) return 0; in rioWriteBulkCount()
|
| H A D | scripting.c | 74 sds cbuf; /* Debugger client command buffer. */ member 1569 ldb.cbuf = sdsempty(); in ldbInit() 1588 sdsfree(ldb.cbuf); in ldbEnable() 1589 ldb.cbuf = sdsempty(); in ldbEnable() 1837 if (sdslen(ldb.cbuf) == 0) return NULL; in ldbReplParseCommand() 1841 sds copy = sdsdup(ldb.cbuf); in ldbReplParseCommand() 2310 ldb.cbuf = sdscatlen(ldb.cbuf,buf,nread); in ldbRepl() 2314 sdsfree(ldb.cbuf); in ldbRepl() 2315 ldb.cbuf = sdsempty(); in ldbRepl()
|
| /f-stack/app/redis-5.0.5/deps/hiredis/ |
| H A D | read.c | 97 char cbuf[8], sbuf[128]; in __redisReaderSetErrorProtocolByte() local 99 chrtos(cbuf,sizeof(cbuf),byte); in __redisReaderSetErrorProtocolByte() 101 "Protocol error, got %s as reply type byte", cbuf); in __redisReaderSetErrorProtocolByte()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw_sockopt.c | 2921 struct rule_check_info rci, *ci, *cbuf; in add_rules() local 2930 cbuf = NULL; in add_rules() 3004 cbuf = &rci; in add_rules() 3006 cbuf = malloc(ctlv->count * sizeof(*ci), M_TEMP, in add_rules() 3008 ci = cbuf; in add_rules() 3049 if (cbuf != &rci) in add_rules() 3050 free(cbuf, M_TEMP); in add_rules() 3060 if (cbuf != NULL && cbuf != &rci) in add_rules() 3061 free(cbuf, M_TEMP); in add_rules() 3081 if (cbuf != NULL && cbuf != &rci) in add_rules() [all …]
|
| /f-stack/dpdk/drivers/net/ice/base/ |
| H A D | ice_common.c | 2186 void *cbuf; in ice_discover_dev_caps() local 2188 cbuf = ice_malloc(hw, ICE_AQ_MAX_BUF_LEN); in ice_discover_dev_caps() 2189 if (!cbuf) in ice_discover_dev_caps() 2198 status = ice_aq_list_caps(hw, cbuf, ICE_AQ_MAX_BUF_LEN, &cap_count, in ice_discover_dev_caps() 2201 ice_parse_dev_caps(hw, dev_caps, cbuf, cap_count); in ice_discover_dev_caps() 2202 ice_free(hw, cbuf); in ice_discover_dev_caps() 2220 void *cbuf; in ice_discover_func_caps() local 2222 cbuf = ice_malloc(hw, ICE_AQ_MAX_BUF_LEN); in ice_discover_func_caps() 2223 if (!cbuf) in ice_discover_func_caps() 2235 ice_parse_func_caps(hw, func_caps, cbuf, cap_count); in ice_discover_func_caps() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zpool/ |
| H A D | zpool_main.c | 2169 char rbuf[6], wbuf[6], cbuf[6]; in print_status_config() local 2230 zfs_nicenum(vs->vs_checksum_errors, cbuf, in print_status_config() 2231 sizeof (cbuf)); in print_status_config() 2237 printf_color(ccolor, "%5s", cbuf); in print_status_config()
|