/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 | 179 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/arch/s390/pci/ |
H A D | pci_mmio.c | 51 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() 196 u64 ulen, u8 *status) in __pcilg_mio_inuser() argument 198 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcilg_mio_inuser() 199 u64 cnt = ulen; in __pcilg_mio_inuser() 200 int shift = ulen * 8; in __pcilg_mio_inuser()
|
/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()
|
H A D | udp.c | 359 copied = ulen - off; in udpv6_recvmsg() 360 else if (copied < ulen) in udpv6_recvmsg() 444 err = ulen; in udpv6_recvmsg() 945 u32 ulen = 0; in __udp6_lib_rcv() local 954 ulen = ntohs(uh->len); in __udp6_lib_rcv() 955 if (ulen > skb->len) in __udp6_lib_rcv() 962 if (ulen == 0) in __udp6_lib_rcv() 963 ulen = skb->len; in __udp6_lib_rcv() 1044 ulen, skb->len, in __udp6_lib_rcv() 1346 int ulen = len; in udpv6_sendmsg() local [all …]
|
/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 | 1189 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()
|
/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 | 3688 u32 ulen; in bpf_perf_link_fill_tracepoint() local 4546 u32 ulen; in bpf_prog_get_info_by_fd() local 4571 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd() 4621 ulen = min_t(u32, info.xlated_prog_len, ulen); in bpf_prog_get_info_by_fd() 4653 ulen = min_t(u32, info.jited_prog_len, ulen); in bpf_prog_get_info_by_fd() 4694 ulen = min_t(u32, info.nr_jited_ksyms, ulen); in bpf_prog_get_info_by_fd() 4722 ulen = min_t(u32, info.nr_jited_func_lens, ulen); in bpf_prog_get_info_by_fd() 4753 ulen = min_t(u32, info.nr_func_info, ulen); in bpf_prog_get_info_by_fd() 4765 ulen = min_t(u32, info.nr_line_info, ulen); in bpf_prog_get_info_by_fd() 4783 ulen = min_t(u32, info.nr_jited_line_info, ulen); in bpf_prog_get_info_by_fd() [all …]
|
H A D | offload.c | 473 u32 ulen; in bpf_prog_offload_info_fill() local 489 ulen = info->jited_prog_len; in bpf_prog_offload_info_fill() 491 if (info->jited_prog_len && ulen) { in bpf_prog_offload_info_fill() 493 ulen = min_t(u32, info->jited_prog_len, ulen); in bpf_prog_offload_info_fill() 494 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_prog_offload_info_fill()
|
H A D | bpf_iter.c | 460 u32 ulen = info->iter.target_name_len; in bpf_iter_link_fill_link_info() local 464 if (!ulen ^ !ubuf) in bpf_iter_link_fill_link_info() 472 if (ulen >= target_len + 1) { in bpf_iter_link_fill_link_info() 478 if (copy_to_user(ubuf, target_name, ulen - 1)) in bpf_iter_link_fill_link_info() 480 if (put_user(zero, ubuf + ulen - 1)) in bpf_iter_link_fill_link_info()
|
/linux/include/linux/ |
H A D | bitmap-str.h | 5 int bitmap_parse_user(const char __user *ubuf, unsigned int ulen, unsigned long *dst, int nbits); 13 int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
|
H A D | nodemask.h | 339 #define nodemask_parse_user(ubuf, ulen, dst) \ argument 340 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
|
/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/xfs/libxfs/ |
H A D | xfs_refcount.c | 872 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center() local 901 if (ulen >= MAXREFCEXTLEN) in xfs_refc_want_merge_center() 904 *ulenp = ulen; in xfs_refc_want_merge_center() 914 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left() local 935 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left() 936 if (ulen >= MAXREFCEXTLEN) in xfs_refc_want_merge_left() 969 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right() 970 if (ulen >= MAXREFCEXTLEN) in xfs_refc_want_merge_right() 991 unsigned long long ulen; in xfs_refcount_merge_extents() local 1018 adjust, &ulen)) { in xfs_refcount_merge_extents() [all …]
|
/linux/fs/fat/ |
H A D | namei_vfat.c | 328 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/net/ipv4/ |
H A D | udp_offload.c | 482 unsigned int ulen; in udp_gro_receive_segment() local 493 ulen = ntohs(uh->len); in udp_gro_receive_segment() 494 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment() 526 if (ulen > ntohs(uh2->len) || flush) { in udp_gro_receive_segment() 548 if (ret || ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
|
H A D | udp.c | 1066 int ulen = len; in udp_sendmsg() local 1297 up->len += ulen; in udp_sendmsg() 1839 copied = ulen - off; in udp_recvmsg() 1840 else if (copied < ulen) in udp_recvmsg() 1906 err = ulen; in udp_recvmsg() 2392 unsigned short ulen; in __udp4_lib_rcv() local 2408 ulen = ntohs(uh->len); in __udp4_lib_rcv() 2412 if (ulen > skb->len) in __udp4_lib_rcv() 2417 if (ulen < sizeof(*uh) || pskb_trim_rcsum(skb, ulen)) in __udp4_lib_rcv() 2475 ulen, skb->len, in __udp4_lib_rcv() [all …]
|
/linux/fs/ntfs3/ |
H A D | inode.c | 1915 u16 ulen = 0; in ntfs_readlink_hlp() local 1970 ulen = le16_to_cpu(rp->MountPointReparseBuffer.PrintNameLength); in ntfs_readlink_hlp() 1984 ulen = le16_to_cpu( in ntfs_readlink_hlp() 2022 ulen = le16_to_cpu(rp->ReparseDataLength) - in ntfs_readlink_hlp() 2027 ulen >>= 1; in ntfs_readlink_hlp() 2030 if (!ulen || uname + ulen > (__le16 *)Add2Ptr(rp, size)) in ntfs_readlink_hlp() 2034 if (!uname[ulen - 1]) in ntfs_readlink_hlp() 2035 ulen -= 1; in ntfs_readlink_hlp() 2037 err = ntfs_utf16_to_nls(sbi, uname, ulen, buffer, buflen); in ntfs_readlink_hlp()
|
H A D | namei.c | 33 int ulen = uni->len; in fill_name_de() local 37 while (ulen--) in fill_name_de()
|
/linux/fs/smb/client/ |
H A D | fs_context.c | 530 size_t ulen, plen; in smb3_fs_context_fullpath() local 533 ulen = strlen(ctx->UNC); in smb3_fs_context_fullpath() 536 s = kmalloc(ulen + plen + 1, GFP_KERNEL); in smb3_fs_context_fullpath() 539 memcpy(s, ctx->UNC, ulen); in smb3_fs_context_fullpath() 541 s[ulen] = dirsep; in smb3_fs_context_fullpath() 542 memcpy(s + ulen + 1, ctx->prepath, plen); in smb3_fs_context_fullpath() 544 s[ulen + plen] = '\0'; in smb3_fs_context_fullpath()
|
/linux/net/l2tp/ |
H A D | l2tp_ip6.c | 531 int ulen; in l2tp_ip6_sendmsg() local 659 ulen = len + (skb_queue_empty(&sk->sk_write_queue) ? transhdrlen : 0); in l2tp_ip6_sendmsg() 661 ulen, transhdrlen, &ipc6, in l2tp_ip6_sendmsg()
|
/linux/security/apparmor/ |
H A D | label.c | 1491 size_t ulen = len; \ 1494 total += ulen; \ 1495 ulen = min(ulen, size); \ 1496 size -= ulen; \ 1497 str += ulen; \
|