Lines Matching refs:mc_qht_elem

3852 static void mcast_list_del(struct mc_table_list *mc_qht_elem)  in mcast_list_del()  argument
3854 if (mc_qht_elem) in mcast_list_del()
3855 list_del(&mc_qht_elem->list); in mcast_list_del()
3954 struct mc_table_list *mc_qht_elem; in irdma_attach_mcast() local
3988 mc_qht_elem = mcast_list_lookup_ip(rf, ip_addr); in irdma_attach_mcast()
3989 if (!mc_qht_elem) { in irdma_attach_mcast()
3993 mc_qht_elem = kzalloc(sizeof(*mc_qht_elem), GFP_KERNEL); in irdma_attach_mcast()
3994 if (!mc_qht_elem) in irdma_attach_mcast()
3997 mc_qht_elem->mc_info.ipv4_valid = ipv4; in irdma_attach_mcast()
3998 memcpy(mc_qht_elem->mc_info.dest_ip, ip_addr, in irdma_attach_mcast()
3999 sizeof(mc_qht_elem->mc_info.dest_ip)); in irdma_attach_mcast()
4003 kfree(mc_qht_elem); in irdma_attach_mcast()
4007 mc_qht_elem->mc_info.mgn = mgn; in irdma_attach_mcast()
4008 dma_mem_mc = &mc_qht_elem->mc_grp_ctx.dma_mem_mc; in irdma_attach_mcast()
4017 kfree(mc_qht_elem); in irdma_attach_mcast()
4021 mc_qht_elem->mc_grp_ctx.mg_id = (u16)mgn; in irdma_attach_mcast()
4022 memcpy(mc_qht_elem->mc_grp_ctx.dest_ip_addr, ip_addr, in irdma_attach_mcast()
4023 sizeof(mc_qht_elem->mc_grp_ctx.dest_ip_addr)); in irdma_attach_mcast()
4024 mc_qht_elem->mc_grp_ctx.ipv4_valid = ipv4; in irdma_attach_mcast()
4025 mc_qht_elem->mc_grp_ctx.vlan_id = vlan_id; in irdma_attach_mcast()
4027 mc_qht_elem->mc_grp_ctx.vlan_valid = true; in irdma_attach_mcast()
4028 mc_qht_elem->mc_grp_ctx.hmc_fcn_id = iwdev->vsi.fcn_id; in irdma_attach_mcast()
4029 mc_qht_elem->mc_grp_ctx.qs_handle = in irdma_attach_mcast()
4031 ether_addr_copy(mc_qht_elem->mc_grp_ctx.dest_mac_addr, dmac); in irdma_attach_mcast()
4034 mcast_list_add(rf, mc_qht_elem); in irdma_attach_mcast()
4036 if (mc_qht_elem->mc_grp_ctx.no_of_mgs == in irdma_attach_mcast()
4044 no_mgs = mc_qht_elem->mc_grp_ctx.no_of_mgs; in irdma_attach_mcast()
4045 irdma_sc_add_mcast_grp(&mc_qht_elem->mc_grp_ctx, &mcg_info); in irdma_attach_mcast()
4050 ret = irdma_mcast_cqp_op(iwdev, &mc_qht_elem->mc_grp_ctx, in irdma_attach_mcast()
4052 } else if (no_mgs != mc_qht_elem->mc_grp_ctx.no_of_mgs) { in irdma_attach_mcast()
4053 ret = irdma_mcast_cqp_op(iwdev, &mc_qht_elem->mc_grp_ctx, in irdma_attach_mcast()
4065 irdma_sc_del_mcast_grp(&mc_qht_elem->mc_grp_ctx, &mcg_info); in irdma_attach_mcast()
4066 if (!mc_qht_elem->mc_grp_ctx.no_of_mgs) { in irdma_attach_mcast()
4067 mcast_list_del(mc_qht_elem); in irdma_attach_mcast()
4069 mc_qht_elem->mc_grp_ctx.dma_mem_mc.size, in irdma_attach_mcast()
4070 mc_qht_elem->mc_grp_ctx.dma_mem_mc.va, in irdma_attach_mcast()
4071 mc_qht_elem->mc_grp_ctx.dma_mem_mc.pa); in irdma_attach_mcast()
4072 mc_qht_elem->mc_grp_ctx.dma_mem_mc.va = NULL; in irdma_attach_mcast()
4074 mc_qht_elem->mc_grp_ctx.mg_id); in irdma_attach_mcast()
4075 kfree(mc_qht_elem); in irdma_attach_mcast()
4095 struct mc_table_list *mc_qht_elem; in irdma_detach_mcast() local
4109 mc_qht_elem = mcast_list_lookup_ip(rf, ip_addr); in irdma_detach_mcast()
4110 if (!mc_qht_elem) { in irdma_detach_mcast()
4118 irdma_sc_del_mcast_grp(&mc_qht_elem->mc_grp_ctx, &mcg_info); in irdma_detach_mcast()
4119 if (!mc_qht_elem->mc_grp_ctx.no_of_mgs) { in irdma_detach_mcast()
4120 mcast_list_del(mc_qht_elem); in irdma_detach_mcast()
4122 ret = irdma_mcast_cqp_op(iwdev, &mc_qht_elem->mc_grp_ctx, in irdma_detach_mcast()
4128 mcast_list_add(rf, mc_qht_elem); in irdma_detach_mcast()
4134 mc_qht_elem->mc_grp_ctx.dma_mem_mc.size, in irdma_detach_mcast()
4135 mc_qht_elem->mc_grp_ctx.dma_mem_mc.va, in irdma_detach_mcast()
4136 mc_qht_elem->mc_grp_ctx.dma_mem_mc.pa); in irdma_detach_mcast()
4137 mc_qht_elem->mc_grp_ctx.dma_mem_mc.va = NULL; in irdma_detach_mcast()
4139 mc_qht_elem->mc_grp_ctx.mg_id); in irdma_detach_mcast()
4140 kfree(mc_qht_elem); in irdma_detach_mcast()
4143 ret = irdma_mcast_cqp_op(iwdev, &mc_qht_elem->mc_grp_ctx, in irdma_detach_mcast()