Lines Matching refs:alen
55 size_t alen; in alloc_msg() local
57 alen = min(len, DATALEN_MSG); in alloc_msg()
58 msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL); in alloc_msg()
65 len -= alen; in alloc_msg()
69 alen = min(len, DATALEN_SEG); in alloc_msg()
70 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL); in alloc_msg()
76 len -= alen; in alloc_msg()
91 size_t alen; in load_msg() local
97 alen = min(len, DATALEN_MSG); in load_msg()
98 if (copy_from_user(msg + 1, src, alen)) in load_msg()
102 len -= alen; in load_msg()
103 src = (char __user *)src + alen; in load_msg()
104 alen = min(len, DATALEN_SEG); in load_msg()
105 if (copy_from_user(seg + 1, src, alen)) in load_msg()
124 size_t alen; in copy_msg() local
129 alen = min(len, DATALEN_MSG); in copy_msg()
130 memcpy(dst + 1, src + 1, alen); in copy_msg()
136 len -= alen; in copy_msg()
137 alen = min(len, DATALEN_SEG); in copy_msg()
138 memcpy(dst_pseg + 1, src_pseg + 1, alen); in copy_msg()
154 size_t alen; in store_msg() local
157 alen = min(len, DATALEN_MSG); in store_msg()
158 if (copy_to_user(dest, msg + 1, alen)) in store_msg()
162 len -= alen; in store_msg()
163 dest = (char __user *)dest + alen; in store_msg()
164 alen = min(len, DATALEN_SEG); in store_msg()
165 if (copy_to_user(dest, seg + 1, alen)) in store_msg()