Home
last modified time | relevance | path

Searched refs:ulen (Results 1 – 25 of 34) sorted by relevance

12

/Linux-v5.15/tools/bpf/
Dbpf_jit_disasm.c176 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-v5.15/arch/s390/pci/
Dpci_mmio.c50 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-v5.15/net/ipv6/
Dip6_checksum.c14 __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()
Dudp.c328 unsigned int ulen, copied; in udpv6_recvmsg() local
347 ulen = udp6_skb_len(skb); in udpv6_recvmsg()
349 if (copied > ulen - off) in udpv6_recvmsg()
350 copied = ulen - off; in udpv6_recvmsg()
351 else if (copied < ulen) in udpv6_recvmsg()
363 if (copied < ulen || peeking || in udpv6_recvmsg()
434 err = ulen; in udpv6_recvmsg()
918 u32 ulen = 0; in __udp6_lib_rcv() local
927 ulen = ntohs(uh->len); in __udp6_lib_rcv()
928 if (ulen > skb->len) in __udp6_lib_rcv()
[all …]
/Linux-v5.15/kernel/bpf/
Dsyscall.c2872 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local
2875 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info()
2883 if (ulen >= tp_len + 1) { in bpf_raw_tp_link_fill_link_info()
2889 if (copy_to_user(ubuf, tp_name, ulen - 1)) in bpf_raw_tp_link_fill_link_info()
2891 if (put_user(zero, ubuf + ulen - 1)) in bpf_raw_tp_link_fill_link_info()
3583 u32 ulen; in bpf_prog_get_info_by_fd() local
3606 ulen = info.nr_map_ids; in bpf_prog_get_info_by_fd()
3608 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd()
3609 if (ulen) { in bpf_prog_get_info_by_fd()
3613 for (i = 0; i < ulen; i++) in bpf_prog_get_info_by_fd()
[all …]
Doffload.c306 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()
Dbpf_iter.c452 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-v5.15/fs/nfs/
Dfscache.c112 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()
Dnfs42xdr.c560 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()
Dsuper.c1207 int ulen = 0; in nfs_get_cache_cookie() local
1221 ulen = mnt_s->fscache_key->key.uniq_len; in nfs_get_cache_cookie()
1228 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie()
1232 nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
/Linux-v5.15/drivers/s390/crypto/
Dzcrypt_cca_key.h16 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-v5.15/fs/fat/
Dnamei_vfat.c328 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-v5.15/net/ipv4/
Dudp_offload.c435 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()
Dudp.c1048 int ulen = len; in udp_sendmsg() local
1090 ulen += sizeof(struct udphdr); in udp_sendmsg()
1249 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1279 up->len += ulen; in udp_sendmsg()
1280 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1841 unsigned int ulen, copied; in udp_recvmsg() local
1855 ulen = udp_skb_len(skb); in udp_recvmsg()
1857 if (copied > ulen - off) in udp_recvmsg()
1858 copied = ulen - off; in udp_recvmsg()
1859 else if (copied < ulen) in udp_recvmsg()
[all …]
/Linux-v5.15/fs/xfs/libxfs/
Dxfs_refcount.c805 unsigned long long ulen; in xfs_refcount_merge_extents() local
831 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents()
837 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
840 &right, ulen, aglen); in xfs_refcount_merge_extents()
844 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents()
847 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
863 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
866 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
/Linux-v5.15/fs/ntfs3/
Dinode.c1770 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()
Dnamei.c31 int ulen = uni->len; in fill_name_de() local
35 while (ulen--) in fill_name_de()
/Linux-v5.15/lib/
Dbitmap.c447 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-v5.15/include/linux/
Dbitmap.h203 int bitmap_parse_user(const char __user *ubuf, unsigned int ulen,
207 int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
Dnodemask.h331 #define nodemask_parse_user(ubuf, ulen, dst) \ argument
332 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
/Linux-v5.15/security/apparmor/
Dlabel.c1489 size_t ulen = len; \
1492 total += ulen; \
1493 ulen = min(ulen, size); \
1494 size -= ulen; \
1495 str += ulen; \
/Linux-v5.15/net/can/j1939/
Dsocket.c744 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-v5.15/net/
Dsocket.c242 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-v5.15/drivers/media/dvb-core/
Ddvb_net.c820 __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-v5.15/drivers/scsi/cxlflash/
Dmain.c3383 u32 ulen = afu_dbg->data_len; in cxlflash_afu_debug() local
3392 if (ulen) { in cxlflash_afu_debug()
3395 if (ulen > HT_CXLFLASH_AFU_DEBUG_MAX_DATA_LEN) { in cxlflash_afu_debug()
3400 buf = kmalloc(ulen + cache_line_size() - 1, GFP_KERNEL); in cxlflash_afu_debug()
3411 if (copy_from_user(kbuf, ubuf, ulen)) { in cxlflash_afu_debug()
3426 if (ulen) { in cxlflash_afu_debug()
3427 rcb.data_len = ulen; in cxlflash_afu_debug()
3442 if (ulen && !is_write) { in cxlflash_afu_debug()
3443 if (copy_to_user(ubuf, kbuf, ulen)) in cxlflash_afu_debug()

12