Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/tools/bpf/
H A 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()
/OK3568_Linux_fs/kernel/arch/s390/pci/
H A 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()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dsyscall.c2786 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local
2789 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info()
2797 if (ulen >= tp_len + 1) { in bpf_raw_tp_link_fill_link_info()
2803 if (copy_to_user(ubuf, tp_name, ulen - 1)) in bpf_raw_tp_link_fill_link_info()
2805 if (put_user(zero, ubuf + ulen - 1)) in bpf_raw_tp_link_fill_link_info()
3423 u32 ulen; in bpf_prog_get_info_by_fd() local
3446 ulen = info.nr_map_ids; in bpf_prog_get_info_by_fd()
3448 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd()
3449 if (ulen) { in bpf_prog_get_info_by_fd()
3453 for (i = 0; i < ulen; i++) in bpf_prog_get_info_by_fd()
[all …]
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/net/ipv6/
H A 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()
H A Dudp.c329 unsigned int ulen, copied; in udpv6_recvmsg() local
348 ulen = udp6_skb_len(skb); in udpv6_recvmsg()
350 if (copied > ulen - off) in udpv6_recvmsg()
351 copied = ulen - off; in udpv6_recvmsg()
352 else if (copied < ulen) in udpv6_recvmsg()
364 if (copied < ulen || peeking || in udpv6_recvmsg()
436 err = ulen; in udpv6_recvmsg()
903 u32 ulen = 0; in __udp6_lib_rcv() local
912 ulen = ntohs(uh->len); in __udp6_lib_rcv()
913 if (ulen > skb->len) in __udp6_lib_rcv()
[all …]
/OK3568_Linux_fs/kernel/fs/nfs/
H A 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()
H A 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()
H A Dsuper.c1195 int ulen = 0; in nfs_get_cache_cookie() local
1209 ulen = mnt_s->fscache_key->key.uniq_len; in nfs_get_cache_cookie()
1216 ulen = strlen(ctx->fscache_uniq); in nfs_get_cache_cookie()
1220 nfs_fscache_get_super_cookie(sb, uniq, ulen); in nfs_get_cache_cookie()
/OK3568_Linux_fs/kernel/drivers/s390/crypto/
H A 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()
/OK3568_Linux_fs/kernel/fs/fat/
H A 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()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dudp_offload.c432 unsigned int ulen; in udp_gro_receive_segment() local
442 ulen = ntohs(uh->len); in udp_gro_receive_segment()
443 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment()
473 if (ulen > ntohs(uh2->len)) { in udp_gro_receive_segment()
495 if (ret || ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
H A Dudp.c1037 int ulen = len; in udp_sendmsg() local
1080 ulen += sizeof(struct udphdr); in udp_sendmsg()
1239 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1269 up->len += ulen; in udp_sendmsg()
1270 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg()
1800 unsigned int ulen, copied; in udp_recvmsg() local
1815 ulen = udp_skb_len(skb); in udp_recvmsg()
1817 if (copied > ulen - off) in udp_recvmsg()
1818 copied = ulen - off; in udp_recvmsg()
1819 else if (copied < ulen) in udp_recvmsg()
[all …]
/OK3568_Linux_fs/kernel/fs/xfs/libxfs/
H A 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()
/OK3568_Linux_fs/kernel/lib/
H A Dbitmap.c447 unsigned int ulen, unsigned long *maskp, in bitmap_parse_user() argument
453 buf = memdup_user_nul(ubuf, ulen); in bitmap_parse_user()
682 unsigned int ulen, unsigned long *maskp, in bitmap_parselist_user() argument
688 buf = memdup_user_nul(ubuf, ulen); in bitmap_parselist_user()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbitmap.h205 extern int bitmap_parse_user(const char __user *ubuf, unsigned int ulen,
209 extern int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
H A Dnodemask.h331 #define nodemask_parse_user(ubuf, ulen, dst) \ argument
332 __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
/OK3568_Linux_fs/kernel/net/l2tp/
H A Dl2tp_ip6.c505 int ulen; in l2tp_ip6_sendmsg() local
513 ulen = len + transhdrlen; in l2tp_ip6_sendmsg()
635 ulen, transhdrlen, &ipc6, in l2tp_ip6_sendmsg()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/btc/
H A Dhalbtc_fw.c573 u8 n, *ptr = NULL, ulen; in hal_btc_fw_set_monreg() local
587 ulen = sizeof(struct fbtc_mreg); in hal_btc_fw_set_monreg()
588 sz = (ulen * n) + sizeof(*monreg) - 1; in hal_btc_fw_set_monreg()
596 hal_mem_cpy(h, (void *)ptr, btc->chip->mon_reg, n * ulen); in hal_btc_fw_set_monreg()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/btc/
H A Dhalbtc_fw.c573 u8 n, *ptr = NULL, ulen; in hal_btc_fw_set_monreg() local
587 ulen = sizeof(struct fbtc_mreg); in hal_btc_fw_set_monreg()
588 sz = (ulen * n) + sizeof(*monreg) - 1; in hal_btc_fw_set_monreg()
596 hal_mem_cpy(h, (void *)ptr, btc->chip->mon_reg, n * ulen); in hal_btc_fw_set_monreg()
/OK3568_Linux_fs/kernel/security/apparmor/
H A Dlabel.c1489 size_t ulen = len; \
1492 total += ulen; \
1493 ulen = min(ulen, size); \
1494 size -= ulen; \
1495 str += ulen; \
/OK3568_Linux_fs/kernel/arch/x86/kvm/svm/
H A Dsev.c325 unsigned long ulen, unsigned long *n, in sev_pin_memory() argument
338 if (ulen == 0 || uaddr + ulen < uaddr) in sev_pin_memory()
343 last = ((uaddr + ulen - 1) & PAGE_MASK) >> PAGE_SHIFT; in sev_pin_memory()
/OK3568_Linux_fs/kernel/net/can/j1939/
H A Dsocket.c747 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()
/OK3568_Linux_fs/kernel/net/
H A 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()

12