Lines Matching refs:fwn
622 struct fw_name_devm *fwn = res; in fw_name_devm_release() local
624 if (fwn->magic == (unsigned long)&fw_cache) in fw_name_devm_release()
626 __func__, fwn->name, res); in fw_name_devm_release()
627 kfree_const(fwn->name); in fw_name_devm_release()
633 struct fw_name_devm *fwn = res; in fw_devm_match() local
635 return (fwn->magic == (unsigned long)&fw_cache) && in fw_devm_match()
636 !strcmp(fwn->name, match_data); in fw_devm_match()
642 struct fw_name_devm *fwn; in fw_find_devm_name() local
644 fwn = devres_find(dev, fw_name_devm_release, in fw_find_devm_name()
646 return fwn; in fw_find_devm_name()
651 struct fw_name_devm *fwn; in fw_cache_is_setup() local
653 fwn = fw_find_devm_name(dev, name); in fw_cache_is_setup()
654 if (fwn) in fw_cache_is_setup()
663 struct fw_name_devm *fwn; in fw_add_devm_name() local
668 fwn = devres_alloc(fw_name_devm_release, sizeof(struct fw_name_devm), in fw_add_devm_name()
670 if (!fwn) in fw_add_devm_name()
672 fwn->name = kstrdup_const(name, GFP_KERNEL); in fw_add_devm_name()
673 if (!fwn->name) { in fw_add_devm_name()
674 devres_free(fwn); in fw_add_devm_name()
678 fwn->magic = (unsigned long)&fw_cache; in fw_add_devm_name()
679 devres_add(dev, fwn); in fw_add_devm_name()
1459 struct fw_name_devm *fwn = res; in dev_create_fw_entry() local
1460 const char *fw_name = fwn->name; in dev_create_fw_entry()
1472 struct fw_name_devm *fwn = res; in devm_name_match() local
1473 return (fwn->magic == (unsigned long)match_data); in devm_name_match()