Home
last modified time | relevance | path

Searched refs:ulen (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.6.21/tools/bpf/
Dbpf_jit_disasm.c179 int ret, flen, pass, ulen = 0; in get_last_jit_image() local
225 while ((ptr = strtok(tmp, "\n")) != NULL && ulen < proglen) { in get_last_jit_image()
234 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16); in get_last_jit_image()
236 ulen--; in get_last_jit_image()
239 if (ulen >= proglen) in get_last_jit_image()
245 assert(ulen == proglen); in get_last_jit_image()
251 *ilen = ulen; in get_last_jit_image()
/linux-6.6.21/arch/s390/pci/
Dpci_mmio.c51 u64 ulen, u8 *status) in __pcistg_mio_inuser() argument
53 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcistg_mio_inuser()
56 u64 cnt = ulen; in __pcistg_mio_inuser()
195 u64 ulen, u8 *status) in __pcilg_mio_inuser() argument
197 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcilg_mio_inuser()
198 u64 cnt = ulen; in __pcilg_mio_inuser()
199 int shift = ulen * 8; in __pcilg_mio_inuser()
/linux-6.6.21/net/ipv6/
Dip6_checksum.c14 __u32 ulen; in csum_ipv6_magic() local
50 ulen = (__force u32)htonl((__u32) len); in csum_ipv6_magic()
51 sum += ulen; in csum_ipv6_magic()
52 carry = (sum < ulen); in csum_ipv6_magic()
Dudp.c327 unsigned int ulen, copied; in udpv6_recvmsg() local
346 ulen = udp6_skb_len(skb); in udpv6_recvmsg()
348 if (copied > ulen - off) in udpv6_recvmsg()
349 copied = ulen - off; in udpv6_recvmsg()
350 else if (copied < ulen) in udpv6_recvmsg()
362 if (copied < ulen || peeking || in udpv6_recvmsg()
434 err = ulen; in udpv6_recvmsg()
938 u32 ulen = 0; in __udp6_lib_rcv() local
947 ulen = ntohs(uh->len); in __udp6_lib_rcv()
948 if (ulen > skb->len) in __udp6_lib_rcv()
[all …]
/linux-6.6.21/kernel/bpf/
Dsyscall.c3342 static int bpf_copy_to_user(char __user *ubuf, const char *buf, u32 ulen, in bpf_copy_to_user() argument
3345 if (ulen >= len + 1) { in bpf_copy_to_user()
3351 if (copy_to_user(ubuf, buf, ulen - 1)) in bpf_copy_to_user()
3353 if (put_user(zero, ubuf + ulen - 1)) in bpf_copy_to_user()
3368 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local
3371 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info()
3379 return bpf_copy_to_user(ubuf, tp_name, ulen, tp_len); in bpf_raw_tp_link_fill_link_info()
3412 char __user *uname, u32 ulen, in bpf_perf_link_fill_common() argument
3421 if (!ulen ^ !uname) in bpf_perf_link_fill_common()
3432 err = bpf_copy_to_user(uname, buf, ulen, len); in bpf_perf_link_fill_common()
[all …]
Doffload.c466 u32 ulen; in bpf_prog_offload_info_fill() local
482 ulen = info->jited_prog_len; in bpf_prog_offload_info_fill()
484 if (info->jited_prog_len && ulen) { in bpf_prog_offload_info_fill()
486 ulen = min_t(u32, info->jited_prog_len, ulen); in bpf_prog_offload_info_fill()
487 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_prog_offload_info_fill()
Dbpf_iter.c461 u32 ulen = info->iter.target_name_len; in bpf_iter_link_fill_link_info() local
465 if (!ulen ^ !ubuf) in bpf_iter_link_fill_link_info()
473 if (ulen >= target_len + 1) { in bpf_iter_link_fill_link_info()
479 if (copy_to_user(ubuf, target_name, ulen - 1)) in bpf_iter_link_fill_link_info()
481 if (put_user(zero, ubuf + ulen - 1)) in bpf_iter_link_fill_link_info()
/linux-6.6.21/fs/nfs/
Dfscache.c88 int nfs_fscache_get_super_cookie(struct super_block *sb, const char *uniq, int ulen) in nfs_fscache_get_super_cookie() argument
96 nfss->fscache_uniq = kmemdup_nul(uniq, ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie()
120 if (ulen > 0) { in nfs_fscache_get_super_cookie()
121 if (ulen > NFS_MAX_KEY_LEN - len) in nfs_fscache_get_super_cookie()
124 memcpy(key + len, uniq, ulen); in nfs_fscache_get_super_cookie()
125 len += ulen; in nfs_fscache_get_super_cookie()
Dnfs42xdr.c1189 u32 count, len, ulen; in decode_listxattrs() local
1251 ulen = len + XATTR_USER_PREFIX_LEN + 1; in decode_listxattrs()
1253 if (ulen > left) { in decode_listxattrs()
1261 buf[ulen - 1] = 0; in decode_listxattrs()
1262 buf += ulen; in decode_listxattrs()
1263 left -= ulen; in decode_listxattrs()
1265 copied += ulen; in decode_listxattrs()
Dsuper.c1224 int ulen = 0; in nfs_get_cache_cookie() local
1237 ulen = strlen(uniq); in nfs_get_cache_cookie()
1244 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie()
1248 return nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
/linux-6.6.21/drivers/s390/crypto/
Dzcrypt_cca_key.h16 unsigned short ulen; member
145 key->t6_hdr.ulen = key->pubhdr.token_length + 4; in zcrypt_type6_mex_key_en()
195 key->t6_hdr.ulen = size - 2; in zcrypt_type6_crt_key()
/linux-6.6.21/fs/fat/
Dnamei_vfat.c328 wchar_t *uname, int ulen, in vfat_create_shortname() argument
345 ext_start = end = &uname[ulen]; in vfat_create_shortname()
349 sz = ulen; in vfat_create_shortname()
357 sz = ulen; in vfat_create_shortname()
375 sz = ulen; in vfat_create_shortname()
593 int err, ulen, usize, i; in vfat_build_slots() local
602 err = xlate_to_uni(name, len, (unsigned char *)uname, &ulen, &usize, in vfat_build_slots()
607 err = vfat_is_used_badchars(uname, ulen); in vfat_build_slots()
611 err = vfat_create_shortname(dir, sbi->nls_disk, uname, ulen, in vfat_build_slots()
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_refcount.c866 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center() local
894 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center()
895 if (ulen >= MAXREFCEXTLEN) in xfs_refc_want_merge_center()
898 *ulenp = ulen; in xfs_refc_want_merge_center()
908 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left() local
929 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left()
930 if (ulen >= MAXREFCEXTLEN) in xfs_refc_want_merge_left()
942 unsigned long long ulen = right->rc_blockcount; in xfs_refc_want_merge_right() local
963 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right()
964 if (ulen >= MAXREFCEXTLEN) in xfs_refc_want_merge_right()
[all …]
/linux-6.6.21/net/ipv4/
Dudp_offload.c471 unsigned int ulen; in udp_gro_receive_segment() local
481 ulen = ntohs(uh->len); in udp_gro_receive_segment()
482 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment()
512 if (ulen > ntohs(uh2->len)) { in udp_gro_receive_segment()
534 if (ret || ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
Dudp.c1045 int ulen = len; in udp_sendmsg() local
1087 ulen += sizeof(struct udphdr); in udp_sendmsg()
1243 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1273 up->len += ulen; in udp_sendmsg()
1274 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1798 unsigned int ulen, copied; in udp_recvmsg() local
1812 ulen = udp_skb_len(skb); in udp_recvmsg()
1814 if (copied > ulen - off) in udp_recvmsg()
1815 copied = ulen - off; in udp_recvmsg()
1816 else if (copied < ulen) in udp_recvmsg()
[all …]
/linux-6.6.21/fs/smb/client/
Dfs_context.c494 size_t ulen, plen; in smb3_fs_context_fullpath() local
497 ulen = strlen(ctx->UNC); in smb3_fs_context_fullpath()
500 s = kmalloc(ulen + plen + 1, GFP_KERNEL); in smb3_fs_context_fullpath()
503 memcpy(s, ctx->UNC, ulen); in smb3_fs_context_fullpath()
505 s[ulen] = dirsep; in smb3_fs_context_fullpath()
506 memcpy(s + ulen + 1, ctx->prepath, plen); in smb3_fs_context_fullpath()
508 s[ulen + plen] = '\0'; in smb3_fs_context_fullpath()
/linux-6.6.21/fs/ntfs3/
Dinode.c1922 u16 ulen = 0; in ntfs_readlink_hlp() local
1977 ulen = le16_to_cpu(rp->MountPointReparseBuffer.PrintNameLength); in ntfs_readlink_hlp()
1991 ulen = le16_to_cpu( in ntfs_readlink_hlp()
2029 ulen = le16_to_cpu(rp->ReparseDataLength) - in ntfs_readlink_hlp()
2034 ulen >>= 1; in ntfs_readlink_hlp()
2037 if (!ulen || uname + ulen > (__le16 *)Add2Ptr(rp, size)) in ntfs_readlink_hlp()
2041 if (!uname[ulen - 1]) in ntfs_readlink_hlp()
2042 ulen -= 1; in ntfs_readlink_hlp()
2044 err = ntfs_utf16_to_nls(sbi, uname, ulen, buffer, buflen); in ntfs_readlink_hlp()
Dnamei.c33 int ulen = uni->len; in fill_name_de() local
37 while (ulen--) in fill_name_de()
/linux-6.6.21/lib/
Dbitmap.c458 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument
464 buf = memdup_user_nul(ubuf, ulen); in bitmap_parse_user()
849 unsigned int ulen, unsigned long *maskp, in bitmap_parselist_user() argument
855 buf = memdup_user_nul(ubuf, ulen); in bitmap_parselist_user()
/linux-6.6.21/net/l2tp/
Dl2tp_ip6.c502 int ulen; in l2tp_ip6_sendmsg() local
630 ulen = len + (skb_queue_empty(&sk->sk_write_queue) ? transhdrlen : 0); in l2tp_ip6_sendmsg()
632 ulen, transhdrlen, &ipc6, in l2tp_ip6_sendmsg()
/linux-6.6.21/include/linux/
Dbitmap.h205 int bitmap_parse_user(const char __user *ubuf, unsigned int ulen,
209 int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
Dnodemask.h339 #define nodemask_parse_user(ubuf, ulen, dst) \ argument
340 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
/linux-6.6.21/security/apparmor/
Dlabel.c1489 size_t ulen = len; \
1492 total += ulen; \
1493 ulen = min(ulen, size); \
1494 size -= ulen; \
1495 str += ulen; \
/linux-6.6.21/net/can/j1939/
Dsocket.c761 int ret, ulen; in j1939_sk_getsockopt() local
769 if (get_user(ulen, optlen)) in j1939_sk_getsockopt()
771 if (ulen < 0) in j1939_sk_getsockopt()
794 if (len > ulen) in j1939_sk_getsockopt()
/linux-6.6.21/net/
Dsocket.c247 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument
249 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel()
251 if (ulen == 0) in move_addr_to_kernel()
253 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel()
255 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel()
276 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument
282 err = get_user(len, ulen); in move_addr_to_user()
299 return __put_user(klen, ulen); in move_addr_to_user()

12