Lines Matching defs:name
46 * the name is the same as what would be generated by ft_format_wwn()
47 * so the name and wwn are mapped one-to-one.
49 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict)
59 for (cp = name; cp < &name[FT_NAMELEN - 1]; cp++) {
74 return cp - name;
85 err, cp - name, pos, byte);
202 static int ft_init_nodeacl(struct se_node_acl *nacl, const char *name)
208 if (ft_parse_wwn(name, &wwpn, 1) < 0)
218 static struct se_portal_group *ft_add_tpg(struct se_wwn *wwn, const char *name)
226 pr_debug("tcm_fc: add tpg %s\n", name);
231 if (strstr(name, "tpgt_") != name)
234 ret = kstrtoul(name + 5, 10, &index);
322 * The name is the WWPN in lower-case ASCII, colon-separated bytes.
327 const char *name)
333 pr_debug("add wwn %s\n", name);
334 if (ft_parse_wwn(name, &wwpn, 1) < 0)
350 ft_format_wwn(ft_wwn->name, sizeof(ft_wwn->name), wwpn);
361 pr_debug("del wwn %s\n", ft_wwn->name);
389 return ft_tpg(se_tpg)->lport_wwn->name;