Lines Matching refs:alen
50 size_t alen; in alloc_msg() local
52 alen = min(len, DATALEN_MSG); in alloc_msg()
53 msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg()
60 len -= alen; in alloc_msg()
67 alen = min(len, DATALEN_SEG); in alloc_msg()
68 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg()
74 len -= alen; in alloc_msg()
89 size_t alen; in load_msg() local
95 alen = min(len, DATALEN_MSG); in load_msg()
96 if (copy_from_user(msg + 1, src, alen)) in load_msg()
100 len -= alen; in load_msg()
101 src = (char __user *)src + alen; in load_msg()
102 alen = min(len, DATALEN_SEG); in load_msg()
103 if (copy_from_user(seg + 1, src, alen)) in load_msg()
122 size_t alen; in copy_msg() local
127 alen = min(len, DATALEN_MSG); in copy_msg()
128 memcpy(dst + 1, src + 1, alen); in copy_msg()
134 len -= alen; in copy_msg()
135 alen = min(len, DATALEN_SEG); in copy_msg()
136 memcpy(dst_pseg + 1, src_pseg + 1, alen); in copy_msg()
152 size_t alen; in store_msg() local
155 alen = min(len, DATALEN_MSG); in store_msg()
156 if (copy_to_user(dest, msg + 1, alen)) in store_msg()
160 len -= alen; in store_msg()
161 dest = (char __user *)dest + alen; in store_msg()
162 alen = min(len, DATALEN_SEG); in store_msg()
163 if (copy_to_user(dest, seg + 1, alen)) in store_msg()