Lines Matching refs:srp_host
221 static struct srp_iu *srp_alloc_iu(struct srp_host *host, size_t size, in srp_alloc_iu()
253 static void srp_free_iu(struct srp_host *host, struct srp_iu *iu) in srp_free_iu()
280 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
281 target->srp_host->port, in srp_init_ib_qp()
290 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
308 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
316 if (rdma_cap_opa_ah(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
317 target->srp_host->port)) in srp_new_ib_cm_id()
499 struct srp_device *dev = target->srp_host->srp_dev; in srp_alloc_fr_pool()
526 struct srp_device *dev = target->srp_host->srp_dev; in srp_create_ch_ib()
639 struct srp_device *dev = target->srp_host->srp_dev; in srp_free_ch_ib()
683 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_free_ch_ib()
689 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_free_ch_ib()
721 target->srp_host->srp_dev->dev, in srp_ib_lookup_path()
722 target->srp_host->port, in srp_ib_lookup_path()
778 static u8 srp_get_subnet_timeout(struct srp_host *host) in srp_get_subnet_timeout()
857 subnet_timeout = srp_get_subnet_timeout(target->srp_host); in srp_send_req()
907 memcpy(ipi + 8, &target->srp_host->srp_dev->dev->node_guid, 8); in srp_send_req()
966 struct srp_device *dev = target->srp_host->srp_dev; in srp_exit_cmd_priv()
984 struct srp_device *srp_dev = target->srp_host->srp_dev; in srp_init_cmd_priv()
1060 spin_lock(&target->srp_host->target_lock); in srp_remove_target()
1062 spin_unlock(&target->srp_host->target_lock); in srp_remove_target()
1181 struct srp_device *dev = target->srp_host->srp_dev; in srp_unmap_data()
1426 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_finish_fr()
1555 struct srp_device *dev = target->srp_host->srp_dev; in srp_map_idb()
1593 struct srp_device *dev = ch->target->srp_host->srp_dev; in srp_check_mapping()
1653 dev = target->srp_host->srp_dev; in srp_map_data()
1996 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_response_common()
2064 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_recv_done()
2179 dev = target->srp_host->srp_dev->dev; in srp_queuecommand()
2268 ch->rx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2276 ch->tx_ring[i] = srp_alloc_iu(target->srp_host, in srp_alloc_iu_bufs()
2289 srp_free_iu(target->srp_host, ch->rx_ring[i]); in srp_alloc_iu_bufs()
2290 srp_free_iu(target->srp_host, ch->tx_ring[i]); in srp_alloc_iu_bufs()
2719 struct ib_device *dev = target->srp_host->srp_dev->dev; in srp_send_tsk_mgmt()
2977 return sysfs_emit(buf, "%u\n", target->srp_host->port); in local_ib_port_show()
2988 dev_name(&target->srp_host->srp_dev->dev->dev)); in local_ib_device_show()
3063 ATTRIBUTE_GROUPS(srp_host);
3108 static int srp_add_target(struct srp_host *host, struct srp_target_port *target) in srp_add_target()
3162 struct srp_host *host = in srp_release_dev()
3163 container_of(dev, struct srp_host, dev); in srp_release_dev()
3183 static bool srp_conn_unique(struct srp_host *host, in srp_conn_unique()
3685 struct srp_host *host = in add_target_store()
3686 container_of(dev, struct srp_host, dev); in add_target_store()
3717 target->srp_host = host; in add_target_store()
3740 if (!srp_conn_unique(target->srp_host, target)) { in add_target_store()
3931 struct srp_host *host = container_of(dev, struct srp_host, dev); in ibdev_show()
3941 struct srp_host *host = container_of(dev, struct srp_host, dev); in port_show()
3955 static struct srp_host *srp_add_port(struct srp_device *device, u32 port) in srp_add_port()
3957 struct srp_host *host; in srp_add_port()
3989 struct srp_host *host, *tmp_host; in srp_rename_dev()
4004 struct srp_host *host; in srp_add_one()
4082 struct srp_host *host, *tmp_host; in srp_remove_one()