Home
last modified time | relevance | path

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

/net/rds/
Dib.c79 static void rds_ib_dev_shutdown(struct rds_ib_device *rds_ibdev) in rds_ib_dev_shutdown() argument
84 spin_lock_irqsave(&rds_ibdev->spinlock, flags); in rds_ib_dev_shutdown()
85 list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) in rds_ib_dev_shutdown()
87 spin_unlock_irqrestore(&rds_ibdev->spinlock, flags); in rds_ib_dev_shutdown()
97 struct rds_ib_device *rds_ibdev = container_of(work, in rds_ib_dev_free() local
100 if (rds_ibdev->mr_pool) in rds_ib_dev_free()
101 rds_ib_destroy_mr_pool(rds_ibdev->mr_pool); in rds_ib_dev_free()
102 if (rds_ibdev->mr) in rds_ib_dev_free()
103 ib_dereg_mr(rds_ibdev->mr); in rds_ib_dev_free()
104 if (rds_ibdev->pd) in rds_ib_dev_free()
[all …]
Dib_rdma.c92 struct rds_ib_device *rds_ibdev; in rds_ib_get_device() local
96 list_for_each_entry_rcu(rds_ibdev, &rds_ib_devices, list) { in rds_ib_get_device()
97 list_for_each_entry_rcu(i_ipaddr, &rds_ibdev->ipaddr_list, list) { in rds_ib_get_device()
99 atomic_inc(&rds_ibdev->refcount); in rds_ib_get_device()
101 return rds_ibdev; in rds_ib_get_device()
110 static int rds_ib_add_ipaddr(struct rds_ib_device *rds_ibdev, __be32 ipaddr) in rds_ib_add_ipaddr() argument
120 spin_lock_irq(&rds_ibdev->spinlock); in rds_ib_add_ipaddr()
121 list_add_tail_rcu(&i_ipaddr->list, &rds_ibdev->ipaddr_list); in rds_ib_add_ipaddr()
122 spin_unlock_irq(&rds_ibdev->spinlock); in rds_ib_add_ipaddr()
127 static void rds_ib_remove_ipaddr(struct rds_ib_device *rds_ibdev, __be32 ipaddr) in rds_ib_remove_ipaddr() argument
[all …]
Dib_cm.c179 err = rds_ib_update_ipaddr(ic->rds_ibdev, conn->c_laddr); in rds_ib_cm_connect_complete()
200 struct rds_ib_device *rds_ibdev = ic->rds_ibdev; in rds_ib_cm_fill_conn_param() local
205 min_t(u32, rds_ibdev->max_responder_resources, max_responder_resources); in rds_ib_cm_fill_conn_param()
207 min_t(u32, rds_ibdev->max_initiator_depth, max_initiator_depth); in rds_ib_cm_fill_conn_param()
271 struct rds_ib_device *rds_ibdev; in rds_ib_setup_qp() local
278 rds_ibdev = rds_ib_get_client_data(dev); in rds_ib_setup_qp()
279 if (!rds_ibdev) in rds_ib_setup_qp()
283 rds_ib_add_conn(rds_ibdev, conn); in rds_ib_setup_qp()
285 if (rds_ibdev->max_wrs < ic->i_send_ring.w_nr + 1) in rds_ib_setup_qp()
286 rds_ib_ring_resize(&ic->i_send_ring, rds_ibdev->max_wrs - 1); in rds_ib_setup_qp()
[all …]
Dib.h97 struct rds_ib_device *rds_ibdev; member
269 void rds_ib_dev_put(struct rds_ib_device *rds_ibdev);
298 int rds_ib_update_ipaddr(struct rds_ib_device *rds_ibdev, __be32 ipaddr);
299 void rds_ib_add_conn(struct rds_ib_device *rds_ibdev, struct rds_connection *conn);
300 void rds_ib_remove_conn(struct rds_ib_device *rds_ibdev, struct rds_connection *conn);
303 void rds_ib_get_mr_info(struct rds_ib_device *rds_ibdev, struct rds_info_rdma_connection *iinfo);
Dib_send.c792 struct rds_ib_device *rds_ibdev; in rds_ib_xmit_atomic() local
798 rds_ibdev = ib_get_client_data(ic->i_cm_id->device, &rds_ib_client); in rds_ib_xmit_atomic()
886 u32 max_sge = ic->rds_ibdev->max_sge; in rds_ib_xmit_rdma()