Home
last modified time | relevance | path

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

12

/Linux-v5.10/arch/s390/pci/
Dpci_mmio.c50 u64 ulen, u8 *status) in __pcistg_mio_inuser() argument
53 register u64 len asm("3") = ulen; in __pcistg_mio_inuser()
56 u64 cnt = ulen; in __pcistg_mio_inuser()
201 u64 ulen, u8 *status) in __pcilg_mio_inuser() argument
204 register u64 len asm("3") = ulen; in __pcilg_mio_inuser()
205 u64 cnt = ulen; in __pcilg_mio_inuser()
206 int shift = ulen * 8; in __pcilg_mio_inuser()
/Linux-v5.10/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.10/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()
435 err = ulen; in udpv6_recvmsg()
902 u32 ulen = 0; in __udp6_lib_rcv() local
911 ulen = ntohs(uh->len); in __udp6_lib_rcv()
912 if (ulen > skb->len) in __udp6_lib_rcv()
[all …]
/Linux-v5.10/kernel/bpf/
Dsyscall.c2764 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local
2767 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info()
2775 if (ulen >= tp_len + 1) { in bpf_raw_tp_link_fill_link_info()
2781 if (copy_to_user(ubuf, tp_name, ulen - 1)) in bpf_raw_tp_link_fill_link_info()
2783 if (put_user(zero, ubuf + ulen - 1)) in bpf_raw_tp_link_fill_link_info()
3398 u32 ulen; in bpf_prog_get_info_by_fd() local
3421 ulen = info.nr_map_ids; in bpf_prog_get_info_by_fd()
3423 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd()
3424 if (ulen) { in bpf_prog_get_info_by_fd()
3428 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.c416 u32 ulen = info->iter.target_name_len; in bpf_iter_link_fill_link_info() local
420 if (!ulen ^ !ubuf) in bpf_iter_link_fill_link_info()
428 if (ulen >= target_len + 1) { in bpf_iter_link_fill_link_info()
434 if (copy_to_user(ubuf, target_name, ulen - 1)) in bpf_iter_link_fill_link_info()
436 if (put_user(zero, ubuf + ulen - 1)) in bpf_iter_link_fill_link_info()
/Linux-v5.10/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.c554 u32 count, len, ulen; in decode_listxattrs() local
608 ulen = len + XATTR_USER_PREFIX_LEN + 1; in decode_listxattrs()
610 if (ulen > left) { in decode_listxattrs()
618 buf[ulen - 1] = 0; in decode_listxattrs()
619 buf += ulen; in decode_listxattrs()
620 left -= ulen; in decode_listxattrs()
622 copied += ulen; in decode_listxattrs()
Dsuper.c1186 int ulen = 0; in nfs_get_cache_cookie() local
1200 ulen = mnt_s->fscache_key->key.uniq_len; in nfs_get_cache_cookie()
1207 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie()
1211 nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
/Linux-v5.10/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()
Dzcrypt_msgtype6.c106 unsigned short ulen; member
260 .ulen = 10, in ICAMEX_msg_to_type6MEX_msgX()
329 .ulen = 10, in ICACRT_msg_to_type6CRT_msgX()
/Linux-v5.10/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.10/net/ipv4/
Dudp_offload.c373 unsigned int ulen; in udp_gro_receive_segment() local
383 ulen = ntohs(uh->len); in udp_gro_receive_segment()
384 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment()
414 if (ulen > ntohs(uh2->len)) { in udp_gro_receive_segment()
436 if (ret || ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
Dudp.c1029 int ulen = len; in udp_sendmsg() local
1071 ulen += sizeof(struct udphdr); in udp_sendmsg()
1230 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1260 up->len += ulen; in udp_sendmsg()
1261 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1791 unsigned int ulen, copied; in udp_recvmsg() local
1805 ulen = udp_skb_len(skb); in udp_recvmsg()
1807 if (copied > ulen - off) in udp_recvmsg()
1808 copied = ulen - off; in udp_recvmsg()
1809 else if (copied < ulen) in udp_recvmsg()
[all …]
/Linux-v5.10/fs/xfs/libxfs/
Dxfs_refcount.c804 unsigned long long ulen; in xfs_refcount_merge_extents() local
830 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents()
836 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
839 &right, ulen, aglen); in xfs_refcount_merge_extents()
843 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents()
846 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
862 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
865 ulen < MAXREFCEXTLEN) { in xfs_refcount_merge_extents()
/Linux-v5.10/lib/
Dbitmap.c445 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument
451 buf = memdup_user_nul(ubuf, ulen); in bitmap_parse_user()
680 unsigned int ulen, unsigned long *maskp, in bitmap_parselist_user() argument
686 buf = memdup_user_nul(ubuf, ulen); in bitmap_parselist_user()
/Linux-v5.10/include/linux/
Dbitmap.h197 extern int bitmap_parse_user(const char __user *ubuf, unsigned int ulen,
201 extern 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.10/arch/x86/kvm/svm/
Dsev.c312 unsigned long ulen, unsigned long *n, in sev_pin_memory() argument
323 if (ulen == 0 || uaddr + ulen < uaddr) in sev_pin_memory()
328 last = ((uaddr + ulen - 1) & PAGE_MASK) >> PAGE_SHIFT; in sev_pin_memory()
/Linux-v5.10/security/apparmor/
Dlabel.c1489 size_t ulen = len; \
1492 total += ulen; \
1493 ulen = min(ulen, size); \
1494 size -= ulen; \
1495 str += ulen; \
/Linux-v5.10/net/can/j1939/
Dsocket.c746 int ret, ulen; in j1939_sk_getsockopt() local
754 if (get_user(ulen, optlen)) in j1939_sk_getsockopt()
756 if (ulen < 0) in j1939_sk_getsockopt()
779 if (len > ulen) in j1939_sk_getsockopt()
/Linux-v5.10/net/
Dsocket.c192 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument
194 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel()
196 if (ulen == 0) in move_addr_to_kernel()
198 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel()
200 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel()
221 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument
227 err = get_user(len, ulen); in move_addr_to_user()
244 return __put_user(klen, ulen); in move_addr_to_user()
/Linux-v5.10/drivers/media/dvb-core/
Ddvb_net.c819 __be16 ulen = htons(h.priv->ule_sndu_len); in dvb_net_ule() local
823 { &ulen, sizeof ulen }, in dvb_net_ule()
832 ulen |= htons(0x8000); in dvb_net_ule()
/Linux-v5.10/drivers/scsi/cxlflash/
Dmain.c3406 u32 ulen = afu_dbg->data_len; in cxlflash_afu_debug() local
3415 if (ulen) { in cxlflash_afu_debug()
3418 if (ulen > HT_CXLFLASH_AFU_DEBUG_MAX_DATA_LEN) { in cxlflash_afu_debug()
3423 buf = kmalloc(ulen + cache_line_size() - 1, GFP_KERNEL); in cxlflash_afu_debug()
3434 if (copy_from_user(kbuf, ubuf, ulen)) { in cxlflash_afu_debug()
3449 if (ulen) { in cxlflash_afu_debug()
3450 rcb.data_len = ulen; in cxlflash_afu_debug()
3465 if (ulen && !is_write) { in cxlflash_afu_debug()
3466 if (copy_to_user(ubuf, kbuf, ulen)) in cxlflash_afu_debug()

12