Lines Matching defs:host
215 * @host: optional name for lookups where the device path is not available
223 const char *host;
426 static int dax_host_hash(const char *host)
428 return hashlen_hash(hashlen_string("DAX", host)) % DAX_HASH_SIZE;
480 kfree(dax_dev->host);
481 dax_dev->host = NULL;
556 static void dax_add_host(struct dax_device *dax_dev, const char *host)
565 dax_dev->host = host;
566 if (!host)
569 hash = dax_host_hash(host);
579 const char *host;
590 host = kstrdup(__host, GFP_KERNEL);
591 if (__host && !host)
603 dax_add_host(dax_dev, host);
614 kfree(host);
629 * @host: alternate name for the device registered by a dax driver
631 struct dax_device *dax_get_by_host(const char *host)
636 if (!host)
639 hash = dax_host_hash(host);
645 || strcmp(host, dax_dev->host) != 0)