srp_host
spin_lock(&target->srp_host->target_lock);
spin_unlock(&target->srp_host->target_lock);
struct srp_device *dev = target->srp_host->srp_dev;
struct srp_device *dev = target->srp_host->srp_dev;
struct srp_device *dev = target->srp_host->srp_dev;
struct srp_device *dev = ch->target->srp_host->srp_dev;
dev = target->srp_host->srp_dev;
struct ib_device *dev = target->srp_host->srp_dev->dev;
struct ib_device *dev = target->srp_host->srp_dev->dev;
dev = target->srp_host->srp_dev->dev;
static struct srp_iu *srp_alloc_iu(struct srp_host *host, size_t size,
ch->rx_ring[i] = srp_alloc_iu(target->srp_host,
ch->tx_ring[i] = srp_alloc_iu(target->srp_host,
srp_free_iu(target->srp_host, ch->rx_ring[i]);
srp_free_iu(target->srp_host, ch->tx_ring[i]);
static void srp_free_iu(struct srp_host *host, struct srp_iu *iu)
struct ib_device *dev = target->srp_host->srp_dev->dev;
ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev,
target->srp_host->port,
attr->port_num = target->srp_host->port;
return sysfs_emit(buf, "%u\n", target->srp_host->port);
dev_name(&target->srp_host->srp_dev->dev->dev));
ATTRIBUTE_GROUPS(srp_host);
new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev,
static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
struct srp_host *host =
container_of(dev, struct srp_host, dev);
if (rdma_cap_opa_ah(target->srp_host->srp_dev->dev,
target->srp_host->port))
static bool srp_conn_unique(struct srp_host *host,
struct srp_host *host =
container_of(dev, struct srp_host, dev);
target->srp_host = host;
if (!srp_conn_unique(target->srp_host, target)) {
struct srp_host *host = container_of(dev, struct srp_host, dev);
struct srp_host *host = container_of(dev, struct srp_host, dev);
static struct srp_host *srp_add_port(struct srp_device *device, u32 port)
struct srp_host *host;
struct srp_host *host, *tmp_host;
struct srp_host *host;
struct srp_host *host, *tmp_host;
struct srp_device *dev = target->srp_host->srp_dev;
struct srp_device *dev = target->srp_host->srp_dev;
struct srp_device *dev = target->srp_host->srp_dev;
srp_free_iu(target->srp_host, ch->rx_ring[i]);
srp_free_iu(target->srp_host, ch->tx_ring[i]);
target->srp_host->srp_dev->dev,
target->srp_host->port,
static u8 srp_get_subnet_timeout(struct srp_host *host)
subnet_timeout = srp_get_subnet_timeout(target->srp_host);
memcpy(ipi + 8, &target->srp_host->srp_dev->dev->node_guid, 8);
struct srp_device *dev = target->srp_host->srp_dev;
struct srp_device *srp_dev = target->srp_host->srp_dev;
struct srp_host *srp_host;
struct srp_host_attrs *srp_host = to_srp_host_attrs(shost);
atomic_set(&srp_host->next_port_id, 0);