| /linux/include/trace/events/ |
| H A D | icmp.h | 25 __field(unsigned short, ulen) 43 __entry->ulen = 0; 47 __entry->ulen = ntohs(uh->len); 60 __entry->dport, __entry->ulen, __entry->skbaddr)
|
| /linux/tools/bpf/ |
| H A D | bpf_jit_disasm.c | 181 int ret, flen, pass, ulen = 0; in get_last_jit_image() local 227 while ((ptr = strtok(tmp, "\n")) != NULL && ulen < proglen) { in get_last_jit_image() 236 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16); in get_last_jit_image() 238 ulen--; in get_last_jit_image() 241 if (ulen >= proglen) in get_last_jit_image() 247 assert(ulen == proglen); in get_last_jit_image() 253 *ilen = ulen; in get_last_jit_image()
|
| /linux/net/ipv6/ |
| H A D | ip6_checksum.c | 14 __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()
|
| /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/kernel/bpf/ |
| H A D | syscall.c | 3793 static int bpf_copy_to_user(char __user *ubuf, const char *buf, u32 ulen, in bpf_copy_to_user() argument 3796 if (ulen >= len + 1) { in bpf_copy_to_user() 3802 if (copy_to_user(ubuf, buf, ulen - 1)) in bpf_copy_to_user() 3804 if (put_user(zero, ubuf + ulen - 1)) in bpf_copy_to_user() 3819 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local 3822 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info() 3831 return bpf_copy_to_user(ubuf, tp_name, ulen, tp_len); in bpf_raw_tp_link_fill_link_info() 3869 u32 prog_id, ulen; in bpf_perf_link_fill_common() local 3873 ulen = *ulenp; in bpf_perf_link_fill_common() 3874 if (!ulen ^ !uname) in bpf_perf_link_fill_common() [all …]
|
| H A D | offload.c | 474 u32 ulen; in bpf_prog_offload_info_fill() local 490 ulen = info->jited_prog_len; in bpf_prog_offload_info_fill() 492 if (info->jited_prog_len && ulen) { in bpf_prog_offload_info_fill() 494 ulen = min_t(u32, info->jited_prog_len, ulen); in bpf_prog_offload_info_fill() 495 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_prog_offload_info_fill()
|
| /linux/lib/ |
| H A D | bitmap-str.c | 25 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument 31 buf = memdup_user_nul(ubuf, ulen); in bitmap_parse_user() 416 unsigned int ulen, unsigned long *maskp, in bitmap_parselist_user() argument 422 buf = memdup_user_nul(ubuf, ulen); in bitmap_parselist_user()
|
| /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/fs/fat/ |
| H A D | namei_vfat.c | 325 wchar_t *uname, int ulen, in vfat_create_shortname() argument 342 ext_start = end = &uname[ulen]; in vfat_create_shortname() 346 sz = ulen; in vfat_create_shortname() 354 sz = ulen; in vfat_create_shortname() 372 sz = ulen; in vfat_create_shortname() 590 int err, ulen, usize, i; in vfat_build_slots() local 599 err = xlate_to_uni(name, len, (unsigned char *)uname, &ulen, &usize, in vfat_build_slots() 604 err = vfat_is_used_badchars(uname, ulen); in vfat_build_slots() 608 err = vfat_create_shortname(dir, sbi->nls_disk, uname, ulen, in vfat_build_slots()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_refcount.c | 912 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center() local 940 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center() 941 if (ulen >= XFS_REFC_LEN_MAX) in xfs_refc_want_merge_center() 944 *ulenp = ulen; in xfs_refc_want_merge_center() 954 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left() local 975 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left() 976 if (ulen >= XFS_REFC_LEN_MAX) in xfs_refc_want_merge_left() 988 unsigned long long ulen = right->rc_blockcount; in xfs_refc_want_merge_right() local 1009 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right() 1010 if (ulen >= XFS_REFC_LEN_MAX) in xfs_refc_want_merge_right() [all …]
|
| /linux/fs/smb/client/ |
| H A D | reparse.c | 800 int rc, ulen; in smb2_parse_native_symlink() local 814 ulen = UniStrnlen((wchar_t *)buf, len/2); in smb2_parse_native_symlink() 815 if (ulen != len/2) { in smb2_parse_native_symlink() 817 rc = smb_EIO2(smb_eio_trace_reparse_native_nul, ulen, len); in smb2_parse_native_symlink() 1043 size_t ulen = strnlen(buf->Target, symname_utf8_len); in parse_reparse_wsl_symlink() local 1045 if (ulen != symname_utf8_len) { in parse_reparse_wsl_symlink() 1048 ulen, symname_utf8_len); in parse_reparse_wsl_symlink()
|
| H A D | fs_context.c | 623 size_t ulen, plen; in smb3_fs_context_fullpath() local 626 ulen = strlen(ctx->UNC); in smb3_fs_context_fullpath() 629 s = kmalloc(ulen + plen + 1, GFP_KERNEL); in smb3_fs_context_fullpath() 632 memcpy(s, ctx->UNC, ulen); in smb3_fs_context_fullpath() 634 s[ulen] = dirsep; in smb3_fs_context_fullpath() 635 memcpy(s + ulen + 1, ctx->prepath, plen); in smb3_fs_context_fullpath() 637 s[ulen + plen] = '\0'; in smb3_fs_context_fullpath()
|
| /linux/net/ipv4/ |
| H A D | udp.c | 1277 int ulen = len; in udp_sendmsg() local 1320 ulen += sizeof(struct udphdr); in udp_sendmsg() 1479 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg() 1509 up->len += ulen; in udp_sendmsg() 1510 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg() 2059 unsigned int ulen, copied; in udp_recvmsg() local 2073 ulen = udp_skb_len(skb); in udp_recvmsg() 2075 if (copied > ulen - off) in udp_recvmsg() 2076 copied = ulen - off; in udp_recvmsg() 2077 else if (copied < ulen) in udp_recvmsg() [all …]
|
| /linux/fs/nfs/ |
| H A D | nfs42xdr.c | 1284 u32 count, len, ulen; in decode_listxattrs() local 1346 ulen = len + XATTR_USER_PREFIX_LEN + 1; in decode_listxattrs() 1348 if (ulen > left) { in decode_listxattrs() 1356 buf[ulen - 1] = 0; in decode_listxattrs() 1357 buf += ulen; in decode_listxattrs() 1358 left -= ulen; in decode_listxattrs() 1360 copied += ulen; in decode_listxattrs()
|
| H A D | super.c | 1266 int ulen = 0; in nfs_get_cache_cookie() local 1279 ulen = strlen(uniq); in nfs_get_cache_cookie() 1286 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie() 1290 return nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
|
| /linux/net/ |
| H A D | socket.c | 248 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument 250 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel() 252 if (ulen == 0) in move_addr_to_kernel() 254 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel() 256 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel() 277 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument 284 ulen = masked_user_access_begin(ulen); in move_addr_to_user() 285 else if (!user_access_begin(ulen, 4)) in move_addr_to_user() 288 unsafe_get_user(len, ulen, efault_end); in move_addr_to_user() 297 unsafe_put_user(klen, ulen, efault_end); in move_addr_to_user()
|
| /linux/security/apparmor/ |
| H A D | label.c | 1479 size_t ulen = len; \ 1482 total += ulen; \ 1483 ulen = min(ulen, size); \ 1484 size -= ulen; \ 1485 str += ulen; \
|
| /linux/net/l2tp/ |
| H A D | l2tp_ip6.c | 532 int ulen; in l2tp_ip6_sendmsg() 654 ulen = len + (skb_queue_empty(&sk->sk_write_queue) ? transhdrlen : 0); in l2tp_ip6_sendmsg() 656 ulen, transhdrlen, &ipc6, in l2tp_ip6_sendmsg() 531 int ulen; l2tp_ip6_sendmsg() local
|
| /linux/io_uring/ |
| H A D | rsrc.h | 87 int io_validate_user_buf_range(u64 uaddr, u64 ulen);
|
| H A D | rsrc.c | 86 int io_validate_user_buf_range(u64 uaddr, u64 ulen) in io_validate_user_buf_range() argument 89 unsigned long acct_len = (unsigned long)PAGE_ALIGN(ulen); in io_validate_user_buf_range() 92 if (ulen > SZ_1G || !ulen) in io_validate_user_buf_range()
|
| /linux/include/linux/ |
| H A D | nodemask.h | 325 #define nodemask_parse_user(ubuf, ulen, dst) \ argument 326 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
|
| H A D | socket.h | 408 extern int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr);
|
| /linux/net/can/j1939/ |
| H A D | socket.c | 772 int ret, ulen; in j1939_sk_getsockopt() 780 if (get_user(ulen, optlen)) in j1939_sk_getsockopt() 782 if (ulen < 0) in j1939_sk_getsockopt() 805 if (len > ulen) in j1939_sk_getsockopt() 766 int ret, ulen; j1939_sk_getsockopt() local
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvb_net.c | 820 __be16 ulen = htons(h.priv->ule_sndu_len); in dvb_net_ule() local 824 { &ulen, sizeof ulen }, in dvb_net_ule() 833 ulen |= htons(0x8000); in dvb_net_ule()
|