Home
last modified time | relevance | path

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

12

/net/tipc/
A Daddr.c82 char *tipc_nodeid2string(char *str, u8 *id) in tipc_nodeid2string() argument
110 memcpy(str, id, NODE_ID_LEN); in tipc_nodeid2string()
111 str[NODE_ID_LEN] = 0; in tipc_nodeid2string()
112 return str; in tipc_nodeid2string()
117 sprintf(&str[2 * i], "%02x", id[i]); in tipc_nodeid2string()
120 for (i = NODE_ID_STR_LEN - 2; str[i] == '0'; i--) in tipc_nodeid2string()
121 str[i] = 0; in tipc_nodeid2string()
123 return str; in tipc_nodeid2string()
A Daddr.h133 char *tipc_nodeid2string(char *str, u8 *id);
A Dnetlink_compat.c166 static struct sk_buff *tipc_get_err_tlv(char *str) in tipc_get_err_tlv() argument
168 int str_len = strlen(str) + 1; in tipc_get_err_tlv()
173 tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len); in tipc_get_err_tlv()
698 nla_strscpy(link_info.str, link[TIPC_NLA_LINK_NAME], in tipc_nl_compat_link_dump()
A Dlink.c250 static void link_print(struct tipc_link *l, const char *str);
2556 static void link_print(struct tipc_link *l, const char *str) in link_print() argument
2562 pr_info("%s Link <%s> state %x\n", str, l->name, l->state); in link_print()
/net/ceph/
A 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()
A 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()
94 unsigned int ceph_str_hash_linux(const char *str, unsigned int length) in ceph_str_hash_linux() argument
100 c = *str++; in ceph_str_hash_linux()
A Dceph_common.c193 int ceph_parse_fsid(const char *str, struct ceph_fsid *fsid) in ceph_parse_fsid() argument
200 dout("%s '%s'\n", __func__, str); in ceph_parse_fsid()
202 while (*str && i < 16) { in ceph_parse_fsid()
203 if (ispunct(*str)) { in ceph_parse_fsid()
204 str++; in ceph_parse_fsid()
207 if (!isxdigit(str[0]) || !isxdigit(str[1])) in ceph_parse_fsid()
209 tmp[0] = str[0]; in ceph_parse_fsid()
210 tmp[1] = str[1]; in ceph_parse_fsid()
215 str += 2; in ceph_parse_fsid()
A Dceph_strings.c52 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str); in ceph_osd_op_name() argument
A Dosdmap.c30 char *ceph_osdmap_state_str(char *str, int len, u32 state) in ceph_osdmap_state_str() argument
33 return str; in ceph_osdmap_state_str()
36 snprintf(str, len, "exists, up"); in ceph_osdmap_state_str()
38 snprintf(str, len, "exists"); in ceph_osdmap_state_str()
40 snprintf(str, len, "up"); in ceph_osdmap_state_str()
42 snprintf(str, len, "doesn't exist"); in ceph_osdmap_state_str()
44 return str; in ceph_osdmap_state_str()
2414 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg()
2422 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
A Dmessenger.c1220 static int ceph_pton(const char *str, size_t len, struct ceph_entity_addr *addr, in ceph_pton() argument
1225 …if (in4_pton(str, len, (u8 *)&((struct sockaddr_in *)&addr->in_addr)->sin_addr.s_addr, delim, ipen… in ceph_pton()
1230 …if (in6_pton(str, len, (u8 *)&((struct sockaddr_in6 *)&addr->in_addr)->sin6_addr.s6_addr, delim, i… in ceph_pton()
A Ddebugfs.c199 t->target_oloc.pool_ns->str, in dump_target()
/net/core/
A Dutils.c50 __be32 in_aton(const char *str) in in_aton() argument
59 if (*str != '\0') { in in_aton()
61 while (*str != '\0' && *str != '.' && *str != '\n') { in in_aton()
63 val += *str - '0'; in in_aton()
64 str++; in in_aton()
67 if (*str != '\0') in in_aton()
68 str++; in in_aton()
A Dskb_fault_injection.c42 static int __init fail_skb_realloc_setup(char *str) in fail_skb_realloc_setup() argument
44 return setup_fault_attr(&skb_realloc.attr, str); in fail_skb_realloc_setup()
A Dsysctl_net_core.c716 static int __init fb_tunnels_only_for_init_net_sysctl_setup(char *str) in fb_tunnels_only_for_init_net_sysctl_setup() argument
719 if (!strncmp(str, "initns", 6)) in fb_tunnels_only_for_init_net_sysctl_setup()
722 else if (!strncmp(str, "none", 4)) in fb_tunnels_only_for_init_net_sysctl_setup()
A Dxdp.c979 #define XDP_METADATA_KFUNC(name, _, str, __) BTF_ID(func, str) in BTF_ID_LIST() argument
/net/sunrpc/
A Dauth_tls.c124 void *str; in tls_validate() local
131 if (xdr_stream_decode_opaque_inline(xdr, &str, starttls_len) != starttls_len) in tls_validate()
133 if (memcmp(str, starttls_token, starttls_len)) in tls_validate()
A Dsvc.c153 char str[16]; in param_get_pool_mode() local
156 len = sunrpc_get_pool_mode(str, ARRAY_SIZE(str)); in param_get_pool_mode()
159 len = min_t(int, len, ARRAY_SIZE(str) - 2); in param_get_pool_mode()
162 str[len] = '\n'; in param_get_pool_mode()
163 str[len + 1] = '\0'; in param_get_pool_mode()
165 return sysfs_emit(buf, "%s", str); in param_get_pool_mode()
A Dxdr.c2232 ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, in xdr_stream_decode_string_dup() argument
2242 *str = s; in xdr_stream_decode_string_dup()
2247 *str = NULL; in xdr_stream_decode_string_dup()
A Dcache.c1131 void qword_add(char **bpp, int *lp, char *str) in qword_add() argument
1139 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add()
/net/9p/
A Dtrans_xen.c440 char str[16]; in xen_9pfs_front_init() local
443 sprintf(str, "ring-ref%d", i); in xen_9pfs_front_init()
444 ret = xenbus_printf(xbt, dev->nodename, str, "%d", in xen_9pfs_front_init()
449 sprintf(str, "event-channel-%d", i); in xen_9pfs_front_init()
450 ret = xenbus_printf(xbt, dev->nodename, str, "%u", in xen_9pfs_front_init()
/net/ieee802154/
A Dcore.c26 struct wpan_phy *wpan_phy_find(const char *str) in wpan_phy_find() argument
30 if (WARN_ON(!str)) in wpan_phy_find()
33 dev = class_find_device_by_name(&wpan_phy_class, str); in wpan_phy_find()
/net/ethtool/
A Dstrset.c354 const char *str = info->strings[i]; in strset_set_size() local
358 ethnl_strz_size(str)); in strset_set_size()
/net/ipv4/
A Dtcp_metrics.c1002 static int __init set_tcpmhash_entries(char *str) in set_tcpmhash_entries() argument
1006 if (!str) in set_tcpmhash_entries()
1009 ret = kstrtouint(str, 0, &tcpmhash_entries); in set_tcpmhash_entries()
A Dipconfig.c1838 static int __init set_carrier_timeout(char *str) in set_carrier_timeout() argument
1842 if (!str) in set_carrier_timeout()
1845 ret = kstrtouint(str, 0, &carrier_timeout); in set_carrier_timeout()
/net/netfilter/ipset/
A Dip_set_core.c353 set->ext_size -= sizeof(*c) + strlen(c->str) + 1; in ip_set_init_comment()
364 strscpy(c->str, ext->comment, len + 1); in ip_set_init_comment()
365 set->ext_size += sizeof(*c) + strlen(c->str) + 1; in ip_set_init_comment()
378 return nla_put_string(skb, IPSET_ATTR_COMMENT, c->str); in ip_set_put_comment()
395 set->ext_size -= sizeof(*c) + strlen(c->str) + 1; in ip_set_comment_free()

Completed in 59 milliseconds

12