/linux-4.4.14/net/sunrpc/ |
D | addr.c | 28 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument 39 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid() 47 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid() 56 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid() 62 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid() 66 char *buf, const size_t buflen) in rpc_ntop6() argument 73 len = rpc_ntop6_noscopeid(sap, buf, buflen); in rpc_ntop6() 88 if (unlikely(len > buflen)) in rpc_ntop6() 98 char *buf, const int buflen) in rpc_ntop6_noscopeid() argument 104 char *buf, const size_t buflen) in rpc_ntop6() argument [all …]
|
D | xdr.c | 138 unsigned int buflen = head->iov_len; in xdr_inline_pages() local 147 tail->iov_len = buflen - offset; in xdr_inline_pages() 149 xdr->buflen += len; in xdr_inline_pages() 376 buf->buflen -= len; in xdr_shrink_bufhead() 378 if (buf->len > buf->buflen) in xdr_shrink_bufhead() 379 buf->len = buf->buflen; in xdr_shrink_bufhead() 402 tailbuf_len = buf->buflen - buf->head->iov_len - buf->page_len; in xdr_shrink_pagelen() 424 buf->buflen -= len; in xdr_shrink_pagelen() 426 if (buf->len > buf->buflen) in xdr_shrink_pagelen() 427 buf->len = buf->buflen; in xdr_shrink_pagelen() [all …]
|
D | clnt.c | 1141 struct sockaddr *buf, int buflen) in rpc_sockname() argument 1179 err = kernel_getsockname(sock, buf, &buflen); in rpc_sockname() 1206 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr() argument 1210 if (buflen < sizeof(rpc_inaddr_loopback)) in rpc_anyaddr() 1216 if (buflen < sizeof(rpc_in6addr_loopback)) in rpc_anyaddr() 1245 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr() argument 1262 err = rpc_sockname(net, sap, salen, buf, buflen); in rpc_localaddr() 1266 return rpc_anyaddr(sap->sa_family, buf, buflen); in rpc_localaddr() 1644 buf->buflen = len; in rpc_xdr_buf_init()
|
/linux-4.4.14/net/mac80211/ |
D | debugfs_netdev.c | 73 int buflen) \ 75 return scnprintf(buf, buflen, format_string, sdata->field); \ 89 char *buf, int buflen) \ 94 p += scnprintf(p, buflen + buf - p, "%.2x ", \ 97 p += scnprintf(p, buflen + buf - p, "\n"); \ 104 char *buf, int buflen) \ 106 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\ 112 int buflen) \ 114 return scnprintf(buf, buflen, "%pM\n", sdata->field); \ 120 char *buf, int buflen) \ [all …]
|
D | debugfs.c | 190 int buflen)) in format_devstat_counter() argument 207 char *buf, int buflen) \ 209 return scnprintf(buf, buflen, "%u\n", stats->name); \
|
/linux-4.4.14/drivers/usb/storage/ |
D | protocol.c | 135 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument 154 while (sg_miter_next(&miter) && cnt < buflen) { in usb_stor_access_xfer_buf() 156 buflen - cnt); in usb_stor_access_xfer_buf() 182 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument 187 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf() 188 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf() 190 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf() 191 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
|
D | protocol.h | 52 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **, 56 unsigned int buflen, struct scsi_cmnd *srb);
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
D | fwil.c | 198 char *buf, u32 buflen) in brcmf_create_iovar() argument 204 if ((len + datalen) > buflen) in brcmf_create_iovar() 223 u32 buflen; in brcmf_fil_iovar_data_set() local 231 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_set() 233 if (buflen) { in brcmf_fil_iovar_data_set() 235 buflen, true); in brcmf_fil_iovar_data_set() 251 u32 buflen; in brcmf_fil_iovar_data_get() local 255 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_get() 257 if (buflen) { in brcmf_fil_iovar_data_get() 259 buflen, false); in brcmf_fil_iovar_data_get() [all …]
|
D | fwil_types.h | 332 u32 buflen; member 346 __le32 buflen; member
|
/linux-4.4.14/security/tomoyo/ |
D | realpath.c | 93 const int buflen) in tomoyo_get_absolute_path() argument 96 if (buflen >= 256) { in tomoyo_get_absolute_path() 98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path() 102 buffer[buflen - 2] = '/'; in tomoyo_get_absolute_path() 103 buffer[buflen - 1] = '\0'; in tomoyo_get_absolute_path() 122 const int buflen) in tomoyo_get_dentry_path() argument 125 if (buflen >= 256) { in tomoyo_get_dentry_path() 126 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path() 130 buffer[buflen - 2] = '/'; in tomoyo_get_dentry_path() 131 buffer[buflen - 1] = '\0'; in tomoyo_get_dentry_path() [all …]
|
/linux-4.4.14/block/partitions/ |
D | ldm.c | 687 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument 691 if (!buffer || offset < 0 || base > buflen) { in ldm_relative() 696 if (base > buflen) in ldm_relative() 697 ldm_error("base (%d) > buflen (%d)", base, buflen); in ldm_relative() 700 if (base + buffer[base] >= buflen) { in ldm_relative() 702 buffer[base], buflen); in ldm_relative() 758 static int ldm_get_vstr (const u8 *block, u8 *buffer, int buflen) in ldm_get_vstr() argument 765 if (length >= buflen) { in ldm_get_vstr() 766 ldm_error ("Truncating string %d -> %d.", length, buflen); in ldm_get_vstr() 767 length = buflen - 1; in ldm_get_vstr() [all …]
|
/linux-4.4.14/net/netfilter/ |
D | nf_nat_ftp.c | 30 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument 36 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd() 45 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd() 48 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd() 51 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd() 72 unsigned int buflen; in nf_nat_ftp() local 104 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp() 106 if (!buflen) in nf_nat_ftp() 112 matchlen, buffer, buflen)) in nf_nat_ftp()
|
D | nf_nat_sip.c | 36 const char *buffer, unsigned int buflen) in mangle_packet() argument 50 buffer, buflen, false)) in mangle_packet() 58 buffer, buflen)) in mangle_packet() 64 *datalen += buflen - matchlen; in mangle_packet() 101 unsigned int buflen; in map_addr() local 120 buflen = sip_sprintf_addr_port(ct, buffer, &newaddr, ntohs(newport)); in map_addr() 122 matchoff, matchlen, buffer, buflen); in map_addr() 180 unsigned int olen, matchend, poff, plen, buflen, n; in nf_nat_sip() local 213 buflen = sip_sprintf_addr(ct, buffer, in nf_nat_sip() 217 poff, plen, buffer, buflen)) { in nf_nat_sip() [all …]
|
/linux-4.4.14/fs/afs/ |
D | cache.c | 16 void *buffer, uint16_t buflen); 18 void *buffer, uint16_t buflen); 21 uint16_t buflen); 24 void *buffer, uint16_t buflen); 26 void *buffer, uint16_t buflen); 28 void *cookie_netfs_data, const void *buffer, uint16_t buflen); 31 void *buffer, uint16_t buflen); 34 void *buffer, uint16_t buflen); 38 void *buffer, uint16_t buflen); 41 uint16_t buflen); [all …]
|
/linux-4.4.14/fs/9p/ |
D | vfs_dir.c | 95 static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) in v9fs_alloc_rdir_buf() argument 99 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf() 116 int buflen; in v9fs_dir_readdir() local 124 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 126 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir() 130 kvec.iov_len = buflen; in v9fs_dir_readdir() 136 iov_iter_kvec(&to, READ | ITER_KVEC, &kvec, 1, buflen); in v9fs_dir_readdir() 180 int buflen; in v9fs_dir_readdir_dotl() local 187 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl() 189 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir_dotl() [all …]
|
D | cache.c | 128 void *buffer, uint16_t buflen) in v9fs_cache_inode_get_aux() argument 140 uint16_t buflen) in v9fs_cache_inode_check_aux() argument 144 if (buflen != sizeof(v9inode->qid.version)) in v9fs_cache_inode_check_aux()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | debugfs.h | 73 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument 79 char buf[buflen] = {}; \ 88 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument 89 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ 97 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument 98 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
|
/linux-4.4.14/fs/romfs/ |
D | storage.c | 28 void *buf, size_t buflen) in romfs_mtd_read() argument 33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read() 34 return (ret < 0 || rlen != buflen) ? -EIO : 0; in romfs_mtd_read() 108 void *buf, size_t buflen) in romfs_blk_read() argument 115 while (buflen > 0) { in romfs_blk_read() 117 segment = min_t(size_t, buflen, ROMBSIZE - offset); in romfs_blk_read() 124 buflen -= segment; in romfs_blk_read() 219 void *buf, size_t buflen) in romfs_dev_read() argument 226 if (buflen > limit - pos) in romfs_dev_read() 227 buflen = limit - pos; in romfs_dev_read() [all …]
|
D | internal.h | 43 void *buf, size_t buflen);
|
/linux-4.4.14/security/apparmor/ |
D | path.c | 30 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument 32 buflen -= namelen; in prepend() 33 if (buflen < 0) in prepend() 56 static int d_namespace_path(struct path *path, char *buf, int buflen, in d_namespace_path() argument 65 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path() 85 res = __d_path(path, &root, buf, buflen); in d_namespace_path() 88 res = d_absolute_path(path, buf, buflen); in d_namespace_path() 100 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path()
|
/linux-4.4.14/drivers/scsi/esas2r/ |
D | esas2r_log.c | 125 size_t buflen = EVENT_LOG_BUFF_SIZE; in esas2r_log_master() local 138 memset(buffer, 0, buflen); in esas2r_log_master() 147 snprintf(buffer, buflen, fmt_nodev, slevel, in esas2r_log_master() 150 snprintf(buffer, buflen, fmt_dev, slevel, in esas2r_log_master() 158 buflen -= strlen(event_buffer); in esas2r_log_master() 160 retval = vsnprintf(buffer, buflen, format, args); in esas2r_log_master()
|
/linux-4.4.14/tools/perf/util/ |
D | target.c | 116 char *buf, size_t buflen) in target__strerror() argument 121 BUG_ON(buflen == 0); in target__strerror() 124 const char *err = strerror_r(errnum, buf, buflen); in target__strerror() 127 scnprintf(buf, buflen, "%s", err); in target__strerror() 141 snprintf(buf, buflen, "%s", msg); in target__strerror() 146 snprintf(buf, buflen, msg, target->uid_str); in target__strerror()
|
D | target.h | 49 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen);
|
D | probe-event.c | 1739 char **buf, size_t *buflen, in __synthesize_probe_trace_arg_ref() argument 1745 buflen, depth + 1); in __synthesize_probe_trace_arg_ref() 1750 ret = e_snprintf(*buf, *buflen, "%+ld(", ref->offset); in __synthesize_probe_trace_arg_ref() 1755 *buflen -= ret; in __synthesize_probe_trace_arg_ref() 1763 char *buf, size_t buflen) in synthesize_probe_trace_arg() argument 1771 ret = e_snprintf(buf, buflen, " %s=", arg->name); in synthesize_probe_trace_arg() 1773 ret = e_snprintf(buf, buflen, " "); in synthesize_probe_trace_arg() 1777 buflen -= ret; in synthesize_probe_trace_arg() 1786 &buflen, 1); in synthesize_probe_trace_arg() 1793 ret = e_snprintf(buf, buflen, "%s%+ld", arg->value, in synthesize_probe_trace_arg() [all …]
|
D | dso.c | 1336 int dso__strerror_load(struct dso *dso, char *buf, size_t buflen) in dso__strerror_load() argument 1350 BUG_ON(buflen == 0); in dso__strerror_load() 1353 const char *err = strerror_r(errnum, buf, buflen); in dso__strerror_load() 1356 scnprintf(buf, buflen, "%s", err); in dso__strerror_load() 1365 scnprintf(buf, buflen, "%s", dso_load__error_str[idx]); in dso__strerror_load()
|
/linux-4.4.14/arch/powerpc/boot/ |
D | devtree.c | 207 int naddr, int nsize, int buflen) in find_range() argument 212 for (i = 0; i + nrange <= buflen; i += nrange) { in find_range() 240 int buflen, offset; in dt_xlate() local 276 buflen = getprop(node, "ranges", prop_buf, in dt_xlate() 278 if (buflen == 0) in dt_xlate() 280 if (buflen < 0 || buflen > sizeof(prop_buf)) in dt_xlate() 284 naddr, prev_nsize, buflen / 4); in dt_xlate() 325 int dt_xlate_addr(void *node, u32 *buf, int buflen, unsigned long *xlated_addr) in dt_xlate_addr() argument 328 if (buflen > sizeof(prop_buf)) in dt_xlate_addr() 331 memcpy(prop_buf, buf, buflen); in dt_xlate_addr() [all …]
|
D | ops.h | 40 const int buflen); 42 const void *buf, const int buflen); 96 int dt_xlate_addr(void *node, u32 *buf, int buflen, unsigned long *xlated_addr); 106 static inline int getprop(void *devp, const char *name, void *buf, int buflen) in getprop() argument 108 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1; in getprop() 112 const void *buf, int buflen) in setprop() argument 114 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1; in setprop()
|
D | oflib.c | 214 const int buflen) in of_getprop() argument 216 return of_call_prom("getprop", 4, 1, phandle, name, buf, buflen); in of_getprop() 220 const int buflen) in of_setprop() argument 222 return of_call_prom("setprop", 4, 1, phandle, name, buf, buflen); in of_setprop()
|
D | of.h | 17 const int buflen); 19 const int buflen);
|
D | libfdt-wrapper.c | 82 void *buf, const int buflen) in fdt_wrapper_getprop() argument 90 memcpy(buf, p, min(len, buflen)); in fdt_wrapper_getprop()
|
/linux-4.4.14/drivers/media/usb/uvc/ |
D | uvc_driver.c | 333 __u32 **intervals, unsigned char *buffer, int buflen) in uvc_parse_format() argument 352 if (buflen < n) { in uvc_parse_format() 400 if (buflen < 11) { in uvc_parse_format() 416 if (buflen < 9) { in uvc_parse_format() 473 buflen -= buffer[0]; in uvc_parse_format() 479 while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE && in uvc_parse_format() 483 n = buflen > 25 ? buffer[25] : 0; in uvc_parse_format() 485 n = buflen > 21 ? buffer[21] : 0; in uvc_parse_format() 489 if (buflen < 26 + 4*n) { in uvc_parse_format() 560 buflen -= buffer[0]; in uvc_parse_format() [all …]
|
/linux-4.4.14/drivers/hv/ |
D | ring_buffer.c | 348 void *buffer, u32 buflen) in hv_ringbuffer_init() argument 364 ring_info->ring_size = buflen; in hv_ringbuffer_init() 365 ring_info->ring_datasize = buflen - sizeof(struct hv_ring_buffer); in hv_ringbuffer_init() 465 void *Buffer, u32 buflen) in hv_ringbuffer_peek() argument 479 if (bytes_avail_toread < buflen) { in hv_ringbuffer_peek() 491 buflen, in hv_ringbuffer_peek() 508 u32 buflen, u32 offset, bool *signal) in hv_ringbuffer_read() argument 516 if (buflen <= 0) in hv_ringbuffer_read() 526 if (bytes_avail_toread < buflen) { in hv_ringbuffer_read() 537 buflen, in hv_ringbuffer_read()
|
D | hyperv_vmbus.h | 609 u32 buflen); 618 u32 buflen); 622 u32 buflen, 737 int vmbus_post_msg(void *buffer, size_t buflen);
|
D | connection.c | 427 int vmbus_post_msg(void *buffer, size_t buflen) in vmbus_post_msg() argument 443 ret = hv_post_message(conn_id, 1, buffer, buflen); in vmbus_post_msg()
|
/linux-4.4.14/security/integrity/ima/ |
D | ima_template_lib.c | 39 u32 buflen = datalen; in ima_write_template_field_data() local 42 buflen = datalen + 1; in ima_write_template_field_data() 44 buf = kzalloc(buflen, GFP_KERNEL); in ima_write_template_field_data() 64 field_data->len = buflen; in ima_write_template_field_data() 74 u32 buflen = field_data->len; in ima_show_template_data_ascii() local 78 buf_ptr = strnchr(field_data->data, buflen, ':'); in ima_show_template_data_ascii() 84 buflen -= buf_ptr - field_data->data; in ima_show_template_data_ascii() 87 if (!buflen) in ima_show_template_data_ascii() 89 ima_print_digest(m, buf_ptr, buflen); in ima_show_template_data_ascii()
|
/linux-4.4.14/lib/ |
D | scatterlist.c | 153 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one() argument 156 sg_set_buf(sg, buf, buflen); in sg_init_one() 650 size_t buflen, off_t skip, bool to_buffer) in sg_copy_buffer() argument 669 while (sg_miter_next(&miter) && offset < buflen) { in sg_copy_buffer() 672 len = min(miter.length, buflen - offset); in sg_copy_buffer() 700 const void *buf, size_t buflen) in sg_copy_from_buffer() argument 702 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, 0, false); in sg_copy_from_buffer() 717 void *buf, size_t buflen) in sg_copy_to_buffer() argument 719 return sg_copy_buffer(sgl, nents, buf, buflen, 0, true); in sg_copy_to_buffer() 735 const void *buf, size_t buflen, off_t skip) in sg_pcopy_from_buffer() argument [all …]
|
D | kobject_uevent.c | 133 len = strlcpy(&env->buf[env->buflen], subsystem, in init_uevent_argv() 134 sizeof(env->buf) - env->buflen); in init_uevent_argv() 135 if (len >= (sizeof(env->buf) - env->buflen)) { in init_uevent_argv() 141 env->argv[1] = &env->buf[env->buflen]; in init_uevent_argv() 144 env->buflen += len + 1; in init_uevent_argv() 300 skb = alloc_skb(len + env->buflen, GFP_KERNEL); in kobject_uevent_env() 397 len = vsnprintf(&env->buf[env->buflen], in add_uevent_var() 398 sizeof(env->buf) - env->buflen, in add_uevent_var() 402 if (len >= (sizeof(env->buf) - env->buflen)) { in add_uevent_var() 407 env->envp[env->envp_idx++] = &env->buf[env->buflen]; in add_uevent_var() [all …]
|
D | bitmap.c | 358 int __bitmap_parse(const char *buf, unsigned int buflen, in __bitmap_parse() argument 374 while (buflen) { in __bitmap_parse() 382 buflen--; in __bitmap_parse() 423 } while (buflen && c == ','); in __bitmap_parse() 504 static int __bitmap_parselist(const char *buf, unsigned int buflen, in __bitmap_parselist() argument 522 while (buflen) { in __bitmap_parselist() 529 buflen--; in __bitmap_parselist() 579 } while (buflen && c == ','); in __bitmap_parselist()
|
/linux-4.4.14/fs/nfs/ |
D | namespace.c | 50 char *nfs_path(char **p, struct dentry *dentry, char *buffer, ssize_t buflen, in nfs_path() argument 59 end = buffer+buflen; in nfs_path() 61 buflen--; in nfs_path() 70 buflen -= namelen + 1; in nfs_path() 71 if (buflen < 0) in nfs_path() 85 if (--buflen < 0) { in nfs_path() 106 buflen -= namelen; in nfs_path() 107 if (buflen < 0) { in nfs_path()
|
D | nfs4namespace.c | 33 char *buffer, ssize_t buflen) in nfs4_pathname_string() argument 35 char *end = buffer + buflen; in nfs4_pathname_string() 39 buflen--; in nfs4_pathname_string() 44 buflen -= component->len + 1; in nfs4_pathname_string() 45 if (buflen < 0) in nfs4_pathname_string() 83 static char *nfs4_path(struct dentry *dentry, char *buffer, ssize_t buflen) in nfs4_path() argument 86 char *path = nfs_path(&limit, dentry, buffer, buflen, in nfs4_path()
|
D | nfs4idmap.c | 171 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string() argument 173 return snprintf(buf, buflen, "%u", id); in nfs_map_numeric_to_string() 340 size_t buflen, struct idmap *idmap) in nfs_idmap_lookup_name() argument 347 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name() 750 int nfs_map_uid_to_name(const struct nfs_server *server, kuid_t uid, char *buf, size_t buflen) in nfs_map_uid_to_name() argument 758 ret = nfs_idmap_lookup_name(id, "user", buf, buflen, idmap); in nfs_map_uid_to_name() 760 ret = nfs_map_numeric_to_string(id, buf, buflen); in nfs_map_uid_to_name() 764 int nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) in nfs_map_gid_to_group() argument 772 ret = nfs_idmap_lookup_name(id, "group", buf, buflen, idmap); in nfs_map_gid_to_group() 774 ret = nfs_map_numeric_to_string(id, buf, buflen); in nfs_map_gid_to_group()
|
D | dns_resolve.c | 219 static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) in nfs_dns_parse() argument 227 if (buf[buflen-1] != '\n') in nfs_dns_parse() 229 buf[buflen-1] = '\0'; in nfs_dns_parse()
|
D | nfs4proc.c | 4605 static int buf_to_pages_noslab(const void *buf, size_t buflen, in buf_to_pages_noslab() argument 4614 len = min_t(size_t, PAGE_SIZE, buflen); in buf_to_pages_noslab() 4621 buflen -= len; in buf_to_pages_noslab() 4624 } while (buflen != 0); in buf_to_pages_noslab() 4655 static inline ssize_t nfs4_read_cached_acl(struct inode *inode, char *buf, size_t buflen) in nfs4_read_cached_acl() argument 4670 if (acl->len > buflen) in nfs4_read_cached_acl() 4683 size_t buflen = sizeof(*acl) + acl_len; in nfs4_write_cached_acl() local 4685 if (buflen <= PAGE_SIZE) { in nfs4_write_cached_acl() 4686 acl = kmalloc(buflen, GFP_KERNEL); in nfs4_write_cached_acl() 4712 static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t buflen) in __nfs4_get_acl_uncached() argument [all …]
|
D | internal.h | 416 char *buffer, ssize_t buflen, unsigned flags); 560 char *buffer, ssize_t buflen) in nfs_devname() argument 563 return nfs_path(&dummy, dentry, buffer, buflen, NFS_PATH_CANONICAL); in nfs_devname()
|
/linux-4.4.14/crypto/ |
D | poly1305_generic.c | 46 dctx->buflen = 0; in crypto_poly1305_init() 185 if (unlikely(dctx->buflen)) { in crypto_poly1305_update() 186 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update() 187 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update() 190 dctx->buflen += bytes; in crypto_poly1305_update() 192 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update() 195 dctx->buflen = 0; in crypto_poly1305_update() 206 dctx->buflen = srclen; in crypto_poly1305_update() 226 if (unlikely(dctx->buflen)) { in crypto_poly1305_final() 227 dctx->buf[dctx->buflen++] = 1; in crypto_poly1305_final() [all …]
|
D | drbg.c | 579 unsigned char *buf, unsigned int buflen, in drbg_ctr_generate() argument 596 while (len < buflen) { in drbg_ctr_generate() 604 outlen = (drbg_blocklen(drbg) < (buflen - len)) ? in drbg_ctr_generate() 605 drbg_blocklen(drbg) : (buflen - len); in drbg_ctr_generate() 615 if (len < buflen) in drbg_ctr_generate() 711 unsigned int buflen, in drbg_hmac_generate() argument 728 while (len < buflen) { in drbg_hmac_generate() 734 outlen = (drbg_blocklen(drbg) < (buflen - len)) ? in drbg_hmac_generate() 735 drbg_blocklen(drbg) : (buflen - len); in drbg_hmac_generate() 942 unsigned int buflen) in drbg_hash_hashgen() argument [all …]
|
/linux-4.4.14/arch/x86/crypto/ |
D | poly1305_glue.c | 132 if (unlikely(dctx->buflen)) { in poly1305_simd_update() 133 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_simd_update() 134 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_simd_update() 137 dctx->buflen += bytes; in poly1305_simd_update() 139 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in poly1305_simd_update() 142 dctx->buflen = 0; in poly1305_simd_update() 155 dctx->buflen = srclen; in poly1305_simd_update()
|
/linux-4.4.14/tools/power/cpupower/utils/helpers/ |
D | bitmask.c | 248 static inline int emit(char *buf, int buflen, int rbot, int rtop, int len) in emit() argument 251 len += snprintf(buf + len, max(buflen - len, 0), ","); in emit() 253 len += snprintf(buf + len, max(buflen - len, 0), "%d", rbot); in emit() 255 len += snprintf(buf + len, max(buflen - len, 0), "%d-%d", in emit() 274 int bitmask_displaylist(char *buf, int buflen, const struct bitmask *bmp) in bitmask_displaylist() argument 280 if (buflen > 0) in bitmask_displaylist() 287 len = emit(buf, buflen, rbot, rtop, len); in bitmask_displaylist()
|
D | sysfs.c | 19 unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen) in sysfs_read_file() argument 28 numread = read(fd, buf, buflen - 1); in sysfs_read_file() 126 const char *fname, char *buf, size_t buflen) in sysfs_idlestate_read_file() argument 139 numread = read(fd, buf, buflen - 1); in sysfs_idlestate_read_file() 386 size_t buflen) in sysfs_cpuidle_read_file() argument 392 return sysfs_read_file(path, buf, buflen); in sysfs_cpuidle_read_file()
|
D | sysfs.h | 8 extern unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen);
|
/linux-4.4.14/include/linux/ |
D | scatterlist.h | 137 unsigned int buflen) in sg_set_buf() argument 142 sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); in sg_set_buf() 270 size_t buflen, off_t skip, bool to_buffer); 273 const void *buf, size_t buflen); 275 void *buf, size_t buflen); 278 const void *buf, size_t buflen, off_t skip); 280 void *buf, size_t buflen, off_t skip);
|
D | cgroup.h | 93 char *task_cgroup_path(struct task_struct *task, char *buf, size_t buflen); 510 static inline int cgroup_name(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_name() argument 512 return kernfs_name(cgrp->kn, buf, buflen); in cgroup_name() 516 size_t buflen) in cgroup_path() argument 518 return kernfs_path(cgrp->kn, buf, buflen); in cgroup_path()
|
D | tpm.h | 54 extern int tpm_send(u32 chip_num, void *cmd, size_t buflen); 73 static inline int tpm_send(u32 chip_num, void *cmd, size_t buflen) { in tpm_send() argument
|
D | kernfs.h | 268 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen); 271 size_t buflen); 333 static inline int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() argument 340 size_t buflen) in kernfs_path() argument
|
D | bitmap.h | 147 extern int __bitmap_parse(const char *buf, unsigned int buflen, int is_user, 323 static inline int bitmap_parse(const char *buf, unsigned int buflen, in bitmap_parse() argument 326 return __bitmap_parse(buf, buflen, 0, maskp, nmaskbits); in bitmap_parse()
|
D | of_pdt.h | 34 int (*pkg2path)(phandle node, char *buf, const int buflen, int *len);
|
D | blk-cgroup.h | 344 static inline int blkg_path(struct blkcg_gq *blkg, char *buf, int buflen) in blkg_path() argument 348 p = cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path() 350 strncpy(buf, "<unavailable>", buflen); in blkg_path() 354 memmove(buf, p, buf + buflen - p); in blkg_path()
|
D | key-type.h | 139 long (*read)(const struct key *key, char __user *buffer, size_t buflen);
|
D | kobject.h | 129 int buflen; member
|
/linux-4.4.14/drivers/usb/gadget/legacy/ |
D | gmidi.c | 58 static unsigned int buflen = 256; variable 59 module_param(buflen, uint, S_IRUGO); 60 MODULE_PARM_DESC(buflen, "MIDI buffer length"); 165 midi_opts->buflen = buflen; in midi_bind()
|
/linux-4.4.14/fs/proc/ |
D | kcore.c | 431 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument 442 if (buflen == 0 || *fpos >= size) { in read_kcore() 448 if (buflen > size - *fpos) in read_kcore() 449 buflen = size - *fpos; in read_kcore() 456 if (buflen < tsz) in read_kcore() 457 tsz = buflen; in read_kcore() 470 buflen -= tsz; in read_kcore() 476 if (buflen == 0) in read_kcore() 486 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore() 487 tsz = buflen; in read_kcore() [all …]
|
D | vmcore.c | 184 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument 192 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore() 196 if (buflen > vmcore_size - *fpos) in __read_vmcore() 197 buflen = vmcore_size - *fpos; in __read_vmcore() 201 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore() 204 buflen -= tsz; in __read_vmcore() 210 if (buflen == 0) in __read_vmcore() 218 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)*fpos, buflen); in __read_vmcore() 222 buflen -= tsz; in __read_vmcore() 228 if (buflen == 0) in __read_vmcore() [all …]
|
D | self.c | 10 int buflen) in proc_self_readlink() argument 18 return readlink_copy(buffer, buflen, tmp); in proc_self_readlink()
|
D | thread_self.c | 10 int buflen) in proc_thread_self_readlink() argument 19 return readlink_copy(buffer, buflen, tmp); in proc_thread_self_readlink()
|
D | namespaces.c | 54 static int proc_ns_readlink(struct dentry *dentry, char __user *buffer, int buflen) in proc_ns_readlink() argument 69 res = readlink_copy(buffer, buflen, name); in proc_ns_readlink()
|
/linux-4.4.14/fs/ |
D | dcache.c | 2824 static int prepend(char **buffer, int *buflen, const char *str, int namelen) in prepend() argument 2826 *buflen -= namelen; in prepend() 2827 if (*buflen < 0) in prepend() 2852 static int prepend_name(char **buffer, int *buflen, struct qstr *name) in prepend_name() argument 2860 *buflen -= dlen + 1; in prepend_name() 2861 if (*buflen < 0) in prepend_name() 2893 char **buffer, int *buflen) in prepend_path() argument 2910 blen = *buflen; in prepend_path() 2924 blen = *buflen; in prepend_path() 2970 *buflen = blen; in prepend_path() [all …]
|
D | anon_inodes.c | 31 static char *anon_inodefs_dname(struct dentry *dentry, char *buffer, int buflen) in anon_inodefs_dname() argument 33 return dynamic_dname(dentry, buffer, buflen, "anon_inode:%s", in anon_inodefs_dname()
|
D | nsfs.c | 15 static char *ns_dname(struct dentry *dentry, char *buffer, int buflen) in ns_dname() argument 20 return dynamic_dname(dentry, buffer, buflen, "%s:[%lu]", in ns_dname()
|
D | bad_inode.c | 82 int buflen) in bad_inode_readlink() argument
|
/linux-4.4.14/drivers/media/usb/b2c2/ |
D | flexcop-usb.c | 99 u8 *pbBuffer, u32 buflen) in flexcop_usb_v8_memory_req() argument 128 wAddress, wIndex, buflen); in flexcop_usb_v8_memory_req() 136 buflen, in flexcop_usb_v8_memory_req() 140 return len == buflen ? 0 : -EIO; in flexcop_usb_v8_memory_req() 143 #define bytes_left_to_read_on_page(paddr,buflen) \ argument 144 ((V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)) > buflen \ 145 ? buflen : (V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK))) 202 u16 buflen, u8 *pvBuffer) 216 buflen, 218 return len == buflen ? 0 : -EIO; [all …]
|
/linux-4.4.14/drivers/crypto/qce/ |
D | sha.c | 202 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common() 245 total = req->nbytes + rctx->buflen; in qce_ahash_update() 248 scatterwalk_map_and_copy(rctx->buf + rctx->buflen, req->src, in qce_ahash_update() 250 rctx->buflen += req->nbytes; in qce_ahash_update() 262 if (rctx->buflen) in qce_ahash_update() 263 memcpy(rctx->tmpbuf, rctx->buf, rctx->buflen); in qce_ahash_update() 276 len = rctx->buflen; in qce_ahash_update() 292 if (rctx->buflen) { in qce_ahash_update() 294 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update() 300 rctx->buflen = hash_later; in qce_ahash_update() [all …]
|
D | sha.h | 53 unsigned int buflen; member
|
/linux-4.4.14/security/keys/ |
D | user_defined.c | 187 long user_read(const struct key *key, char __user *buffer, size_t buflen) in user_read() argument 196 if (buffer && buflen > 0) { in user_read() 197 if (buflen > upayload->datalen) in user_read() 198 buflen = upayload->datalen; in user_read() 200 if (copy_to_user(buffer, upayload->data, buflen) != 0) in user_read()
|
D | request_key_auth.c | 85 char __user *buffer, size_t buflen) in request_key_auth_read() argument 95 if (buffer && buflen > 0) { in request_key_auth_read() 96 if (buflen > datalen) in request_key_auth_read() 97 buflen = datalen; in request_key_auth_read() 99 if (copy_to_user(buffer, rka->callout_info, buflen) != 0) in request_key_auth_read()
|
D | keyctl.c | 557 size_t buflen) in keyctl_describe_key() argument 603 if (buffer && buflen >= ret) { in keyctl_describe_key() 721 long keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) in keyctl_read_key() argument 762 ret = key->type->read(key, buffer, buflen); in keyctl_read_key() 1397 size_t buflen) in keyctl_get_security() argument 1427 if (buffer && buflen > 0 && in keyctl_get_security() 1432 if (buffer && buflen > 0) { in keyctl_get_security() 1433 if (buflen > ret) in keyctl_get_security() 1434 buflen = ret; in keyctl_get_security() 1436 if (copy_to_user(buffer, context, buflen) != 0) in keyctl_get_security()
|
D | big_key.c | 183 long big_key_read(const struct key *key, char __user *buffer, size_t buflen) in big_key_read() argument 188 if (!buffer || buflen < datalen) in big_key_read()
|
D | keyring.c | 84 char __user *buffer, size_t buflen); 452 char __user *buffer, size_t buflen) in keyring_read() argument 458 kenter("{%d},,%zu", key_serial(keyring), buflen); in keyring_read() 460 if (buflen & (sizeof(key_serial_t) - 1)) in keyring_read() 470 if (!buffer || !buflen) in keyring_read() 473 if (buflen > ctx.qty) in keyring_read() 474 ctx.qty = buflen; in keyring_read()
|
/linux-4.4.14/drivers/staging/rts5208/ |
D | rtsx_transport.h | 33 unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index, 36 unsigned int buflen, struct scsi_cmnd *srb); 38 unsigned int buflen, struct scsi_cmnd *srb);
|
D | rtsx_transport.c | 42 unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index, in rtsx_stor_access_xfer_buf() argument 52 cnt = min(buflen, scsi_bufflen(srb) - *offset); in rtsx_stor_access_xfer_buf() 78 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf() 85 if (sglen > buflen - cnt) { in rtsx_stor_access_xfer_buf() 88 sglen = buflen - cnt; in rtsx_stor_access_xfer_buf() 128 unsigned int buflen, struct scsi_cmnd *srb) in rtsx_stor_set_xfer_buf() argument 132 rtsx_stor_access_xfer_buf(buffer, buflen, srb, &index, &offset, in rtsx_stor_set_xfer_buf() 134 if (buflen < scsi_bufflen(srb)) in rtsx_stor_set_xfer_buf() 135 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_set_xfer_buf() 139 unsigned int buflen, struct scsi_cmnd *srb) in rtsx_stor_get_xfer_buf() argument [all …]
|
/linux-4.4.14/tools/virtio/linux/ |
D | scatterlist.h | 178 unsigned int buflen) in sg_set_buf() argument 180 sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); in sg_set_buf() 184 const void *buf, unsigned int buflen) in sg_init_one() argument 187 sg_set_buf(sg, buf, buflen); in sg_init_one()
|
/linux-4.4.14/drivers/crypto/caam/ |
D | caamhash.c | 140 int buflen; member 180 u8 *buf, int buflen) in buf_map_to_sec4_sg() argument 184 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg() 185 dma_to_sec4_sg_one(sec4_sg, buf_dma, buflen, 0); in buf_map_to_sec4_sg() 205 u8 *buf, dma_addr_t buf_dma, int buflen, in try_buf_map_to_sec4_sg() argument 210 if (buflen) in try_buf_map_to_sec4_sg() 211 buf_dma = buf_map_to_sec4_sg(jrdev, sec4_sg, buf, buflen); in try_buf_map_to_sec4_sg() 787 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_ctx() local 791 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx() 806 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | sr_vendor.c | 139 cgc.buflen = sizeof(*modesel); in sr_set_blocklength() 186 cgc.buflen = 12; in sr_cd_check() 214 cgc.buflen = 0x16; in sr_cd_check() 243 cgc.buflen = 4; in sr_cd_check() 271 cgc.buflen = 0x04; in sr_cd_check() 289 cgc.buflen = 12; in sr_cd_check()
|
D | sr_ioctl.c | 56 cgc.buflen = 12; in sr_read_tochdr() 88 cgc.buflen = 12; in sr_read_tocentry() 210 cgc->buffer, cgc->buflen, (char *)sense, in sr_do_ioctl() 409 cgc.buflen = 24; in sr_get_mcn() 514 cgc.buflen = blksize; in sr_read_cd() 557 cgc.buflen = blksize; in sr_read_sector()
|
D | initio.c | 1127 scb->buflen = scb->senselen; in tulip_main() 1486 if (scb->buflen == 0) in initio_state_4() 1506 scb->buflen = 0; in initio_state_4() 1587 scb->buflen = 0; in initio_state_5() 1591 xcnt = (long) scb->buflen - cnt; /* xcnt== bytes already xferred */ in initio_state_5() 1592 scb->buflen = (u32) cnt; /* cnt == bytes left to be xferred */ in initio_state_5() 1710 outl(scb->buflen, host->addr + TUL_SCnt0); in initio_xfer_data_in() 1718 outl(scb->buflen, host->addr + TUL_XCntH); in initio_xfer_data_in() 1742 outl(scb->buflen, host->addr + TUL_SCnt0); in initio_xfer_data_out() 1750 outl(scb->buflen, host->addr + TUL_XCntH); in initio_xfer_data_out() [all …]
|
D | iscsi_tcp.c | 693 int buflen) in iscsi_sw_tcp_conn_set_param() argument 701 iscsi_set_param(cls_conn, param, buf, buflen); in iscsi_sw_tcp_conn_set_param() 704 iscsi_set_param(cls_conn, param, buf, buflen); in iscsi_sw_tcp_conn_set_param() 711 return iscsi_set_param(cls_conn, param, buf, buflen); in iscsi_sw_tcp_conn_set_param()
|
/linux-4.4.14/drivers/ata/ |
D | pata_legacy.c | 307 unsigned char *buf, unsigned int buflen, int rw) in pdc_data_xfer_vlb() argument 309 int slop = buflen & 3; in pdc_data_xfer_vlb() 326 ioread32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); in pdc_data_xfer_vlb() 328 iowrite32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); in pdc_data_xfer_vlb() 334 memcpy(buf + buflen - slop, &pad, slop); in pdc_data_xfer_vlb() 336 memcpy(&pad, buf + buflen - slop, slop); in pdc_data_xfer_vlb() 339 buflen += 4 - slop; in pdc_data_xfer_vlb() 343 buflen = ata_sff_data_xfer_noirq(dev, buf, buflen, rw); in pdc_data_xfer_vlb() 345 return buflen; in pdc_data_xfer_vlb() 706 unsigned int buflen, int rw) in vlb32_data_xfer() argument [all …]
|
D | pata_ixp4xx_cf.c | 44 unsigned char *buf, unsigned int buflen, int rw) in ixp4xx_mmio_data_xfer() argument 47 unsigned int words = buflen >> 1; in ixp4xx_mmio_data_xfer() 68 if (unlikely(buflen & 0x01)) { in ixp4xx_mmio_data_xfer() 70 unsigned char *trailing_buf = buf + buflen - 1; in ixp4xx_mmio_data_xfer()
|
D | pata_pcmcia.c | 105 unsigned char *buf, unsigned int buflen, int rw) in ata_data_xfer_8bit() argument 110 ioread8_rep(ap->ioaddr.data_addr, buf, buflen); in ata_data_xfer_8bit() 112 iowrite8_rep(ap->ioaddr.data_addr, buf, buflen); in ata_data_xfer_8bit() 114 return buflen; in ata_data_xfer_8bit()
|
D | pata_octeon_cf.c | 304 unsigned int buflen, in octeon_cf_data_xfer8() argument 312 words = buflen; in octeon_cf_data_xfer8() 330 return buflen; in octeon_cf_data_xfer8() 343 unsigned int buflen, in octeon_cf_data_xfer16() argument 351 words = buflen / 2; in octeon_cf_data_xfer16() 373 if (unlikely(buflen & 0x01)) { in octeon_cf_data_xfer16() 385 return buflen; in octeon_cf_data_xfer16()
|
D | libata-sff.c | 559 unsigned int buflen, int rw) in ata_sff_data_xfer() argument 563 unsigned int words = buflen >> 1; in ata_sff_data_xfer() 572 if (unlikely(buflen & 0x01)) { in ata_sff_data_xfer() 576 buf += buflen - 1; in ata_sff_data_xfer() 614 unsigned int buflen, int rw) in ata_sff_data_xfer32() argument 618 unsigned int words = buflen >> 2; in ata_sff_data_xfer32() 619 int slop = buflen & 3; in ata_sff_data_xfer32() 622 return ata_sff_data_xfer(dev, buf, buflen, rw); in ata_sff_data_xfer32() 635 buf += buflen - slop; in ata_sff_data_xfer32() 655 return (buflen + 1) & ~1; in ata_sff_data_xfer32() [all …]
|
D | pata_ep93xx.c | 479 unsigned int buflen, int rw) in ep93xx_pata_data_xfer() argument 484 unsigned int words = buflen >> 1; in ep93xx_pata_data_xfer() 497 if (unlikely(buflen & 0x01)) { in ep93xx_pata_data_xfer() 500 buf += buflen - 1; in ep93xx_pata_data_xfer()
|
D | pata_samsung_cf.c | 267 unsigned char *buf, unsigned int buflen, int rw) in pata_s3c_data_xfer() argument 272 unsigned int words = buflen >> 1, i; in pata_s3c_data_xfer() 290 if (buflen & 0x01) in pata_s3c_data_xfer()
|
D | pata_at91.c | 291 unsigned char *buf, unsigned int buflen, int rw) in pata_at91_data_xfer_noirq() argument 305 consumed = ata_sff_data_xfer(dev, buf, buflen, rw); in pata_at91_data_xfer_noirq()
|
D | sata_rcar.c | 452 unsigned int buflen, int rw) in sata_rcar_data_xfer() argument 456 unsigned int words = buflen >> 1; in sata_rcar_data_xfer() 465 if (unlikely(buflen & 0x01)) { in sata_rcar_data_xfer() 469 buf += buflen - 1; in sata_rcar_data_xfer()
|
/linux-4.4.14/drivers/nfc/st21nfca/ |
D | i2c.c | 273 static int get_frame_size(u8 *buf, int buflen) in get_frame_size() argument 280 for (len = 1; len < buflen && buf[len] != ST21NFCA_SOF_EOF; len++) in get_frame_size() 286 static int check_crc(u8 *buf, int buflen) in check_crc() argument 290 crc = crc_ccitt(0xffff, buf, buflen - 2); in check_crc() 293 if (buf[buflen - 2] != (crc & 0xff) || buf[buflen - 1] != (crc >> 8)) { in check_crc() 295 ": CRC error 0x%x != 0x%x 0x%x\n", crc, buf[buflen - 1], in check_crc() 296 buf[buflen - 2]); in check_crc() 300 16, 2, buf, buflen, false); in check_crc()
|
/linux-4.4.14/drivers/atm/ |
D | solos-pci.c | 198 int buflen; in solos_param_show() local 200 buflen = strlen(attr->attr.name) + 10; in solos_param_show() 202 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); in solos_param_show() 210 buflen = snprintf((void *)&header[1], buflen - 1, in solos_param_show() 212 skb_put(skb, buflen); in solos_param_show() 214 header->size = cpu_to_le16(buflen); in solos_param_show() 238 buflen = prm.response->len; in solos_param_show() 239 memcpy(buf, prm.response->data, buflen); in solos_param_show() 242 return buflen; in solos_param_show() 253 int buflen; in solos_param_store() local [all …]
|
D | nicstar.h | 230 #define ns_tbd_mkword_1(flags, m, n, buflen) \ argument 231 (cpu_to_le32((flags) | (m) << 23 | (n) << 16 | (buflen))) 232 #define ns_tbd_mkword_1_novbr(flags, buflen) \ argument 233 (cpu_to_le32((flags) | (buflen) | 0x00810000))
|
/linux-4.4.14/mm/ |
D | util.c | 427 int get_cmdline(struct task_struct *task, char *buffer, int buflen) in get_cmdline() argument 439 if (len > buflen) in get_cmdline() 440 len = buflen; in get_cmdline() 448 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline() 454 if (len > buflen - res) in get_cmdline() 455 len = buflen - res; in get_cmdline()
|
/linux-4.4.14/drivers/media/usb/as102/ |
D | as10x_handle.h | 29 unsigned char *buf, int buflen, int swap32); 32 unsigned char *buf, int buflen);
|
/linux-4.4.14/net/wireless/ |
D | debugfs.c | 16 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument 21 char buf[buflen]; \ 24 res = scnprintf(buf, buflen, fmt "\n", ##value); \
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | gp8psk.c | 141 u16 buflen = ptr[0] + 4; in gp8psk_load_bcm4500fw() local 142 if (ptr + buflen >= fw->data + fw->size) { in gp8psk_load_bcm4500fw() 146 memcpy(buf, ptr, buflen); in gp8psk_load_bcm4500fw() 147 if (dvb_usb_generic_write(d, buf, buflen)) { in gp8psk_load_bcm4500fw() 151 ptr += buflen; in gp8psk_load_bcm4500fw()
|
D | vp702x.c | 122 int buflen = max(olen + 2, ilen + 1); in vp702x_usb_inout_cmd() local 128 if (buflen > st->buf_len) { in vp702x_usb_inout_cmd() 129 buf = kmalloc(buflen, GFP_KERNEL); in vp702x_usb_inout_cmd() 137 st->buf_len = buflen; in vp702x_usb_inout_cmd()
|
/linux-4.4.14/drivers/cdrom/ |
D | cdrom.c | 376 int ret, buflen; in cdrom_get_disc_info() local 381 cgc.cmd[8] = cgc.buflen = 2; in cdrom_get_disc_info() 391 buflen = be16_to_cpu(di->disc_information_length) + in cdrom_get_disc_info() 394 if (buflen > sizeof(disc_information)) in cdrom_get_disc_info() 395 buflen = sizeof(disc_information); in cdrom_get_disc_info() 397 cgc.cmd[8] = cgc.buflen = buflen; in cdrom_get_disc_info() 403 return buflen; in cdrom_get_disc_info() 564 cgc.buflen = sizeof(buffer); in cdrom_mrw_set_lba_space() 575 cgc.buflen = size; in cdrom_mrw_set_lba_space() 833 cgc.buflen = 255; in mo_open_write() [all …]
|
D | gdrom.c | 194 static void gdrom_spicommand(void *spi_string, int buflen) in gdrom_spicommand() argument 202 __raw_writeb(buflen & 0xFF, GDROM_BCL_REG); in gdrom_spicommand() 203 __raw_writeb((buflen >> 8) & 0xFF, GDROM_BCH_REG); in gdrom_spicommand() 255 spin_command->buflen = 0; in gdrom_preparedisk_cmd() 292 toc_command->buflen = tocsize; in gdrom_readtoc_cmd() 421 gdrom_spicommand(&command->cmd, command->buflen); in gdrom_packetcommand() 443 sense_command->buflen = 10; in gdrom_getsense() 456 insw(GDROM_DATA_REG, &sense, sense_command->buflen/2); in gdrom_getsense()
|
/linux-4.4.14/kernel/sched/ |
D | auto_group.h | 40 extern int autogroup_path(struct task_group *tg, char *buf, int buflen); 58 static inline int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path() argument
|
D | auto_group.c | 242 int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path() argument 247 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()
|
/linux-4.4.14/include/scsi/ |
D | scsi_cmnd.h | 217 void *buf, int buflen) in scsi_sg_copy_from_buffer() argument 220 buf, buflen); in scsi_sg_copy_from_buffer() 224 void *buf, int buflen) in scsi_sg_copy_to_buffer() argument 227 buf, buflen); in scsi_sg_copy_to_buffer()
|
D | libiscsi.h | 395 int buflen); 415 enum iscsi_param param, char *buf, int buflen);
|
/linux-4.4.14/drivers/firmware/ |
D | dmi-id.c | 154 len = get_modalias(&env->buf[env->buflen - 1], in dmi_dev_uevent() 155 sizeof(env->buf) - env->buflen); in dmi_dev_uevent() 156 if (len >= (sizeof(env->buf) - env->buflen)) in dmi_dev_uevent() 158 env->buflen += len; in dmi_dev_uevent()
|
/linux-4.4.14/drivers/of/ |
D | device.c | 282 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias() 283 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias() 284 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias() 286 env->buflen += sl; in of_device_uevent_modalias()
|
/linux-4.4.14/net/rds/ |
D | message.c | 147 unsigned int *pos, void *buf, unsigned int *buflen) in rds_message_next_extension() argument 167 if (ext_len < *buflen) in rds_message_next_extension() 168 *buflen = ext_len; in rds_message_next_extension() 169 memcpy(buf, src + offset, *buflen); in rds_message_next_extension() 174 *buflen = 0; in rds_message_next_extension()
|
/linux-4.4.14/drivers/crypto/ |
D | atmel-tdes.c | 122 size_t buflen; member 151 void *buf, size_t buflen, size_t total, int out) in atmel_tdes_sg_copy() argument 155 while (buflen && total) { in atmel_tdes_sg_copy() 157 count = min(count, buflen); in atmel_tdes_sg_copy() 165 buflen -= count; in atmel_tdes_sg_copy() 336 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop() 352 dd->buflen = PAGE_SIZE; in atmel_tdes_buff_init() 353 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init() 362 dd->buflen, DMA_TO_DEVICE); in atmel_tdes_buff_init() 364 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in atmel_tdes_buff_init() [all …]
|
D | atmel-aes.c | 130 size_t buflen; member 185 void *buf, size_t buflen, size_t total, int out) in atmel_aes_sg_copy() argument 189 while (buflen && total) { in atmel_aes_sg_copy() 191 count = min(count, buflen); in atmel_aes_sg_copy() 199 buflen -= count; in atmel_aes_sg_copy() 476 dd->buf_in, dd->buflen, dd->total, 0); in atmel_aes_crypt_dma_start() 639 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_aes_crypt_dma_stop() 657 dd->buflen = PAGE_SIZE; in atmel_aes_buff_init() 658 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in atmel_aes_buff_init() 667 dd->buflen, DMA_TO_DEVICE); in atmel_aes_buff_init() [all …]
|
D | atmel-sha.c | 88 size_t buflen; member 162 while ((ctx->bufcnt < ctx->buflen) && ctx->total) { in atmel_sha_append_sg() 164 count = min(count, ctx->buflen - ctx->bufcnt); in atmel_sha_append_sg() 312 ctx->buflen = SHA_BUFFER_LEN; in atmel_sha_init() 509 ctx->buflen + ctx->block_size, DMA_TO_DEVICE); in atmel_sha_xmit_dma_map() 511 dev_err(dd->dev, "dma %u bytes error\n", ctx->buflen + in atmel_sha_xmit_dma_map() 538 if (final || (ctx->bufcnt == ctx->buflen)) { in atmel_sha_update_dma_slow() 600 ctx->buflen + ctx->block_size, DMA_TO_DEVICE); in atmel_sha_update_dma_start() 603 ctx->buflen + ctx->block_size); in atmel_sha_update_dma_start() 655 ctx->buflen + ctx->block_size, DMA_TO_DEVICE); in atmel_sha_update_dma_stop() [all …]
|
D | omap-sham.c | 148 size_t buflen; member 631 size_t count = min(length, ctx->buflen - ctx->bufcnt); in omap_sham_append_buffer() 679 ctx->dma_addr = dma_map_single(dd->dev, ctx->buffer, ctx->buflen, in omap_sham_xmit_dma_map() 682 dev_err(dd->dev, "dma %u bytes error\n", ctx->buflen); in omap_sham_xmit_dma_map() 690 dma_unmap_single(dd->dev, ctx->dma_addr, ctx->buflen, in omap_sham_xmit_dma_map() 709 if (final || (ctx->bufcnt == ctx->buflen && ctx->total)) { in omap_sham_update_dma_slow() 805 if (final || (ctx->bufcnt == ctx->buflen && ctx->total)) { in omap_sham_update_cpu() 828 dma_unmap_single(dd->dev, ctx->dma_addr, ctx->buflen, in omap_sham_update_dma_stop() 891 ctx->buflen = BUFLEN; in omap_sham_init() 1114 } else if (ctx->bufcnt + ctx->total < ctx->buflen) { in omap_sham_update()
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_symlink_remote.c | 46 int buflen = XFS_SYMLINK_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_symlink_blocks() local 48 return (pathlen + buflen - 1) / buflen; in xfs_symlink_blocks()
|
D | xfs_attr_remote.c | 56 int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_attr3_rmt_blocks() local 57 return (attrlen + buflen - 1) / buflen; in xfs_attr3_rmt_blocks()
|
/linux-4.4.14/sound/aoa/soundbus/ |
D | core.c | 91 int tmp = env->buflen; in soundbus_uevent() 95 compat += env->buflen - tmp; in soundbus_uevent() 96 cplen -= env->buflen - tmp; in soundbus_uevent()
|
/linux-4.4.14/drivers/media/usb/pwc/ |
D | pwc-ctrl.c | 124 int index, const unsigned char *buf, int buflen) in send_video_command() argument 128 memcpy(pdev->ctrl_buf, buf, buflen); in send_video_command() 134 pdev->ctrl_buf, buflen, USB_CTRL_SET_TIMEOUT); in send_video_command() 136 memcpy(pdev->cmd_buf, buf, buflen); in send_video_command() 144 u8 request, u16 value, void *buf, int buflen) in send_control_msg() argument 150 buf, buflen, USB_CTRL_SET_TIMEOUT); in send_control_msg()
|
/linux-4.4.14/drivers/usb/gadget/ |
D | config.c | 38 usb_descriptor_fillbuf(void *buf, unsigned buflen, in usb_descriptor_fillbuf() argument 50 if (len > buflen) in usb_descriptor_fillbuf() 53 buflen -= len; in usb_descriptor_fillbuf()
|
/linux-4.4.14/fs/jffs2/ |
D | compr_rubin.c | 32 unsigned int buflen; member 48 unsigned buflen, unsigned ofs, in init_pushpull() argument 52 pp->buflen = buflen; in init_pushpull() 59 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) in pushbit()
|
/linux-4.4.14/kernel/ |
D | auditfilter.c | 495 entry->rule.buflen += f->val; in audit_data_to_entry() 516 entry->rule.buflen += f->val; in audit_data_to_entry() 528 entry->rule.buflen += f->val; in audit_data_to_entry() 546 entry->rule.buflen += f->val; in audit_data_to_entry() 557 entry->rule.buflen += f->val; in audit_data_to_entry() 603 data = kmalloc(sizeof(*data) + krule->buflen, GFP_KERNEL); in audit_krule_to_data() 628 data->buflen += data->values[i] = in audit_krule_to_data() 632 data->buflen += data->values[i] = in audit_krule_to_data() 637 data->buflen += data->values[i] = in audit_krule_to_data() 642 data->buflen += data->values[i] = in audit_krule_to_data() [all …]
|
/linux-4.4.14/net/sunrpc/xprtrdma/ |
D | svc_rdma_recvfrom.c | 77 rqstp->rq_arg.buflen = byte_count; in rdma_build_arg_xdr() 99 rqstp->rq_arg.buflen += ctxt->sge[sge_no].length; in rdma_build_arg_xdr() 412 head->arg.buflen += byte_count; in rdma_copy_tail() 446 head->arg.buflen = rqstp->rq_arg.buflen; in rdma_read_chunks() 481 head->arg.buflen += ret; in rdma_read_chunks() 491 head->arg.buflen += pad; in rdma_read_chunks() 550 rqstp->rq_arg.buflen = head->arg.buflen; in rdma_read_complete()
|
/linux-4.4.14/sound/usb/ |
D | helper.c | 67 void *snd_usb_find_csint_desc(void *buffer, int buflen, void *after, u8 dsubtype) in snd_usb_find_csint_desc() argument 71 while ((p = snd_usb_find_desc(buffer, buflen, p, in snd_usb_find_csint_desc()
|
/linux-4.4.14/Documentation/accounting/ |
D | getdelays.c | 124 int r, buflen; in send_cmd() local 143 buflen = msg.n.nlmsg_len ; in send_cmd() 146 while ((r = sendto(sd, buf, buflen, 0, (struct sockaddr *) &nladdr, in send_cmd() 147 sizeof(nladdr))) < buflen) { in send_cmd() 150 buflen -= r; in send_cmd()
|
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_bulk.c | 511 void *buf, int buflen) in sptlrpc_get_bulk_checksum() argument 520 LASSERT(buflen >= 4); in sptlrpc_get_bulk_checksum() 536 if (hashsize > buflen) { in sptlrpc_get_bulk_checksum() 540 memcpy(buf, hashbuf, buflen); in sptlrpc_get_bulk_checksum() 542 bufsize = buflen; in sptlrpc_get_bulk_checksum()
|
D | sec_config.c | 439 static void target2fsname(const char *tgt, char *fsname, int buflen) in target2fsname() argument 459 len = min(len, buflen - 1); in target2fsname() 636 static int logname2fsname(const char *logname, char *buf, int buflen) in logname2fsname() argument 647 len = min((int) (ptr - logname), buflen - 1); in logname2fsname()
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
D | trace.h | 108 u16 val, u16 offset, void *buf, size_t buflen, int ret), 109 TP_ARGS(dev, pipe, req, req_type, val, offset, buf, buflen, ret), 114 __field(int, buflen) __field(int, ret) 124 __entry->buflen = buflen; 131 !!__entry->buf, __entry->buflen)
|
D | usb.c | 97 void *buf, const size_t buflen) in mt7601u_vendor_request() argument 107 val, offset, buf, buflen, in mt7601u_vendor_request() 110 buf, buflen, ret); in mt7601u_vendor_request()
|
D | usb.h | 74 void *buf, const size_t buflen);
|
/linux-4.4.14/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 668 size_t buflen = 0; in cfi_staa_writev() local 686 if (buflen) { /* cut off head */ in cfi_staa_writev() 687 if (buflen + elem_len < ECCBUF_SIZE) { /* just accumulate */ in cfi_staa_writev() 688 memcpy(buffer+buflen, elem_base, elem_len); in cfi_staa_writev() 689 buflen += elem_len; in cfi_staa_writev() 692 memcpy(buffer+buflen, elem_base, ECCBUF_SIZE-buflen); in cfi_staa_writev() 698 elem_len -= thislen-buflen; in cfi_staa_writev() 699 elem_base += thislen-buflen; in cfi_staa_writev() 710 buflen = ECCBUF_MOD(elem_len); /* cut off tail */ in cfi_staa_writev() 711 if (buflen) { in cfi_staa_writev() [all …]
|
/linux-4.4.14/drivers/isdn/hysdn/ |
D | boardergo.c | 265 unsigned char buflen; in ergo_writebootseq() local 275 buflen = sp->Len; /* maximum len of spooled data */ in ergo_writebootseq() 294 nr_write += buflen; /* now we got number of free bytes - 1 in buffer */ in ergo_writebootseq() 307 if (++wr_mirror >= buflen) in ergo_writebootseq()
|
/linux-4.4.14/drivers/acpi/ |
D | device_sysfs.c | 254 len = create_pnp_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias() 255 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias() 259 env->buflen += len; in __acpi_device_uevent_modalias() 266 len = create_of_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias() 267 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias() 271 env->buflen += len; in __acpi_device_uevent_modalias()
|
/linux-4.4.14/drivers/s390/char/ |
D | diag_ftp.c | 55 u64 buflen; member 169 ldfpl->buflen = ftp->len; in diag_ftp_cmd()
|
/linux-4.4.14/drivers/net/wireless/ |
D | rndis_wlan.c | 715 int ret, buflen; in rndis_query_oid() local 718 buflen = *len + sizeof(*u.get); in rndis_query_oid() 719 if (buflen < CONTROL_BUFFER_SIZE) in rndis_query_oid() 720 buflen = CONTROL_BUFFER_SIZE; in rndis_query_oid() 722 if (buflen > COMMAND_BUFFER_SIZE) { in rndis_query_oid() 723 u.buf = kmalloc(buflen, GFP_KERNEL); in rndis_query_oid() 738 ret = rndis_command(dev, u.header, buflen); in rndis_query_oid() 749 if (respoffs > buflen) { in rndis_query_oid() 753 oid_to_string(oid), respoffs, buflen); in rndis_query_oid() 759 if ((resplen + respoffs) > buflen) { in rndis_query_oid() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_debugfs.c | 120 static int i40e_dbg_prep_dump_buf(struct i40e_pf *pf, int buflen) in i40e_dbg_prep_dump_buf() argument 123 if (i40e_dbg_dump_buffer_len && i40e_dbg_dump_buffer_len < buflen) { in i40e_dbg_prep_dump_buf() 131 i40e_dbg_dump_buf = kzalloc(buflen, GFP_KERNEL); in i40e_dbg_prep_dump_buf() 133 i40e_dbg_dump_buffer_len = buflen; in i40e_dbg_prep_dump_buf() 155 int buflen = 0; in i40e_dbg_dump_write() local 181 buflen = sizeof(struct i40e_pf); in i40e_dbg_dump_write() 182 buflen += (sizeof(struct i40e_aq_desc) in i40e_dbg_dump_write() 185 if (i40e_dbg_prep_dump_buf(pf, buflen)) { in i40e_dbg_dump_write() 202 i40e_dbg_dump_data_len = buflen; in i40e_dbg_dump_write() 219 buflen = sizeof(struct i40e_vsi); in i40e_dbg_dump_write() [all …]
|
/linux-4.4.14/drivers/net/wireless/ti/wl1251/ |
D | debugfs.c | 36 #define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...) \ argument 41 char buf[buflen]; \ 44 res = scnprintf(buf, buflen, fmt "\n", ##value); \ 69 #define DEBUGFS_FWSTATS_FILE(sub, name, buflen, fmt) \ argument 75 char buf[buflen]; \ 80 res = scnprintf(buf, buflen, fmt "\n", \
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | memctrl.h | 4 typedef int (*dimm_printer_t)(int synd_code, unsigned long paddr, char *buf, int buflen);
|
D | oplib_64.h | 146 char *buf, int buflen);
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | u_midi.h | 28 unsigned int buflen; member
|
D | f_midi.c | 89 unsigned int buflen, qlen; member 364 midi_alloc_ep_req(midi->out_ep, midi->buflen); in f_midi_set_alt() 523 req = midi_alloc_ep_req(ep, midi->buflen); in f_midi_transmit() 539 while (req->length + 3 < midi->buflen) { in f_midi_transmit() 962 F_MIDI_OPT(buflen, false, 0); 1055 opts->buflen = 256; in f_midi_alloc_inst() 1149 midi->buflen = opts->buflen; in f_midi_alloc()
|
D | f_loopback.c | 39 unsigned buflen; member 313 return alloc_ep_req(ep, len, loop->buflen); in lb_alloc_ep_req() 446 loop->buflen = lb_opts->bulk_buflen; in loopback_alloc()
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | configfs-usb-gadget-loopback | 8 buflen - buffer length
|
D | configfs-usb-gadget-sourcesink | 12 buflen - buffer length
|
D | configfs-usb-gadget-midi | 9 buflen - MIDI buffer length
|
/linux-4.4.14/drivers/bcma/ |
D | driver_pci_host.c | 273 unsigned char *buf, u32 *buflen) in bcma_find_pci_capability() argument 311 if ((buf != NULL) && (buflen != NULL)) { in bcma_find_pci_capability() 314 bufsize = *buflen; in bcma_find_pci_capability() 318 *buflen = 0; in bcma_find_pci_capability() 324 *buflen = bufsize; in bcma_find_pci_capability()
|
/linux-4.4.14/include/keys/ |
D | big_key-type.h | 24 extern long big_key_read(const struct key *key, char __user *buffer, size_t buflen);
|
D | user-type.h | 49 char __user *buffer, size_t buflen);
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4idmap.c | 197 idtoname_parse(struct cache_detail *cd, char *buf, int buflen) in idtoname_parse() argument 204 if (buf[buflen - 1] != '\n') in idtoname_parse() 206 buf[buflen - 1]= '\0'; in idtoname_parse() 360 nametoid_parse(struct cache_detail *cd, char *buf, int buflen) in nametoid_parse() argument 366 if (buf[buflen - 1] != '\n') in nametoid_parse() 368 buf[buflen - 1]= '\0'; in nametoid_parse()
|
D | nfsxdr.c | 503 int buflen, slen; in nfssvc_encode_entry() local 521 if ((buflen = cd->buflen - slen - 4) < 0) { in nfssvc_encode_entry() 535 cd->buflen = buflen; in nfssvc_encode_entry()
|
D | xdr.h | 108 int buflen; member
|
/linux-4.4.14/fs/kernfs/ |
D | dir.c | 42 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked() argument 44 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); in kernfs_name_locked() 48 size_t buflen) in kernfs_path_locked() argument 50 char *p = buf + buflen; in kernfs_path_locked() 83 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() argument 89 ret = kernfs_name_locked(kn, buf, buflen); in kernfs_name() 128 char *kernfs_path(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_path() argument 134 p = kernfs_path_locked(kn, buf, buflen); in kernfs_path()
|
/linux-4.4.14/arch/x86/platform/olpc/ |
D | olpc_dt.c | 113 const int buflen, int *len) in olpc_dt_pkg2path() argument 115 const void *args[] = { (void *)node, buf, (void *)buflen }; in olpc_dt_pkg2path()
|
/linux-4.4.14/include/linux/usb/ |
D | cdc.h | 49 int buflen);
|
D | rndis_host.h | 202 rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen);
|
/linux-4.4.14/include/crypto/ |
D | poly1305.h | 25 unsigned int buflen; member
|
D | drbg.h | 96 unsigned char *buf, unsigned int buflen,
|
/linux-4.4.14/net/dccp/ |
D | options.c | 404 const u16 buflen = dccp_ackvec_buflen(av); in dccp_insert_option_ackvec() local 406 const u8 nr_opts = DIV_ROUND_UP(buflen, DCCP_SINGLE_OPT_MAXLEN); in dccp_insert_option_ackvec() 407 u16 len = buflen + 2 * nr_opts; in dccp_insert_option_ackvec() 433 len = buflen; in dccp_insert_option_ackvec()
|
/linux-4.4.14/drivers/net/usb/ |
D | rndis_host.c | 70 int buflen) in rndis_msg_indicate() argument 76 dev->driver_info->indication(dev, msg, buflen); in rndis_msg_indicate() 103 int rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen) in rndis_command() argument 160 buf, buflen, in rndis_command() 185 rndis_msg_indicate(dev, (void *)buf, buflen); in rndis_command()
|
D | kalmia.c | 108 static const int buflen = 28; in kalmia_init_and_get_ethernet_addr() local 112 usb_buf = kmalloc(buflen, GFP_DMA | GFP_KERNEL); in kalmia_init_and_get_ethernet_addr()
|
D | sierra_net.c | 251 static int parse_hip(const u8 *buf, const u32 buflen, struct hip_hdr *hh) in parse_hip() argument 256 if (buflen < SIERRA_NET_HIP_HDR_LEN) in parse_hip() 268 if (buflen < SIERRA_NET_HIP_EXT_HDR_LEN) in parse_hip() 288 if (buflen < (hh->hdrlen + hh->payload_len.word)) in parse_hip()
|
/linux-4.4.14/drivers/block/ |
D | pktcdvd.c | 712 if (cgc->buflen) { in pkt_generic_packet() 713 ret = blk_rq_map_kern(q, rq, cgc->buffer, cgc->buflen, in pkt_generic_packet() 1572 cgc->cmd[7] = cgc->buflen >> 8; in pkt_mode_sense() 1573 cgc->cmd[8] = cgc->buflen & 0xff; in pkt_mode_sense() 1584 cgc->cmd[7] = cgc->buflen >> 8; in pkt_mode_select() 1585 cgc->cmd[8] = cgc->buflen & 0xff; in pkt_mode_select() 1598 cgc.cmd[8] = cgc.buflen = 2; in pkt_get_disc_info() 1607 cgc.buflen = be16_to_cpu(di->disc_information_length) + in pkt_get_disc_info() 1610 if (cgc.buflen > sizeof(disc_information)) in pkt_get_disc_info() 1611 cgc.buflen = sizeof(disc_information); in pkt_get_disc_info() [all …]
|
D | cciss_scsi.c | 881 size_t buflen, in cciss_unmap_one() argument 888 pci_unmap_single(pdev, (dma_addr_t) addr64.val, buflen, data_direction); in cciss_unmap_one() 895 size_t buflen, in cciss_map_one() argument 900 addr64 = (__u64) pci_map_single(pdev, buf, buflen, data_direction); in cciss_map_one() 905 c->SG[0].Len = buflen; in cciss_map_one() 1073 unsigned char *device_id, int buflen) in cciss_scsi_get_device_id() argument 1078 if (buflen > 16) in cciss_scsi_get_device_id() 1079 buflen = 16; in cciss_scsi_get_device_id() 1085 memcpy(device_id, &buf[8], buflen); in cciss_scsi_get_device_id()
|
/linux-4.4.14/include/acpi/ |
D | apei.h | 42 size_t buflen);
|
/linux-4.4.14/drivers/mmc/card/ |
D | queue.c | 490 size_t buflen; in mmc_queue_map_sg() local 515 buflen = 0; in mmc_queue_map_sg() 517 buflen += sg->length; in mmc_queue_map_sg() 519 sg_init_one(mqrq->sg, mqrq->bounce_buf, buflen); in mmc_queue_map_sg()
|
/linux-4.4.14/tools/power/cpupower/lib/ |
D | sysfs.c | 24 static unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen) in sysfs_read_file() argument 33 numread = read(fd, buf, buflen - 1); in sysfs_read_file() 51 char *buf, size_t buflen) in sysfs_cpufreq_read_file() argument 57 return sysfs_read_file(path, buf, buflen); in sysfs_cpufreq_read_file()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lustre_cfg.h | 127 __u32 buflen) in lustre_cfg_bufs_set() argument 138 bufs->lcfg_buflen[index] = buflen; in lustre_cfg_bufs_set()
|
/linux-4.4.14/include/linux/sunrpc/ |
D | xdr.h | 66 unsigned int buflen, /* Total length of storage buffer */ member 227 extern void xdr_set_scratch_buffer(struct xdr_stream *xdr, void *buf, size_t buflen);
|
/linux-4.4.14/security/keys/encrypted-keys/ |
D | encrypted.c | 339 const u8 *buf, unsigned int buflen) in calc_hmac() argument 352 ret = crypto_shash_digest(&sdesc->shash, buf, buflen, digest); in calc_hmac() 357 static int calc_hash(u8 *digest, const u8 *buf, unsigned int buflen) in calc_hash() argument 368 ret = crypto_shash_digest(&sdesc->shash, buf, buflen, digest); in calc_hash() 897 size_t buflen) in encrypted_read() argument 915 if (!buffer || buflen < asciiblob_len) in encrypted_read()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 954 const size_t buflen) in ip_vs_process_message_v0() argument 968 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message_v0() 978 if (p > buffer+buflen) { in ip_vs_process_message_v0() 1205 const size_t buflen) in ip_vs_process_message() argument 1211 if (buflen < sizeof(struct ip_vs_sync_mesg_v0)) { in ip_vs_process_message() 1216 if (buflen != ntohs(m2->size)) { in ip_vs_process_message() 1238 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message() 1246 if (msg_end > buffer+buflen) { in ip_vs_process_message() 1267 ip_vs_process_message_v0(ipvs, buffer, buflen); in ip_vs_process_message() 1630 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) in ip_vs_receive() argument [all …]
|
/linux-4.4.14/fs/xfs/ |
D | xfs_ioctl32.c | 358 if (al_hreq.buflen < sizeof(struct attrlist) || in xfs_compat_attrlist_by_handle() 359 al_hreq.buflen > XFS_XATTR_LIST_MAX) in xfs_compat_attrlist_by_handle() 373 kbuf = kmem_zalloc_large(al_hreq.buflen, KM_SLEEP); in xfs_compat_attrlist_by_handle() 378 error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, in xfs_compat_attrlist_by_handle() 383 if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) in xfs_compat_attrlist_by_handle()
|
/linux-4.4.14/drivers/usb/host/ |
D | isp116x-hcd.c | 169 int buflen = isp116x->atl_last_dir == PTD_DIR_IN in pack_fifo() local 173 isp116x_write_reg16(isp116x, HCXFERCTR, buflen); in pack_fifo() 183 buflen -= sizeof(struct ptd); in pack_fifo() 187 buflen -= ALIGN(ep->length, 4); in pack_fifo() 190 BUG_ON(buflen); in pack_fifo() 201 int buflen = isp116x->atl_last_dir == PTD_DIR_IN in unpack_fifo() local 205 isp116x_write_reg16(isp116x, HCXFERCTR, buflen); in unpack_fifo() 213 buflen -= sizeof(struct ptd); in unpack_fifo() 217 buflen -= ALIGN(ep->length, 4); in unpack_fifo() 222 BUG_ON(buflen); in unpack_fifo()
|
/linux-4.4.14/net/dns_resolver/ |
D | dns_key.c | 242 char __user *buffer, size_t buflen) in dns_resolver_read() argument 249 return user_read(key, buffer, buflen); in dns_resolver_read()
|
/linux-4.4.14/arch/sparc/prom/ |
D | misc_64.c | 319 char *buf, int buflen) in prom_getunumber() argument 328 args[5] = buflen; in prom_getunumber()
|
/linux-4.4.14/Documentation/networking/ |
D | radiotap-headers.txt | 98 int MyFunction(u8 * buf, int buflen) 102 int ret = ieee80211_radiotap_iterator_init(&iterator, buf, buflen); 146 buflen -= iterator.max_length;
|
/linux-4.4.14/scripts/dtc/libfdt/ |
D | fdt_ro.c | 363 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) in fdt_get_path() argument 371 if (buflen < 2) in fdt_get_path() 388 if ((p + namelen + 1) <= buflen) { in fdt_get_path()
|
/linux-4.4.14/drivers/misc/sgi-gru/ |
D | grulib.h | 124 size_t buflen; member
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
D | saa7164-api.c | 811 int saa7164_api_read_eeprom(struct saa7164_dev *dev, u8 *buf, int buflen) in saa7164_api_read_eeprom() argument 815 if (buflen < 128) in saa7164_api_read_eeprom() 1329 u32 buflen = 0; in saa7164_api_enum_subdevs() local 1336 GET_DESCRIPTORS_CONTROL, sizeof(buflen), &buflen); in saa7164_api_enum_subdevs() 1341 __func__, buflen); in saa7164_api_enum_subdevs() 1344 buf = kzalloc(buflen, GFP_KERNEL); in saa7164_api_enum_subdevs() 1350 GET_DESCRIPTORS_CONTROL, buflen, buf); in saa7164_api_enum_subdevs() 1358 buflen & ~15, false); in saa7164_api_enum_subdevs() 1360 saa7164_api_dump_subdevs(dev, buf, buflen); in saa7164_api_enum_subdevs()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 986 size_t buflen; in bnxt_get_nvram_directory() local 1003 buflen = dir_entries * entry_length; in bnxt_get_nvram_directory() 1004 buf = dma_alloc_coherent(&bp->pdev->dev, buflen, &dma_handle, in bnxt_get_nvram_directory() 1008 (unsigned)buflen); in bnxt_get_nvram_directory() 1015 memcpy(data, buf, len > buflen ? buflen : len); in bnxt_get_nvram_directory() 1016 dma_free_coherent(&bp->pdev->dev, buflen, buf, dma_handle); in bnxt_get_nvram_directory()
|
/linux-4.4.14/drivers/scsi/be2iscsi/ |
D | be_iscsi.h | 76 enum iscsi_param param, char *buf, int buflen);
|
/linux-4.4.14/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-decoder.h | 107 int intel_pt__strerror(int code, char *buf, size_t buflen);
|
/linux-4.4.14/sound/pci/hda/ |
D | hda_eld.c | 378 static void hdmi_print_pcm_rates(int pcm, char *buf, int buflen) in hdmi_print_pcm_rates() argument 388 j += snprintf(buf + j, buflen - j, " %d", in hdmi_print_pcm_rates() 421 void snd_print_channel_allocation(int spk_alloc, char *buf, int buflen) in snd_print_channel_allocation() argument 427 j += snprintf(buf + j, buflen - j, " %s", in snd_print_channel_allocation()
|
/linux-4.4.14/drivers/usb/musb/ |
D | cppi_dma.h | 72 u32 buflen; /* for RX: original buffer length */ member
|
/linux-4.4.14/fs/cifs/ |
D | ntlmssp.h | 136 int build_ntlmssp_auth_blob(unsigned char *pbuffer, u16 *buflen,
|
D | transport.c | 278 unsigned long buflen = 0; in rqst_len() local 282 buflen += iov[i].iov_len; in rqst_len() 286 buflen += rqst->rq_pagesz * (rqst->rq_npages - 1); in rqst_len() 287 buflen += rqst->rq_tailsz; in rqst_len() 290 return buflen; in rqst_len()
|
D | cifsproto.h | 471 __u16 fid, struct cifs_ntsd **acl_inf, __u32 *buflen); 476 char *acl_inf, const int buflen, const int acl_type, 480 const char *local_acl, const int buflen, const int acl_type,
|
D | cifsfs.h | 121 int buflen);
|
/linux-4.4.14/drivers/net/can/softing/ |
D | softing_fw.c | 153 int buflen = 0; in softing_load_fw() local 198 if (len > buflen) { in softing_load_fw() 200 buflen = (len + (1024-1)) & ~(1024-1); in softing_load_fw() 201 new_buf = krealloc(buf, buflen, GFP_KERNEL); in softing_load_fw()
|
/linux-4.4.14/net/sunrpc/auth_gss/ |
D | auth_gss.c | 449 size_t buflen = sizeof(gss_msg->databuf); in gss_encode_v1_msg() local 452 len = scnprintf(p, buflen, "mech=%s uid=%d ", mech->gm_name, in gss_encode_v1_msg() 454 buflen -= len; in gss_encode_v1_msg() 458 len = scnprintf(p, buflen, "target=%s ", target_name); in gss_encode_v1_msg() 459 buflen -= len; in gss_encode_v1_msg() 464 len = scnprintf(p, buflen, "service=%s ", service_name); in gss_encode_v1_msg() 465 buflen -= len; in gss_encode_v1_msg() 470 len = scnprintf(p, buflen, "enctypes=%s ", in gss_encode_v1_msg() 472 buflen -= len; in gss_encode_v1_msg() 476 len = scnprintf(p, buflen, "\n"); in gss_encode_v1_msg() [all …]
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_v110.c | 193 int buflen = 0; in DecodeMatrix() local 236 buf[buflen++] = b; /* copy byte into the output buffer */ in DecodeMatrix() 246 return buflen; /* return number of bytes in the output buffer */ in DecodeMatrix()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2.c | 471 u32 maplen, buflen; in c2_rx_interrupt() local 489 buflen = rxp_hdr->len; in c2_rx_interrupt() 493 buflen > (rx_desc->len - sizeof(*rxp_hdr))) { in c2_rx_interrupt() 526 skb_set_tail_pointer(skb, buflen); in c2_rx_interrupt() 527 skb->len = buflen; in c2_rx_interrupt() 533 netdev->stats.rx_bytes += buflen; in c2_rx_interrupt()
|
/linux-4.4.14/drivers/scsi/device_handler/ |
D | scsi_dh_alua.c | 104 void *buffer, unsigned buflen, int rw) in get_alua_req() argument 118 if (buflen && blk_rq_map_kern(q, rq, buffer, buflen, GFP_NOIO)) { in get_alua_req()
|
/linux-4.4.14/net/rxrpc/ |
D | rxkad.c | 695 void *buf, size_t buflen) in rxkad_sg_set_buf2() argument 701 sg_set_buf(&sg[0], buf, buflen); in rxkad_sg_set_buf2() 702 if (sg[0].offset + buflen > PAGE_SIZE) { in rxkad_sg_set_buf2() 705 sg_set_buf(&sg[1], buf + sg[0].length, buflen - sg[0].length); in rxkad_sg_set_buf2() 711 ASSERTCMP(sg[0].length + sg[1].length, ==, buflen); in rxkad_sg_set_buf2()
|
/linux-4.4.14/drivers/ide/ |
D | ide-cd_ioctl.c | 453 unsigned len = cgc->buflen; in ide_cdrom_packet() 476 cgc->buflen -= len; in ide_cdrom_packet()
|
/linux-4.4.14/drivers/input/touchscreen/ |
D | edt-ft5x06.c | 152 u8 *buf, int buflen) in edt_ft5x06_ts_check_crc() argument 157 for (i = 0; i < buflen - 1; i++) in edt_ft5x06_ts_check_crc() 160 if (crc != buf[buflen-1]) { in edt_ft5x06_ts_check_crc() 163 crc, buf[buflen-1]); in edt_ft5x06_ts_check_crc()
|
/linux-4.4.14/drivers/input/ |
D | input.c | 1536 len = input_print_bitmap(&env->buf[env->buflen - 1], in input_add_uevent_bm_var() 1537 sizeof(env->buf) - env->buflen, in input_add_uevent_bm_var() 1539 if (len >= (sizeof(env->buf) - env->buflen)) in input_add_uevent_bm_var() 1542 env->buflen += len; in input_add_uevent_bm_var() 1554 len = input_print_modalias(&env->buf[env->buflen - 1], in input_add_uevent_modalias_var() 1555 sizeof(env->buf) - env->buflen, in input_add_uevent_modalias_var() 1557 if (len >= (sizeof(env->buf) - env->buflen)) in input_add_uevent_modalias_var() 1560 env->buflen += len; in input_add_uevent_modalias_var()
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | s3c-hsudc.c | 383 u32 buflen, rcnt, rlen; in s3c_hsudc_read_fifo() local 394 buflen = hsreq->req.length - hsreq->req.actual; in s3c_hsudc_read_fifo() 399 hsreq->req.actual += min(rlen, buflen); in s3c_hsudc_read_fifo() 404 if (buflen) { in s3c_hsudc_read_fifo() 406 buflen--; in s3c_hsudc_read_fifo()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_user.h | 460 static inline void obd_uuid2fsname(char *buf, char *uuid, int buflen) in obd_uuid2fsname() argument 464 strncpy(buf, uuid, buflen - 1); in obd_uuid2fsname() 465 buf[buflen - 1] = '\0'; in obd_uuid2fsname()
|
/linux-4.4.14/drivers/platform/x86/ |
D | wmi.c | 665 strcpy(&env->buf[env->buflen - 1], "wmi:"); in wmi_dev_uevent() 666 memcpy(&env->buf[env->buflen - 1 + 4], guid_string, 36); in wmi_dev_uevent() 667 env->buflen += 40; in wmi_dev_uevent()
|
/linux-4.4.14/arch/tile/kernel/ |
D | hvglue_trace.c | 248 HV_VirtAddr, buf, int, buflen) 250 HV_VirtAddr, buf, int, buflen)
|