Lines Matching refs:mg_ctx_info
96 entry_info = &info->mg_ctx_info[idx]; in irdma_create_mg_ctx()
202 if (ctx->mg_ctx_info[idx].valid_entry) { in irdma_sc_add_mcast_grp()
203 if (irdma_compare_mgs(&ctx->mg_ctx_info[idx], mg)) { in irdma_sc_add_mcast_grp()
204 ctx->mg_ctx_info[idx].use_cnt++; in irdma_sc_add_mcast_grp()
216 ctx->mg_ctx_info[free_entry_idx] = *mg; in irdma_sc_add_mcast_grp()
217 ctx->mg_ctx_info[free_entry_idx].valid_entry = true; in irdma_sc_add_mcast_grp()
218 ctx->mg_ctx_info[free_entry_idx].use_cnt = 1; in irdma_sc_add_mcast_grp()
241 if (!ctx->mg_ctx_info[idx].valid_entry) in irdma_sc_del_mcast_grp()
244 if (irdma_compare_mgs(mg, &ctx->mg_ctx_info[idx])) { in irdma_sc_del_mcast_grp()
245 ctx->mg_ctx_info[idx].use_cnt--; in irdma_sc_del_mcast_grp()
247 if (!ctx->mg_ctx_info[idx].use_cnt) { in irdma_sc_del_mcast_grp()
248 ctx->mg_ctx_info[idx].valid_entry = false; in irdma_sc_del_mcast_grp()
253 memcpy(&ctx->mg_ctx_info[idx], in irdma_sc_del_mcast_grp()
254 &ctx->mg_ctx_info[ctx->no_of_mgs - 1], in irdma_sc_del_mcast_grp()
255 sizeof(ctx->mg_ctx_info[idx])); in irdma_sc_del_mcast_grp()
256 ctx->mg_ctx_info[ctx->no_of_mgs - 1].valid_entry = false; in irdma_sc_del_mcast_grp()