Lines Matching refs:mc_entry
33 struct mlxsw_sp_nve_mc_entry *mc_entry,
36 const struct mlxsw_sp_nve_mc_entry *mc_entry);
38 const struct mlxsw_sp_nve_mc_entry *mc_entry,
41 const struct mlxsw_sp_nve_mc_entry *mc_entry,
87 struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv4_entry_add() argument
90 mc_entry->addr4 = addr->addr4; in mlxsw_sp_nve_mc_record_ipv4_entry_add()
97 const struct mlxsw_sp_nve_mc_entry *mc_entry) in mlxsw_sp_nve_mc_record_ipv4_entry_del() argument
103 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv4_entry_set() argument
106 u32 udip = be32_to_cpu(mc_entry->addr4); in mlxsw_sp_nve_mc_record_ipv4_entry_set()
113 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv4_entry_compare() argument
116 return mc_entry->addr4 == addr->addr4; in mlxsw_sp_nve_mc_record_ipv4_entry_compare()
130 struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv6_entry_add() argument
140 const struct mlxsw_sp_nve_mc_entry *mc_entry) in mlxsw_sp_nve_mc_record_ipv6_entry_del() argument
146 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv6_entry_set() argument
149 u32 udip_ptr = mc_entry->ipv6_entry.addr6_kvdl_index; in mlxsw_sp_nve_mc_record_ipv6_entry_set()
156 const struct mlxsw_sp_nve_mc_entry *mc_entry, in mlxsw_sp_nve_mc_record_ipv6_entry_compare() argument
159 return ipv6_addr_equal(&mc_entry->ipv6_entry.addr6, &addr->addr6); in mlxsw_sp_nve_mc_record_ipv6_entry_compare()
377 struct mlxsw_sp_nve_mc_entry *mc_entry; in mlxsw_sp_nve_mc_record_refresh() local
379 mc_entry = &mc_record->entries[i]; in mlxsw_sp_nve_mc_record_refresh()
380 if (!mc_entry->valid) in mlxsw_sp_nve_mc_record_refresh()
382 mc_record->ops->entry_set(mc_record, mc_entry, tnumt_pl, in mlxsw_sp_nve_mc_record_refresh()
413 struct mlxsw_sp_nve_mc_entry *mc_entry; in mlxsw_sp_nve_mc_entry_find() local
415 mc_entry = &mc_record->entries[i]; in mlxsw_sp_nve_mc_entry_find()
416 if (!mc_entry->valid) in mlxsw_sp_nve_mc_entry_find()
418 if (mc_record->ops->entry_compare(mc_record, mc_entry, addr)) in mlxsw_sp_nve_mc_entry_find()
419 return mc_entry; in mlxsw_sp_nve_mc_entry_find()
429 struct mlxsw_sp_nve_mc_entry *mc_entry = NULL; in mlxsw_sp_nve_mc_record_ip_add() local
432 mc_entry = mlxsw_sp_nve_mc_free_entry_find(mc_record); in mlxsw_sp_nve_mc_record_ip_add()
433 if (WARN_ON(!mc_entry)) in mlxsw_sp_nve_mc_record_ip_add()
436 err = mc_record->ops->entry_add(mc_record, mc_entry, addr); in mlxsw_sp_nve_mc_record_ip_add()
440 mc_entry->valid = true; in mlxsw_sp_nve_mc_record_ip_add()
461 mc_entry->valid = false; in mlxsw_sp_nve_mc_record_ip_add()
463 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_ip_add()
469 struct mlxsw_sp_nve_mc_entry *mc_entry) in mlxsw_sp_nve_mc_record_entry_del() argument
473 mc_entry->valid = false; in mlxsw_sp_nve_mc_record_entry_del()
481 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
498 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
514 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
521 mc_record->ops->entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_entry_del()
528 struct mlxsw_sp_nve_mc_entry **mc_entry) in mlxsw_sp_nve_mc_record_find() argument
536 *mc_entry = mlxsw_sp_nve_mc_entry_find(mc_record, addr); in mlxsw_sp_nve_mc_record_find()
537 if (*mc_entry) in mlxsw_sp_nve_mc_record_find()
573 struct mlxsw_sp_nve_mc_entry *mc_entry; in mlxsw_sp_nve_mc_list_ip_del() local
576 &mc_entry); in mlxsw_sp_nve_mc_list_ip_del()
580 mlxsw_sp_nve_mc_record_entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_list_ip_del()
681 struct mlxsw_sp_nve_mc_entry *mc_entry = &mc_record->entries[i]; in mlxsw_sp_nve_mc_record_delete() local
683 if (!mc_entry->valid) in mlxsw_sp_nve_mc_record_delete()
685 mlxsw_sp_nve_mc_record_entry_del(mc_record, mc_entry); in mlxsw_sp_nve_mc_record_delete()