Home
last modified time | relevance | path

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

/net/decnet/
Dsysctl_net_decnet.c69 static void strip_it(char *str) in strip_it() argument
72 switch (*str) { in strip_it()
77 *str = 0; in strip_it()
82 str++; in strip_it()
90 static int parse_addr(__le16 *addr, char *str) in parse_addr() argument
94 while(*str && !ISNUM(*str)) str++; in parse_addr()
96 if (*str == 0) in parse_addr()
99 area = (*str++ - '0'); in parse_addr()
100 if (ISNUM(*str)) { in parse_addr()
102 area += (*str++ - '0'); in parse_addr()
[all …]
/net/ceph/
Dstring_table.c11 struct ceph_string *ceph_find_or_create_string(const char* str, size_t len) in ceph_find_or_create_string() argument
22 ret = ceph_compare_string(exist, str, len); in ceph_find_or_create_string()
46 memcpy(cs->str, str, len); in ceph_find_or_create_string()
47 cs->str[len] = 0; in ceph_find_or_create_string()
57 ret = ceph_compare_string(exist, str, len); in ceph_find_or_create_string()
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.c193 static int parse_fsid(const char *str, struct ceph_fsid *fsid) in parse_fsid() argument
200 dout("parse_fsid '%s'\n", str); in parse_fsid()
202 while (*str && i < 16) { in parse_fsid()
203 if (ispunct(*str)) { in parse_fsid()
204 str++; in parse_fsid()
207 if (!isxdigit(str[0]) || !isxdigit(str[1])) in parse_fsid()
209 tmp[0] = str[0]; in parse_fsid()
210 tmp[1] = str[1]; in parse_fsid()
215 str += 2; in parse_fsid()
Dceph_strings.c24 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str); in ceph_osd_op_name() argument
Dosdmap.c15 char *ceph_osdmap_state_str(char *str, int len, u32 state) in ceph_osdmap_state_str() argument
18 return str; in ceph_osdmap_state_str()
21 snprintf(str, len, "exists, up"); in ceph_osdmap_state_str()
23 snprintf(str, len, "exists"); in ceph_osdmap_state_str()
25 snprintf(str, len, "up"); in ceph_osdmap_state_str()
27 snprintf(str, len, "doesn't exist"); in ceph_osdmap_state_str()
29 return str; in ceph_osdmap_state_str()
2243 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg()
2251 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
Ddebugfs.c197 t->target_oloc.pool_ns->str, in dump_target()
Dmessenger.c1834 static int ceph_pton(const char *str, size_t len, struct sockaddr_storage *ss, in ceph_pton() argument
1842 if (in4_pton(str, len, (u8 *)&in4->sin_addr.s_addr, delim, ipend)) { in ceph_pton()
1847 if (in6_pton(str, len, (u8 *)&in6->sin6_addr.s6_addr, delim, ipend)) { in ceph_pton()
Dmon_client.c916 len = sprintf(h->str, "{ \"prefix\": \"osd blacklist\", \ in ceph_monc_blacklist_add()
Dosd_client.c609 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true; in osd_req_opcode_valid() argument
1730 hoid->nspace = t->target_oloc.pool_ns->str; in hoid_fill_from_target()
1856 ceph_encode_string(p, end, oloc->pool_ns->str, in encode_oloc()
/net/core/
Dutils.c54 __be32 in_aton(const char *str) in in_aton() argument
63 if (*str != '\0') { in in_aton()
65 while (*str != '\0' && *str != '.' && *str != '\n') { in in_aton()
67 val += *str - '0'; in in_aton()
68 str++; in in_aton()
71 if (*str != '\0') in in_aton()
72 str++; in in_aton()
Dnetpoll.c504 static int netpoll_parse_ip_addr(const char *str, union inet_addr *addr) in netpoll_parse_ip_addr() argument
508 if (!strchr(str, ':') && in netpoll_parse_ip_addr()
509 in4_pton(str, -1, (void *)addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
513 if (in6_pton(str, -1, addr->in6.s6_addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
Ddev.c647 int __init netdev_boot_setup(char *str) in netdev_boot_setup() argument
652 str = get_options(str, ARRAY_SIZE(ints), ints); in netdev_boot_setup()
653 if (!str || !*str) in netdev_boot_setup()
668 return netdev_boot_setup_add(str, &map); in netdev_boot_setup()
/net/sunrpc/auth_gss/
Dgss_generic_token.c47 #define TWRITE_STR(ptr, str, len) \ argument
48 memcpy((ptr), (char *) (str), (len)); \
/net/9p/
Dtrans_xen.c444 char str[16]; in xen_9pfs_front_probe() local
447 sprintf(str, "ring-ref%u", i); in xen_9pfs_front_probe()
448 ret = xenbus_printf(xbt, dev->nodename, str, "%d", in xen_9pfs_front_probe()
453 sprintf(str, "event-channel-%u", i); in xen_9pfs_front_probe()
454 ret = xenbus_printf(xbt, dev->nodename, str, "%u", in xen_9pfs_front_probe()
/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()
657 nla_strlcpy(link_info.str, link[TIPC_NLA_LINK_NAME], in tipc_nl_compat_link_dump()
Dlink.c245 static void link_print(struct tipc_link *l, const char *str);
1835 static void link_print(struct tipc_link *l, const char *str) in link_print() argument
1841 pr_info("%s Link <%s> state %x\n", str, l->name, l->state); in link_print()
/net/ipv4/
Dtcp_metrics.c981 static int __init set_tcpmhash_entries(char *str) in set_tcpmhash_entries() argument
985 if (!str) in set_tcpmhash_entries()
988 ret = kstrtouint(str, 0, &tcpmhash_entries); in set_tcpmhash_entries()
Dudp.c2827 static int __init set_uhash_entries(char *str) in set_uhash_entries() argument
2831 if (!str) in set_uhash_entries()
2834 ret = kstrtoul(str, 0, &uhash_entries); in set_uhash_entries()
Dtcp.c3473 static int __init set_thash_entries(char *str) in set_thash_entries() argument
3477 if (!str) in set_thash_entries()
3480 ret = kstrtoul(str, 0, &thash_entries); in set_thash_entries()
/net/sunrpc/
Dxdr.c1533 ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, in xdr_stream_decode_string_dup() argument
1545 *str = s; in xdr_stream_decode_string_dup()
1550 *str = NULL; in xdr_stream_decode_string_dup()
Dcache.c1091 void qword_add(char **bpp, int *lp, char *str) in qword_add() argument
1099 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add()
/net/ipv6/
Daddrconf.c5855 char str[IPV6_MAX_STRLEN]; in addrconf_sysctl_stable_secret() local
5864 lctl.data = str; in addrconf_sysctl_stable_secret()
5874 err = snprintf(str, sizeof(str), "%pI6", &secret->secret); in addrconf_sysctl_stable_secret()
5875 if (err >= sizeof(str)) { in addrconf_sysctl_stable_secret()
5884 if (in6_pton(str, -1, addr.in6_u.u6_addr8, -1, NULL) != 1) { in addrconf_sysctl_stable_secret()