| /linux/include/trace/events/ |
| H A D | icmp.h | 25 __field(unsigned short, ulen) 46 __entry->ulen = 0; 50 __entry->ulen = udp_get_len_short(uh); 63 __entry->dport, __entry->ulen, __entry->skbaddr)
|
| /linux/tools/bpf/ |
| H A D | bpf_jit_disasm.c | |
| /linux/arch/s390/pci/ |
| H A D | pci_mmio.c | 56 u64 ulen, u8 *status) in __pcistg_mio_inuser() argument 58 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcistg_mio_inuser() 62 u64 cnt = ulen; in __pcistg_mio_inuser() 212 u64 ulen, u8 *status) in __pcilg_mio_inuser() argument 214 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcilg_mio_inuser() 216 u64 cnt = ulen; in __pcilg_mio_inuser() 217 int shift = ulen * 8; in __pcilg_mio_inuser()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tcp_custom_syncookie.h | 90 __u32 ulen; in csum_ipv6_magic() local 126 ulen = (__force u32)bpf_htonl((__u32)len); in csum_ipv6_magic() 127 sum += ulen; in csum_ipv6_magic() 128 carry = (sum < ulen); in csum_ipv6_magic()
|
| /linux/fs/nfs/ |
| H A D | fscache.c | 88 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()
|
| H A D | nfs42xdr.c | 1287 u32 count, len, ulen; in decode_listxattrs() local 1349 ulen = len + XATTR_USER_PREFIX_LEN + 1; in decode_listxattrs() 1351 if (ulen > left) { in decode_listxattrs() 1359 buf[ulen - 1] = 0; in decode_listxattrs() 1360 buf += ulen; in decode_listxattrs() 1361 left -= ulen; in decode_listxattrs() 1363 copied += ulen; in decode_listxattrs()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 3957 static int bpf_copy_to_user(char __user *ubuf, const char *buf, u32 ulen, in bpf_perf_link_release() 3960 if (ulen >= len + 1) { in bpf_perf_link_release() 3966 if (copy_to_user(ubuf, buf, ulen - 1)) in bpf_perf_link_dealloc() 3968 if (put_user(zero, ubuf + ulen - 1)) in bpf_perf_link_dealloc() 3983 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_perf_link_fill_common() 3986 if (!ulen ^ !ubuf) in bpf_perf_link_fill_common() 3995 return bpf_copy_to_user(ubuf, tp_name, ulen, tp_len); in bpf_perf_link_fill_common() 4033 u32 prog_id, ulen; in bpf_perf_link_fill_kprobe() 4037 ulen = *ulenp; in bpf_perf_link_fill_kprobe() 4038 if (!ulen in bpf_perf_link_fill_kprobe() 3900 bpf_copy_to_user(char __user * ubuf,const char * buf,u32 ulen,u32 len) bpf_copy_to_user() argument 3926 u32 ulen = info->raw_tracepoint.tp_name_len; bpf_raw_tp_link_fill_link_info() local 3976 u32 prog_id, ulen; bpf_perf_link_fill_common() local 4018 u32 ulen, type; bpf_perf_link_fill_kprobe() local 4074 u32 ulen, type; bpf_perf_link_fill_uprobe() local 4139 u32 ulen; bpf_perf_link_fill_tracepoint() local 5127 u32 ulen, len; bpf_prog_get_info_by_fd() local [all...] |
| H A D | offload.c | 486 u32 ulen; in bpf_prog_offload_info_fill() 502 ulen = info->jited_prog_len; 504 if (info->jited_prog_len && ulen) { in bpf_map_offload_map_alloc() 506 ulen = min_t(u32, info->jited_prog_len, ulen); in bpf_map_offload_map_alloc() 507 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_map_offload_map_alloc() 463 u32 ulen; bpf_prog_offload_info_fill() local
|
| H A D | bpf_iter.c | 484 u32 ulen = info->iter.target_name_len; in bpf_iter_link_fill_link_info() 488 if (!ulen ^ !ubuf) in bpf_iter_link_fill_link_info() 496 if (ulen >= target_len + 1) { 502 if (copy_to_user(ubuf, target_name, ulen - 1)) in bpf_link_is_iter() 504 if (put_user(zero, ubuf + ulen - 1)) in bpf_iter_link_attach() 458 u32 ulen = info->iter.target_name_len; bpf_iter_link_fill_link_info() local
|
| /linux/net/ipv6/ |
| H A D | udp.c | 472 unsigned int ulen, copied; in udpv6_recvmsg() local 487 ulen = udp6_skb_len(skb); in udpv6_recvmsg() 489 if (copied > ulen - off) in udpv6_recvmsg() 490 copied = ulen - off; in udpv6_recvmsg() 491 else if (copied < ulen) in udpv6_recvmsg() 500 if (copied < ulen || peeking) { in udpv6_recvmsg() 571 err = ulen; in udpv6_recvmsg() 1085 u32 ulen = 0; in udpv6_rcv() 1094 ulen = udp_get_len(skb, uh, 0); in udpv6_rcv() 1095 if (ulen > sk in udpv6_rcv() 1090 u32 ulen = 0; udpv6_rcv() local 1490 int ulen = len; udpv6_sendmsg() local [all...] |
| /linux/lib/ |
| H A D | bitmap-str.c | 20 * @ulen: buffer size in bytes. If string is smaller than this 26 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() 32 buf = memdup_user_nul(ubuf, ulen); in bitmap_parse_user() 385 * @ulen: buffer size in bytes. If string is smaller than this in bitmap_parselist_user() 393 unsigned int ulen, unsigned long *maskp, in bitmap_parselist_user() 399 buf = memdup_user_nul(ubuf, ulen); 25 bitmap_parse_user(const char __user * ubuf,unsigned int ulen,unsigned long * maskp,int nmaskbits) bitmap_parse_user() argument 383 bitmap_parselist_user(const char __user * ubuf,unsigned int ulen,unsigned long * maskp,int nmaskbits) bitmap_parselist_user() argument
|
| /linux/arch/riscv/lib/ |
| H A D | csum.c | 24 unsigned int ulen, uproto; in csum_ipv6_magic() local 37 ulen = (__force unsigned int)htonl((unsigned int)len); in csum_ipv6_magic() 38 sum += ulen; in csum_ipv6_magic()
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_cca_key.h | 16 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/io_uring/ |
| H A D | cmd_net.c | 167 int __user *ulen; in io_uring_cmd_getsockname() local 173 ulen = u64_to_user_ptr(READ_ONCE(sqe->addr3)); in io_uring_cmd_getsockname() 177 return do_getsockname(sock, peer, uaddr, ulen); in io_uring_cmd_getsockname()
|
| /linux/fs/fat/ |
| H A D | namei_vfat.c | 326 wchar_t *uname, int ulen, in vfat_create_shortname() argument 343 ext_start = end = &uname[ulen]; in vfat_create_shortname() 347 sz = ulen; in vfat_create_shortname() 355 sz = ulen; in vfat_create_shortname() 373 sz = ulen; in vfat_create_shortname() 591 int err, ulen, usize, i; in vfat_build_slots() local 600 err = xlate_to_uni(name, len, (unsigned char *)uname, &ulen, &usize, in vfat_build_slots() 605 err = vfat_is_used_badchars(uname, ulen); in vfat_build_slots() 609 err = vfat_create_shortname(dir, sbi->nls_disk, uname, ulen, in vfat_build_slots()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_refcount.c | 911 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center() 935 * The new record cannot exceed the max length. ulen is a ULL as the in xfs_refc_want_merge_center() 939 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center() 940 if (ulen >= XFS_REFC_LEN_MAX) in xfs_refc_want_merge_center() 943 *ulenp = ulen; in xfs_refc_want_merge_center() 953 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left() 970 * The new record cannot exceed the max length. ulen is a ULL as the in xfs_refc_want_merge_left() 974 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left() 975 if (ulen >= XFS_REFC_LEN_MAX) in xfs_refc_want_merge_left() 987 unsigned long long ulen in xfs_refc_want_merge_right() 912 unsigned long long ulen = left->rc_blockcount; xfs_refc_want_merge_center() local 954 unsigned long long ulen = left->rc_blockcount; xfs_refc_want_merge_left() local 988 unsigned long long ulen = right->rc_blockcount; xfs_refc_want_merge_right() local 1031 unsigned long long ulen; xfs_refcount_merge_extents() local [all...] |
| /linux/net/ipv4/ |
| H A D | udp_offload.c | 708 unsigned int ulen; in udp_gro_receive_segment() 718 ulen = udp_get_len_short(uh); in udp_gro_receive_segment() 748 if (ulen > udp_get_len_short(uh2) || flush) { in udp_gro_receive_segment() 772 if (ret || ulen != udp_get_len_short(uh2) || in udp_gro_receive_segment() 790 unsigned int ulen; in udp_gro_receive() 794 ulen = udp_get_len_short(uh); in udp_gro_receive() 795 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) in udp_gro_receive() 702 unsigned int ulen; udp_gro_receive_segment() local 783 unsigned int ulen; udp_gro_receive() local
|
| H A D | udp.c | 1277 int ulen = len, free = 0, connected = 0; in udp_sendmsg() 1317 ulen += sizeof(struct udphdr); in udp_sendmsg() 1476 skb = ip_make_skb(sk, fl4, ip_generic_getfrag, msg, ulen, in udp_sendmsg() 1506 up->len += ulen; in udp_sendmsg() 1507 err = ip_append_data(sk, fl4, ip_generic_getfrag, msg, ulen, in udp_sendmsg() 2076 unsigned int ulen, copied; in udp_recvmsg() 2088 ulen = udp_skb_len(skb); in udp_recvmsg() 2090 if (copied > ulen - off) in udp_recvmsg() 2091 copied = ulen - off; in udp_recvmsg() 2092 else if (copied < ulen) in udp_recvmsg() 1261 int ulen = len, free = 0, connected = 0; udp_sendmsg() local 2060 unsigned int ulen, copied; udp_recvmsg() local 2640 unsigned int ulen; udp_rcv() local [all...] |
| /linux/fs/ntfs/ |
| H A D | reparse.c | 60 const __le16 *uname, u16 ulen, in ntfs_reparse_target_to_nls() argument 66 ulen >>= 1; in ntfs_reparse_target_to_nls() 67 if (!ulen) in ntfs_reparse_target_to_nls() 70 if (!uname[ulen - 1]) in ntfs_reparse_target_to_nls() 71 ulen--; in ntfs_reparse_target_to_nls() 73 err = ntfs_ucstonls(vol, uname, ulen, (unsigned char **)target, 0); in ntfs_reparse_target_to_nls()
|
| /linux/fs/smb/client/ |
| H A D | reparse.c | 826 int rc, ulen; in smb2_parse_native_symlink() local 840 ulen = UniStrnlen((wchar_t *)buf, len/2); in smb2_parse_native_symlink() 841 if (ulen != len/2) { in smb2_parse_native_symlink() 843 rc = smb_EIO2(smb_eio_trace_reparse_native_nul, ulen, len); in smb2_parse_native_symlink() 1070 size_t ulen = strnlen(buf->Target, symname_utf8_len); in parse_reparse_wsl_symlink() local 1072 if (ulen != symname_utf8_len) { in parse_reparse_wsl_symlink() 1075 ulen, symname_utf8_len); in parse_reparse_wsl_symlink()
|
| /linux/fs/ntfs3/ |
| H A D | inode.c | 2140 u16 ulen = 0; in ntfs_readlink_hlp() 2195 ulen = le16_to_cpu(rp->MountPointReparseBuffer.PrintNameLength); in ntfs_readlink_hlp() 2209 ulen = le16_to_cpu( in ntfs_readlink_hlp() 2247 ulen = le16_to_cpu(rp->ReparseDataLength) - in ntfs_readlink_hlp() 2252 ulen >>= 1; in ntfs_readlink_hlp() 2255 if (!ulen || uname + ulen > (__le16 *)Add2Ptr(rp, size)) in ntfs_readlink_hlp() 2259 if (!uname[ulen - 1]) in ntfs_readlink_hlp() 2260 ulen -= 1; in ntfs_readlink_hlp() 2262 err = ntfs_utf16_to_nls(sbi, uname, ulen, buffe in ntfs_readlink_hlp() 2120 u16 ulen = 0; ntfs_readlink_hlp() local [all...] |
| H A D | namei.c | 34 int ulen = uni->len; in fill_name_de() 38 while (ulen--) in fill_name_de() 33 int ulen = uni->len; fill_name_de() local
|
| /linux/security/apparmor/ |
| H A D | label.c | 1515 size_t ulen = len; \ 1518 total += ulen; \ 1519 ulen = min(ulen, size); \ 1520 size -= ulen; \ 1521 str += ulen; \
|
| /linux/net/ |
| H A D | socket.c | 242 * @ulen: Length in user space 249 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument 251 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel() 253 if (ulen == 0) in move_addr_to_kernel() 255 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel() 257 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel() 265 * @ulen: pointer to user length field 267 * The value pointed to by ulen on entry is the buffer length available. 278 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument [all...] |
| /linux/include/linux/ |
| H A D | nodemask.h | 333 #define nodemask_parse_user(ubuf, ulen, dst) \ argument 334 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
|