Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 3 of 3) sorted by relevance

/lib/
Dscatterlist.c153 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()
651 size_t buflen, off_t skip, bool to_buffer) in sg_copy_buffer() argument
670 while (sg_miter_next(&miter) && offset < buflen) { in sg_copy_buffer()
673 len = min(miter.length, buflen - offset); in sg_copy_buffer()
701 const void *buf, size_t buflen) in sg_copy_from_buffer() argument
703 return sg_copy_buffer(sgl, nents, (void *)buf, buflen, 0, false); in sg_copy_from_buffer()
718 void *buf, size_t buflen) in sg_copy_to_buffer() argument
720 return sg_copy_buffer(sgl, nents, buf, buflen, 0, true); in sg_copy_to_buffer()
736 const void *buf, size_t buflen, off_t skip) in sg_pcopy_from_buffer() argument
[all …]
Dkobject_uevent.c131 int buffer_size = sizeof(env->buf) - env->buflen; in init_uevent_argv()
134 len = strlcpy(&env->buf[env->buflen], subsystem, buffer_size); in init_uevent_argv()
142 env->argv[1] = &env->buf[env->buflen]; in init_uevent_argv()
145 env->buflen += len + 1; in init_uevent_argv()
301 skb = alloc_skb(len + env->buflen, GFP_KERNEL); in kobject_uevent_env()
398 len = vsnprintf(&env->buf[env->buflen], in add_uevent_var()
399 sizeof(env->buf) - env->buflen, in add_uevent_var()
403 if (len >= (sizeof(env->buf) - env->buflen)) { in add_uevent_var()
408 env->envp[env->envp_idx++] = &env->buf[env->buflen]; in add_uevent_var()
409 env->buflen += len + 1; in add_uevent_var()
Dbitmap.c359 int __bitmap_parse(const char *buf, unsigned int buflen, in __bitmap_parse() argument
375 while (buflen) { in __bitmap_parse()
383 buflen--; in __bitmap_parse()
424 } while (buflen && c == ','); in __bitmap_parse()
505 static int __bitmap_parselist(const char *buf, unsigned int buflen, in __bitmap_parselist() argument
523 while (buflen) { in __bitmap_parselist()
530 buflen--; in __bitmap_parselist()
580 } while (buflen && c == ','); in __bitmap_parselist()