Lines Matching refs:srp_host
226 static struct srp_iu *srp_alloc_iu(struct srp_host *host, size_t size, in srp_alloc_iu()
258 static void srp_free_iu(struct srp_host *host, struct srp_iu *iu) in srp_free_iu()
285 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
286 target->srp_host->port, in srp_init_ib_qp()
295 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
313 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
321 if (rdma_cap_opa_ah(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
322 target->srp_host->port)) in srp_new_ib_cm_id()
504 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fr_pool()
531 struct srp_device *dev = target->srp_host->srp_dev; in srp_create_ch_ib()
644 struct srp_device *dev = target->srp_host->srp_dev; in srp_free_ch_ib()
688 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_free_ch_ib()
694 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_free_ch_ib()
726 target->srp_host->srp_dev->dev, in srp_ib_lookup_path()
727 target->srp_host->port, in srp_ib_lookup_path()
783 static u8 srp_get_subnet_timeout(struct srp_host *host) in srp_get_subnet_timeout()
862 subnet_timeout = srp_get_subnet_timeout(target->srp_host); in srp_send_req()
912 memcpy(ipi + 8, &target->srp_host->srp_dev->dev->node_guid, 8); in srp_send_req()
971 struct srp_device *dev = target->srp_host->srp_dev; in srp_exit_cmd_priv()
989 struct srp_device *srp_dev = target->srp_host->srp_dev; in srp_init_cmd_priv()
1065 spin_lock(&target->srp_host->target_lock); in srp_remove_target()
1067 spin_unlock(&target->srp_host->target_lock); in srp_remove_target()
1186 struct srp_device *dev = target->srp_host->srp_dev; in srp_unmap_data()
1431 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fr()
1560 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_idb()
1598 struct srp_device *dev = ch->target->srp_host->srp_dev; in srp_check_mapping()
1658 dev = target->srp_host->srp_dev; in srp_map_data()
2005 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_response_common()
2073 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_recv_done()
2188 dev = target->srp_host->srp_dev->dev; in srp_queuecommand()
2277 ch->rx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2285 ch->tx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2298 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_alloc_iu_bufs()
2299 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_alloc_iu_bufs()
2728 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_send_tsk_mgmt()
2992 return sysfs_emit(buf, "%u\n", target->srp_host->port); in local_ib_port_show()
3003 dev_name(&target->srp_host->srp_dev->dev->dev)); in local_ib_device_show()
3078 ATTRIBUTE_GROUPS(srp_host);
3123 static int srp_add_target(struct srp_host *host, struct srp_target_port *target) in srp_add_target()
3177 struct srp_host *host = in srp_release_dev()
3178 container_of(dev, struct srp_host, dev); in srp_release_dev()
3198 static bool srp_conn_unique(struct srp_host *host, in srp_conn_unique()
3632 struct srp_host *host = in add_target_store()
3633 container_of(dev, struct srp_host, dev); in add_target_store()
3664 target->srp_host = host; in add_target_store()
3687 if (!srp_conn_unique(target->srp_host, target)) { in add_target_store()
3878 struct srp_host *host = container_of(dev, struct srp_host, dev); in ibdev_show()
3888 struct srp_host *host = container_of(dev, struct srp_host, dev); in port_show()
3902 static struct srp_host *srp_add_port(struct srp_device *device, u32 port) in srp_add_port()
3904 struct srp_host *host; in srp_add_port()
3936 struct srp_host *host, *tmp_host; in srp_rename_dev()
3951 struct srp_host *host; in srp_add_one()
4029 struct srp_host *host, *tmp_host; in srp_remove_one()