Lines Matching refs:broadcast

193 	if (!memcmp(mcast->mcmember.mgid.raw, priv->dev->broadcast + 4,  in ipoib_mcast_join_finish()
196 if (!priv->broadcast) { in ipoib_mcast_join_finish()
200 priv->qkey = be32_to_cpu(priv->broadcast->mcmember.qkey); in ipoib_mcast_join_finish()
413 if (mcast == priv->broadcast) in ipoib_mcast_join_complete()
481 rec.qkey = priv->broadcast->mcmember.qkey; in ipoib_mcast_join()
483 rec.mtu = priv->broadcast->mcmember.mtu; in ipoib_mcast_join()
484 rec.traffic_class = priv->broadcast->mcmember.traffic_class; in ipoib_mcast_join()
486 rec.rate = priv->broadcast->mcmember.rate; in ipoib_mcast_join()
487 rec.sl = priv->broadcast->mcmember.sl; in ipoib_mcast_join()
488 rec.flow_label = priv->broadcast->mcmember.flow_label; in ipoib_mcast_join()
489 rec.hop_limit = priv->broadcast->mcmember.hop_limit; in ipoib_mcast_join()
537 if (!priv->broadcast) { in ipoib_mcast_join_task()
538 struct ipoib_mcast *broadcast; in ipoib_mcast_join_task() local
543 broadcast = ipoib_mcast_alloc(dev, 1); in ipoib_mcast_join_task()
544 if (!broadcast) { in ipoib_mcast_join_task()
555 memcpy(broadcast->mcmember.mgid.raw, priv->dev->broadcast + 4, in ipoib_mcast_join_task()
557 priv->broadcast = broadcast; in ipoib_mcast_join_task()
559 __ipoib_mcast_add(dev, priv->broadcast); in ipoib_mcast_join_task()
563 if (!test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_join_task()
564 if (!test_bit(IPOIB_MCAST_FLAG_BUSY, &priv->broadcast->flags)) in ipoib_mcast_join_task()
565 ipoib_mcast_join(dev, priv->broadcast, 0); in ipoib_mcast_join_task()
592 priv->mcast_mtu = IPOIB_UD_MTU(ib_mtu_enum_to_int(priv->broadcast->mcmember.mtu)); in ipoib_mcast_join_task()
667 !priv->broadcast || in ipoib_mcast_send()
668 !test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_send()
757 if (priv->broadcast) { in ipoib_mcast_dev_flush()
758 rb_erase(&priv->broadcast->rb_node, &priv->multicast_tree); in ipoib_mcast_dev_flush()
759 list_add_tail(&priv->broadcast->list, &remove_list); in ipoib_mcast_dev_flush()
760 priv->broadcast = NULL; in ipoib_mcast_dev_flush()
771 static int ipoib_mcast_addr_is_valid(const u8 *addr, const u8 *broadcast) in ipoib_mcast_addr_is_valid() argument
774 if (memcmp(addr, broadcast, 6)) in ipoib_mcast_addr_is_valid()
777 if (memcmp(addr + 7, broadcast + 7, 3)) in ipoib_mcast_addr_is_valid()
815 if (!ipoib_mcast_addr_is_valid(ha->addr, dev->broadcast)) in ipoib_mcast_restart_task()