H A D | hwstats.c | 10 nsim_dev_hwstats_get_list_head(struct nsim_dev_hwstats *hwstats, in nsim_dev_hwstats_get_list_head() argument 15 return &hwstats->l3_list; in nsim_dev_hwstats_get_list_head() 22 static void nsim_dev_hwstats_traffic_bump(struct nsim_dev_hwstats *hwstats, in nsim_dev_hwstats_traffic_bump() argument 28 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, type); in nsim_dev_hwstats_traffic_bump() 44 struct nsim_dev_hwstats *hwstats; in nsim_dev_hwstats_traffic_work() local 46 hwstats = container_of(work, struct nsim_dev_hwstats, traffic_dw.work); in nsim_dev_hwstats_traffic_work() 47 mutex_lock(&hwstats->hwsdev_list_lock); in nsim_dev_hwstats_traffic_work() 48 nsim_dev_hwstats_traffic_bump(hwstats, NETDEV_OFFLOAD_XSTATS_TYPE_L3); in nsim_dev_hwstats_traffic_work() 49 mutex_unlock(&hwstats->hwsdev_list_lock); in nsim_dev_hwstats_traffic_work() 51 schedule_delayed_work(&hwstats in nsim_dev_hwstats_traffic_work() 105 nsim_dev_hwstats_event_off_xstats(struct nsim_dev_hwstats *hwstats, struct net_device *dev, unsigned long event, void *ptr) nsim_dev_hwstats_event_off_xstats() argument 152 __nsim_dev_hwstats_event_unregister(struct nsim_dev_hwstats *hwstats, struct net_device *dev, enum netdev_offload_xstats_type type) __nsim_dev_hwstats_event_unregister() argument 171 nsim_dev_hwstats_event_unregister(struct nsim_dev_hwstats *hwstats, struct net_device *dev) nsim_dev_hwstats_event_unregister() argument 180 nsim_dev_hwstats_event(struct nsim_dev_hwstats *hwstats, struct net_device *dev, unsigned long event, void *ptr) nsim_dev_hwstats_event() argument 203 struct nsim_dev_hwstats *hwstats; nsim_dev_netdevice_event() local 215 nsim_dev_hwstats_enable_ifindex(struct nsim_dev_hwstats *hwstats, int ifindex, enum netdev_offload_xstats_type type, struct list_head *hwsdev_list) nsim_dev_hwstats_enable_ifindex() argument 271 nsim_dev_hwstats_disable_ifindex(struct nsim_dev_hwstats *hwstats, int ifindex, enum netdev_offload_xstats_type type, struct list_head *hwsdev_list) nsim_dev_hwstats_disable_ifindex() argument 304 nsim_dev_hwstats_fail_ifindex(struct nsim_dev_hwstats *hwstats, int ifindex, enum netdev_offload_xstats_type type, struct list_head *hwsdev_list) nsim_dev_hwstats_fail_ifindex() argument 344 struct nsim_dev_hwstats *hwstats = file->private_data; nsim_dev_hwstats_do_write() local 412 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; nsim_dev_hwstats_init() local 458 nsim_dev_hwsdev_list_wipe(struct nsim_dev_hwstats *hwstats, enum netdev_offload_xstats_type type) nsim_dev_hwsdev_list_wipe() argument 478 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; nsim_dev_hwstats_exit() local [all...] |