Lines Matching defs:name
408 snprintf(svc_entries->service_entries[0].name,
409 sizeof(svc_entries->service_entries[0].name),
2408 pr_debug("Establish connection sess=%p name=%s ch=%p\n", ch->sess,
3000 static struct port_and_port_id __srpt_lookup_port(const char *name)
3015 if (strcmp(sport->guid_name, name) == 0) {
3020 if (strcmp(sport->gid_name, name) == 0) {
3032 * srpt_lookup_port() - Look up an RDMA port by name
3033 * @name: ASCII port name
3038 static struct port_and_port_id srpt_lookup_port(const char *name)
3043 papi = __srpt_lookup_port(name);
3300 .name = DRV_NAME,
3331 return stpg->sport_id->name;
3387 static int srpt_parse_guid(u64 *guid, const char *name)
3392 if (sscanf(name, "%hx:%hx:%hx:%hx", &w[0], &w[1], &w[2], &w[3]) != 4)
3402 * @name: ASCII representation of a 128-bit initiator port ID.
3405 static int srpt_parse_i_port_id(u8 i_port_id[16], const char *name)
3411 p = name;
3439 static int srpt_init_nodeacl(struct se_node_acl *se_nacl, const char *name)
3446 ret = srpt_parse_guid(&guid, name);
3448 ret = srpt_parse_i_port_id(i_port_id, name);
3450 ret = inet_pton_with_scope(&init_net, AF_UNSPEC, name, NULL,
3453 pr_err("invalid initiator port ID %s\n", name);
3729 * @name: $tpg.
3732 const char *name)
3778 * @name: $port.
3782 const char *name)
3784 struct port_and_port_id papi = srpt_lookup_port(name);
3803 memcpy(port_id->name, port_id == sport->guid_id ? sport->guid_name :
3804 sport->gid_name, ARRAY_SIZE(port_id->name));