| /f-stack/app/redis-5.0.5/src/modules/ |
| H A D | helloworld.c | 511 long long padlen; in HelloLeftPad_RedisCommand() local 515 if ((RedisModule_StringToLongLong(argv[2],&padlen) != REDISMODULE_OK) || in HelloLeftPad_RedisCommand() 516 (padlen< 0)) { in HelloLeftPad_RedisCommand() 525 if (strlen >= (size_t)padlen) in HelloLeftPad_RedisCommand() 534 padlen -= strlen; in HelloLeftPad_RedisCommand() 535 char *buf = RedisModule_PoolAlloc(ctx,padlen+strlen); in HelloLeftPad_RedisCommand() 536 for (long long j = 0; j < padlen; j++) buf[j] = *ch; in HelloLeftPad_RedisCommand() 537 memcpy(buf+padlen,str,strlen); in HelloLeftPad_RedisCommand() 539 RedisModule_ReplyWithStringBuffer(ctx,buf,padlen+strlen); in HelloLeftPad_RedisCommand()
|
| /f-stack/freebsd/crypto/ |
| H A D | sha1.c | 191 size_t padlen; /*pad length in bytes*/ in sha1_pad() local 197 padlen = 64 - padstart; in sha1_pad() 198 if (padlen < 8) { in sha1_pad() 199 bzero(&ctxt->m.b8[padstart], padlen); in sha1_pad() 200 COUNT += padlen; in sha1_pad() 204 padlen = 64 - padstart; /* should be 64 */ in sha1_pad() 206 bzero(&ctxt->m.b8[padstart], padlen - 8); in sha1_pad() 207 COUNT += (padlen - 8); in sha1_pad()
|
| /f-stack/freebsd/opencrypto/ |
| H A D | rmd160.c | 140 uint32_t padlen; in RMD160Final() local 148 padlen = 64 - ((ctx->count/8) % 64); in RMD160Final() 149 if (padlen < 1 + 8) in RMD160Final() 150 padlen += 64; in RMD160Final() 151 RMD160Update(ctx, PADDING, padlen - 8); /* padlen - 8 <= 64 */ in RMD160Final()
|
| /f-stack/freebsd/mips/atheros/ar531x/ |
| H A D | if_are.c | 694 int padlen; in are_encap() local 722 padlen = ARE_MIN_FRAMELEN - m->m_pkthdr.len; in are_encap() 734 if (m->m_next != NULL || M_TRAILINGSPACE(m) < padlen) { in are_encap() 747 bzero(mtod(m, char *) + m->m_pkthdr.len, padlen); in are_encap() 748 m->m_pkthdr.len += padlen; in are_encap()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_ipsec.c | 579 uint32_t padlen; in setup_test_string_tunneled() local 586 padlen = RTE_ALIGN(t_len, 4) - t_len; in setup_test_string_tunneled() 587 t_len += padlen; in setup_test_string_tunneled() 590 .pad_len = padlen, in setup_test_string_tunneled() 618 rte_memcpy(dst, esp_pad_bytes, padlen); in setup_test_string_tunneled() 619 dst += padlen; in setup_test_string_tunneled()
|
| /f-stack/freebsd/arm/ti/cpsw/ |
| H A D | if_cpsw.c | 1859 int error, nsegs, seg, added = 0, padlen; in cpswp_tx_enqueue() local 1871 padlen = ETHER_MIN_LEN - ETHER_CRC_LEN - m0->m_pkthdr.len; in cpswp_tx_enqueue() 1872 if (padlen < 0) in cpswp_tx_enqueue() 1873 padlen = 0; in cpswp_tx_enqueue() 1874 else if (padlen > 0) in cpswp_tx_enqueue() 1875 m_append(slot->mbuf, padlen, sc->swsc->nullpad); in cpswp_tx_enqueue() 1912 nsegs, padlen)); in cpswp_tx_enqueue()
|
| /f-stack/freebsd/netinet/ |
| H A D | sctputil.c | 3099 sctp_add_pad_tombuf(struct mbuf *m, int padlen) in sctp_add_pad_tombuf() argument 3104 if (padlen > 3) { in sctp_add_pad_tombuf() 3107 if (padlen <= M_TRAILINGSPACE(m)) { in sctp_add_pad_tombuf() 3115 m_last = sctp_get_mbuf_for_msg(padlen, 0, M_NOWAIT, 1, MT_DATA); in sctp_add_pad_tombuf() 3124 SCTP_BUF_LEN(m_last) += padlen; in sctp_add_pad_tombuf() 3125 memset(dp, 0, padlen); in sctp_add_pad_tombuf()
|
| /f-stack/freebsd/net/ |
| H A D | iflib.c | 2710 int *pf_rv_ptr, flags, i, padlen; in assemble_segments() local 2744 padlen = ri->iri_pad; in assemble_segments() 2750 padlen = 0; in assemble_segments() 2761 m->m_data += padlen; in assemble_segments() 2762 ri->iri_len -= padlen; in assemble_segments()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | redis-cli.c | 5672 int namelen = strlen(def->name), padlen = padding - namelen; in clusterManagerCommandHelp() local 5674 for (j = 0; j < padlen; j++) fprintf(stderr, " "); in clusterManagerCommandHelp()
|