Home
last modified time | relevance | path

Searched refs:mcast (Results 1 – 25 of 41) 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->mcast_addr.mgid = *mgid; in rvt_mcast_alloc()
116 mcast->mcast_addr.lid = lid; in rvt_mcast_alloc()
118 INIT_LIST_HEAD(&mcast->qp_list); in rvt_mcast_alloc()
119 init_waitqueue_head(&mcast->wait); in rvt_mcast_alloc()
120 atomic_set(&mcast->refcount, 0); in rvt_mcast_alloc()
123 return mcast; in rvt_mcast_alloc()
126 static void rvt_mcast_free(struct rvt_mcast *mcast) in rvt_mcast_free() argument
[all …]
DMakefile11 rdmavt-y := vt.o ah.o cq.o mad.o mcast.o mmap.o mr.o pd.o qp.o \
/drivers/net/xen-netback/
Dnetback.c721 struct xenvif_mcast_addr *mcast; in xenvif_mcast_add() local
730 mcast = kzalloc(sizeof(*mcast), GFP_ATOMIC); in xenvif_mcast_add()
731 if (!mcast) in xenvif_mcast_add()
734 ether_addr_copy(mcast->addr, addr); in xenvif_mcast_add()
735 list_add_tail_rcu(&mcast->entry, &vif->fe_mcast_addr); in xenvif_mcast_add()
743 struct xenvif_mcast_addr *mcast; in xenvif_mcast_del() local
745 list_for_each_entry_rcu(mcast, &vif->fe_mcast_addr, entry) { in xenvif_mcast_del()
746 if (ether_addr_equal(addr, mcast->addr)) { in xenvif_mcast_del()
748 list_del_rcu(&mcast->entry); in xenvif_mcast_del()
749 kfree_rcu(mcast, rcu); in xenvif_mcast_del()
[all …]
/drivers/staging/rtl8188eu/os_dep/
Drecv_linux.c87 bool mcast = is_multicast_ether_addr(pattrib->dst); in rtw_recv_indicatepkt() local
91 if (mcast) { in rtw_recv_indicatepkt()
107 if (mcast) in rtw_recv_indicatepkt()
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c101 static u16 nix_alloc_mce_list(struct nix_mcast *mcast, int count) in nix_alloc_mce_list() argument
105 if (!mcast) in nix_alloc_mce_list()
108 idx = mcast->next_free_mce; in nix_alloc_mce_list()
109 mcast->next_free_mce += count; in nix_alloc_mce_list()
508 if (!hw->nix0->mcast.mce_ctx || in rvu_nix_aq_enq_inst()
1697 struct nix_mcast *mcast; in nix_update_bcast_mce_list() local
1714 mcast = &nix_hw->mcast; in nix_update_bcast_mce_list()
1729 mutex_lock(&mcast->mce_lock); in nix_update_bcast_mce_list()
1759 mutex_unlock(&mcast->mce_lock); in nix_update_bcast_mce_list()
1765 struct nix_mcast *mcast = &nix_hw->mcast; in nix_setup_bcast_tables() local
[all …]
/drivers/net/wireless/ath/wil6210/
Drx_reorder.c98 int tid, cid, mid, mcast, retry; in wil_rx_reorder() local
106 &mcast, &retry); in wil_rx_reorder()
110 mid, cid, tid, seq, mcast); in wil_rx_reorder()
128 if (unlikely(mcast)) { in wil_rx_reorder()
Dtxrx.c919 int mcast = is_multicast_ether_addr(da); in wil_netif_rx() local
932 if (mcast && ether_addr_equal(sa, ndev->dev_addr)) { in wil_netif_rx()
939 if (mcast) { in wil_netif_rx()
997 if (mcast) in wil_netif_rx()
2048 bool mcast = (ring_index == vif->bcast_ring); in __wil_tx_ring() local
2078 if (unlikely(mcast)) { in __wil_tx_ring()
2563 int *mid, u16 *seq, int *mcast, int *retry) in wil_get_reorder_params() argument
2571 *mcast = wil_rxdesc_mcast(d); in wil_get_reorder_params()
/drivers/staging/rtl8188eu/core/
Drtw_xmit.c398 bool mcast; in update_attrib() local
461 mcast = is_multicast_ether_addr(pattrib->ra); in update_attrib()
464 if (mcast) { in update_attrib()
520 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, mcast); in update_attrib()
529 if (mcast) in update_attrib()
917 bool mcast = is_multicast_ether_addr(pattrib->ra); in rtw_xmitframe_coalesce() local
967 if (mcast) in rtw_xmitframe_coalesce()
973 if (mcast) in rtw_xmitframe_coalesce()
1003 mem_sz = min_t(size_t, mcast ? pattrib->pktlen : mpdu_len, remainder); in rtw_xmitframe_coalesce()
1016 if (mcast || remainder == 0) { in rtw_xmitframe_coalesce()
[all …]
Drtw_recv.c646 bool mcast = is_multicast_ether_addr(pattrib->dst); in sta2sta_data_frame() local
657 if (memcmp(myhwaddr, pattrib->dst, ETH_ALEN) && !mcast) { in sta2sta_data_frame()
679 if (mcast) { in sta2sta_data_frame()
698 if (mcast) in sta2sta_data_frame()
725 bool mcast = is_multicast_ether_addr(pattrib->dst); in ap2sta_data_frame() local
738 if (memcmp(myhwaddr, pattrib->dst, ETH_ALEN) && !mcast) { in ap2sta_data_frame()
753 if (!mcast) { in ap2sta_data_frame()
762 if (mcast) in ap2sta_data_frame()
787 if (!memcmp(myhwaddr, pattrib->dst, ETH_ALEN) && !mcast) { in ap2sta_data_frame()
/drivers/net/ethernet/freescale/fman/
Dfman_dtsec.c1063 bool mcast, ghtx; in dtsec_add_hash_mac_address() local
1071 mcast = (bool)((addr & MAC_GROUP_ADDRESS) ? true : false); in dtsec_add_hash_mac_address()
1074 if (ghtx && !mcast) { in dtsec_add_hash_mac_address()
1098 if (mcast) in dtsec_add_hash_mac_address()
1174 bool mcast, ghtx; in dtsec_del_hash_mac_address() local
1182 mcast = (bool)((addr & MAC_GROUP_ADDRESS) ? true : false); in dtsec_del_hash_mac_address()
1185 if (ghtx && !mcast) { in dtsec_del_hash_mac_address()
1199 if (mcast) in dtsec_del_hash_mac_address()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dsta.c2363 bool mcast) in __iwl_mvm_remove_sta_key() argument
2384 if (mcast) in __iwl_mvm_remove_sta_key()
3192 struct ieee80211_key_conf *key, bool mcast, in iwl_mvm_send_sta_key() argument
3265 if (mcast) in iwl_mvm_send_sta_key()
3403 bool mcast) in __iwl_mvm_set_sta_key() argument
3433 ret = iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast, in __iwl_mvm_set_sta_key()
3442 ret = iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast, in __iwl_mvm_set_sta_key()
3446 ret = iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast, in __iwl_mvm_set_sta_key()
3459 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_set_sta_key() local
3525 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast); in iwl_mvm_set_sta_key()
[all …]
/drivers/infiniband/core/
Duverbs_cmd.c2497 struct ib_uverbs_mcast_entry *mcast; in ib_uverbs_attach_mcast() local
2511 list_for_each_entry(mcast, &obj->mcast_list, list) in ib_uverbs_attach_mcast()
2512 if (cmd.mlid == mcast->lid && in ib_uverbs_attach_mcast()
2513 !memcmp(cmd.gid, mcast->gid.raw, sizeof mcast->gid.raw)) { in ib_uverbs_attach_mcast()
2518 mcast = kmalloc(sizeof *mcast, GFP_KERNEL); in ib_uverbs_attach_mcast()
2519 if (!mcast) { in ib_uverbs_attach_mcast()
2524 mcast->lid = cmd.mlid; in ib_uverbs_attach_mcast()
2525 memcpy(mcast->gid.raw, cmd.gid, sizeof mcast->gid.raw); in ib_uverbs_attach_mcast()
2527 ret = ib_attach_mcast(qp, &mcast->gid, cmd.mlid); in ib_uverbs_attach_mcast()
2529 list_add_tail(&mcast->list, &obj->mcast_list); in ib_uverbs_attach_mcast()
[all …]
Duverbs_main.c177 struct ib_uverbs_mcast_entry *mcast, *tmp; in ib_uverbs_detach_umcast() local
179 list_for_each_entry_safe(mcast, tmp, &uobj->mcast_list, list) { in ib_uverbs_detach_umcast()
180 ib_detach_mcast(qp, &mcast->gid, mcast->lid); in ib_uverbs_detach_umcast()
181 list_del(&mcast->list); in ib_uverbs_detach_umcast()
182 kfree(mcast); in ib_uverbs_detach_umcast()
/drivers/net/ethernet/atheros/atlx/
Datl2.h241 unsigned mcast:1; /* multicast packet */ member
290 unsigned mcast:1; /* current packet is multicast */ member
/drivers/net/ethernet/qlogic/qed/
Dqed_l2.c2758 struct qed_filter_mcast mcast; in qed_configure_filter_mcast() local
2761 memset(&mcast, 0, sizeof(mcast)); in qed_configure_filter_mcast()
2764 mcast.opcode = QED_FILTER_ADD; in qed_configure_filter_mcast()
2767 mcast.opcode = QED_FILTER_REMOVE; in qed_configure_filter_mcast()
2774 mcast.num_mc_addrs = params->num; in qed_configure_filter_mcast()
2775 for (i = 0; i < mcast.num_mc_addrs; i++) in qed_configure_filter_mcast()
2776 ether_addr_copy(mcast.mac[i], params->mac[i]); in qed_configure_filter_mcast()
2778 return qed_filter_mcast_cmd(cdev, &mcast, QED_SPQ_MODE_CB, NULL); in qed_configure_filter_mcast()
2790 return qed_configure_filter_mcast(cdev, &params->filter.mcast); in qed_configure_filter()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c562 struct bnx2x_mcast_ramrod_params mcast; in bnx2x_vf_mcast() local
568 memset(&mcast, 0, sizeof(struct bnx2x_mcast_ramrod_params)); in bnx2x_vf_mcast()
569 mcast.mcast_obj = &vf->mcast_obj; in bnx2x_vf_mcast()
571 set_bit(RAMROD_DRV_CLR_ONLY, &mcast.ramrod_flags); in bnx2x_vf_mcast()
573 set_bit(RAMROD_COMP_WAIT, &mcast.ramrod_flags); in bnx2x_vf_mcast()
584 INIT_LIST_HEAD(&mcast.mcast_list); in bnx2x_vf_mcast()
588 &mcast.mcast_list); in bnx2x_vf_mcast()
592 mcast.mcast_list_len = mc_num; in bnx2x_vf_mcast()
593 rc = bnx2x_config_mcast(bp, &mcast, BNX2X_MCAST_CMD_SET); in bnx2x_vf_mcast()
598 rc = bnx2x_config_mcast(bp, &mcast, BNX2X_MCAST_CMD_DEL); in bnx2x_vf_mcast()
/drivers/net/ipvlan/
Dipvlan.h167 unsigned int len, bool success, bool mcast);
Dipvlan_core.c15 unsigned int len, bool success, bool mcast) in ipvlan_count_rx() argument
24 if (mcast) in ipvlan_count_rx()
/drivers/net/ethernet/brocade/bna/
Dbfi_enet.h682 u64 mcast; member
701 u64 mcast; member
/drivers/infiniband/hw/qib/
Dqib_verbs.c323 struct rvt_mcast *mcast; in qib_ib_rcv() local
328 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid, lid); in qib_ib_rcv()
329 if (mcast == NULL) in qib_ib_rcv()
332 list_for_each_entry_rcu(p, &mcast->qp_list, list) in qib_ib_rcv()
338 if (atomic_dec_return(&mcast->refcount) <= 1) in qib_ib_rcv()
339 wake_up(&mcast->wait); in qib_ib_rcv()
/drivers/infiniband/hw/hfi1/
Dverbs.c508 struct rvt_mcast *mcast; in hfi1_handle_packet() local
513 mcast = rvt_mcast_find(&ibp->rvp, in hfi1_handle_packet()
516 if (!mcast) in hfi1_handle_packet()
518 list_for_each_entry_rcu(p, &mcast->qp_list, list) { in hfi1_handle_packet()
534 if (atomic_dec_return(&mcast->refcount) <= 1) in hfi1_handle_packet()
535 wake_up(&mcast->wait); in hfi1_handle_packet()
/drivers/net/ethernet/micrel/
Dks8851_mll.c849 static void ks_set_mcast(struct ks_net *ks, u16 mcast) in ks_set_mcast() argument
853 ks->all_mcast = mcast; in ks_set_mcast()
857 if (mcast) in ks_set_mcast()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c622 struct dsaf_tbl_tcam_mcast_cfg *mcast) in hns_dsaf_tbl_tcam_mcast_cfg() argument
628 mcast->tbl_mcast_item_vld); in hns_dsaf_tbl_tcam_mcast_cfg()
630 mcast->tbl_mcast_old_en); in hns_dsaf_tbl_tcam_mcast_cfg()
633 mcast->tbl_mcast_port_msk[4]); in hns_dsaf_tbl_tcam_mcast_cfg()
637 mcast->tbl_mcast_port_msk[3]); in hns_dsaf_tbl_tcam_mcast_cfg()
640 mcast->tbl_mcast_port_msk[2]); in hns_dsaf_tbl_tcam_mcast_cfg()
643 mcast->tbl_mcast_port_msk[1]); in hns_dsaf_tbl_tcam_mcast_cfg()
646 mcast->tbl_mcast_port_msk[0]); in hns_dsaf_tbl_tcam_mcast_cfg()
/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()

12