Home
last modified time | relevance | path

Searched refs:str (Results 1 – 23 of 23) sorted by relevance

/net/netfilter/
Dxt_qtaguid_print.c296 char *str; in prdebug_sock_tag_tree() local
302 str = "sock_tag_tree=rb_root{}"; in prdebug_sock_tag_tree()
303 pr_debug("%*d: %s\n", indent_level*2, indent_level, str); in prdebug_sock_tag_tree()
307 str = "sock_tag_tree=rb_root{"; in prdebug_sock_tag_tree()
308 pr_debug("%*d: %s\n", indent_level*2, indent_level, str); in prdebug_sock_tag_tree()
314 str = pp_sock_tag(sock_tag_entry); in prdebug_sock_tag_tree()
315 pr_debug("%*d: %s,\n", indent_level*2, indent_level, str); in prdebug_sock_tag_tree()
316 kfree(str); in prdebug_sock_tag_tree()
319 str = "}"; in prdebug_sock_tag_tree()
320 pr_debug("%*d: %s\n", indent_level*2, indent_level, str); in prdebug_sock_tag_tree()
[all …]
/net/decnet/
Dsysctl_net_decnet.c68 static void strip_it(char *str) in strip_it() argument
71 switch (*str) { in strip_it()
76 *str = 0; in strip_it()
81 str++; in strip_it()
89 static int parse_addr(__le16 *addr, char *str) in parse_addr() argument
93 while(*str && !ISNUM(*str)) str++; in parse_addr()
95 if (*str == 0) in parse_addr()
98 area = (*str++ - '0'); in parse_addr()
99 if (ISNUM(*str)) { in parse_addr()
101 area += (*str++ - '0'); in parse_addr()
[all …]
/net/core/
Dutils.c52 __be32 in_aton(const char *str) in in_aton() argument
61 if (*str != '\0') { in in_aton()
63 while (*str != '\0' && *str != '.' && *str != '\n') { in in_aton()
65 val += *str - '0'; in in_aton()
66 str++; in in_aton()
69 if (*str != '\0') in in_aton()
70 str++; in in_aton()
Dnetpoll.c505 static int netpoll_parse_ip_addr(const char *str, union inet_addr *addr) in netpoll_parse_ip_addr() argument
509 if (!strchr(str, ':') && in netpoll_parse_ip_addr()
510 in4_pton(str, -1, (void *)addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
514 if (in6_pton(str, -1, addr->in6.s6_addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
Ddev.c637 int __init netdev_boot_setup(char *str) in netdev_boot_setup() argument
642 str = get_options(str, ARRAY_SIZE(ints), ints); in netdev_boot_setup()
643 if (!str || !*str) in netdev_boot_setup()
658 return netdev_boot_setup_add(str, &map); in netdev_boot_setup()
/net/ceph/
Dceph_hash.c23 unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length) in ceph_str_hash_rjenkins() argument
25 const unsigned char *k = (const unsigned char *)str; in ceph_str_hash_rjenkins()
84 unsigned int ceph_str_hash_linux(const char *str, unsigned int length) in ceph_str_hash_linux() argument
90 c = *str++; in ceph_str_hash_linux()
Dceph_common.c194 static int parse_fsid(const char *str, struct ceph_fsid *fsid) in parse_fsid() argument
201 dout("parse_fsid '%s'\n", str); in parse_fsid()
203 while (*str && i < 16) { in parse_fsid()
204 if (ispunct(*str)) { in parse_fsid()
205 str++; in parse_fsid()
208 if (!isxdigit(str[0]) || !isxdigit(str[1])) in parse_fsid()
210 tmp[0] = str[0]; in parse_fsid()
211 tmp[1] = str[1]; in parse_fsid()
216 str += 2; in parse_fsid()
Dceph_strings.c22 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str); in ceph_osd_op_name() argument
Dosdmap.c14 char *ceph_osdmap_state_str(char *str, int len, int state) in ceph_osdmap_state_str() argument
17 return str; in ceph_osdmap_state_str()
20 snprintf(str, len, "exists, up"); in ceph_osdmap_state_str()
22 snprintf(str, len, "exists"); in ceph_osdmap_state_str()
24 snprintf(str, len, "up"); in ceph_osdmap_state_str()
26 snprintf(str, len, "doesn't exist"); in ceph_osdmap_state_str()
28 return str; in ceph_osdmap_state_str()
Dmessenger.c1825 static int ceph_pton(const char *str, size_t len, struct sockaddr_storage *ss, in ceph_pton() argument
1833 if (in4_pton(str, len, (u8 *)&in4->sin_addr.s_addr, delim, ipend)) { in ceph_pton()
1838 if (in6_pton(str, len, (u8 *)&in6->sin6_addr.s6_addr, delim, ipend)) { in ceph_pton()
Dosd_client.c444 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true; in osd_req_opcode_valid() argument
/net/irda/irlan/
Dirlan_filter.c215 #define MASK2STR(m,s) { .mask = m, .str = s }
221 const char *str; in irlan_print_filter() member
233 for (p = filter_mask2str; p->str; p++) { in irlan_print_filter()
235 seq_printf(seq, "%s ", p->str); in irlan_print_filter()
/net/irda/
Dparameters.c289 char str[33]; in irda_extract_string() local
310 strncpy(str, buf+2, p.pl); in irda_extract_string()
313 __func__, (__u8)str[0], (__u8)str[1]); in irda_extract_string()
316 str[p.pl] = '\0'; in irda_extract_string()
318 p.pv.c = str; /* Handler will need to take a copy */ in irda_extract_string()
/net/sunrpc/auth_gss/
Dgss_generic_token.c47 #define TWRITE_STR(ptr, str, len) \ argument
48 memcpy((ptr), (char *) (str), (len)); \
/net/ieee802154/
Dcore.c40 struct wpan_phy *wpan_phy_find(const char *str) in wpan_phy_find() argument
44 if (WARN_ON(!str)) in wpan_phy_find()
47 dev = class_find_device(&wpan_phy_class, NULL, str, wpan_phy_match); in wpan_phy_find()
/net/tipc/
Dnetlink_compat.c163 static struct sk_buff *tipc_get_err_tlv(char *str) in tipc_get_err_tlv() argument
165 int str_len = strlen(str) + 1; in tipc_get_err_tlv()
170 tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len); in tipc_get_err_tlv()
637 nla_strlcpy(link_info.str, link[TIPC_NLA_LINK_NAME], in tipc_nl_compat_link_dump()
Dlink.c121 static void link_print(struct tipc_link *l_ptr, const char *str);
1562 static void link_print(struct tipc_link *l, const char *str) in link_print() argument
1568 pr_info("%s Link <%s> state %x\n", str, l->name, l->state); in link_print()
/net/rxrpc/
Dar-ack.c68 static const char *const str[] = { in rxrpc_acks() local
73 if (reason >= ARRAY_SIZE(str)) in rxrpc_acks()
74 reason = ARRAY_SIZE(str) - 1; in rxrpc_acks()
75 return str[reason]; in rxrpc_acks()
/net/ipv4/
Dtcp_metrics.c1117 static int __init set_tcpmhash_entries(char *str) in set_tcpmhash_entries() argument
1121 if (!str) in set_tcpmhash_entries()
1124 ret = kstrtouint(str, 0, &tcpmhash_entries); in set_tcpmhash_entries()
Dtcp.c3170 static int __init set_thash_entries(char *str) in set_thash_entries() argument
3174 if (!str) in set_thash_entries()
3177 ret = kstrtoul(str, 0, &thash_entries); in set_thash_entries()
Dudp.c2540 static int __init set_uhash_entries(char *str) in set_uhash_entries() argument
2544 if (!str) in set_uhash_entries()
2547 ret = kstrtoul(str, 0, &uhash_entries); in set_uhash_entries()
/net/sunrpc/
Dcache.c1079 void qword_add(char **bpp, int *lp, char *str) in qword_add() argument
1087 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add()
/net/ipv6/
Daddrconf.c5447 char str[IPV6_MAX_STRLEN]; in addrconf_sysctl_stable_secret() local
5456 lctl.data = str; in addrconf_sysctl_stable_secret()
5466 err = snprintf(str, sizeof(str), "%pI6", &secret->secret); in addrconf_sysctl_stable_secret()
5467 if (err >= sizeof(str)) { in addrconf_sysctl_stable_secret()
5476 if (in6_pton(str, -1, addr.in6_u.u6_addr8, -1, NULL) != 1) { in addrconf_sysctl_stable_secret()