Lines Matching refs:hw_entries
82 struct net_dm_hw_entries *hw_entries; member
304 struct net_dm_hw_entries *hw_entries; in net_dm_hw_reset_per_cpu_data() local
307 hw_entries = kzalloc(struct_size(hw_entries, entries, dm_hit_limit), in net_dm_hw_reset_per_cpu_data()
309 if (!hw_entries) { in net_dm_hw_reset_per_cpu_data()
318 swap(hw_data->hw_entries, hw_entries); in net_dm_hw_reset_per_cpu_data()
321 return hw_entries; in net_dm_hw_reset_per_cpu_data()
349 const struct net_dm_hw_entries *hw_entries) in net_dm_hw_entries_put() argument
358 for (i = 0; i < hw_entries->num_entries; i++) { in net_dm_hw_entries_put()
361 rc = net_dm_hw_entry_put(msg, &hw_entries->entries[i]); in net_dm_hw_entries_put()
377 const struct net_dm_hw_entries *hw_entries) in net_dm_hw_summary_report_fill() argument
394 rc = net_dm_hw_entries_put(msg, hw_entries); in net_dm_hw_summary_report_fill()
409 struct net_dm_hw_entries *hw_entries; in net_dm_hw_summary_work() local
416 hw_entries = net_dm_hw_reset_per_cpu_data(hw_data); in net_dm_hw_summary_work()
417 if (!hw_entries) in net_dm_hw_summary_work()
424 rc = net_dm_hw_summary_report_fill(msg, hw_entries); in net_dm_hw_summary_work()
433 kfree(hw_entries); in net_dm_hw_summary_work()
441 struct net_dm_hw_entries *hw_entries; in net_dm_hw_trap_summary_probe() local
452 hw_entries = hw_data->hw_entries; in net_dm_hw_trap_summary_probe()
454 if (!hw_entries) in net_dm_hw_trap_summary_probe()
457 for (i = 0; i < hw_entries->num_entries; i++) { in net_dm_hw_trap_summary_probe()
458 hw_entry = &hw_entries->entries[i]; in net_dm_hw_trap_summary_probe()
465 if (WARN_ON_ONCE(hw_entries->num_entries == dm_hit_limit)) in net_dm_hw_trap_summary_probe()
468 hw_entry = &hw_entries->entries[hw_entries->num_entries]; in net_dm_hw_trap_summary_probe()
472 hw_entries->num_entries++; in net_dm_hw_trap_summary_probe()
1065 struct net_dm_hw_entries *hw_entries; in net_dm_hw_monitor_start() local
1069 hw_entries = net_dm_hw_reset_per_cpu_data(hw_data); in net_dm_hw_monitor_start()
1070 kfree(hw_entries); in net_dm_hw_monitor_start()
1719 kfree(hw_data->hw_entries); in net_dm_hw_cpu_data_fini()