Home
last modified time | relevance | path

Searched refs:prefix_len (Results 1 – 25 of 26) sorted by relevance

12

/linux-3.4.99/fs/9p/
Dxattr_user.c28 size_t prefix_len = XATTR_USER_PREFIX_LEN; in v9fs_xattr_user_get() local
37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_user_get()
40 memcpy(full_name, XATTR_USER_PREFIX, prefix_len); in v9fs_xattr_user_get()
41 memcpy(full_name+prefix_len, name, name_len); in v9fs_xattr_user_get()
42 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_user_get()
55 size_t prefix_len = XATTR_USER_PREFIX_LEN; in v9fs_xattr_user_set() local
64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_user_set()
67 memcpy(full_name, XATTR_USER_PREFIX, prefix_len); in v9fs_xattr_user_set()
68 memcpy(full_name + prefix_len, name, name_len); in v9fs_xattr_user_set()
69 full_name[prefix_len + name_len] = '\0'; in v9fs_xattr_user_set()
/linux-3.4.99/fs/ext2/
Dxattr_trusted.c15 const int prefix_len = XATTR_TRUSTED_PREFIX_LEN; in ext2_xattr_trusted_list() local
16 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_trusted_list()
22 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext2_xattr_trusted_list()
23 memcpy(list+prefix_len, name, name_len); in ext2_xattr_trusted_list()
24 list[prefix_len + name_len] = '\0'; in ext2_xattr_trusted_list()
Dxattr_user.c17 const size_t prefix_len = XATTR_USER_PREFIX_LEN; in ext2_xattr_user_list() local
18 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_user_list()
24 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext2_xattr_user_list()
25 memcpy(list+prefix_len, name, name_len); in ext2_xattr_user_list()
26 list[prefix_len + name_len] = '\0'; in ext2_xattr_user_list()
Dxattr_security.c14 const int prefix_len = XATTR_SECURITY_PREFIX_LEN; in ext2_xattr_security_list() local
15 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_security_list()
18 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext2_xattr_security_list()
19 memcpy(list+prefix_len, name, name_len); in ext2_xattr_security_list()
20 list[prefix_len + name_len] = '\0'; in ext2_xattr_security_list()
/linux-3.4.99/fs/ext4/
Dxattr_trusted.c19 const size_t prefix_len = XATTR_TRUSTED_PREFIX_LEN; in ext4_xattr_trusted_list() local
20 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_trusted_list()
26 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext4_xattr_trusted_list()
27 memcpy(list+prefix_len, name, name_len); in ext4_xattr_trusted_list()
28 list[prefix_len + name_len] = '\0'; in ext4_xattr_trusted_list()
Dxattr_user.c18 const size_t prefix_len = XATTR_USER_PREFIX_LEN; in ext4_xattr_user_list() local
19 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_user_list()
25 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext4_xattr_user_list()
26 memcpy(list+prefix_len, name, name_len); in ext4_xattr_user_list()
27 list[prefix_len + name_len] = '\0'; in ext4_xattr_user_list()
Dxattr_security.c18 const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1; in ext4_xattr_security_list() local
19 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_security_list()
23 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext4_xattr_security_list()
24 memcpy(list+prefix_len, name, name_len); in ext4_xattr_security_list()
25 list[prefix_len + name_len] = '\0'; in ext4_xattr_security_list()
/linux-3.4.99/fs/ext3/
Dxattr_trusted.c15 const size_t prefix_len = XATTR_TRUSTED_PREFIX_LEN; in ext3_xattr_trusted_list() local
16 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_trusted_list()
22 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext3_xattr_trusted_list()
23 memcpy(list+prefix_len, name, name_len); in ext3_xattr_trusted_list()
24 list[prefix_len + name_len] = '\0'; in ext3_xattr_trusted_list()
Dxattr_user.c15 const size_t prefix_len = XATTR_USER_PREFIX_LEN; in ext3_xattr_user_list() local
16 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_user_list()
22 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext3_xattr_user_list()
23 memcpy(list+prefix_len, name, name_len); in ext3_xattr_user_list()
24 list[prefix_len + name_len] = '\0'; in ext3_xattr_user_list()
Dxattr_security.c14 const size_t prefix_len = XATTR_SECURITY_PREFIX_LEN; in ext3_xattr_security_list() local
15 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_security_list()
19 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext3_xattr_security_list()
20 memcpy(list+prefix_len, name, name_len); in ext3_xattr_security_list()
21 list[prefix_len + name_len] = '\0'; in ext3_xattr_security_list()
/linux-3.4.99/fs/xfs/
Dxfs_xattr.c136 unsigned int prefix_len = xfs_xattr_prefix_len(flags); in xfs_xattr_put_listent() local
149 arraytop = context->count + prefix_len + namelen + 1; in xfs_xattr_put_listent()
155 strncpy(offset, xfs_xattr_prefix(flags), prefix_len); in xfs_xattr_put_listent()
156 offset += prefix_len; in xfs_xattr_put_listent()
160 context->count += prefix_len + namelen + 1; in xfs_xattr_put_listent()
/linux-3.4.99/tools/perf/util/
Dhelp.c120 int prefix_len; in list_commands_in_dir() local
130 prefix_len = strlen(prefix); in list_commands_in_dir()
146 entlen = strlen(de->d_name) - prefix_len; in list_commands_in_dir()
150 add_cmdname(cmds, de->d_name + prefix_len, entlen); in list_commands_in_dir()
/linux-3.4.99/kernel/debug/kdb/
Dkdb_support.c189 int prefix_len = strlen(prefix_name), prev_len = 0; in kallsyms_symbol_complete() local
194 if (strncmp(name, prefix_name, prefix_len) == 0) { in kallsyms_symbol_complete()
213 if (prev_len > prefix_len) in kallsyms_symbol_complete()
230 int prefix_len = strlen(prefix_name); in kallsyms_symbol_next() local
238 if (strncmp(name, prefix_name, prefix_len) == 0) { in kallsyms_symbol_next()
/linux-3.4.99/drivers/net/wireless/hostap/
Dhostap_80211_tx.c320 int prefix_len, postfix_len, hdr_len, res; in hostap_tx_encrypt() local
346 prefix_len = crypt->ops->extra_mpdu_prefix_len + in hostap_tx_encrypt()
350 if ((skb_headroom(skb) < prefix_len || in hostap_tx_encrypt()
352 pskb_expand_head(skb, prefix_len, postfix_len, GFP_ATOMIC)) { in hostap_tx_encrypt()
/linux-3.4.99/net/ipv6/
Daddrconf.c651 ifa->prefix_len = pfxlen; in ipv6_add_addr()
742 ifp->prefix_len)) { in ipv6_del_addr()
798 ipv6_addr_prefix(&prefix, &ifp->addr, ifp->prefix_len); in ipv6_del_addr()
886 tmp_plen = ifp->prefix_len; in ipv6_create_tempaddr()
1339 ifa->prefix_len); in ipv6_chk_prefix()
1482 if (ifp->prefix_len == 127) /* RFC 6164 */ in addrconf_join_anycast()
1484 ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len); in addrconf_join_anycast()
1493 if (ifp->prefix_len == 127) /* RFC 6164 */ in addrconf_leave_anycast()
1495 ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len); in addrconf_leave_anycast()
1890 pinfo->prefix_len, in addrconf_prefix_rcv()
[all …]
Droute.c592 } else if (rinfo->prefix_len > 128) { in rt6_route_rcv()
594 } else if (rinfo->prefix_len > 64) { in rt6_route_rcv()
598 } else if (rinfo->prefix_len > 0) { in rt6_route_rcv()
616 rinfo->prefix_len); in rt6_route_rcv()
620 if (rinfo->prefix_len == 0) in rt6_route_rcv()
623 rt = rt6_get_route_info(net, prefix, rinfo->prefix_len, in rt6_route_rcv()
632 rt = rt6_add_route_info(net, prefix, rinfo->prefix_len, gwaddr, dev->ifindex, in rt6_route_rcv()
Dndisc.c1353 ri->prefix_len == 0) in ndisc_router_discovery()
1356 if (ri->prefix_len > in6_dev->cnf.accept_ra_rt_info_max_plen) in ndisc_router_discovery()
/linux-3.4.99/include/linux/
Dinet_diag.h79 __u8 prefix_len; member
Drtnetlink.h442 unsigned char prefix_len; member
/linux-3.4.99/include/net/
Dip6_route.h10 __u8 prefix_len; member
Dif_inet6.h42 __u32 prefix_len; member
Daddrconf.h24 __u8 prefix_len; member
/linux-3.4.99/sound/soc/
Dsoc-dapm.c461 size_t name_len, prefix_len; in dapm_new_mixer() local
474 prefix_len = strlen(prefix) + 1; in dapm_new_mixer()
476 prefix_len = 0; in dapm_new_mixer()
531 "%s %s", w->name + prefix_len, in dapm_new_mixer()
569 size_t prefix_len; in dapm_new_mux() local
611 prefix_len = 0; in dapm_new_mux()
615 prefix_len = strlen(prefix) + 1; in dapm_new_mux()
617 prefix_len = 0; in dapm_new_mux()
626 name + prefix_len, prefix); in dapm_new_mux()
/linux-3.4.99/net/ipv4/
Dinet_diag.c450 cond->prefix_len)) in inet_diag_bc_run()
457 if (cond->prefix_len == 0) in inet_diag_bc_run()
460 cond->prefix_len)) in inet_diag_bc_run()
556 if (cond->prefix_len > 8 * addr_len) in valid_hostcond()
/linux-3.4.99/fs/ocfs2/
Dxattr.c892 int prefix_len = strlen(prefix); in ocfs2_xattr_list_entry() local
893 int total_len = prefix_len + name_len + 1; in ocfs2_xattr_list_entry()
904 memcpy(p, prefix, prefix_len); in ocfs2_xattr_list_entry()
905 memcpy(p + prefix_len, name, name_len); in ocfs2_xattr_list_entry()
906 p[prefix_len + name_len] = '\0'; in ocfs2_xattr_list_entry()
7229 const size_t prefix_len = XATTR_SECURITY_PREFIX_LEN; in ocfs2_xattr_security_list() local
7230 const size_t total_len = prefix_len + name_len + 1; in ocfs2_xattr_security_list()
7233 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ocfs2_xattr_security_list()
7234 memcpy(list + prefix_len, name, name_len); in ocfs2_xattr_security_list()
7235 list[prefix_len + name_len] = '\0'; in ocfs2_xattr_security_list()
[all …]

12