/Linux-v6.1/tools/bpf/ |
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-v6.1/arch/s390/pci/ |
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() 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-v6.1/net/ipv6/ |
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()
|
D | udp.c | 345 unsigned int ulen, copied; in udpv6_recvmsg() local 364 ulen = udp6_skb_len(skb); in udpv6_recvmsg() 366 if (copied > ulen - off) in udpv6_recvmsg() 367 copied = ulen - off; in udpv6_recvmsg() 368 else if (copied < ulen) in udpv6_recvmsg() 380 if (copied < ulen || peeking || in udpv6_recvmsg() 451 err = ulen; in udpv6_recvmsg() 949 u32 ulen = 0; in __udp6_lib_rcv() local 958 ulen = ntohs(uh->len); in __udp6_lib_rcv() 959 if (ulen > skb->len) in __udp6_lib_rcv() [all …]
|
/Linux-v6.1/fs/nfs/ |
D | fscache.c | 85 int nfs_fscache_get_super_cookie(struct super_block *sb, const char *uniq, int ulen) in nfs_fscache_get_super_cookie() argument 93 nfss->fscache_uniq = kmemdup_nul(uniq, ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie() 117 if (ulen > 0) { in nfs_fscache_get_super_cookie() 118 if (ulen > NFS_MAX_KEY_LEN - len) in nfs_fscache_get_super_cookie() 121 memcpy(key + len, uniq, ulen); in nfs_fscache_get_super_cookie() 122 len += ulen; in nfs_fscache_get_super_cookie()
|
D | nfs42xdr.c | 560 u32 count, len, ulen; in decode_listxattrs() local 622 ulen = len + XATTR_USER_PREFIX_LEN + 1; in decode_listxattrs() 624 if (ulen > left) { in decode_listxattrs() 632 buf[ulen - 1] = 0; in decode_listxattrs() 633 buf += ulen; in decode_listxattrs() 634 left -= ulen; in decode_listxattrs() 636 copied += ulen; in decode_listxattrs()
|
D | super.c | 1220 int ulen = 0; in nfs_get_cache_cookie() local 1233 ulen = strlen(uniq); in nfs_get_cache_cookie() 1240 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie() 1244 return nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
|
/Linux-v6.1/kernel/bpf/ |
D | syscall.c | 3170 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local 3173 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info() 3181 if (ulen >= tp_len + 1) { in bpf_raw_tp_link_fill_link_info() 3187 if (copy_to_user(ubuf, tp_name, ulen - 1)) in bpf_raw_tp_link_fill_link_info() 3189 if (put_user(zero, ubuf + ulen - 1)) in bpf_raw_tp_link_fill_link_info() 3904 u32 ulen; in bpf_prog_get_info_by_fd() local 3927 ulen = info.nr_map_ids; in bpf_prog_get_info_by_fd() 3929 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd() 3930 if (ulen) { in bpf_prog_get_info_by_fd() 3934 for (i = 0; i < ulen; i++) in bpf_prog_get_info_by_fd() [all …]
|
D | offload.c | 306 u32 ulen; in bpf_prog_offload_info_fill() local 322 ulen = info->jited_prog_len; in bpf_prog_offload_info_fill() 324 if (info->jited_prog_len && ulen) { in bpf_prog_offload_info_fill() 326 ulen = min_t(u32, info->jited_prog_len, ulen); in bpf_prog_offload_info_fill() 327 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_prog_offload_info_fill()
|
D | bpf_iter.c | 461 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-v6.1/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 16 unsigned short ulen; member 156 key->t6_hdr.ulen = key->pubhdr.token_length + 4; in zcrypt_type6_mex_key_en() 207 key->t6_hdr.ulen = size - 2; in zcrypt_type6_crt_key()
|
/Linux-v6.1/fs/fat/ |
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-v6.1/net/ipv4/ |
D | udp_offload.c | 463 unsigned int ulen; in udp_gro_receive_segment() local 473 ulen = ntohs(uh->len); in udp_gro_receive_segment() 474 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment() 504 if (ulen > ntohs(uh2->len)) { in udp_gro_receive_segment() 526 if (ret || ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
|
D | udp.c | 1052 int ulen = len; in udp_sendmsg() local 1094 ulen += sizeof(struct udphdr); in udp_sendmsg() 1253 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg() 1283 up->len += ulen; in udp_sendmsg() 1284 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg() 1846 unsigned int ulen, copied; in udp_recvmsg() local 1860 ulen = udp_skb_len(skb); in udp_recvmsg() 1862 if (copied > ulen - off) in udp_recvmsg() 1863 copied = ulen - off; in udp_recvmsg() 1864 else if (copied < ulen) in udp_recvmsg() [all …]
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_refcount.c | 838 unsigned long long ulen; in xfs_refcount_merge_extents() local 864 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents() 870 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents() 873 &right, ulen, aglen); in xfs_refcount_merge_extents() 877 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents() 880 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents() 896 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents() 899 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
|
/Linux-v6.1/fs/ntfs3/ |
D | inode.c | 1757 u16 ulen = 0; in ntfs_readlink_hlp() local 1812 ulen = le16_to_cpu(rp->MountPointReparseBuffer.PrintNameLength); in ntfs_readlink_hlp() 1826 ulen = le16_to_cpu( in ntfs_readlink_hlp() 1864 ulen = le16_to_cpu(rp->ReparseDataLength) - in ntfs_readlink_hlp() 1869 ulen >>= 1; in ntfs_readlink_hlp() 1872 if (!ulen || uname + ulen > (__le16 *)Add2Ptr(rp, size)) in ntfs_readlink_hlp() 1876 if (!uname[ulen - 1]) in ntfs_readlink_hlp() 1877 ulen -= 1; in ntfs_readlink_hlp() 1879 err = ntfs_utf16_to_nls(sbi, uname, ulen, buffer, buflen); in ntfs_readlink_hlp()
|
D | namei.c | 31 int ulen = uni->len; in fill_name_de() local 35 while (ulen--) in fill_name_de()
|
/Linux-v6.1/lib/ |
D | bitmap.c | 458 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-v6.1/net/l2tp/ |
D | l2tp_ip6.c | 507 int ulen; in l2tp_ip6_sendmsg() local 515 ulen = len + transhdrlen; in l2tp_ip6_sendmsg() 637 ulen, transhdrlen, &ipc6, in l2tp_ip6_sendmsg()
|
/Linux-v6.1/include/linux/ |
D | bitmap.h | 205 int bitmap_parse_user(const char __user *ubuf, unsigned int ulen, 209 int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
|
D | nodemask.h | 339 #define nodemask_parse_user(ubuf, ulen, dst) \ argument 340 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
|
/Linux-v6.1/security/apparmor/ |
D | label.c | 1488 size_t ulen = len; \ 1491 total += ulen; \ 1492 ulen = min(ulen, size); \ 1493 size -= ulen; \ 1494 str += ulen; \
|
/Linux-v6.1/net/can/j1939/ |
D | socket.c | 747 int ret, ulen; in j1939_sk_getsockopt() local 755 if (get_user(ulen, optlen)) in j1939_sk_getsockopt() 757 if (ulen < 0) in j1939_sk_getsockopt() 780 if (len > ulen) in j1939_sk_getsockopt()
|
/Linux-v6.1/net/ |
D | socket.c | 243 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument 245 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel() 247 if (ulen == 0) in move_addr_to_kernel() 249 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel() 251 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel() 272 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument 278 err = get_user(len, ulen); in move_addr_to_user() 295 return __put_user(klen, ulen); in move_addr_to_user()
|
/Linux-v6.1/drivers/media/dvb-core/ |
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()
|