/linux/tools/bpf/ |
A D | bpf_jit_disasm.c | 176 int ret, flen, pass, ulen = 0; in get_last_jit_image() local 222 while ((ptr = strtok(tmp, "\n")) != NULL && ulen < proglen) { in get_last_jit_image() 231 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16); in get_last_jit_image() 233 ulen--; in get_last_jit_image() 236 if (ulen >= proglen) in get_last_jit_image() 242 assert(ulen == proglen); in get_last_jit_image() 248 *ilen = ulen; in get_last_jit_image()
|
/linux/arch/s390/pci/ |
A D | pci_mmio.c | 50 u64 ulen, u8 *status) in __pcistg_mio_inuser() argument 52 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcistg_mio_inuser() 55 u64 cnt = ulen; in __pcistg_mio_inuser() 194 u64 ulen, u8 *status) in __pcilg_mio_inuser() argument 196 union register_pair ioaddr_len = {.even = (u64 __force)ioaddr, .odd = ulen}; in __pcilg_mio_inuser() 197 u64 cnt = ulen; in __pcilg_mio_inuser() 198 int shift = ulen * 8; in __pcilg_mio_inuser()
|
/linux/net/ipv6/ |
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()
|
A D | udp.c | 351 copied = ulen - off; in udpv6_recvmsg() 352 else if (copied < ulen) in udpv6_recvmsg() 435 err = ulen; in udpv6_recvmsg() 919 u32 ulen = 0; in __udp6_lib_rcv() local 928 ulen = ntohs(uh->len); in __udp6_lib_rcv() 929 if (ulen > skb->len) in __udp6_lib_rcv() 936 if (ulen == 0) in __udp6_lib_rcv() 937 ulen = skb->len; in __udp6_lib_rcv() 1009 ulen, skb->len, in __udp6_lib_rcv() 1307 int ulen = len; in udpv6_sendmsg() local [all …]
|
/linux/kernel/bpf/ |
A D | syscall.c | 3622 u32 ulen; in bpf_prog_get_info_by_fd() local 3647 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd() 3648 if (ulen) { in bpf_prog_get_info_by_fd() 3697 ulen = min_t(u32, info.xlated_prog_len, ulen); in bpf_prog_get_info_by_fd() 3729 ulen = min_t(u32, info.jited_prog_len, ulen); in bpf_prog_get_info_by_fd() 3770 ulen = min_t(u32, info.nr_jited_ksyms, ulen); in bpf_prog_get_info_by_fd() 3798 ulen = min_t(u32, info.nr_jited_func_lens, ulen); in bpf_prog_get_info_by_fd() 3826 ulen = min_t(u32, info.nr_func_info, ulen); in bpf_prog_get_info_by_fd() 3838 ulen = min_t(u32, info.nr_line_info, ulen); in bpf_prog_get_info_by_fd() 3855 ulen = min_t(u32, info.nr_jited_line_info, ulen); in bpf_prog_get_info_by_fd() [all …]
|
A 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()
|
A D | bpf_iter.c | 452 u32 ulen = info->iter.target_name_len; in bpf_iter_link_fill_link_info() local 456 if (!ulen ^ !ubuf) in bpf_iter_link_fill_link_info() 464 if (ulen >= target_len + 1) { in bpf_iter_link_fill_link_info() 470 if (copy_to_user(ubuf, target_name, ulen - 1)) in bpf_iter_link_fill_link_info() 472 if (put_user(zero, ubuf + ulen - 1)) in bpf_iter_link_fill_link_info()
|
/linux/fs/nfs/ |
A D | fscache.c | 112 void nfs_fscache_get_super_cookie(struct super_block *sb, const char *uniq, int ulen) in nfs_fscache_get_super_cookie() argument 123 ulen = 1; in nfs_fscache_get_super_cookie() 126 key = kzalloc(sizeof(*key) + ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie() 142 key->key.uniq_len = ulen; in nfs_fscache_get_super_cookie() 143 memcpy(key->key.uniquifier, uniq, ulen); in nfs_fscache_get_super_cookie() 190 sizeof(key->key) + ulen, in nfs_fscache_get_super_cookie()
|
A D | nfs42xdr.c | 560 u32 count, len, ulen; in decode_listxattrs() local 614 ulen = len + XATTR_USER_PREFIX_LEN + 1; in decode_listxattrs() 616 if (ulen > left) { in decode_listxattrs() 624 buf[ulen - 1] = 0; in decode_listxattrs() 625 buf += ulen; in decode_listxattrs() 626 left -= ulen; in decode_listxattrs() 628 copied += ulen; in decode_listxattrs()
|
A D | super.c | 1212 int ulen = 0; in nfs_get_cache_cookie() local 1226 ulen = mnt_s->fscache_key->key.uniq_len; in nfs_get_cache_cookie() 1233 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie() 1237 nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
|
/linux/drivers/s390/crypto/ |
A 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/fs/fat/ |
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/ |
A D | udp_offload.c | 435 unsigned int ulen; in udp_gro_receive_segment() local 445 ulen = ntohs(uh->len); in udp_gro_receive_segment() 446 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment() 476 if (ulen > ntohs(uh2->len)) { in udp_gro_receive_segment() 498 if (ret || ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
|
A D | udp.c | 1047 int ulen = len; in udp_sendmsg() local 1278 up->len += ulen; in udp_sendmsg() 1868 copied = ulen - off; in udp_recvmsg() 1869 else if (copied < ulen) in udp_recvmsg() 1934 err = ulen; in udp_recvmsg() 2408 unsigned short ulen; in __udp4_lib_rcv() local 2421 ulen = ntohs(uh->len); in __udp4_lib_rcv() 2425 if (ulen > skb->len) in __udp4_lib_rcv() 2430 if (ulen < sizeof(*uh) || pskb_trim_rcsum(skb, ulen)) in __udp4_lib_rcv() 2482 ulen, skb->len, in __udp4_lib_rcv() [all …]
|
/linux/fs/xfs/libxfs/ |
A D | xfs_refcount.c | 807 unsigned long long ulen; in xfs_refcount_merge_extents() local 833 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents() 839 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents() 842 &right, ulen, aglen); in xfs_refcount_merge_extents() 846 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents() 849 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents() 865 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents() 868 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
|
/linux/fs/ntfs3/ |
A D | inode.c | 1770 u16 ulen = 0; in ntfs_readlink_hlp() local 1825 ulen = le16_to_cpu(rp->MountPointReparseBuffer.PrintNameLength); in ntfs_readlink_hlp() 1839 ulen = le16_to_cpu( in ntfs_readlink_hlp() 1877 ulen = le16_to_cpu(rp->ReparseDataLength) - in ntfs_readlink_hlp() 1882 ulen >>= 1; in ntfs_readlink_hlp() 1885 if (!ulen || uname + ulen > (__le16 *)Add2Ptr(rp, size)) in ntfs_readlink_hlp() 1889 if (!uname[ulen - 1]) in ntfs_readlink_hlp() 1890 ulen -= 1; in ntfs_readlink_hlp() 1892 err = ntfs_utf16_to_nls(sbi, uname, ulen, buffer, buflen); in ntfs_readlink_hlp()
|
A D | namei.c | 31 int ulen = uni->len; in fill_name_de() local 35 while (ulen--) in fill_name_de()
|
/linux/lib/ |
A D | bitmap.c | 447 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument 453 buf = memdup_user_nul(ubuf, ulen); in bitmap_parse_user() 821 unsigned int ulen, unsigned long *maskp, in bitmap_parselist_user() argument 827 buf = memdup_user_nul(ubuf, ulen); in bitmap_parselist_user()
|
/linux/include/linux/ |
A 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,
|
A D | nodemask.h | 331 #define nodemask_parse_user(ubuf, ulen, dst) \ argument 332 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
|
/linux/security/apparmor/ |
A D | label.c | 1488 size_t ulen = len; \ 1491 total += ulen; \ 1492 ulen = min(ulen, size); \ 1493 size -= ulen; \ 1494 str += ulen; \
|
/linux/net/can/j1939/ |
A D | socket.c | 744 int ret, ulen; in j1939_sk_getsockopt() local 752 if (get_user(ulen, optlen)) in j1939_sk_getsockopt() 754 if (ulen < 0) in j1939_sk_getsockopt() 777 if (len > ulen) in j1939_sk_getsockopt()
|
/linux/net/ |
A D | socket.c | 242 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument 244 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel() 246 if (ulen == 0) in move_addr_to_kernel() 248 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel() 250 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel() 271 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument 277 err = get_user(len, ulen); in move_addr_to_user() 294 return __put_user(klen, ulen); in move_addr_to_user()
|
/linux/drivers/media/dvb-core/ |
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()
|
/linux/drivers/scsi/cxlflash/ |
A D | main.c | 3387 u32 ulen = afu_dbg->data_len; in cxlflash_afu_debug() local 3396 if (ulen) { in cxlflash_afu_debug() 3399 if (ulen > HT_CXLFLASH_AFU_DEBUG_MAX_DATA_LEN) { in cxlflash_afu_debug() 3404 buf = kmalloc(ulen + cache_line_size() - 1, GFP_KERNEL); in cxlflash_afu_debug() 3415 if (copy_from_user(kbuf, ubuf, ulen)) { in cxlflash_afu_debug() 3430 if (ulen) { in cxlflash_afu_debug() 3431 rcb.data_len = ulen; in cxlflash_afu_debug() 3446 if (ulen && !is_write) { in cxlflash_afu_debug() 3447 if (copy_to_user(ubuf, kbuf, ulen)) in cxlflash_afu_debug()
|