Home
last modified time | relevance | path

Searched refs:rds_ibdev (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/net/rds/
Dib.c83 static void rds_ib_dev_shutdown(struct rds_ib_device *rds_ibdev) in rds_ib_dev_shutdown() argument
88 spin_lock_irqsave(&rds_ibdev->spinlock, flags); in rds_ib_dev_shutdown()
89 list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) in rds_ib_dev_shutdown()
91 spin_unlock_irqrestore(&rds_ibdev->spinlock, flags); in rds_ib_dev_shutdown()
101 struct rds_ib_device *rds_ibdev = container_of(work, in rds_ib_dev_free() local
104 if (rds_ibdev->mr_8k_pool) in rds_ib_dev_free()
105 rds_ib_destroy_mr_pool(rds_ibdev->mr_8k_pool); in rds_ib_dev_free()
106 if (rds_ibdev->mr_1m_pool) in rds_ib_dev_free()
107 rds_ib_destroy_mr_pool(rds_ibdev->mr_1m_pool); in rds_ib_dev_free()
108 if (rds_ibdev->pd) in rds_ib_dev_free()
[all …]
Dib_rdma.c48 struct rds_ib_device *rds_ibdev; in rds_ib_get_device() local
52 list_for_each_entry_rcu(rds_ibdev, &rds_ib_devices, list) { in rds_ib_get_device()
53 list_for_each_entry_rcu(i_ipaddr, &rds_ibdev->ipaddr_list, list) { in rds_ib_get_device()
55 refcount_inc(&rds_ibdev->refcount); in rds_ib_get_device()
57 return rds_ibdev; in rds_ib_get_device()
66 static int rds_ib_add_ipaddr(struct rds_ib_device *rds_ibdev, __be32 ipaddr) in rds_ib_add_ipaddr() argument
76 spin_lock_irq(&rds_ibdev->spinlock); in rds_ib_add_ipaddr()
77 list_add_tail_rcu(&i_ipaddr->list, &rds_ibdev->ipaddr_list); in rds_ib_add_ipaddr()
78 spin_unlock_irq(&rds_ibdev->spinlock); in rds_ib_add_ipaddr()
83 static void rds_ib_remove_ipaddr(struct rds_ib_device *rds_ibdev, __be32 ipaddr) in rds_ib_remove_ipaddr() argument
[all …]
Dib_fmr.c35 struct rds_ib_mr *rds_ib_alloc_fmr(struct rds_ib_device *rds_ibdev, int npages) in rds_ib_alloc_fmr() argument
43 pool = rds_ibdev->mr_8k_pool; in rds_ib_alloc_fmr()
45 pool = rds_ibdev->mr_1m_pool; in rds_ib_alloc_fmr()
52 rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_fmr()
59 fmr->fmr = ib_alloc_fmr(rds_ibdev->pd, in rds_ib_alloc_fmr()
87 static int rds_ib_map_fmr(struct rds_ib_device *rds_ibdev, in rds_ib_map_fmr() argument
91 struct ib_device *dev = rds_ibdev->dev; in rds_ib_map_fmr()
143 rdsibdev_to_node(rds_ibdev)); in rds_ib_map_fmr()
187 struct rds_ib_mr *rds_ib_reg_fmr(struct rds_ib_device *rds_ibdev, in rds_ib_reg_fmr() argument
196 ibmr = rds_ib_alloc_fmr(rds_ibdev, nents); in rds_ib_reg_fmr()
[all …]
Dib_cm.c174 err = rds_ib_update_ipaddr(ic->rds_ibdev, &conn->c_laddr); in rds_ib_cm_connect_complete()
199 struct rds_ib_device *rds_ibdev = ic->rds_ibdev; in rds_ib_cm_fill_conn_param() local
204 min_t(u32, rds_ibdev->max_responder_resources, max_responder_resources); in rds_ib_cm_fill_conn_param()
206 min_t(u32, rds_ibdev->max_initiator_depth, max_initiator_depth); in rds_ib_cm_fill_conn_param()
351 struct rds_ib_device *rds_ibdev = ic->rds_ibdev; in rds_ib_tasklet_fn_recv() local
354 if (!rds_ibdev) in rds_ib_tasklet_fn_recv()
413 static inline int ibdev_get_unused_vector(struct rds_ib_device *rds_ibdev) in ibdev_get_unused_vector() argument
415 int min = rds_ibdev->vector_load[rds_ibdev->dev->num_comp_vectors - 1]; in ibdev_get_unused_vector()
416 int index = rds_ibdev->dev->num_comp_vectors - 1; in ibdev_get_unused_vector()
419 for (i = rds_ibdev->dev->num_comp_vectors - 1; i >= 0; i--) { in ibdev_get_unused_vector()
[all …]
Dib_frmr.c35 static struct rds_ib_mr *rds_ib_alloc_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_alloc_frmr() argument
44 pool = rds_ibdev->mr_8k_pool; in rds_ib_alloc_frmr()
46 pool = rds_ibdev->mr_1m_pool; in rds_ib_alloc_frmr()
53 rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_frmr()
60 frmr->mr = ib_alloc_mr(rds_ibdev->pd, IB_MR_TYPE_MEM_REG, in rds_ib_alloc_frmr()
150 static int rds_ib_map_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_map_frmr() argument
155 struct ib_device *dev = rds_ibdev->dev; in rds_ib_map_frmr()
223 ib_dma_unmap_sg(rds_ibdev->dev, ibmr->sg, ibmr->sg_len, in rds_ib_map_frmr()
334 struct rds_ib_mr *rds_ib_reg_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_reg_frmr() argument
351 ibmr = rds_ib_alloc_frmr(rds_ibdev, nents); in rds_ib_reg_frmr()
[all …]
Dib_mr.h114 void rds_ib_get_mr_info(struct rds_ib_device *rds_ibdev,
116 void rds6_ib_get_mr_info(struct rds_ib_device *rds_ibdev,
139 struct rds_ib_mr *rds_ib_reg_frmr(struct rds_ib_device *rds_ibdev,
Dib.h145 struct rds_ib_device *rds_ibdev; member
363 void rds_ib_dev_put(struct rds_ib_device *rds_ibdev);
392 int rds_ib_update_ipaddr(struct rds_ib_device *rds_ibdev,
394 void rds_ib_add_conn(struct rds_ib_device *rds_ibdev, struct rds_connection *conn);
395 void rds_ib_remove_conn(struct rds_ib_device *rds_ibdev, struct rds_connection *conn);
Dib_send.c853 u32 max_sge = ic->rds_ibdev->max_sge; in rds_ib_xmit_rdma()