Home
last modified time | relevance | path

Searched refs:port_str (Results 1 – 4 of 4) sorted by relevance

/drivers/infiniband/core/
Dcma_configfs.c220 char port_str[11]; in make_cma_ports() local
223 snprintf(port_str, sizeof(port_str), "%u", i + 1); in make_cma_ports()
226 port_str, in make_cma_ports()
/drivers/target/iscsi/
Discsi_target_configfs.c161 char *str, *str2, *ip_str, *port_str; in lio_target_call_addnptotpg() local
186 port_str = strstr(str2, ":"); in lio_target_call_addnptotpg()
187 if (!port_str) { in lio_target_call_addnptotpg()
192 *port_str = '\0'; /* Terminate string for IP */ in lio_target_call_addnptotpg()
193 port_str++; /* Skip over ":" */ in lio_target_call_addnptotpg()
196 port_str = strstr(ip_str, ":"); in lio_target_call_addnptotpg()
197 if (!port_str) { in lio_target_call_addnptotpg()
202 *port_str = '\0'; /* Terminate string for IP */ in lio_target_call_addnptotpg()
203 port_str++; /* Skip over ":" */ in lio_target_call_addnptotpg()
207 port_str, &sockaddr); in lio_target_call_addnptotpg()
/drivers/infiniband/ulp/rtrs/
Drtrs.c458 char port_str[8]; in rtrs_str_to_sockaddr() local
462 snprintf(port_str, sizeof(port_str), "%u", port); in rtrs_str_to_sockaddr()
465 cpy, port_str, dst) : -ENOMEM; in rtrs_str_to_sockaddr()
/drivers/infiniband/ulp/srp/
Dib_srp.c3300 char *port_str; in srp_parse_in() local
3305 port_str = strrchr(addr, ':'); in srp_parse_in()
3306 if (port_str && strchr(port_str, ']')) in srp_parse_in()
3307 port_str = NULL; in srp_parse_in()
3308 if (port_str) in srp_parse_in()
3309 *port_str++ = '\0'; in srp_parse_in()
3311 *has_port = port_str != NULL; in srp_parse_in()
3312 ret = inet_pton_with_scope(net, AF_INET, addr, port_str, sa); in srp_parse_in()
3318 port_str, sa); in srp_parse_in()