Home
last modified time | relevance | path

Searched refs:mcast (Results 1 – 25 of 32) sorted by relevance

12

/drivers/infiniband/ulp/ipoib/
Dipoib_multicast.c74 struct ipoib_mcast *mcast, in __ipoib_mcast_schedule_join_thread() argument
85 if (mcast && delay) { in __ipoib_mcast_schedule_join_thread()
89 mcast->backoff *= 2; in __ipoib_mcast_schedule_join_thread()
90 if (mcast->backoff > IPOIB_MAX_BACKOFF_SECONDS) in __ipoib_mcast_schedule_join_thread()
91 mcast->backoff = IPOIB_MAX_BACKOFF_SECONDS; in __ipoib_mcast_schedule_join_thread()
92 mcast->delay_until = jiffies + (mcast->backoff * HZ); in __ipoib_mcast_schedule_join_thread()
112 static void ipoib_mcast_free(struct ipoib_mcast *mcast) in ipoib_mcast_free() argument
114 struct net_device *dev = mcast->dev; in ipoib_mcast_free()
118 mcast->mcmember.mgid.raw); in ipoib_mcast_free()
121 ipoib_del_neighs_by_gid(dev, mcast->mcmember.mgid.raw); in ipoib_mcast_free()
[all …]
/drivers/infiniband/sw/rdmavt/
Dmcast.c109 struct rvt_mcast *mcast; in rvt_mcast_alloc() local
111 mcast = kzalloc(sizeof(*mcast), GFP_KERNEL); in rvt_mcast_alloc()
112 if (!mcast) in rvt_mcast_alloc()
115 mcast->mgid = *mgid; in rvt_mcast_alloc()
116 INIT_LIST_HEAD(&mcast->qp_list); in rvt_mcast_alloc()
117 init_waitqueue_head(&mcast->wait); in rvt_mcast_alloc()
118 atomic_set(&mcast->refcount, 0); in rvt_mcast_alloc()
121 return mcast; in rvt_mcast_alloc()
124 static void rvt_mcast_free(struct rvt_mcast *mcast) in rvt_mcast_free() argument
128 list_for_each_entry_safe(p, tmp, &mcast->qp_list, list) in rvt_mcast_free()
[all …]
DMakefile10 rdmavt-y := vt.o ah.o cq.o dma.o mad.o mcast.o mmap.o mr.o pd.o qp.o srq.o \
/drivers/net/xen-netback/
Dnetback.c723 struct xenvif_mcast_addr *mcast; in xenvif_mcast_add() local
732 mcast = kzalloc(sizeof(*mcast), GFP_ATOMIC); in xenvif_mcast_add()
733 if (!mcast) in xenvif_mcast_add()
736 ether_addr_copy(mcast->addr, addr); in xenvif_mcast_add()
737 list_add_tail_rcu(&mcast->entry, &vif->fe_mcast_addr); in xenvif_mcast_add()
745 struct xenvif_mcast_addr *mcast; in xenvif_mcast_del() local
747 list_for_each_entry_rcu(mcast, &vif->fe_mcast_addr, entry) { in xenvif_mcast_del()
748 if (ether_addr_equal(addr, mcast->addr)) { in xenvif_mcast_del()
750 list_del_rcu(&mcast->entry); in xenvif_mcast_del()
751 kfree_rcu(mcast, rcu); in xenvif_mcast_del()
[all …]
/drivers/net/ethernet/freescale/fman/
Dfman_dtsec.c997 bool mcast, ghtx; in dtsec_add_hash_mac_address() local
1005 mcast = (bool)((addr & MAC_GROUP_ADDRESS) ? true : false); in dtsec_add_hash_mac_address()
1008 if (ghtx && !mcast) { in dtsec_add_hash_mac_address()
1032 if (mcast) in dtsec_add_hash_mac_address()
1064 bool mcast, ghtx; in dtsec_del_hash_mac_address() local
1072 mcast = (bool)((addr & MAC_GROUP_ADDRESS) ? true : false); in dtsec_del_hash_mac_address()
1075 if (ghtx && !mcast) { in dtsec_del_hash_mac_address()
1089 if (mcast) in dtsec_del_hash_mac_address()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dsta.c2597 struct ieee80211_key_conf *keyconf, bool mcast, in iwl_mvm_send_sta_key() argument
2645 if (mcast) in iwl_mvm_send_sta_key()
2774 bool mcast) in __iwl_mvm_set_sta_key() argument
2788 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
2796 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
2800 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
2809 bool mcast) in __iwl_mvm_remove_sta_key() argument
2821 if (mcast) in __iwl_mvm_remove_sta_key()
2851 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_set_sta_key() local
2908 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast); in iwl_mvm_set_sta_key()
[all …]
/drivers/net/wireless/ath/wil6210/
Drx_reorder.c102 int mcast = wil_rxdesc_mcast(d); in wil_rx_reorder() local
109 mid, cid, tid, seq, mcast); in wil_rx_reorder()
111 if (unlikely(mcast)) { in wil_rx_reorder()
Dtxrx.c636 int mcast = is_multicast_ether_addr(eth->h_dest); in wil_netif_rx_any() local
665 if (mcast) { in wil_netif_rx_any()
716 if (mcast) in wil_netif_rx_any()
1631 bool mcast = (vring_index == wil->bcast_vring); in __wil_tx_vring() local
1660 if (unlikely(mcast)) { in __wil_tx_vring()
/drivers/infiniband/core/
Duverbs_cmd.c3023 struct ib_uverbs_mcast_entry *mcast; in ib_uverbs_attach_mcast() local
3035 list_for_each_entry(mcast, &obj->mcast_list, list) in ib_uverbs_attach_mcast()
3036 if (cmd.mlid == mcast->lid && in ib_uverbs_attach_mcast()
3037 !memcmp(cmd.gid, mcast->gid.raw, sizeof mcast->gid.raw)) { in ib_uverbs_attach_mcast()
3042 mcast = kmalloc(sizeof *mcast, GFP_KERNEL); in ib_uverbs_attach_mcast()
3043 if (!mcast) { in ib_uverbs_attach_mcast()
3048 mcast->lid = cmd.mlid; in ib_uverbs_attach_mcast()
3049 memcpy(mcast->gid.raw, cmd.gid, sizeof mcast->gid.raw); in ib_uverbs_attach_mcast()
3051 ret = ib_attach_mcast(qp, &mcast->gid, cmd.mlid); in ib_uverbs_attach_mcast()
3053 list_add_tail(&mcast->list, &obj->mcast_list); in ib_uverbs_attach_mcast()
[all …]
Duverbs_main.c218 struct ib_uverbs_mcast_entry *mcast, *tmp; in ib_uverbs_detach_umcast() local
220 list_for_each_entry_safe(mcast, tmp, &uobj->mcast_list, list) { in ib_uverbs_detach_umcast()
221 ib_detach_mcast(qp, &mcast->gid, mcast->lid); in ib_uverbs_detach_umcast()
222 list_del(&mcast->list); in ib_uverbs_detach_umcast()
223 kfree(mcast); in ib_uverbs_detach_umcast()
/drivers/net/ethernet/atheros/atlx/
Datl2.h257 unsigned mcast:1; /* multicast packet */ member
306 unsigned mcast:1; /* current packet is multicast */ member
/drivers/net/ethernet/qlogic/qed/
Dqed_l2.c2100 struct qed_filter_mcast mcast; in qed_configure_filter_mcast() local
2103 memset(&mcast, 0, sizeof(mcast)); in qed_configure_filter_mcast()
2106 mcast.opcode = QED_FILTER_ADD; in qed_configure_filter_mcast()
2109 mcast.opcode = QED_FILTER_REMOVE; in qed_configure_filter_mcast()
2116 mcast.num_mc_addrs = params->num; in qed_configure_filter_mcast()
2117 for (i = 0; i < mcast.num_mc_addrs; i++) in qed_configure_filter_mcast()
2118 ether_addr_copy(mcast.mac[i], params->mac[i]); in qed_configure_filter_mcast()
2120 return qed_filter_mcast_cmd(cdev, &mcast, QED_SPQ_MODE_CB, NULL); in qed_configure_filter_mcast()
2132 return qed_configure_filter_mcast(cdev, &params->filter.mcast); in qed_configure_filter()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c561 struct bnx2x_mcast_ramrod_params mcast; in bnx2x_vf_mcast() local
567 memset(&mcast, 0, sizeof(struct bnx2x_mcast_ramrod_params)); in bnx2x_vf_mcast()
568 mcast.mcast_obj = &vf->mcast_obj; in bnx2x_vf_mcast()
570 set_bit(RAMROD_DRV_CLR_ONLY, &mcast.ramrod_flags); in bnx2x_vf_mcast()
572 set_bit(RAMROD_COMP_WAIT, &mcast.ramrod_flags); in bnx2x_vf_mcast()
583 INIT_LIST_HEAD(&mcast.mcast_list); in bnx2x_vf_mcast()
587 &mcast.mcast_list); in bnx2x_vf_mcast()
591 mcast.mcast_list_len = mc_num; in bnx2x_vf_mcast()
592 rc = bnx2x_config_mcast(bp, &mcast, BNX2X_MCAST_CMD_SET); in bnx2x_vf_mcast()
597 rc = bnx2x_config_mcast(bp, &mcast, BNX2X_MCAST_CMD_DEL); in bnx2x_vf_mcast()
Dbnx2x_sp.h150 } mcast; member
/drivers/infiniband/hw/hfi1/
Dverbs.c632 struct rvt_mcast *mcast; in hfi1_ib_rcv() local
637 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid); in hfi1_ib_rcv()
638 if (!mcast) in hfi1_ib_rcv()
640 list_for_each_entry_rcu(p, &mcast->qp_list, list) { in hfi1_ib_rcv()
654 if (atomic_dec_return(&mcast->refcount) <= 1) in hfi1_ib_rcv()
655 wake_up(&mcast->wait); in hfi1_ib_rcv()
/drivers/net/ethernet/brocade/bna/
Dbfi_enet.h690 u64 mcast; member
709 u64 mcast; member
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c616 struct dsaf_tbl_tcam_mcast_cfg *mcast) in hns_dsaf_tbl_tcam_mcast_cfg() argument
622 mcast->tbl_mcast_item_vld); in hns_dsaf_tbl_tcam_mcast_cfg()
624 mcast->tbl_mcast_old_en); in hns_dsaf_tbl_tcam_mcast_cfg()
627 mcast->tbl_mcast_port_msk[4]); in hns_dsaf_tbl_tcam_mcast_cfg()
631 mcast->tbl_mcast_port_msk[3]); in hns_dsaf_tbl_tcam_mcast_cfg()
634 mcast->tbl_mcast_port_msk[2]); in hns_dsaf_tbl_tcam_mcast_cfg()
637 mcast->tbl_mcast_port_msk[1]); in hns_dsaf_tbl_tcam_mcast_cfg()
640 mcast->tbl_mcast_port_msk[0]); in hns_dsaf_tbl_tcam_mcast_cfg()
/drivers/infiniband/hw/qib/
Dqib_verbs.c416 struct rvt_mcast *mcast; in qib_ib_rcv() local
421 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid); in qib_ib_rcv()
422 if (mcast == NULL) in qib_ib_rcv()
425 list_for_each_entry_rcu(p, &mcast->qp_list, list) in qib_ib_rcv()
431 if (atomic_dec_return(&mcast->refcount) <= 1) in qib_ib_rcv()
432 wake_up(&mcast->wait); in qib_ib_rcv()
/drivers/net/ethernet/micrel/
Dks8851_mll.c1167 static void ks_set_mcast(struct ks_net *ks, u16 mcast) in ks_set_mcast() argument
1171 ks->all_mcast = mcast; in ks_set_mcast()
1175 if (mcast) in ks_set_mcast()
/drivers/net/wireless/intersil/orinoco/
Dwext.c673 u16 enable, period, timeout, mcast; in orinoco_ioctl_getpower() local
695 HERMES_RID_CNFMULTICASTRECEIVE, &mcast); in orinoco_ioctl_getpower()
708 if (mcast) in orinoco_ioctl_getpower()
/drivers/net/ipvlan/
Dipvlan_core.c20 unsigned int len, bool success, bool mcast) in ipvlan_count_rx() argument
32 if (mcast) in ipvlan_count_rx()
/drivers/net/ethernet/mellanox/mlx4/
Dport.c1292 promisc = be32_to_cpu(qpn_context->mcast) >> in mlx4_common_set_port()
1294 qpn_context->mcast = cpu_to_be32( in mlx4_common_set_port()
1594 context->mcast = cpu_to_be32(m_promisc << SET_PORT_MC_PROMISC_SHIFT | in mlx4_SET_PORT_qpn_calc()
/drivers/net/ethernet/ti/
Dcpsw_ale.c100 DEFINE_ALE_FIELD(mcast, 40, 1)
/drivers/net/usb/
Dsmsc75xx.c1846 const u8 mcast[] = {0x01, 0x00, 0x5E}; in smsc75xx_suspend() local
1850 | smsc_crc(mcast, 3); in smsc75xx_suspend()
Dsmsc95xx.c1689 const u8 mcast[] = {0x01, 0x00, 0x5E}; in smsc95xx_suspend() local
1697 crc[filter/2] |= smsc_crc(mcast, 3, filter); in smsc95xx_suspend()

12