/linux-master/tools/lib/ |
H A D | str_error_r.c | 21 char *str_error_r(int errnum, char *buf, size_t buflen) argument 23 int err = strerror_r(errnum, buf, buflen); 25 snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err);
|
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | utils.c | 5 void randomize_buffer(void *buf, size_t buflen) argument 8 size_t words = buflen / sizeof(int); 9 size_t leftover = buflen % sizeof(int); 11 if (!buflen) 20 memcpy(buf + buflen - leftover, &tmp, leftover);
|
/linux-master/tools/power/cpupower/lib/ |
H A D | cpupower_intern.h | 11 unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen); 12 unsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen);
|
/linux-master/lib/crypto/ |
H A D | poly1305.c | 24 desc->buflen = 0; 35 if (unlikely(desc->buflen)) { 36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen); 37 memcpy(desc->buf + desc->buflen, src, bytes); 40 desc->buflen += bytes; 42 if (desc->buflen == POLY1305_BLOCK_SIZE) { 45 desc->buflen = 0; 57 desc->buflen = nbytes; 65 if (unlikely(desc->buflen)) { 66 desc->buf[desc->buflen [all...] |
H A D | blake2s.c | 26 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; 31 memcpy(state->buf + state->buflen, in, fill); 33 state->buflen = 0; 43 memcpy(state->buf + state->buflen, in, inlen); 44 state->buflen += inlen; 52 memset(state->buf + state->buflen, 0, 53 BLAKE2S_BLOCK_SIZE - state->buflen); /* Padding */ 54 blake2s_compress(state, state->buf, 1, state->buflen);
|
/linux-master/arch/sparc/include/asm/ |
H A D | memctrl.h | 5 typedef int (*dimm_printer_t)(int synd_code, unsigned long paddr, char *buf, int buflen);
|
/linux-master/drivers/usb/storage/ |
H A D | protocol.h | 37 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **, 41 unsigned int buflen, struct scsi_cmnd *srb);
|
H A D | protocol.c | 117 * Copy a buffer of length buflen to/from the srb's transfer buffer. 122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, 141 while (sg_miter_next(&miter) && cnt < buflen) { 143 buflen - cnt); 170 unsigned int buflen, struct scsi_cmnd *srb) 175 buflen = min(buflen, scsi_bufflen(srb)); 176 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, 178 if (buflen < scsi_buffle 121 usb_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) argument 169 usb_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument [all...] |
/linux-master/fs/smb/server/ |
H A D | asn1.h | 17 int build_spnego_ntlmssp_neg_blob(unsigned char **pbuffer, u16 *buflen, 19 int build_spnego_ntlmssp_auth_blob(unsigned char **pbuffer, u16 *buflen,
|
/linux-master/net/sunrpc/ |
H A D | addr.c | 29 char *buf, const int buflen) 40 return snprintf(buf, buflen, "::"); 48 return snprintf(buf, buflen, "::1"); 57 return snprintf(buf, buflen, "::ffff:%pI4", 63 return snprintf(buf, buflen, "%pI6c", addr); 67 char *buf, const size_t buflen) 74 len = rpc_ntop6_noscopeid(sap, buf, buflen); 89 if (unlikely(len >= buflen)) 99 char *buf, const int buflen) 105 char *buf, const size_t buflen) 28 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) argument 66 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) argument 98 rpc_ntop6_noscopeid(const struct sockaddr *sap, char *buf, const int buflen) argument 104 rpc_ntop6(const struct sockaddr *sap, char *buf, const size_t buflen) argument 112 rpc_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) argument 129 rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) argument 142 rpc_pton4(const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 161 rpc_parse_scope_id(struct net *net, const char *buf, const size_t buflen, const char *delim, struct sockaddr_in6 *sin6) argument 199 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 222 rpc_pton6(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument 244 rpc_pton(struct net *net, const char *buf, const size_t buflen, struct sockaddr *sap, const size_t salen) argument [all...] |
/linux-master/security/keys/ |
H A D | compat_dh.c | 17 char __user *buffer, size_t buflen, 24 return __keyctl_dh_compute(params, buffer, buflen, NULL); 35 return __keyctl_dh_compute(params, buffer, buflen, &kdfcopy); 16 compat_keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct compat_keyctl_kdf_params __user *kdf) argument
|
H A D | dh.c | 95 char __user *buffer, size_t buflen, 101 size_t outbuf_len = roundup(buflen, crypto_shash_digestsize(hash)); 113 ret = buflen; 114 if (copy_to_user(buffer, outbuf, buflen) != 0) 123 char __user *buffer, size_t buflen, 140 if (!params || (!buffer && buflen)) { 157 if (buflen > KEYCTL_KDF_MAX_OUTPUT_LEN || 224 * When not using a KDF, buflen 0 is used to read the 227 if (buflen == 0) { 230 } else if (outlen > buflen) { 94 keyctl_dh_compute_kdf(struct crypto_shash *hash, char __user *buffer, size_t buflen, uint8_t *kbuf, size_t kbuflen) argument 122 __keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct keyctl_kdf_params *kdfcopy) argument 300 keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct keyctl_kdf_params __user *kdf) argument [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | u_midi.h | 25 unsigned int buflen; member in struct:f_midi_opts
|
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | debugfs.h | 14 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ 20 char buf[buflen] = {}; \ 29 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ 30 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ 38 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ 39 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
|
/linux-master/net/netfilter/ |
H A D | nf_nat_ftp.c | 34 char *buffer, size_t buflen, 40 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", 49 return snprintf(buffer, buflen, "|1|%pI4|%u|", 52 return snprintf(buffer, buflen, "|2|%pI6|%u|", 55 return snprintf(buffer, buflen, "|||%u|", port); 76 unsigned int buflen; local 95 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), 97 if (!buflen) 103 matchlen, buffer, buflen)) 33 nf_nat_ftp_fmt_cmd(struct nf_conn *ct, enum nf_ct_ftp_type type, char *buffer, size_t buflen, union nf_inet_addr *addr, u16 port) argument
|
/linux-master/arch/mips/crypto/ |
H A D | poly1305-glue.c | 27 dctx->buflen = 0; 35 dctx->buflen = 0; 75 if (unlikely(dctx->buflen)) { 76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); 78 memcpy(dctx->buf + dctx->buflen, src, bytes); 81 dctx->buflen += bytes; 83 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 85 dctx->buflen = 0; 96 dctx->buflen = len; 105 if (unlikely(dctx->buflen)) { [all...] |
/linux-master/arch/arm64/crypto/ |
H A D | poly1305-glue.c | 35 dctx->buflen = 0; 43 dctx->buflen = 0; 84 if (unlikely(dctx->buflen)) { 85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); 87 memcpy(dctx->buf + dctx->buflen, src, bytes); 90 dctx->buflen += bytes; 92 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 95 dctx->buflen = 0; 106 dctx->buflen = len; 128 if (unlikely(dctx->buflen)) { [all...] |
/linux-master/fs/nfs/ |
H A D | nfs42.h | 44 void *buf, size_t buflen); 46 const void *buf, size_t buflen, int flags); 48 size_t buflen, u64 *cookiep, bool *eofp); 52 * Maximum XDR buffer size needed for a listxattr buffer of buflen size. 61 static inline u32 nfs42_listxattr_xdrsize(u32 buflen) argument 63 u32 size = 8 * buflen / (XATTR_USER_PREFIX_LEN + 2) + 4;
|
/linux-master/drivers/scsi/esas2r/ |
H A D | esas2r_log.c | 130 size_t buflen = EVENT_LOG_BUFF_SIZE; local 138 memset(buffer, 0, buflen); 147 snprintf(buffer, buflen, fmt_nodev, slevel, 150 snprintf(buffer, buflen, fmt_dev, slevel, 158 buflen -= strlen(event_buffer); 160 retval = vsnprintf(buffer, buflen, format, args);
|
/linux-master/drivers/media/usb/as102/ |
H A D | as10x_handle.h | 20 unsigned char *buf, int buflen, int swap32); 23 unsigned char *buf, int buflen);
|
/linux-master/include/crypto/internal/ |
H A D | blake2b.h | 29 const size_t fill = BLAKE2B_BLOCK_SIZE - state->buflen; 34 memcpy(state->buf + state->buflen, in, fill); 36 state->buflen = 0; 47 memcpy(state->buf + state->buflen, in, inlen); 48 state->buflen += inlen; 57 memset(state->buf + state->buflen, 0, 58 BLAKE2B_BLOCK_SIZE - state->buflen); /* Padding */ 59 (*compress)(state, state->buf, 1, state->buflen);
|
/linux-master/drivers/md/dm-vdo/ |
H A D | errors.h | 63 const char * __must_check uds_string_error(int errnum, char *buf, size_t buflen); 65 const char *uds_string_error_name(int errnum, char *buf, size_t buflen);
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | fwil.c | 168 char *buf, u32 buflen) 174 if ((len + datalen) > buflen) 193 u32 buflen; local 201 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, 203 if (buflen) { 205 buflen, true); 222 u32 buflen; local 226 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, 228 if (buflen) { 230 buflen, fals 167 brcmf_create_iovar(const char *name, const char *data, u32 datalen, char *buf, u32 buflen) argument 249 brcmf_create_bsscfg(s32 bsscfgidx, const char *name, char *data, u32 datalen, char *buf, u32 buflen) argument 299 u32 buflen; local 329 u32 buflen; local 354 brcmf_create_xtlv(const char *name, u16 id, char *data, u32 len, char *buf, u32 buflen) argument 380 u32 buflen; local 409 u32 buflen; local [all...] |
/linux-master/arch/arm/crypto/ |
H A D | poly1305-glue.c | 39 dctx->buflen = 0; 47 dctx->buflen = 0; 88 if (unlikely(dctx->buflen)) { 89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); 91 memcpy(dctx->buf + dctx->buflen, src, bytes); 94 dctx->buflen += bytes; 96 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 99 dctx->buflen = 0; 110 dctx->buflen = len; 145 if (unlikely(dctx->buflen)) { [all...] |
/linux-master/arch/powerpc/crypto/ |
H A D | poly1305-p10-glue.c | 42 dctx->buflen = 0; 83 if (unlikely(dctx->buflen)) { 84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); 85 memcpy(dctx->buf + dctx->buflen, src, bytes); 88 dctx->buflen += bytes; 90 if (dctx->buflen == POLY1305_BLOCK_SIZE) { 98 dctx->buflen = 0; 126 dctx->buflen = srclen; 140 if ((dctx->buflen)) { 141 dctx->buf[dctx->buflen [all...] |