Lines Matching defs:key
690 return sprintf(buf, "%*pE\n", (int)strlen(svc->key), svc->key);
692 static DEVICE_ATTR_RO(key);
696 return snprintf(buf, size, "tbsvc:k%sp%08Xv%08Xr%08X", svc->key,
781 kfree(svc->key);
802 if (!tb_property_find(xd->properties, svc->key,
818 return !strcmp(svc->key, p->key);
841 svc->key = kstrdup(property->key, GFP_KERNEL);
842 if (!svc->key)
884 kfree(svc->key);
1642 static bool remove_directory(const char *key, const struct tb_property_dir *dir)
1646 p = tb_property_find(xdomain_property_dir, key,
1657 * @key: Key (name) of the directory to add
1667 int tb_register_property_dir(const char *key, struct tb_property_dir *dir)
1674 if (!key || strlen(key) > 8)
1678 if (tb_property_find(xdomain_property_dir, key,
1684 ret = tb_property_add_dir(xdomain_property_dir, key, dir);
1690 remove_directory(key, dir);
1706 * @key: Key (name) of the directory
1712 void tb_unregister_property_dir(const char *key, struct tb_property_dir *dir)
1717 if (remove_directory(key, dir))