Lines Matching refs:srp_host
211 static struct srp_iu *srp_alloc_iu(struct srp_host *host, size_t size, in srp_alloc_iu()
243 static void srp_free_iu(struct srp_host *host, struct srp_iu *iu) in srp_free_iu()
269 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_qp()
270 target->srp_host->port, in srp_init_qp()
279 attr->port_num = target->srp_host->port; in srp_init_qp()
297 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_cm_id()
315 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fmr_pool()
450 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fr_pool()
494 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()
863 struct srp_device *srp_dev = target->srp_host->srp_dev; in srp_alloc_req_data()
948 spin_lock(&target->srp_host->target_lock); in srp_remove_target()
950 spin_unlock(&target->srp_host->target_lock); in srp_remove_target()
1058 struct srp_device *dev = target->srp_host->srp_dev; in srp_unmap_data()
1296 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fr()
1347 ret = target->srp_host->srp_dev->use_fast_reg ? in srp_finish_mapping()
1374 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_sg_entry()
1459 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_sg()
1534 dev = target->srp_host->srp_dev; in srp_map_data()
1785 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_response_common()
1850 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_handle_recv()
2022 dev = target->srp_host->srp_dev->dev; in srp_queuecommand()
2112 ch->rx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2120 ch->tx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2133 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_alloc_iu_bufs()
2134 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_alloc_iu_bufs()
2417 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_send_tsk_mgmt()
2643 return sprintf(buf, "%d\n", target->srp_host->port); in show_local_ib_port()
2651 return sprintf(buf, "%s\n", target->srp_host->srp_dev->dev->name); in show_local_ib_device()
2771 static int srp_add_target(struct srp_host *host, struct srp_target_port *target) in srp_add_target()
2825 struct srp_host *host = in srp_release_dev()
2826 container_of(dev, struct srp_host, dev); in srp_release_dev()
2841 static bool srp_conn_unique(struct srp_host *host, in srp_conn_unique()
3134 struct srp_host *host = in srp_create_target()
3135 container_of(dev, struct srp_host, dev); in srp_create_target()
3159 target->srp_host = host; in srp_create_target()
3186 if (!srp_conn_unique(target->srp_host, target)) { in srp_create_target()
3332 struct srp_host *host = container_of(dev, struct srp_host, dev); in show_ibdev()
3342 struct srp_host *host = container_of(dev, struct srp_host, dev); in show_port()
3349 static struct srp_host *srp_add_port(struct srp_device *device, u8 port) in srp_add_port()
3351 struct srp_host *host; in srp_add_port()
3392 struct srp_host *host; in srp_add_one()
3488 struct srp_host *host, *tmp_host; in srp_remove_one()