Lines Matching refs:srp_host
231 static struct srp_iu *srp_alloc_iu(struct srp_host *host, size_t size, in srp_alloc_iu()
263 static void srp_free_iu(struct srp_host *host, struct srp_iu *iu) in srp_free_iu()
290 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
291 target->srp_host->port, in srp_init_ib_qp()
300 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
318 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
326 if (rdma_cap_opa_ah(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
327 target->srp_host->port)) in srp_new_ib_cm_id()
393 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fmr_pool()
527 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fr_pool()
554 struct srp_device *dev = target->srp_host->srp_dev; in srp_create_ch_ib()
677 struct srp_device *dev = target->srp_host->srp_dev; in srp_free_ch_ib()
724 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_free_ch_ib()
730 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_free_ch_ib()
762 target->srp_host->srp_dev->dev, in srp_ib_lookup_path()
763 target->srp_host->port, in srp_ib_lookup_path()
819 static u8 srp_get_subnet_timeout(struct srp_host *host) in srp_get_subnet_timeout()
898 subnet_timeout = srp_get_subnet_timeout(target->srp_host); in srp_send_req()
948 memcpy(ipi + 8, &target->srp_host->srp_dev->dev->node_guid, 8); in srp_send_req()
1007 struct srp_device *dev = target->srp_host->srp_dev; in srp_free_req_data()
1038 struct srp_device *srp_dev = target->srp_host->srp_dev; in srp_alloc_req_data()
1126 spin_lock(&target->srp_host->target_lock); in srp_remove_target()
1128 spin_unlock(&target->srp_host->target_lock); in srp_remove_target()
1247 struct srp_device *dev = target->srp_host->srp_dev; in srp_unmap_data()
1469 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fmr()
1526 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fr()
1604 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_sg_entry()
1723 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_idb()
1770 struct srp_device *dev = ch->target->srp_host->srp_dev; in srp_check_mapping()
1833 dev = target->srp_host->srp_dev; in srp_map_data()
2185 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_response_common()
2253 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_recv_done()
2373 dev = target->srp_host->srp_dev->dev; in srp_queuecommand()
2464 ch->rx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2472 ch->tx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2485 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_alloc_iu_bufs()
2486 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_alloc_iu_bufs()
2913 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_send_tsk_mgmt()
3157 return sprintf(buf, "%d\n", target->srp_host->port); in show_local_ib_port()
3166 dev_name(&target->srp_host->srp_dev->dev->dev)); in show_local_ib_device()
3286 static int srp_add_target(struct srp_host *host, struct srp_target_port *target) in srp_add_target()
3340 struct srp_host *host = in srp_release_dev()
3341 container_of(dev, struct srp_host, dev); in srp_release_dev()
3356 static bool srp_conn_unique(struct srp_host *host, in srp_conn_unique()
3770 struct srp_host *host = in srp_create_target()
3771 container_of(dev, struct srp_host, dev); in srp_create_target()
3802 target->srp_host = host; in srp_create_target()
3827 if (!srp_conn_unique(target->srp_host, target)) { in srp_create_target()
4040 struct srp_host *host = container_of(dev, struct srp_host, dev); in show_ibdev()
4050 struct srp_host *host = container_of(dev, struct srp_host, dev); in show_port()
4057 static struct srp_host *srp_add_port(struct srp_device *device, u8 port) in srp_add_port()
4059 struct srp_host *host; in srp_add_port()
4100 struct srp_host *host, *tmp_host; in srp_rename_dev()
4115 struct srp_host *host; in srp_add_one()
4200 struct srp_host *host, *tmp_host; in srp_remove_one()