Lines Matching refs:ibp
106 struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid, in rvt_mcast_find() argument
113 spin_lock_irqsave(&ibp->lock, flags); in rvt_mcast_find()
114 n = ibp->mcast_tree.rb_node; in rvt_mcast_find()
136 spin_unlock_irqrestore(&ibp->lock, flags); in rvt_mcast_find()
151 static int rvt_mcast_add(struct rvt_dev_info *rdi, struct rvt_ibport *ibp, in rvt_mcast_add() argument
154 struct rb_node **n = &ibp->mcast_tree.rb_node; in rvt_mcast_add()
158 spin_lock_irq(&ibp->lock); in rvt_mcast_add()
220 rb_insert_color(&mcast->rb_node, &ibp->mcast_tree); in rvt_mcast_add()
225 spin_unlock_irq(&ibp->lock); in rvt_mcast_add()
242 struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1]; in rvt_attach_mcast() local
262 switch (rvt_mcast_add(rdi, ibp, mcast, mqp)) { in rvt_attach_mcast()
305 struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1]; in rvt_detach_mcast() local
315 spin_lock_irq(&ibp->lock); in rvt_detach_mcast()
318 n = ibp->mcast_tree.rb_node; in rvt_detach_mcast()
321 spin_unlock_irq(&ibp->lock); in rvt_detach_mcast()
335 spin_unlock_irq(&ibp->lock); in rvt_detach_mcast()
356 rb_erase(&mcast->rb_node, &ibp->mcast_tree); in rvt_detach_mcast()
362 spin_unlock_irq(&ibp->lock); in rvt_detach_mcast()