/net/tipc/ |
D | addr.c | 82 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()
|
D | addr.h | 88 char *tipc_nodeid2string(char *str, u8 *id);
|
D | netlink_compat.c | 164 static struct sk_buff *tipc_get_err_tlv(char *str) in tipc_get_err_tlv() argument 166 int str_len = strlen(str) + 1; in tipc_get_err_tlv() 171 tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len); in tipc_get_err_tlv() 679 nla_strlcpy(link_info.str, link[TIPC_NLA_LINK_NAME], in tipc_nl_compat_link_dump()
|
D | link.c | 241 static void link_print(struct tipc_link *l, const char *str); 2330 static void link_print(struct tipc_link *l, const char *str) in link_print() argument 2336 pr_info("%s Link <%s> state %x\n", str, l->name, l->state); in link_print()
|
/net/ceph/ |
D | string_table.c | 11 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()
|
D | ceph_hash.c | 23 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()
|
D | ceph_common.c | 217 static int parse_fsid(const char *str, struct ceph_fsid *fsid) in parse_fsid() argument 224 dout("parse_fsid '%s'\n", str); in parse_fsid() 226 while (*str && i < 16) { in parse_fsid() 227 if (ispunct(*str)) { in parse_fsid() 228 str++; in parse_fsid() 231 if (!isxdigit(str[0]) || !isxdigit(str[1])) in parse_fsid() 233 tmp[0] = str[0]; in parse_fsid() 234 tmp[1] = str[1]; in parse_fsid() 239 str += 2; in parse_fsid()
|
D | ceph_strings.c | 24 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str); in ceph_osd_op_name() argument
|
D | osdmap.c | 14 char *ceph_osdmap_state_str(char *str, int len, u32 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() 2200 memcpy(buf, oloc->pool_ns->str, nsl); in __ceph_object_locator_to_pg() 2208 oid->name, nsl, oloc->pool_ns->str, in __ceph_object_locator_to_pg()
|
D | debugfs.c | 197 t->target_oloc.pool_ns->str, in dump_target()
|
D | messenger.c | 1844 static int ceph_pton(const char *str, size_t len, struct ceph_entity_addr *addr, in ceph_pton() argument 1849 …if (in4_pton(str, len, (u8 *)&((struct sockaddr_in *)&addr->in_addr)->sin_addr.s_addr, delim, ipen… in ceph_pton() 1854 …if (in6_pton(str, len, (u8 *)&((struct sockaddr_in6 *)&addr->in_addr)->sin6_addr.s6_addr, delim, i… in ceph_pton()
|
D | mon_client.c | 928 len = sprintf(h->str, "{ \"prefix\": \"osd blacklist\", \ in ceph_monc_blacklist_add()
|
/net/core/ |
D | utils.c | 50 __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()
|
D | netpoll.c | 500 static int netpoll_parse_ip_addr(const char *str, union inet_addr *addr) in netpoll_parse_ip_addr() argument 504 if (!strchr(str, ':') && in netpoll_parse_ip_addr() 505 in4_pton(str, -1, (void *)addr, -1, &end) > 0) { in netpoll_parse_ip_addr() 509 if (in6_pton(str, -1, addr->in6.s6_addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
|
D | dev.c | 573 int __init netdev_boot_setup(char *str) in netdev_boot_setup() argument 578 str = get_options(str, ARRAY_SIZE(ints), ints); in netdev_boot_setup() 579 if (!str || !*str) in netdev_boot_setup() 594 return netdev_boot_setup_add(str, &map); in netdev_boot_setup()
|
/net/sunrpc/auth_gss/ |
D | gss_generic_token.c | 47 #define TWRITE_STR(ptr, str, len) \ argument 48 memcpy((ptr), (char *) (str), (len)); \
|
/net/9p/ |
D | trans_xen.c | 455 char str[16]; in xen_9pfs_front_init() local 458 sprintf(str, "ring-ref%u", i); in xen_9pfs_front_init() 459 ret = xenbus_printf(xbt, dev->nodename, str, "%d", in xen_9pfs_front_init() 464 sprintf(str, "event-channel-%u", i); in xen_9pfs_front_init() 465 ret = xenbus_printf(xbt, dev->nodename, str, "%u", in xen_9pfs_front_init()
|
/net/ieee802154/ |
D | core.c | 26 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/sunrpc/ |
D | xdr.c | 1693 ssize_t xdr_stream_decode_string(struct xdr_stream *xdr, char *str, size_t size) in xdr_stream_decode_string() argument 1700 memcpy(str, p, ret); in xdr_stream_decode_string() 1701 str[ret] = '\0'; in xdr_stream_decode_string() 1702 return strlen(str); in xdr_stream_decode_string() 1704 *str = '\0'; in xdr_stream_decode_string() 1722 ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, in xdr_stream_decode_string_dup() argument 1734 *str = s; in xdr_stream_decode_string_dup() 1739 *str = NULL; in xdr_stream_decode_string_dup()
|
D | cache.c | 1111 void qword_add(char **bpp, int *lp, char *str) in qword_add() argument 1119 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add()
|
/net/ipv4/ |
D | tcp_metrics.c | 987 static int __init set_tcpmhash_entries(char *str) in set_tcpmhash_entries() argument 991 if (!str) in set_tcpmhash_entries() 994 ret = kstrtouint(str, 0, &tcpmhash_entries); in set_tcpmhash_entries()
|
D | ipconfig.c | 1789 static int __init set_carrier_timeout(char *str) in set_carrier_timeout() argument 1793 if (!str) in set_carrier_timeout() 1796 ret = kstrtouint(str, 0, &carrier_timeout); in set_carrier_timeout()
|
D | udp.c | 3013 static int __init set_uhash_entries(char *str) in set_uhash_entries() argument 3017 if (!str) in set_uhash_entries() 3020 ret = kstrtoul(str, 0, &uhash_entries); in set_uhash_entries()
|
D | tcp.c | 3962 static int __init set_thash_entries(char *str) in set_thash_entries() argument 3966 if (!str) in set_thash_entries() 3969 ret = kstrtoul(str, 0, &thash_entries); in set_thash_entries()
|
/net/ipv6/ |
D | addrconf.c | 6359 char str[IPV6_MAX_STRLEN]; in addrconf_sysctl_stable_secret() local 6368 lctl.data = str; in addrconf_sysctl_stable_secret() 6378 err = snprintf(str, sizeof(str), "%pI6", &secret->secret); in addrconf_sysctl_stable_secret() 6379 if (err >= sizeof(str)) { in addrconf_sysctl_stable_secret() 6388 if (in6_pton(str, -1, addr.in6_u.u6_addr8, -1, NULL) != 1) { in addrconf_sysctl_stable_secret()
|