Lines Matching refs:srp_host
209 static struct srp_iu *srp_alloc_iu(struct srp_host *host, size_t size, in srp_alloc_iu()
241 static void srp_free_iu(struct srp_host *host, struct srp_iu *iu) in srp_free_iu()
268 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_qp()
269 target->srp_host->port, in srp_init_qp()
278 attr->port_num = target->srp_host->port; in srp_init_qp()
296 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_cm_id()
314 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fmr_pool()
441 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fr_pool()
485 struct srp_device *dev = target->srp_host->srp_dev; in srp_create_ch_ib()
603 struct srp_device *dev = target->srp_host->srp_dev; in srp_free_ch_ib()
642 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_free_ch_ib()
648 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_free_ch_ib()
680 target->srp_host->srp_dev->dev, in srp_lookup_path()
681 target->srp_host->port, in srp_lookup_path()
786 &target->srp_host->srp_dev->dev->node_guid, 8); in srp_send_req()
833 struct srp_device *dev = target->srp_host->srp_dev; in srp_free_req_data()
864 struct srp_device *srp_dev = target->srp_host->srp_dev; in srp_alloc_req_data()
950 spin_lock(&target->srp_host->target_lock); in srp_remove_target()
952 spin_unlock(&target->srp_host->target_lock); in srp_remove_target()
1064 struct srp_device *dev = target->srp_host->srp_dev; in srp_unmap_data()
1279 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fmr()
1319 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fr()
1381 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_sg_entry()
1477 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_sg_dma()
1505 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_idb()
1576 dev = target->srp_host->srp_dev; in srp_map_data()
1843 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_response_common()
1908 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_handle_recv()
2081 dev = target->srp_host->srp_dev->dev; in srp_queuecommand()
2171 ch->rx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2179 ch->tx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2192 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_alloc_iu_bufs()
2193 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_alloc_iu_bufs()
2476 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_send_tsk_mgmt()
2699 return sprintf(buf, "%d\n", target->srp_host->port); in show_local_ib_port()
2707 return sprintf(buf, "%s\n", target->srp_host->srp_dev->dev->name); in show_local_ib_device()
2826 static int srp_add_target(struct srp_host *host, struct srp_target_port *target) in srp_add_target()
2880 struct srp_host *host = in srp_release_dev()
2881 container_of(dev, struct srp_host, dev); in srp_release_dev()
2896 static bool srp_conn_unique(struct srp_host *host, in srp_conn_unique()
3189 struct srp_host *host = in srp_create_target()
3190 container_of(dev, struct srp_host, dev); in srp_create_target()
3214 target->srp_host = host; in srp_create_target()
3237 if (!srp_conn_unique(target->srp_host, target)) { in srp_create_target()
3383 struct srp_host *host = container_of(dev, struct srp_host, dev); in show_ibdev()
3393 struct srp_host *host = container_of(dev, struct srp_host, dev); in show_port()
3400 static struct srp_host *srp_add_port(struct srp_device *device, u8 port) in srp_add_port()
3402 struct srp_host *host; in srp_add_port()
3443 struct srp_host *host; in srp_add_one()
3536 struct srp_host *host, *tmp_host; in srp_remove_one()