Lines Matching refs:hwsdev_list
26 struct list_head *hwsdev_list; in nsim_dev_hwstats_traffic_bump() local
28 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, type); in nsim_dev_hwstats_traffic_bump()
29 if (WARN_ON(!hwsdev_list)) in nsim_dev_hwstats_traffic_bump()
32 list_for_each_entry(hwsdev, hwsdev_list, list) { in nsim_dev_hwstats_traffic_bump()
56 nsim_dev_hwslist_find_hwsdev(struct list_head *hwsdev_list, in nsim_dev_hwslist_find_hwsdev() argument
61 list_for_each_entry(hwsdev, hwsdev_list, list) { in nsim_dev_hwslist_find_hwsdev()
111 struct list_head *hwsdev_list; in nsim_dev_hwstats_event_off_xstats() local
115 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, info->type); in nsim_dev_hwstats_event_off_xstats()
116 if (!hwsdev_list) in nsim_dev_hwstats_event_off_xstats()
121 hwsdev = nsim_dev_hwslist_find_hwsdev(hwsdev_list, dev->ifindex); in nsim_dev_hwstats_event_off_xstats()
157 struct list_head *hwsdev_list; in __nsim_dev_hwstats_event_unregister() local
159 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, type); in __nsim_dev_hwstats_event_unregister()
160 if (WARN_ON(!hwsdev_list)) in __nsim_dev_hwstats_event_unregister()
163 hwsdev = nsim_dev_hwslist_find_hwsdev(hwsdev_list, dev->ifindex); in __nsim_dev_hwstats_event_unregister()
218 struct list_head *hwsdev_list) in nsim_dev_hwstats_enable_ifindex() argument
232 hwsdev = nsim_dev_hwslist_find_hwsdev(hwsdev_list, ifindex); in nsim_dev_hwstats_enable_ifindex()
249 list_add_tail(&hwsdev->list, hwsdev_list); in nsim_dev_hwstats_enable_ifindex()
274 struct list_head *hwsdev_list) in nsim_dev_hwstats_disable_ifindex() argument
281 hwsdev = nsim_dev_hwslist_find_hwsdev(hwsdev_list, ifindex); in nsim_dev_hwstats_disable_ifindex()
307 struct list_head *hwsdev_list) in nsim_dev_hwstats_fail_ifindex() argument
314 hwsdev = nsim_dev_hwslist_find_hwsdev(hwsdev_list, ifindex); in nsim_dev_hwstats_fail_ifindex()
346 struct list_head *hwsdev_list; in nsim_dev_hwstats_do_write() local
357 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, hwsfops->type); in nsim_dev_hwstats_do_write()
358 if (WARN_ON(!hwsdev_list)) in nsim_dev_hwstats_do_write()
365 hwsdev_list); in nsim_dev_hwstats_do_write()
370 hwsdev_list); in nsim_dev_hwstats_do_write()
375 hwsdev_list); in nsim_dev_hwstats_do_write()
462 struct list_head *hwsdev_list; in nsim_dev_hwsdev_list_wipe() local
464 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, type); in nsim_dev_hwsdev_list_wipe()
465 if (WARN_ON(!hwsdev_list)) in nsim_dev_hwsdev_list_wipe()
469 list_for_each_entry_safe(hwsdev, tmp, hwsdev_list, list) { in nsim_dev_hwsdev_list_wipe()