/linux/fs/xfs/ |
A D | xfs_xattr.c | 101 int prefix_len, in __xfs_xattr_put_listent() argument 114 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent() 121 strncpy(offset, prefix, prefix_len); in __xfs_xattr_put_listent() 122 offset += prefix_len; in __xfs_xattr_put_listent() 128 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent() 141 int prefix_len; in xfs_xattr_put_listent() local 174 prefix_len = XATTR_TRUSTED_PREFIX_LEN; in xfs_xattr_put_listent() 177 prefix_len = XATTR_SECURITY_PREFIX_LEN; in xfs_xattr_put_listent() 180 prefix_len = XATTR_USER_PREFIX_LEN; in xfs_xattr_put_listent() 183 __xfs_xattr_put_listent(context, prefix, prefix_len, name, in xfs_xattr_put_listent()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_router_xm.c | 51 u8 prefix_len; member 134 u16 virtual_router, u8 prefix_len, in mlxsw_sp_router_ll_xm_fib_entry_pack() argument 165 virtual_router, prefix_len, (u32 *) addr); in mlxsw_sp_router_ll_xm_fib_entry_pack() 171 virtual_router, prefix_len, addr); in mlxsw_sp_router_ll_xm_fib_entry_pack() 186 prefix_len - mlxsw_sp_router_xm_m_val[proto] : 0; in mlxsw_sp_router_ll_xm_fib_entry_pack() 191 flush_info->prefix_len = prefix_len; in mlxsw_sp_router_ll_xm_fib_entry_pack() 359 static u32 mlxsw_sp_router_xm_flush_mask4(u8 prefix_len) in mlxsw_sp_router_xm_flush_mask4() argument 361 return GENMASK(31, 32 - prefix_len); in mlxsw_sp_router_xm_flush_mask4() 369 memset(mask, 0xff, prefix_len / 8); in mlxsw_sp_router_xm_flush_mask6() 370 mask[prefix_len / 8] = GENMASK(8, 8 - prefix_len % 8); in mlxsw_sp_router_xm_flush_mask6() [all …]
|
/linux/tools/perf/util/ |
A D | cgroup.c | 285 int prefix_len; in match_cgroups() local 292 prefix_len = strlen(mnt); in match_cgroups() 315 char *name = cn->name + prefix_len; in match_cgroups() 335 return prefix_len; in match_cgroups() 404 int prefix_len; in evlist__expand_cgroup() local 430 prefix_len = match_cgroups(str); in evlist__expand_cgroup() 432 prefix_len = list_cgroups(str); in evlist__expand_cgroup() 434 if (prefix_len < 0) in evlist__expand_cgroup() 444 name = cn->name + prefix_len; in evlist__expand_cgroup()
|
/linux/drivers/firmware/arm_scmi/ |
A D | msg.c | 85 size_t prefix_len = sizeof(*msg) + sizeof(msg->msg_payload[0]); in msg_fetch_response() local 89 len >= prefix_len ? len - prefix_len : 0); in msg_fetch_response()
|
/linux/kernel/debug/kdb/ |
A D | kdb_support.c | 130 int prefix_len = strlen(prefix_name), prev_len = 0; in kallsyms_symbol_complete() local 135 if (strncmp(name, prefix_name, prefix_len) == 0) { in kallsyms_symbol_complete() 154 if (prev_len > prefix_len) in kallsyms_symbol_complete() 173 int prefix_len = strlen(prefix_name); in kallsyms_symbol_next() local 181 if (!strncmp(name, prefix_name, prefix_len)) in kallsyms_symbol_next()
|
/linux/kernel/printk/ |
A D | index.c | 78 u16 prefix_len = 0; in pi_show() local 91 prefix_len = printk_parse_prefix(entry->fmt, &level, &flags); in pi_show() 110 seq_escape_printf_format(s, entry->fmt + prefix_len); in pi_show()
|
A D | printk.c | 1324 size_t prefix_len; in record_print_text() local 1369 memcpy(text, prefix, prefix_len); in record_print_text() 1377 len += prefix_len + line_len + 1; in record_print_text() 1391 text += prefix_len + line_len + 1; in record_print_text() 1422 size_t prefix_len; in get_record_print_text_size() local 2044 u16 prefix_len = 0; in printk_parse_prefix() local 2062 prefix_len += 2; in printk_parse_prefix() 2066 return prefix_len; in printk_parse_prefix() 2086 u16 prefix_len; in printk_sprint() local 2089 if (prefix_len) { in printk_sprint() [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_tag.c | 93 const int prefix_len = sizeof("prog_tag:\t") - 1; in tag_from_fdinfo() local 104 if (strncmp(buff, "prog_tag:\t", prefix_len)) in tag_from_fdinfo() 106 ret = hex2bin(tag, buff + prefix_len, len); in tag_from_fdinfo()
|
/linux/tools/lib/subcmd/ |
A D | help.c | 161 int prefix_len; in list_commands_in_dir() local 170 prefix_len = strlen(prefix); in list_commands_in_dir() 184 entlen = strlen(de->d_name) - prefix_len; in list_commands_in_dir() 188 add_cmdname(cmds, de->d_name + prefix_len, entlen); in list_commands_in_dir()
|
/linux/drivers/firmware/efi/libstub/ |
A D | file.c | 91 int prefix_len = prefix_size / 2; in find_file_option() local 95 for (i = prefix_len; i < cmdline_len; i++) { in find_file_option() 96 if (!memcmp(&cmdline[i - prefix_len], prefix, prefix_size)) { in find_file_option()
|
/linux/tools/testing/selftests/pidfd/ |
A D | pidfd_fdinfo_test.c | 150 size_t prefix_len, const char *expect, ...) in verify_fdinfo() argument 175 if (strncmp(line, prefix, prefix_len)) in verify_fdinfo() 180 val = line + prefix_len; in verify_fdinfo()
|
/linux/tools/testing/kunit/ |
A D | kunit_parser.py | 240 prefix_len = len( 243 yield line_num, line[prefix_len:] 247 prefix_len = len(line.split('TAP version')[0]) 249 yield line_num, line[prefix_len:] 256 line = line[prefix_len:].lstrip()
|
/linux/fs/erofs/ |
A D | xattr.c | 541 unsigned int prefix_len; in xattr_entrylist() local 551 prefix_len = strlen(prefix); in xattr_entrylist() 554 it->buffer_ofs += prefix_len + entry->e_name_len + 1; in xattr_entrylist() 558 if (it->buffer_ofs + prefix_len in xattr_entrylist() 562 memcpy(it->buffer + it->buffer_ofs, prefix, prefix_len); in xattr_entrylist() 563 it->buffer_ofs += prefix_len; in xattr_entrylist()
|
/linux/net/smc/ |
A D | smc_clc.c | 489 prop->prefix_len = inet_mask_len(ifa->ifa_mask); in smc_clc_prfx_set4_rcu() 514 &ifa->addr, ifa->prefix_len); in smc_clc_prfx_set6_rcu() 515 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu() 581 if (prop->prefix_len == inet_mask_len(ifa->ifa_mask) && in smc_clc_prfx_match4_rcu() 608 if (ifa->prefix_len == ipv6_prfx[i].prefix_len && in smc_clc_prfx_match6_rcu() 610 ifa->prefix_len)) in smc_clc_prfx_match6_rcu()
|
A D | smc_clc.h | 99 u8 prefix_len; member 142 u8 prefix_len; /* number of significant bits in mask */ member
|
/linux/drivers/net/wireless/intersil/hostap/ |
A D | hostap_80211_tx.c | 321 int prefix_len, postfix_len, hdr_len, res; in hostap_tx_encrypt() local 347 prefix_len = crypt->ops->extra_mpdu_prefix_len + in hostap_tx_encrypt() 351 if ((skb_headroom(skb) < prefix_len || in hostap_tx_encrypt() 353 pskb_expand_head(skb, prefix_len, postfix_len, GFP_ATOMIC)) { in hostap_tx_encrypt()
|
/linux/drivers/clk/ti/ |
A D | clkctrl.c | 476 const int prefix_len = 11; in clkctrl_get_name() local 481 if (!strncmp("ti,clkctrl-", compat, prefix_len)) { in clkctrl_get_name() 483 if (strnlen(compat + prefix_len, 16) < 2) in clkctrl_get_name() 485 name = kasprintf(GFP_KERNEL, "%s", compat + prefix_len); in clkctrl_get_name()
|
/linux/fs/f2fs/ |
A D | xattr.c | 584 size_t prefix_len; in f2fs_listxattr() local 600 prefix_len = strlen(prefix); in f2fs_listxattr() 601 size = prefix_len + entry->e_name_len + 1; in f2fs_listxattr() 607 memcpy(buffer, prefix, prefix_len); in f2fs_listxattr() 608 buffer += prefix_len; in f2fs_listxattr()
|
/linux/drivers/net/netdevsim/ |
A D | fib.c | 67 unsigned char prefix_len; member 240 size_t addr_len, unsigned int prefix_len, in nsim_fib_rt_init() argument 244 fib_rt->key.prefix_len = prefix_len; in nsim_fib_rt_init() 257 unsigned int prefix_len, in nsim_fib_rt_lookup() argument 264 key.prefix_len = prefix_len; in nsim_fib_rt_lookup() 338 int dst_len = fib4_rt->common.key.prefix_len; in nsim_fib4_rt_hw_flags_set()
|
/linux/drivers/net/ethernet/sgi/ |
A D | ioc3-eth.c | 174 int prefix_len; in ioc3eth_nvmem_match() local 176 prefix_len = strlen(prefix); in ioc3eth_nvmem_match() 177 if (strlen(name) < (prefix_len + 3)) in ioc3eth_nvmem_match() 180 if (memcmp(prefix, name, prefix_len) != 0) in ioc3eth_nvmem_match() 186 if (memcmp(name + prefix_len, "09-", 3) == 0) in ioc3eth_nvmem_match() 188 if (memcmp(name + prefix_len, "89-", 3) == 0) in ioc3eth_nvmem_match() 190 if (memcmp(name + prefix_len, "91-", 3) == 0) in ioc3eth_nvmem_match()
|
/linux/net/ipv6/ |
A D | addrconf.c | 1214 if (ifa->prefix_len != ifp->prefix_len || in check_cleanup_prefix_route() 1216 ifp->prefix_len)) in check_cleanup_prefix_route() 1246 ifp->prefix_len, in cleanup_prefix_route() 1387 cfg.plen = ifp->prefix_len; in ipv6_create_tempaddr() 1997 ifa->prefix_len); in ipv6_chk_prefix() 2117 .plen = ifp->prefix_len, in addrconf_dad_failure() 2798 pinfo->prefix_len); in addrconf_prefix_rcv() 4351 ifp->prefix_len, in if6_seq_show() 4671 ifp->prefix_len, in modify_prefix_route() 4683 ifp->prefix_len, in modify_prefix_route() [all …]
|
/linux/security/keys/encrypted-keys/ |
A D | encrypted.c | 139 int prefix_len; in valid_master_desc() local 142 prefix_len = KEY_TRUSTED_PREFIX_LEN; in valid_master_desc() 144 prefix_len = KEY_USER_PREFIX_LEN; in valid_master_desc() 148 if (!new_desc[prefix_len]) in valid_master_desc() 151 if (orig_desc && strncmp(new_desc, orig_desc, prefix_len)) in valid_master_desc()
|
/linux/kernel/bpf/ |
A D | bpf_iter.c | 335 int prefix_len = strlen(prefix); in bpf_iter_prog_supported() local 338 if (strncmp(attach_fname, prefix, prefix_len)) in bpf_iter_prog_supported() 347 if (!strcmp(attach_fname + prefix_len, tinfo->reg_info->target)) { in bpf_iter_prog_supported()
|
/linux/fs/ext2/ |
A D | xattr.c | 341 size_t prefix_len = strlen(prefix); in ext2_xattr_list() local 342 size_t size = prefix_len + entry->e_name_len + 1; in ext2_xattr_list() 349 memcpy(buffer, prefix, prefix_len); in ext2_xattr_list() 350 buffer += prefix_len; in ext2_xattr_list()
|
/linux/include/uapi/linux/ |
A D | inet_diag.h | 105 __u8 prefix_len; member
|